PR target/64113
[official-gcc.git] / gcc / ChangeLog
blob139881a66feeb0c7f8019ab9431b15afbdcc9508
1 2014-12-02  Uros Bizjak  <ubizjak@gmail.com>
3         PR target/64113
4         * config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
5         using post-reload splitter.  Use peephole2 pass instead.
6         (call_value_osf_tlsldm): Ditto.
7         (TLS_CALL): New int iterator.
8         (tls): New int attribute.
9         (call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
10         and call_value_tlsldm using TLS_CALL int iterator.
12 2014-12-02  Richard Biener  <rguenther@suse.de>
13             Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
15         * genmatch.c: Include hash-set.h.
16         (fatal_at): Add source_location overload.
17         (parser::record_operlist): New method.
18         (parser::push_simplify): Likewise.
19         (parser::oper_lists_set): New member.
20         (parser::oper_lists): Likewise.
21         (parser::parse_operation): Record seen operator list references.
22         (parser::parse_c_expr): Likewise.
23         (parser::parse_simplify): Init oper_lists_set and oper_lists
24         and use push_simplify.
25         (parser::parser): Init oper_lists_set and oper_lists.
27 2014-12-02  Richard Biener  <rguenther@suse.de>
29         * match.pd: Restrict division combining to trunc_div and
30         exact_div.
32 2014-12-02  Jakub Jelinek  <jakub@redhat.com>
34         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
35         Remove NULL last argument from create_tmp_var calls.
36         * config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
37         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
38         * config/i386/i386.c (add_condition_to_bb,
39         ix86_atomic_assign_expand_fenv): Likewise.
40         * config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
41         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
42         * config/aarch64/aarch64-builtins.c
43         (aarch64_atomic_assign_expand_fenv): Likewise.
44         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
45         Likewise.
46         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
47         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
48         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
50         * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
51         gimple_build_assign instead of gimple_build_assign_with_ops and swap
52         the order of first two arguments.
53         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
54         Likewise.  Remove last NULL_TREE argument.
56 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
58         PR rtl-optimization/59278
59         * combine (reg_dead_at_p): Consider REG_UNUSED notes.
61 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
63         * combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
65 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
67         * combine.c (is_parallel_of_n_reg_sets): New function.
68         (can_split_parallel_of_n_reg_sets): New function.
69         (try_combine): If I2 is a PARALLEL of two SETs, split it into
70         two insns if possible.
72 2014-12-01  Tobias Burnus  <burnus@net-b.de>
73             Jack Howarth  <howarth@bromo.med.uc.edu>
75         PR middle-end/64017
76         * configure.ac (ac_has_isl_schedule_constraints_compute_schedule):
77         New check.
78         * doc/install.texi (ISL): Permit ISL 0.14.
79         * graphite-optimize-isl.c (getScheduleForBandList, optimize_isl):
80         Conditionally use ISL 0.13+ functions.
81         * graphite-interchange.c: Make 'extern "C"' conditional.
82         * graphite-isl-ast-to-gimple.c: Ditto.
83         * graphite-poly.c: Ditto.
84         * graphite-sese-to-poly.c: Ditto.
85         * config.in: Regenerate.
86         * gcc/configure: Regenerate.
88 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
90         * combine.c (distribute_links): Handle multiple SETs.
92 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
94         * combine.c (struct insn_link): New field `regno'.
95         (alloc_insn_link): New parameter `regno'.  Use it.
96         (find_single_use): Check the new field.
97         (can_combine_def_p, can_combine_use_p): New functions.  Split
98         off from ...
99         (create_log_links): ... here.  Correct data type of `regno'.
100         Adjust call to alloc_insn_link.
101         (adjust_for_new_dest): Find regno, use it in call to
102         alloc_insn_link.
103         (try_combine): Check reg_used_between_p when combining a PARALLEL
104         as earlier insn.  Adjust call to alloc_insn_link.
105         (distribute_links): Check the new field.
107 2014-12-01  David Malcolm  <dmalcolm@redhat.com>
109         PR jit/63854
110         * real.c (real_from_string): Add missing mpfr_clear.
112 2014-12-01  David Malcolm  <dmalcolm@redhat.com>
114         PR jit/63854
115         * tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
116         release of stmts by converting it to an auto_vec.
118 2014-12-01  Richard Biener  <rguenther@suse.de>
120         * Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
121         -Wno-unused-variable and -Wno-unused-but-set-variable to restore
122         bootstrap with old GCC.
123         (generic-match.o-warn): Likewise.
125 2014-12-01  Richard Biener  <rguenther@suse.de>
127         * fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
128         Properly handle FIXED_CST shifts by INTEGER_CST.
129         (const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
130         VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
131         VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
132         VEC_WIDEN_MULT_ODD_EXPR handling here from ...
133         (fold_binary_loc): ... here.  Call const_binop overload
134         with result type.
136 2014-12-01  Marek Polacek  <polacek@redhat.com>
137             Jakub Jelinek  <jakub@redhat.com>
139         PR sanitizer/64121
140         * ubsan.c (instrument_object_size): Stop searching if the base
141         occurs in abnormal phi.
143 2014-12-01  Marek Polacek  <polacek@redhat.com>
145         PR sanitizer/63956
146         * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
148 2014-12-01  Jakub Jelinek  <jakub@redhat.com>
150         * gimple.h (gimple_build_assign_stat): Remove prototype.
151         (gimple_build_assign): Remove define.  Add overload prototypes
152         with tree lhs and either a tree rhs, or enum tree_code and
153         1, 2 or 3 tree operands.
154         * gimple.c (gimple_build_assign_stat): Renamed to...
155         (gimple_build_assign): ... this.  Add overloads with
156         enum tree_code and 1, 2 or 3 tree operands.
157         (gimple_build_assign_with_ops): Remove 1 and 2 operand overloads.
158         Rename the 3 operand overload to ...
159         (gimple_build_assign_1): ... this.  Make it static inline.
160         * tree-ssa-strlen.c (get_string_length): Use gimple_build_assign
161         instead of gimple_build_assign_with_ops, swap the order of first
162         two arguments and adjust formatting where necessary.
163         * tree-vect-slp.c (vect_get_constant_vectors,
164         vect_create_mask_and_perm): Likewise.
165         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
166         * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
167         maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
168         * tsan.c (instrument_builtin_call): Likewise.
169         * tree-chkp.c (chkp_compute_bounds_for_assignment,
170         chkp_generate_extern_var_bounds): Likewise.
171         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
172         * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
173         * gimple-builder.c (build_assign, build_type_cast): Likewise.
174         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
175         * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
176         gimple_mod_subtract): Likewise.
177         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
178         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
179         vect_recog_sad_pattern, vect_handle_widen_op_by_const,
180         vect_recog_widen_mult_pattern, vect_recog_pow_pattern,
181         vect_recog_widen_sum_pattern, vect_operation_fits_smaller_type,
182         vect_recog_over_widening_pattern, vect_recog_widen_shift_pattern,
183         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
184         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
185         adjust_bool_pattern_cast, adjust_bool_pattern,
186         vect_recog_bool_pattern): Likewise.
187         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
188         insert_initializers, introduce_cast_before_cand,
189         replace_one_candidate): Likewise.
190         * tree-ssa-math-opts.c (insert_reciprocals, powi_as_mults_1,
191         powi_as_mults, build_and_insert_binop, build_and_insert_cast,
192         pass_cse_sincos::execute, bswap_replace, convert_mult_to_fma):
193         Likewise.
194         * tree-tailcall.c (adjust_return_value_with_ops,
195         update_accumulator_with_ops): Likewise.
196         * tree-predcom.c (reassociate_to_the_same_stmt): Likewise.
197         * tree-ssa-reassoc.c (build_and_add_sum,
198         optimize_range_tests_to_bit_test, update_ops,
199         maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
200         negate_value, repropagate_negates, attempt_builtin_powi,
201         reassociate_bb): Likewise.
202         * tree-vect-loop.c (vect_is_simple_reduction_1,
203         get_initial_def_for_induction, vect_create_epilog_for_reduction):
204         Likewise.
205         * ipa-split.c (split_function): Likewise.
206         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
207         abs_replacement, neg_replacement): Likewise.
208         * tree-profile.c (gimple_gen_edge_profiler): Likewise.
209         * tree-vrp.c (simplify_truth_ops_using_ranges,
210         simplify_float_conversion_using_ranges,
211         simplify_internal_call_using_ranges): Likewise.
212         * gimple-fold.c (rewrite_to_defined_overflow, gimple_build): Likewise.
213         * tree-vect-generic.c (expand_vector_divmod,
214         optimize_vector_constructor): Likewise.
215         * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn,
216         instrument_bool_enum_load): Likewise.
217         * tree-ssa-loop-manip.c (create_iv): Likewise.
218         * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
219         expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
220         expand_cilk_for, simd_clone_adjust): Likewise.
221         * trans-mem.c (expand_transaction): Likewise.
222         * tree-vect-data-refs.c (bump_vector_ptr, vect_permute_store_chain,
223         vect_setup_realignment, vect_permute_load_chain,
224         vect_shift_permute_load_chain): Likewise.
225         * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
226         vectorizable_simd_clone_call, vect_gen_widened_results_half,
227         vect_create_vectorized_demotion_stmts, vectorizable_conversion,
228         vectorizable_shift, vectorizable_operation, vectorizable_store,
229         permute_vec_elements, vectorizable_load): Likewise.
231 2014-12-01  Richard Biener  <rguenther@suse.de>
233         PR middle-end/64111
234         * tree.c (int_cst_hasher::hash): Use TYPE_UID instead of
235         htab_hash_pointer to not break PCH.
237 2014-12-01  Richard Biener  <rguenther@suse.de>
239         PR tree-optimization/15346
240         * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter,
241         add -Wno-unused-but-set-variable.
242         * match.pd: Combine two successive divisions.
244 2014-12-01  Richard Biener  <rguenther@suse.de>
246         PR middle-end/64126
247         * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A
248         and -1 - A -> ~A.
249         * fold-const.c (fold_binary_loc): Remove transforms here.
251 2014-12-01  Maciej W. Rozycki  <macro@codesourcery.com>
253         * config/mips/mips.c (mips16_build_call_stub): Move the save of
254         the return address in $18 ahead of passing arguments to FPRs.
256 2014-12-01  Ilya Enkovich  <ilya.enkovich@intel.com>
258         PR target/64055
259         * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
260         values in array domain.
262 2014-12-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
264         PR tree-optimization/63941
265         * tree-if-conv.c (add_to_predicate_list): Delete wrong assertion that
266         DOM_BB has non-true predicate, conditionally set non-true predicate
267         for BB.
269 2014-12-01  Martin Jambor  <mjambor@suse.cz>
271         PR ipa/63551
272         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
273         value of the argument to the type of the value in the condition.
275 2014-12-01  Oleg Endo  <olegendo@gcc.gnu.org>
277         PR target/63986
278         PR target/51244
279         * config/sh/sh.c (sh_unspec_insn_p,
280         sh_insn_operands_modified_between_p): New functions.
281         (sh_split_movrt_negc_to_movt_xor): Do not delete insn if its operands
282         are modified or if it has side effects, may trap or is volatile.
284 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
286         * gimple-expr.h (create_tmp_var_raw, create_tmp_var,
287         create_tmp_reg): Add default NULL value to last argument.
288         * tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
289         * gimple-low.c (lower_builtin_posix_memalign): Remove NULL
290         last argument from create_tmp_var_raw, create_tmp_var,
291         create_tmp_reg, make_ssa_name and copy_ssa_name calls.
292         * tree-ssa-strlen.c (get_string_length): Likewise.
293         * tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
294         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
295         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
296         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
297         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
298         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
299         * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
300         maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
301         * tsan.c (instrument_expr, instrument_builtin_call,
302         instrument_func_entry): Likewise.
303         * varpool.c (add_new_static_var): Likewise.
304         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
305         * gimplify.c (internal_get_tmp_var, gimplify_return_expr,
306         gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
307         gimplify_init_ctor_eval_range, gimplify_init_constructor,
308         gimplify_omp_atomic, gimplify_expr): Likewise.
309         * gimple-builder.c (build_assign, build_type_cast): Likewise.
310         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
311         slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
312         vect_loop_versioning): Likewise.
313         * tree-if-conv.c (version_loop_for_if_conversion): Likewise.
314         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
315         * tree-vect-patterns.c (vect_handle_widen_op_by_const,
316         vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
317         vect_recog_over_widening_pattern): Likewise.
318         * tree-sra.c (build_ref_for_offset, create_access_replacement):
319         Likewise.
320         * tree-cfg.c (make_blocks): Likewise.
321         * tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
322         Likewise.
323         * tree-ssa-propagate.c (update_call_from_tree): Likewise.
324         * tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
325         Likewise.
326         * tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
327         * tree-tailcall.c (update_accumulator_with_ops): Likewise.
328         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
329         execute_load_motion, reassociate_to_the_same_stmt): Likewise.
330         * tree-ssa-reassoc.c (build_and_add_sum,
331         optimize_range_tests_to_bit_test, update_ops,
332         maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
333         negate_value, repropagate_negates): Likewise.
334         * tree-vect-loop.c (vect_is_simple_reduction_1,
335         vect_create_epilog_for_reduction): Likewise.
336         * ipa-split.c (split_function): Likewise.
337         * tree-inline.c (remap_ssa_name, setup_one_parameter,
338         declare_return_variable, tree_function_versioning): Likewise.
339         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
340         * cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
341         Likewise.
342         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
343         neg_replacement): Likewise.
344         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
345         Likewise.
346         * tree-vrp.c (simplify_truth_ops_using_ranges,
347         simplify_float_conversion_using_ranges,
348         simplify_internal_call_using_ranges): Likewise.
349         * tree-switch-conversion.c (emit_case_bit_tests,
350         build_one_array, build_arrays, gen_def_assigns): Likewise.
351         * gimple-fold.c (gimple_fold_builtin_memory_op,
352         gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
353         * tree-vect-generic.c (expand_vector_divmod,
354         optimize_vector_constructor): Likewise.
355         * ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
356         ubsan_expand_objsize_ifn, instrument_si_overflow,
357         instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
358         * tree-outof-ssa.c (insert_backedge_copies): Likewise.
359         * tree-ssa-loop-manip.c (create_iv,
360         tree_transform_and_unroll_loop): Likewise.
361         * omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
362         lower_rec_input_clauses, lower_lastprivate_clauses,
363         expand_parallel_call, expand_omp_for_static_chunk,
364         expand_omp_atomic_pipeline, expand_omp_target,
365         maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
366         lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
367         lower_depend_clauses, lower_omp_target, lower_omp_1,
368         ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
369         * tree-parloops.c (take_address_of, create_phi_for_local_result,
370         create_call_for_reduction_1, separate_decls_in_region,
371         create_parallel_loop): Likewise.
372         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
373         handle_scalar_deps_crossing_scop_limits): Likewise.
374         * trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
375         expand_assign_tm, expand_call_tm, expand_transaction,
376         ipa_tm_insert_gettmclone_call): Likewise.
377         * tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
378         Likewise.
379         * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
380         vectorizable_call, vectorizable_simd_clone_call,
381         vectorizable_conversion, vectorizable_store, permute_vec_elements,
382         vectorizable_load): Likewise.
384 2014-11-29  Tobias Burnus  <burnus@net-b.de>
385             Manuel López-Ibáñez  <manu@gcc.gnu.org>
387         * opt-functions.awk (lang_enabled_by): Support || for
388         enabled-by.
389         * optc-gen.awk: Ditto.
390         * doc/options.texi (LangEnabledBy, EnabledBy): Document the
391         || syntax.
393 2014-11-28  Mike Stump  <mikestump@comcast.net>
395         * bitmap.c (bitmap_ior): Zap current as it could be deleted.
396         (bitmap_ior_and_compl): Likewise.
398 2014-11-28  Vladimir Makarov  <vmakarov@redhat.com>
400         PR target/64061
401         * lra.c (lra_substitute_pseudo): Ignore constant with int mode for
402         subreg.
404 2014-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
406         PR target/64093
407         * config/rs6000/rs6000.md (and<mode>3): Don't generate
408         and<mode>3_imm unless rs6000_gen_cell_microcode is true.
410 2014-11-28  Vladimir Makarov  <vmakarov@redhat.com>
412         PR rtl-optimization/64087
413         * lra-lives.c (process_bb_lives): Add debug output.
414         (lra_create_live_ranges): Don't remove dead insn on the second
415         call of lra_create_live_ranges_1.
417 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
419         PR rtl-optimization/64037
420         * combine.c (setup_incoming_promotions): Pass the argument
421         before any promotions happen to promote_function_mode.
423 2014-11-28  Evgeny Stupachenko  <evstupac@gmail.com>
425         * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
426         permutations to loads group of size 3.
428 2014-11-28  Jiong Wang  <jiong.wang@arm.com>
430         * config/arm/arm.md (copysignsf3): New pattern.
431         (copysigndf3): Likewise.
433 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
434             Ilya Verbin  <ilya.verbin@intel.com>
436         * omp-low.c (lower_omp_critical): Mark critical sections
437         inside target functions as offloadable.
439 2014-11-28  Ilya Verbin  <ilya.verbin@intel.com>
441         * lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
442         file contains sections with LTO and offload IR, respectively.
444 2014-11-28  Ilya Verbin  <ilya.verbin@intel.com>
446         * cgraphunit.c (ipa_passes): Handle flag_generate_offload.
447         (symbol_table::compile): Set flag_generate_offload if there is something
448         to offload.
449         * common.opt (flag_generate_offload): New Variable declaration.
450         * dwarf2out.c (dwarf2out_finish): Handle flag_generate_offload.
451         * ipa-inline-analysis.c (inline_generate_summary): Do not skip if
452         flag_generate_offload is set.
453         * lto-streamer.c (gate_lto_out): Handle flag_generate_offload.
454         * passes.c (ipa_write_summaries): Do not skip if flag_generate_offload
455         is set.
456         * toplev.c (compile_file): Emit LTO marker if offload info has been
457         previously emitted.  Do not emit lto_slim marker if
458         flag_generate_offload is without flag_generate_lto.
459         * tree.c (free_lang_data): Do not skip if flag_generate_offload is set.
461 2014-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
463         * config/arm/arm-cores.def (cortex-a17.cortex-a7): New entry.
464         * config/arm/arm-tables.opt: Regenerate.
465         * config/arm/arm-tune.md: Regenerate.
466         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a17.cortex-a7.
467         * config/arm/t-aprofile: Add cortex-a17.cortex-a7 entry to
468         MULTILIB_MATCHES.
470 2014-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
472         * config/arm/arm.md (generic_sched): Specify cortexa17 in 'no' list.
473         Include cortex-a17.md.
474         * config/arm/arm.c (arm_issue_rate): Specify 2 for cortexa17.
475         * config/arm/arm-cores.def (cortex-a17): New entry.
476         * config/arm/arm-tables.opt: Regenerate.
477         * config/arm/arm-tune.md: Regenerate.
478         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=cortex-a17.
479         * config/arm/cortex-a17.md: New file.
480         * config/arm/cortex-a17-neon.md: New file.
481         * config/arm/driver-arm.c (arm_cpu_table): Add entry for cortex-a17.
482         * config/arm/t-aprofile: Add cortex-a17 entries to MULTILIB_MATCHES.
484 2014-11-28  Richard Biener  <rguenther@suse.de>
486         PR middle-end/64084
487         * genmatch.c (dt_node::gen_kids_1): New function, split out
488         from dt_node::gen_kids.
489         (decision_tree::cmp_node): DT_TRUE are generally not equal.
490         (decision_tree::find_node): Treat DT_TRUE as barrier for
491         node CSE on the same level.
492         (dt_node::append_node): Do not keep DT_TRUE last.
493         (dt_node::gen_kids): Emit code after each DT_TRUE node seen.
495 2014-11-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
497         * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
498         -march=armv8-a+crc.
500 2014-11-27  Uros Bizjak  <ubizjak@gmail.com>
502         * config/i386/i386.md (preferred_for_size): New attribute
503         (*pushxf): Split Yx*r constraints to r,*r.  Use preferred_for_size
504         attribute to conditionally disable alternative 1.
505         (*pushdf): Split Yd*r constraints to r,*r.  Use preferred_for_size
506         and prefered_for_speed attributes to conditionally disable
507         alternative 1.
508         (*movxf_internal): Split Yx*r constraints to r,*r.  Use
509         preferred_for_size attribute to conditionally disable
510         alternatives 3 and 4.
511         (*movdf_internal): Split Yd*r constraints to r,*r.  Use
512         preferred_for_size and prefered_for_speed attributes to conditionally
513         disable alternatives 3 and 4.
514         * config/i386/constraints.md (Yd, Yx): Remove register constraints.
516 2014-11-27  Eric Botcazou  <ebotcazou@adacore.com>
518         * dwarf2out.c (set_block_origin_self): Skip nested functions.
520 2014-11-27  H.J. Lu  <hongjiu.lu@intel.com>
522         PR target/63833
523         * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
524         R15_REG for 64-bit.
525         * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
527 2014-11-27  Martin Liska  <mliska@suse.cz>
528             David Malcolm  <dmalcolm@redhat.com>
530         * ipa-icf.c (sem_function::equals_private): int* is replaced with
531         auto_vec.
532         (sem_function::bb_dict_test): Likewise.
533         * ipa-icf.h: Likewise.
535 2014-11-27  Richard Biener  <rguenther@suse.de>
537         PR middle-end/64088
538         * fold-const.c (const_unop): Re-instantiate missing condition
539         before calling fold_abs_const.
541         PR tree-optimization/64088
542         * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
543         the stmt break from the loop over use operands.
545 2014-11-27  Ilya Tocar  <ilya.tocar@intel.com>
547         * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
548         Define.
549         * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
550         (fold_builtin_cpu): Ditto.
551         * doc/extend.texi: Documment it.
553 2014-11-27  Jakub Jelinek  <jakub@redhat.com>
555         PR middle-end/64067
556         * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
557         Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
558         not only if modifier is EXPAND_INITIALIZER, but whenever
559         COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
561         PR tree-optimization/64024
562         * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
563         field.  Add simd_clone_info field.
564         (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
565         (STMT_VINFO_SIMD_CLONE_INFO): Define.
566         * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
567         STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
568         STMT_VINFO_SIMD_CLONE_INFO vector.  For linear arguments, remember
569         base and linear_step from analysis phase and use it during transform
570         phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
571         multiplied by linear_step.
572         (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
574         PR lto/64025
575         * alias.c (find_base_term): Use std::swap.  Prefer tmp2
576         if it is CONSTANT_P other than CONST_INT.
578 2014-11-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
580         PR target/59593
581         * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
582         based on mode size.
583         * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
584         make it TARGET_EITHER.
585         (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
586         and move HFmode handling from consttable_4 to it.
587         (consttable_4): Move HFmode handling to consttable_2 pattern.
588         * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
589         (consttable_2): Ditto.
591 2014-11-27  Richard Biener  <rguenther@suse.de>
593         * tree-ssa-sccvn.c (try_to_simplify): Allow
594         gimple_fold_stmt_to_constant_1 to follow SSA edges.
596 2014-11-27  Richard Biener  <rguenther@suse.de>
598         PR tree-optimization/64083
599         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
600         forcibly mark loop for removal the wrong way.
602 2014-11-27  Richard Biener  <rguenther@suse.de>
604         PR middle-end/63704
605         * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
606         and instead return false when !fstrict-aliasing.
608 2014-11-27  Richard Biener  <rguenther@suse.de>
610         PR tree-optimization/61634
611         * tree-vect-slp.c: Include gimple-walk.h.
612         (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
613         down the SLP tree for one scalar statement.
614         (vect_detect_hybrid_slp_1): New walker function.
615         (vect_detect_hybrid_slp_2): Likewise.
616         (vect_detect_hybrid_slp): Properly handle pattern statements
617         in a pre-scan over all loop stmts.
619 2014-11-27  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
621         Revert:
622         2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
623         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
624         aarch64_convert_mode, aarch64_gen_ccmp_first,
625         aarch64_gen_ccmp_next): New functions.
626         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
628 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
630         * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
631         without -pie or -shared, error on -fsanitize=thread -static instead.
633 2014-11-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
635         PR ipa/61190
636         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
637         (cgraph_node::function_or_virtual_thunk_symbol): New function.
638         (cgraph_node::call_for_symbol_and_aliases): Fix comment.
639         (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
640         Add new optional parameter exclude_virtual_thunks.
641         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
642         optional parameter exclude_virtual_thunks.
643         (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
644         (cgraph_node::set_pure_flag): Likewise.
645         (cgraph_node::function_symbol): Simplified.
646         (cgraph_node::function_or_virtual_thunk_symbol): New function.
647         * ipa-pure-const.c (analyze_function): For virtual thunks set
648         pure_const_state to IPA_NEITHER.
649         (propagate_pure_const): Use function_or_virtual_thunk_symbol.
651 2014-11-26  Richard Biener  <rguenther@suse.de>
653         PR middle-end/63738
654         * tree-data-ref.c (split_constant_offset_1): Do not follow
655         SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
657 2014-11-26  Richard Biener  <rguenther@suse.de>
659         * fold-const.h (const_unop): Declare.
660         (const_binop): Likewise.
661         * fold-const.c (const_binop): Export overload that expects
662         a type parameter and dispatches to fold_relational_const as well.
663         Check both operand kinds for guarding the transforms.
664         (const_unop): New function, with constant folding from fold_unary_loc.
665         (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
666         Remove constant folding done there from the simplifications.
667         (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
668         (fold_negate_expr): Remove dead code from the REAL_CST case.
669         Avoid building garbage in the COMPLEX_CST case.
670         * gimple-match-head.c (gimple_resimplify1): Dispatch to
671         const_unop.
672         (gimple_resimplify2): Dispatch to const_binop.
673         (gimple_simplify): Likewise.
675 2014-11-26  Ilya Enkovich  <ilya.enkovich@intel.com>
677         PR bootstrap/63995
678         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
679         debug statement when searching for a new position for
680         bounds load/creation statement.
682 2014-11-26  Marek Polacek  <polacek@redhat.com>
684         PR sanitizer/63788
685         * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
686         var.  Conditionally build BUILT_IN_OBJECT_SIZE decl.
687         (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
689 2014-11-26  Ilya Enkovich  <ilya.enkovich@intel.com>
691         PR lto/64075
692         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
693         proper size for function_code bitfield.
694         (pack_ts_function_decl_value_fields): Likewise.
696 2014-11-21  Mark Wielaard  <mjw@redhat.com>
698         * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
699         * opts.c (common_handle_option): Accept -gdwarf-5.
700         * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
701         DW_LANG_C_plus_plus_14.
702         (lower_bound_default): Likewise. Plus DW_LANG_C11.
703         (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
704         DW_LANG_C_plus_plus_14 or DW_LANG_C11.
705         (output_compilation_unit_header): Output at most a DWARFv4 header.
706         (output_skeleton_debug_sections): Likewise.
707         (output_line_info): Likewise.
708         (output_aranges): Document header version number.
710 2014-11-26  Richard Biener  <rguenther@suse.de>
712         * gimple-fold.c (get_symbol_constant_value): Allow all
713         GIMPLE register type zero-constants.
715 2014-11-26  Mark Wielaard  <mjw@redhat.com>
717         * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
718         function decl has TREE_THIS_VOLATILE.
720 2014-11-26  Richard Biener  <rguenther@suse.de>
722         PR tree-optimization/62238
723         * tree-predcom.c (ref_at_iteration): Unshare the expression
724         before gimplifying it.
725         (prepare_initializers_chain): Discard unused seq.
727 2014-11-25  Vladimir Makarov  <vmakarov@redhat.com>
729         * ira-lives.c (process_bb_node_lives): Make code with conditional
730         REAL_PIC_OFFSET_TABLE_REGNUM.
732 2014-11-25  Vladimir Makarov  <vmakarov@redhat.com>
734         PR target/63527
735         * ira-lives.c (process_bb_node_lives): Check and remove conflict
736         of pic pseudo with pic hard reg.
738 2014-11-25  Rohit  <rohitarulraj@freescale.com>
740         PR bootstrap/63703
741         * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
742         added GCC hard register numbers for SPE high registers.
744 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
746         * bt-load.c (migrate_btr_defs): Get the key of a heap entry
747         before removing it, not after.
749 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
751         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
752         PATTERN call.
754 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
756         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
757         of addic.
759 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
761         * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
762         (rest of file): Replace those with code resp. CODE.
764 2014-11-25  Tom de Vries  <tom@codesourcery.com>
766         * tree-cfg.c (verify_sese): New function.
767         (move_sese_region_to_fn): Call verify_sese.
768         * tree-cfg.h (verify_sese): Declare.
770 2014-11-25  Richard Biener  <rguenther@suse.de>
772         PR lto/64065
773         * lto-streamer-out.c (output_struct_function_base): Stream
774         last_clique field.
775         * lto-streamer-in.c (input_struct_function_base): Likewise.
777 2014-11-25  Martin Liska  <mliska@suse.cz>
779         PR bootstrap/64050
780         PR ipa/64060
781         * sreal.c (sreal::operator+): Addition fixed.
782         (sreal::signedless_plus): Negative numbers are
783         handled correctly.
784         (sreal::operator-): Subtraction is fixed.
785         (sreal::signedless_minus): Negative numbers are
786         handled correctly.
787         * sreal.h (sreal::operator<): Equal negative numbers
788         are compared correctly.
789         (sreal::shift): New checking asserts are introduced.
790         Operation is fixed.
792 2014-11-25  Richard Biener  <rguenther@suse.de>
794         PR tree-optimization/61927
795         * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
796         of group and pattern analysis to the one in GCC 4.8.
798 2014-11-25  Ilya Tocar  <ilya.tocar@intel.com>
799             Jakub Jelinek  <jakub@redhat.com>
801         * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
802         strlen, strncpy.
803         * lto-wrapper.c (append_offload_options): Likewise.
805 2014-11-25  Eric Botcazou  <ebotcazou@adacore.com>
807         * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
808         load the static chain if the call was originally direct.
810 2014-11-25  Jan Hubicka  <hubicka@ucw.cz>
812         PR ipa/64059
813         * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
814         devirtualization is disabled.
816 2014-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
818         PR target/63965
819         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
820         Altivec & -16 mask if the type is not valid for Altivec registers.
821         (rs6000_secondary_reload_memory): Add support for ((reg + const) +
822         reg) that occurs during push_reload processing.
824         * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
825         alternative for moving constant vectors which are easy altivec
826         constants to GPRs.  Set the length attribute each of the
827         alternatives.
829         * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
830         work in progress patch was committed instead of the fixes for
831         63965.
832         * config/rs6000/rs6000.c: Likewise.
834 2014-11-22  Jan Hubicka  <hubicka@ucw.cz>
836         PR ipa/63671
837         * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
838         and -fno-devirtualize more carefully.
839         (can_remove_node_now_p): Update.
841 2014-11-24  Andrew Pinski  <apinski@cavium.com>
843         PR rtl-opt/63972
844         * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
846 2014-11-24  Alan Lawrence  <alan.lawrence@arm.com>
848         * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
850 2014-11-24  Alan Lawrence  <alan.lawrence@arm.com>
852         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
853         Refactor by combining switch statements and make arrays into scalars.
855 2014-11-24  David Edelsohn  <dje.gcc@gmail.com>
857         PR c++/58561
858         * dbxout.c: Include stringpool.h
859         (dbxout_type) [default]: Ignore auto type.
861 2014-11-24  Richard Biener  <rguenther@suse.de>
863         PR tree-optimization/63679
864         * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
865         (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
866         to properly leave off at -1.
867         (fully_constant_vn_reference_p): Generalize folding from
868         constant initializers.
869         (vn_reference_lookup_3): When looking through aggregate copies
870         handle offsetted reads and try simplifying the result to
871         a constant.
872         * gimple-fold.h (fold_ctor_reference): Export.
873         * gimple-fold.c (fold_ctor_reference): Likewise.
875 2014-11-24  Petr Murzin  <petr.murzin@intel.com>
877         * simplify-rtx.c (simplify_ternary_operation): Simplify
878         vec_merge (vec_duplicate (vec_select)).
880 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
882         * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
883         (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
884         (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
886 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
888         * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
889         (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
890         (cortexa57_tunings): Likewise.
891         (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
893 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
895         * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
896         in the not conditional jump case.
897         * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
898         * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
900 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
902         * config/aarch64/aarch64.c: Include tm-constrs.h
903         (AARCH64_FUSE_ADRP_ADD): Define.
904         (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
905         (cortexa53_tunings): Likewise.
906         (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
908 2014-11-24  Martin Liska  <mliska@suse.cz>
910         * ipa-inline.c (edge_badness): long is replaced by sreal
911         as fibonacci_heap template type.
912         (update_edge_key): Likewise.
913         (inline_small_functions): Likewise.
915 2014-11-24  Martin Liska  <mliska@suse.cz>
917         * predict.c (propagate_freq): More elegant sreal API is used.
918         (estimate_bb_frequencies): Precomputed constants replaced by integer
919         constants.
920         * sreal.c (sreal::normalize): New function.
921         (sreal::to_int): Likewise.
922         (sreal::operator+): Likewise.
923         (sreal::operator-): Likewise.
924         (sreal::signedless_plus): Likewise.
925         (sreal::signedless_minus): Likewise.
926         (sreal::operator/): Negative number support is added.
927         * sreal.h: Definition of new functions added.
928         (inline sreal operator<<): New function.
929         (inline sreal operator>>): Likewise.
931 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
933         * config/aarch64/aarch64-protos.h (struct tune_params): Add
934         fuseable_ops field.
935         * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
936         (cortexa53_tunings): Likewise.
937         (cortexa57_tunings): Likewise.
938         (thunderx_tunings): Likewise.
939         (aarch64_macro_fusion_p): New function.
940         (aarch_macro_fusion_pair_p): Likewise.
941         (TARGET_SCHED_MACRO_FUSION_P): Define.
942         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
943         (AARCH64_FUSE_MOV_MOVK): Likewise.
944         (AARCH64_FUSE_NOTHING): Likewise.
946 2014-11-24  Martin Liska  <mliska@suse.cz>
948         PR lto/63968
949         * bb-reorder.c (find_traces_1_round): decreate_key is replaced
950         with replace_key method.
951         * fibonacci_heap.h (fibonacci_heap::insert): New argument.
952         (fibonacci_heap::replace_key_data): Likewise.
953         (fibonacci_heap::replace_key): New method that can even increment key,
954         this operation costs O(log N).
955         (fibonacci_heap::extract_min): New argument.
956         (fibonacci_heap::delete_node): Likewise.
958 2014-11-24  Richard Biener  <rguenther@suse.de>
960         PR tree-optimization/55334
961         * function.h (struct function): Add last_clique member.
962         * tree-inline.c (remap_dependence_clique): New function.
963         (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
964         (copy_tree_body_r): Likewise.
965         (copy_cfg_body): Free dependence map.
966         (copy_gimple_seq_and_replace_locals): Likewise.
967         * tree-pretty-print.c (dump_generic_node): Dump
968         dependence info.
969         * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
970         to answer alias query.
971         * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
972         tree-pretty-print.h and gimple-walk.h.
973         (struct variable_info): Add is_restrict_var flag and ruid
974         member.
975         (new_var_info): Initialize is_restrict_var.
976         (make_constraint_from_restrict): Likewise.
977         (create_variable_info_for): Exclude restricts from global vars
978         from new handling.
979         (intra_create_variable_infos): But not those from parameters.
980         (visit_loadstore): New function.
981         (maybe_set_dependence_info): Likewise.
982         (compute_dependence_clique): Likewise.
983         (compute_may_aliases): Call compute_dependence_clique.
984         * tree-data-ref.c (dr_analyze_indices): Copy dependence info
985         to fake MEM_REF.
986         (dr_may_alias_p): Use recorded dependence info to answer
987         alias query.
988         * tree-core.h (struct tree_base): Add clique, base struct in
989         union.
990         * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
991         (MR_DEPENDENCE_BASE): Likewise.
992         * tree-inline.h (dependence_hasher): New hash-map kind.
993         (struct copy_body_data): Add dependence_map pointer.
994         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
995         throwing away dependence info.
996         * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
997         * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
999 2014-11-23  Oleg Endo  <olegendo@gcc.gnu.org>
1001         PR target/53976
1002         * config/sh/sh_optimize_sett_clrt.cc
1003         (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
1004         of void.  Abort at complex edges.
1005         (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
1006         returned false.
1008 2014-11-22  John David Anglin  <danglin@gcc.gnu.org>
1010         PR other/63694
1011         * configure.ac: Check for strtol, strtoul, strtoll and strtoull
1012         declarations.
1013         * configure: Regenerated.
1014         * config.in: Regenerated.
1016 2014-11-22  Jan Hubicka  <hubicka@ucw.cz>
1018         * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
1019         clones as having abstract origin used.
1020         * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
1021         origin check.
1022         (clone_inlined_nodes): Copy abstract originflag.
1023         * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
1024         abstract origin node.
1026 2014-11-22  Uros Bizjak  <ubizjak@gmail.com>
1028         * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
1029         * config/i386/i386.c (ix86_option_override_internal): Do not increase
1030         PARAM_MAX_COMPLETELY_PEELED_INSNS.
1032 2014-11-22  Oleg Endo  <olegendo@gcc.gnu.org>
1034         PR target/63783
1035         PR target/51244
1036         * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
1037         Do not emit bitwise not insn.  Emit logical not insn sequence instead.
1038         Adjust related comments throughout the file.
1040 2014-11-22  Oleg Endo  <olegendo@gcc.gnu.org>
1042         PR target/63986
1043         PR target/51244
1044         * config/sh/sh.c (sh_is_logical_t_store_expr,
1045         sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
1046         (sh_split_movrt_negc_to_movt_xor): New function.
1047         (sh_find_set_of_reg): Move to ...
1048         * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
1049         to template function.
1050         (set_of_reg): Use rtx_insn* for insn member.
1051         (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
1052         rtx_insn* for insn argument.
1053         * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
1054         sequence using new sh_split_movrt_negc_to_movt_xor function.
1055         (movrt_xor): Allow also for SH2A.
1056         (*movt_movrt): Delete insns and splits.
1058 2014-11-22  Marc Glisse  <marc.glisse@inria.fr>
1060         PR tree-optimization/60770
1061         * tree-sra.c (clobber_subtree): New function.
1062         (sra_modify_constructor_assign): Call it.
1064 2014-11-21  Vladimir Makarov  <vmakarov@redhat.com>
1066         PR target/63897
1067         * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
1068         argument.
1069         (process_bb_lives): Rename dead_insn_p on remove_p
1070         and global_live_info_p on dead_insn_p.  Calculate local live info
1071         unconditionally.  Remove last argument in calls mark_regno_live and
1072         mark_regno_dead.  Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
1073         (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
1074         Return bool.  Rename global_live_info_p on dead_insn_p.  Return
1075         flag of live info change.
1076         (lra_create_live_ranges): New.
1078 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
1080         PR target/63848
1081         PR target/63975
1082         * internal-fn.c (expand_arith_overflow_result_store,
1083         expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
1084         do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
1085         adjust arguments to those functions.  Use unsignedp = true for
1086         EQ, NE, GEU, LEU, LTU and GTU comparisons.
1088         PR tree-optimization/64006
1089         * tree-vrp.c (stmt_interesting_for_vrp): Return true
1090         for {ADD,SUB,MUL}_OVERFLOW internal calls.
1091         (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
1092         internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
1093         immediate uses would change their value ranges and return
1094         SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
1095         if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
1096         interesting for vrp.
1098 2014-11-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1100         PR target/63965
1101         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
1102         Altivec & -16 mask if the type is not valid for Altivec registers.
1103         (rs6000_secondary_reload_memory): Add support for ((reg + const) +
1104         reg) that occurs during push_reload processing.
1106         * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
1107         alternative for moving constant vectors which are easy altivec
1108         constants to GPRs.  Set the length attribute each of the
1109         alternatives.
1111 2014-11-21  Matthew Fortune  <matthew.fortune@imgtec.com>
1113         * configure.ac: When checking for MIPS .module support ensure that
1114         o32 FPXX is supported to avoid a second configure check.
1115         * configure: Regenerate.
1117 2014-11-21  Jiong Wang  <jiong.wang@arm.com>
1119         * config/aarch64/iterators.md (VS): New mode iterator.
1120         (vsi2qi): New mode attribute.
1121         (VSI2QI): Likewise.
1122         * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
1123         * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
1124         * config/aarch64/aarch64-builtins.c
1125         (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
1127 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1129         PR bootstrap/63784
1130         * configure: Regenerated.
1132 2014-11-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1134         * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
1136 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
1138         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1139         OPTION_MASK_ISA_PCOMMIT_SET): New.
1140         (ix86_handle_option): Handle OPT_mpcommit.
1141         * config.gcc: Add pcommitintrin.h
1142         * config/i386/pcommitintrin.h: New file.
1143         * config/i386/cpuid.h (bit_PCOMMIT): Define.
1144         * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
1145         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1146         __PCOMMIT__.
1147         * config/i386/i386.c (ix86_target_string): Add -mpcommit.
1148         (PTA_PCOMMIT): Define.
1149         (ix86_option_override_internal): Handle new option.
1150         (ix86_valid_target_attribute_inner_p): Add pcommit.
1151         (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
1152         (bdesc_special_args): Add __builtin_ia32_pcommit.
1153         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
1154         * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
1155         (pcommit): New instruction.
1156         * config/i386/i386.opt: Add mpcommit.
1157         * config/i386/x86intrin.h: Include pcommitintrin.h.
1159 2014-11-20  Mark Wielaard  <mjw@redhat.com>
1161         PR debug/38757
1162         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
1163         * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
1164         (darwin_override_options): Likewise.
1165         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
1166         Likewise.
1167         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1168         Likewise.
1169         * dbxout.c (get_lang_number): Likewise.
1170         (dbxout_type): Likewise.
1171         (dbxout_symbol_location): Likewise.
1172         * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
1173         also for DW_LANG_{C,C99,ObjC}.
1174         (highest_c_language): New function.
1175         (gen_compile_unit_die): Call highest_c_language to merge LTO
1176         TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
1177         determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
1178         * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
1179         * langhooks.h (struct lang_hooks): Add version comment to name.
1180         (lang_GNU_C): New function declaration.
1181         (lang_GNU_CXX): Likewise.
1182         * langhooks.c (lang_GNU_C): New function.
1183         (lang_GNU_CXX): Likewise.
1184         * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
1186 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
1188         * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
1189         OPTION_MASK_ISA_CLWB_SET): New.
1190         (ix86_handle_option): Handle OPT_mclwb.
1191         * config.gcc: Add clwbintrin.h.
1192         * config/i386/clwbintrin.h: New file.
1193         * config/i386/cpuid.h (bit_CLWB): Define.
1194         * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
1195         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1196         __CLWB__.
1197         * config/i386/i386.c (ix86_target_string): Add -mclwb.
1198         (PTA_CLWB): Define.
1199         (ix86_option_override_internal): Handle new option.
1200         (ix86_valid_target_attribute_inner_p): Add clwb.
1201         (ix86_builtins): Add IX86_BUILTIN_CLWB.
1202         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
1203         (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
1204         * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
1205         * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
1206         (clwb): New instruction.
1207         * config/i386/i386.opt: Add mclwb.
1208         * config/i386/x86intrin.h: Include clwbintrin.h.
1210 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
1212         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
1213         OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
1214         (ix86_handle_option): Handle OPT_mavx512vbmi.
1215         * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
1216         * config/i386/avx512vbmiintrin.h: New file.
1217         * config/i386/avx512vbmivlintrin.h: Ditto.
1218         * config/i386/cpuid.h (bit_AVX512VBMI): New.
1219         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
1220         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1221         __AVX512VBMI__.
1222         * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
1223         (PTA_AVX512VBMI): Define.
1224         (ix86_option_override_internal): Handle new options.
1225         (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
1226         (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
1227         IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
1228         IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
1229         IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
1230         IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
1231         IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
1232         IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
1233         IX86_BUILTIN_VPERMI2VARQI128.
1234         (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
1235         __builtin_ia32_vpmultishiftqb256_mask,
1236         __builtin_ia32_vpmultishiftqb128_mask,
1237         __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
1238         __builtin_ia32_vpermt2varqi512_maskz,
1239         __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
1240         __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
1241         __builtin_ia32_vpermt2varqi256_maskz,
1242         __builtin_ia32_vpermt2varqi128_mask,
1243         __builtin_ia32_vpermt2varqi128_maskz,
1244         __builtin_ia32_vpermi2varqi256_mask,
1245         __builtin_ia32_vpermi2varqi128_mask.
1246         (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
1247         * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
1248         * config/i386/i386.opt: Add mavx512vbmi.
1249         * config/i386/immintrin.h: Include avx512vbmiintrin.h,
1250         avx512vbmivlintrin.h.
1251         * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
1252         (VI1_AVX512VL): New iterator.
1253         (<avx512>_permvar<mode><mask_name>): Use it.
1254         (<avx512>_vpermi2var<mode>3_maskz): Ditto.
1255         (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
1256         (<avx512>_vpermi2var<mode>3_mask): Ditto.
1257         (<avx512>_vpermt2var<mode>3_maskz): Ditto.
1258         (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
1259         (<avx512>_vpermt2var<mode>3_mask): Ditto.
1260         (vpmultishiftqb<mode><mask_name>): Ditto.
1262 2014-11-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1264         PR rtl-optimization/63952
1265         * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
1266         * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
1267         Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
1269 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
1271         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
1272         OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
1273         (ix86_handle_option): Handle OPT_mavx512ifma.
1274         * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
1275         * config/i386/avx512ifmaintrin.h: New file.
1276         * config/i386/avx512ifmaivlntrin.h: Ditto.
1277         * config/i386/cpuid.h (bit_AVX512IFMA): New.
1278         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1279         avx512ifma.
1280         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1281         __AVX512IFMA__.
1282         * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
1283         (PTA_AVX512IFMA): Define.
1284         (ix86_option_override_internal): Handle new options.
1285         (ix86_valid_target_attribute_inner_p): Add avx512ifma.
1286         (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
1287         IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
1288         IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
1289         IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
1290         IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
1291         IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
1292         IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
1293         (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
1294         __builtin_ia32_vpmadd52luq512_maskz,
1295         __builtin_ia32_vpmadd52huq512_mask,
1296         __builtin_ia32_vpmadd52huq512_maskx,
1297         __builtin_ia32_vpmadd52luq256_mask,
1298         __builtin_ia32_vpmadd52luq256_maskz,
1299         __builtin_ia32_vpmadd52huq256_mask,
1300         __builtin_ia32_vpmadd52huq256_maskz,
1301         __builtin_ia32_vpmadd52luq128_mask,
1302         __builtin_ia32_vpmadd52luq128_maskz,
1303         __builtin_ia32_vpmadd52huq128_mask,
1304         __builtin_ia32_vpmadd52huq128_maskz,
1305         * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
1306         * config/i386/i386.opt: Add mavx512ifma.
1307         * config/i386/immintrin.h: Include avx512ifmaintrin.h,
1308         avx512ifmavlintrin.h.
1309         * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
1310         UNSPEC_VPMADD52HUQ.
1311         (VPMADD52): New iterator.
1312         (vpmadd52type): New attribute.
1313         (vpamdd52huq<mode>_maskz): New.
1314         (vpamdd52luq<mode>_maskz): Ditto.
1315         (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
1316         (vpamdd52<vpmadd52type><mode>_mask): Ditto.
1318 2014-11-21  Alan Lawrence  <alan.lawrence@arm.com>
1320         Revert:
1321         2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
1322         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
1324 2014-11-21  Andrew Bennett  <andrew.bennett@imgtec.com>
1326         * config/mips/mips.c (mips_process_sync_loop): Place a 
1327         nop in the delay slot of the branch likely instruction.
1328         (mips_output_sync_loop): Ensure mips_branch_likely is 
1329         set before calling mips_output_sync_loop.
1330         (mips_sync_loop_insns): Likewise.
1332 2014-11-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1334         PR/target 63673
1335         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
1336         the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
1337         double.
1339 2014-11-21  Georg-Johann Lay  <avr@gjlay.de>
1341         Forward-port from 2014-10-30 4_9-branch r216934
1343         PR target/63633
1344         * config/avr/avr-protos.h (regmask): New inline function.
1345         (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
1346         * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
1347         (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
1348         * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
1349         (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
1350         (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
1351         * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
1352         (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
1353         (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
1354         * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
1355         (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
1356         (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
1357         (fmul, fmuls, fmulsu): Fix operands.  Turn insn into expander as
1358         needed.
1360 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
1362         PR target/61137
1363         * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
1364         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
1366 2014-11-21  James Greenhalgh  <james.greenhalgh@arm.com>
1368         * config/aarch64/aarch64-simd.md
1369         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
1370         output mnemonic and operands.
1371         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
1372         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
1374 2014-11-21  Evgeny Stupachenko  <evstupac@gmail.com>
1376         * config/i386/i386.c (ix86_option_override_internal): Increase
1377         PARAM_MAX_COMPLETELY_PEELED_INSNS.
1379 2014-11-21  Evgeny Stupachenko  <evstupac@gmail.com>
1381         PR target/60451
1382         * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
1383         (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
1384         replace for V16QI, V16HI and V32QI modes.
1385         (ix86_expand_vec_perm_const_1): Add new expand.
1387 2014-11-21  Nick Clifton  <nickc@redhat.com>
1389         * config/rl78/rl78-real.md (movqi_from_es): New pattern.
1390         * config/rl78/rl78.c (struct machine_function): Add uses_es field.
1391         (rl78_expand_prologue): Save the ES register in interrupt handlers
1392         that use it.
1393         (rl78_expand_epilogue): Restore the ES register if necessary.
1394         (rl78_start_function): Mention if the function uses the ES
1395         register.
1396         (rl78_lo16): Record the use of the ES register.
1397         (transcode_memory_rtx): Likewise.
1399 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
1401         PR tree-optimization/61773
1402         * tree-ssa-strlen.c (get_string_length): Don't assert
1403         stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
1405         PR target/63910
1406         * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
1407         modes wider than MAX_BITSIZE_MODE_ANY_INT.  If not using
1408         CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
1410 2014-11-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1412         * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
1413         HOST_WIDE_INT_M1U instead of ~0.
1414         (includes_rldicr_lshift_p): Likewise.
1416 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
1418         * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
1419         we need to look into its operand to determine if it is a valid
1420         address.
1422 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
1424         * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
1425         vaarg_p argument and create correct CFI info.
1426         (nds32_expand_prologue): Pass true or false to
1427         nds32_emit_stack_push_multiple function.
1429 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
1431         * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
1432         as RTX_FRAME_RELATED_P rtx.
1434 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
1436         * config/nds32/nds32.opt (march): Add help message.
1438 2014-11-20  Patrick Palka  <ppalka@gcc.gnu.org>
1440         * tree-vrp.c (test_for_singularity): New parameter
1441         strict_overflow_p.  Set *strict_overflow_p to true if signed
1442         overflow must be undefined for the return value to satisfy the
1443         conditional.
1444         (simplify_cond_using_ranges): Don't perform the simplification
1445         if it violates overflow rules.
1447 2014-11-20  Marek Polacek  <polacek@redhat.com>
1449         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
1451 2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
1453         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
1454         condition would be removed due to undefined behaviour.
1456 2014-11-20  Andrew Pinski  <apinski@cavium.com>
1458         PR ipa/63981
1459         PR ipa/63982
1460         * ipa-polymorphic-call.c (possible_placement_new):
1461         Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
1462         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
1463         (extr_type_from_vtbl_ptr_store): Likewise.
1465 2014-11-20  Markus Trippelsdorf  <markus@trippelsdorf.de>
1467         * config/rs6000/constraints.md: Avoid signed integer overflows.
1468         * config/rs6000/predicates.md: Likewise.
1469         * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
1470         (includes_rldic_lshift_p): Likewise.
1471         (includes_rldicr_lshift_p): Likewise. 
1472         * emit-rtl.c (const_wide_int_htab_hash): Likewise.
1473         * loop-iv.c (determine_max_iter): Likewise.
1474         (iv_number_of_iterations): Likewise.
1475         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
1476         * varasm.c (get_section_anchor): Likewise.
1478 2014-11-20  Charles Baylis  <charles.baylis@linaro.org>
1480         PR target/63870
1481         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
1482         expression to aarch64_simd_lane_bounds.
1483         * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
1484         prototype.
1485         * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
1486         call to aarch64_simd_lane_bounds.
1487         (aarch64_get_lanedi): Likewise.
1488         (aarch64_ld2_lane<mode>): Likewise.
1489         (aarch64_ld3_lane<mode>): Likewise.
1490         (aarch64_ld4_lane<mode>): Likewise.
1491         (aarch64_im_lane_boundsi): Likewise.
1492         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
1493         parameter. Report calling function in error message if exp is non-NULL.
1495 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
1497         PR target/60111
1498         * config/sh/sh.c: Use signed char for signed field.
1500 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
1502         * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
1503         hash_table.
1505 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
1507         * ipa-utils.c, lto-section-in.c, lto-streamer.h,
1508         tree-scalar-evolution.c: Replace htab with hash_table.
1510 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
1512         * lto-section-in.c (lto_delete_in_decl_state): Adjust.
1513         (lto_free_function_in_decl_state): Likewise.
1514         * lto-streamer-out.c (copy_function_or_variable): Likewise.
1515         * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
1516         (lto_file_decl_data_num_ ## name ## s): Likewise.
1517         (struct lto_tree_ref_table): Remove.
1518         (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
1520 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
1522         * hash-map.h (hash_map::iterator): New class.
1523         (hash_map::begin): New method.
1524         (hash_map::end): Likewise.
1525         * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
1526         replace splay_tree with hash_map.
1528 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
1530         * hash-table.h (hash_table::hash_table): Call alloc_entries.
1531         (hash_table::alloc_entries): new method.
1532         (hash_table::expand): Call alloc_entries.
1533         (hash_table::empty): Likewise.
1535 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
1537         * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
1538         tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
1540 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
1542         * doc/gty.texi: Document the new cache gty attribute.
1543         * gengtype.c (finish_cache_funcs): New function.
1544         (write_roots): Call gt_clear_cache on global variables with the cache
1545         gty attribute.
1546         * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
1547         * ggc.h (gt_clear_caches): New declaration.
1548         * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
1549         memory.
1550         (gt_cleare_cache): New function.
1551         * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
1553 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
1555         * combine.c (try_combine): Prefer to delete dead SETs inside
1556         a PARALLEL over keeping them.
1558 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
1560         * combine.c (combine_validate_cost): Always print the insn costs
1561         to the dump file.
1563 2014-11-20  Richard Henderson <rth@redhat.com>
1565         PR target/63977
1566         * config/i386/i386.c (ix86_static_chain): Reinstate the check
1567         for DECL_STATIC_CHAIN.
1569 2014-11-20  Tejas Belagod  <tejas.belagod@arm.com>
1571         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
1572         Fixup prototype.
1573         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
1574         aarch64_cannot_force_const_mem, aarch64_classify_address,
1575         aarch64_classify_symbolic_expression): Fixup call to
1576         aarch64_classify_symbol.
1577         (aarch64_classify_symbol): Add range-checking for
1578         symbol + offset addressing for tiny and small models.
1580 2014-11-20  Richard Biener  <rguenther@suse.de>
1582         PR middle-end/63962
1583         * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
1584         Guard with single-use operand 0.
1586 2014-11-20   Richard Biener  <rguenther@suse.de>
1588         PR tree-optimization/63677
1589         * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
1590         (avail_exprs_stack): Make a vector of pairs.
1591         (struct hash_expr_elt): Replace stmt member with vop member.
1592         (expr_elt_hasher::equal): Simplify.
1593         (initialize_hash_element): Adjust.
1594         (initialize_hash_element_from_expr): Likewise.
1595         (dom_opt_dom_walker::thread_across_edge): Likewise.
1596         (record_cond): Likewise.
1597         (dom_opt_dom_walker::before_dom_children): Likewise.
1598         (print_expr_hash_elt): Likewise.
1599         (remove_local_expressions_from_table): Restore previous state
1600         if requested.
1601         (record_equivalences_from_stmt): Record &x + CST as constant
1602         &MEM[&x, CST] for further propagation.
1603         (vuse_eq): New function.
1604         (lookup_avail_expr): For loads use the alias oracle to see
1605         whether a candidate from the expr hash is usable.
1606         (avail_expr_hash): Do not hash VUSEs.
1608 2014-11-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1610         PR target/59593
1611         * config/arm/arm.md (*movhi_insn): Use right formatting
1612         for immediate.
1614 2014-11-20  Igor Zamyatin  <igor.zamyatin@intel.com>
1616         PR sanitizer/63845
1617         * function.c (assign_parms): Move init of pic_offset_table_rtx
1618         from here to...
1619         * cfgexpand.c (expand_used_vars): ...here.
1621 2014-11-19  Jan Hubicka  <hubicka@ucw.cz>
1623         * tree.c (free_lang_data_in_type): If BINFO has no important
1624         information in it, set it to NULL.
1625         (get_binfo_at_offset): Do not walk fields, only bases.
1626         * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
1627         to be NULL.
1628         * ipa-polymorphic-call.c (record_known_type): Likewise.
1630 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1632         PR jit/63854
1633         * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
1634         congruence_class_group *.
1636 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
1638         PR target/63947
1639         * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
1640         Output "b" and "nb" suffix for FP mode.
1642 2014-11-19  Jan Hubicka  <hubicka@ucw.cz>
1644         PR bootstrap/63963
1645         * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream out
1646         DECL_FUNCTION_SPECIFIC_TARGET
1647         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream in
1648         DECL_FUNCTION_SPECIFIC_TARGET.
1650 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1652         PR jit/63854
1653         * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
1655 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1657         PR jit/63854
1658         * lra.c (lra): After creating live ranges in preparation for call
1659         to lra_inheritance, set live_p to true.
1661 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1663         PR jit/63854
1664         * tree-ssa-threadedge.c (thread_across_edge): Don't just release
1665         "path", delete it.
1666         * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
1668 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1670         PR jit/63854
1671         * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
1672         vec<> to auto_vec<> to fix a leak.
1674 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1676         PR jit/63854
1677         * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
1679 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1681         PR jit/63854
1682         * ira-costs.c (ira_costs_c_finalize): New function.
1683         * ira.h (ira_costs_c_finalize): New prototype.
1684         * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
1686 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1688         PR jit/63854
1689         * ipa-reference.c (ipa_reference_c_finalize): Release
1690         optimization_summary_obstack.
1692 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1694         PR jit/63854
1695         * toplev.c (toplev::finalize): Free opts_obstack.
1697 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1699         PR jit/63854
1700         * toplev.c (toplev::finalize): Clean up save_decoded_options.
1702 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1704         PR jit/63854
1705         * bb-reorder.c
1706         (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
1707         local bbs_in_hot_partition from vec<> to auto_vec<>.
1709 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1711         PR jit/63854
1712         * config/alpha/alpha.c (alpha_option_override): Remove static from
1713         "handle_trap_shadows_info" and "align_insns_info".
1714         * config/i386/i386.c (ix86_option_override): Likewise for
1715         "insert_vzeroupper_info".
1716         * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
1717         "rl78_devirt_info" and "rl78_move_elim_info".
1718         * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
1719         "analyze_swaps_info".
1720         * context.c (gcc::context::~context): New.
1721         * context.h (gcc::context::~context): New.
1722         * dumpfile.c (dump_files): Add "false" initializers for new field
1723         "owns_strings".
1724         (gcc::dump_manager::~dump_manager): New.
1725         (gcc::dump_manager::dump_register): Add param "take_ownership".
1726         * dumpfile.h (struct dump_file_info): Add field "owns_strings".
1727         (gcc::dump_manager::~dump_manager): New.
1728         (gcc::dump_manager::dump_register): Add param "take_ownership".
1729         * pass_manager.h (gcc::pass_manager::operator delete): New.
1730         (gcc::pass_manager::~pass_manager): New.
1731         * passes.c (pass_manager::register_one_dump_file): Pass "true" to
1732         new "owns_strings" argument to dump_register.
1733         (pass_manager::operator delete): New.
1734         (delete_pass_tree): New function.
1735         (pass_manager::~pass_manager): New.
1736         * statistics.c (statistics_early_init): Pass "false" to
1737         new "owns_strings" argument to dump_register.
1738         * toplev.c (toplev::finalize): Clean up the context and thus the
1739         things it owns.
1741 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1743         PR jit/63854
1744         * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
1745         obstack_free when cleaning up valid_mode_changes_obstack.
1747 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1749         PR jit/63854
1750         * opts.c (finalize_options_struct): New.
1751         * opts.h (finalize_options_struct): New.
1752         * toplev.c (toplev::finalize): Call finalize_options_struct
1753         on global_options and global_options_set.
1755 2014-11-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1756             Jakub Jelinek  <jakub@redhat.com>
1758         PR driver/36312
1759         PR driver/63837
1760         * gcc.c (process_command): Don't check for input/output
1761         filename equality if output is HOST_BIT_BUCKET.
1762         * toplev.c (init_asm_output): Likewise.
1764 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
1766         Merger of git branch "gimple-classes-v2-option-3".
1768         * ChangeLog.gimple-classes: New.
1770         * coretypes.h (struct gcond): Add forward decl.
1771         (struct gdebug): Likewise.
1772         (struct ggoto): Likewise.
1773         (struct glabel): Likewise.
1774         (struct gswitch): Likewise.
1775         (struct gassign): Likewise.
1776         (struct gasm): Likewise.
1777         (struct gcall): Likewise.
1778         (struct gtransaction): Likewise.
1779         (struct greturn): Likewise.
1780         (struct gbind): Likewise.
1781         (struct gcatch): Likewise.
1782         (struct geh_filter): Likewise.
1783         (struct geh_mnt): Likewise.
1784         (struct geh_else): Likewise.
1785         (struct gresx): Likewise.
1786         (struct geh_dispatch): Likewise.
1787         (struct gphi): Likewise.
1788         (struct gtry): Likewise.
1789         (struct gomp_atomic_load): Likewise.
1790         (struct gomp_atomic_store): Likewise.
1791         (struct gomp_continue): Likewise.
1792         (struct gomp_critical): Likewise.
1793         (struct gomp_for): Likewise.
1794         (struct gomp_parallel): Likewise.
1795         (struct gomp_task): Likewise.
1796         (struct gomp_sections): Likewise.
1797         (struct gomp_single): Likewise.
1798         (struct gomp_target): Likewise.
1799         (struct gomp_teams): Likewise.
1801         * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
1802         for renaming of gimple subclasses.
1804         * gdbhooks.py: Update.
1806         * gimple-iterator.c (gsi_for_phi): New.
1807         (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
1808         to gphi_iterator.
1809         * gimple-iterator.h (struct gphi_iterator): New subclass of
1810         gimple_stmt_iterator.
1811         (gsi_for_phi): New prototype.
1812         (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
1813         to gphi_iterator.
1814         (gsi_next_nonvirtual_phi): Strengthen param from
1815         gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
1816         gimple to gphi *.
1818         * gsstruct.def: Update for renamings of classes.
1820         * gimple.c (gimple_build_return): Strengthen return type from
1821         gimple to greturn *.
1822         (gimple_call_reset_alias_info): Strengthen param to gcall *.
1823         (gimple_build_call_1): Strengthen return type from gimple to
1824         gcall *.
1825         (gimple_build_call_vec): Likewise.
1826         (gimple_build_call): Likewise.
1827         (gimple_build_call_valist): Likewise.
1828         (gimple_build_call_internal_1): Likewise.
1829         (gimple_build_call_internal): Likewise.
1830         (gimple_build_call_internal_vec): Likewise.
1831         (gimple_build_call_from_tree): Likewise.
1832         (gimple_build_assign_stat): Strengthen return type from gimple to
1833         gassign *.
1834         (gimple_build_assign_with_ops): Likewise.
1835         (gimple_build_assign_with_ops): Likewise.
1836         (gimple_build_cond): Strengthen return type from gimple to
1837         gcond *.
1838         (gimple_build_cond_from_tree): Likewise.
1839         (gimple_cond_set_condition_from_tree): Require a gcond *.
1840         (gimple_build_label): Strengthen return type from gimple to
1841         glabel *.
1842         (gimple_build_goto): Strengthen return type from gimple to
1843         ggoto *.
1844         (gimple_build_bind): Strengthen return type from gimple to
1845         gbind *.
1846         (gimple_build_asm_1): Strengthen return type from gimple to
1847         gasm *.
1848         (gimple_build_asm_vec): Likewise.
1849         (gimple_build_catch): Strengthen return type from gimple to
1850         gcatch *.
1851         (gimple_build_eh_filter): Strengthen return type from gimple to
1852         geh_filter *.
1853         (gimple_build_eh_must_not_throw): Strengthen return type from
1854         gimple to geh_mnt *.
1855         (gimple_build_eh_else): Strengthen return type from gimple to
1856         geh_else *.
1857         (gimple_build_try): Update for renaming of gimple_statement_try to
1858         gtry.
1859         (gimple_build_resx): Strengthen return type from gimple to
1860         gresx *.
1861         (gimple_build_switch_nlabels): Strengthen return type from gimple
1862         to gswitch *.
1863         (gimple_build_switch): Likewise.
1864         (gimple_build_eh_dispatch): Strengthen return type from gimple to
1865         geh_dispatch *.
1866         (gimple_build_debug_bind_stat): Strengthen return type from gimple
1867         to gdebug *.
1868         (gimple_build_debug_source_bind_stat): Strengthen return type from
1869         gimple to gdebug *.
1870         (gimple_build_omp_critical): Strengthen return type from gimple to
1871         gomp_critical *.
1872         (gimple_build_omp_for): Strengthen return type from gimple to
1873         gomp_for *.
1874         (gimple_build_omp_parallel): Strengthen return type from gimple to
1875         gomp_parallel *.
1876         (gimple_build_omp_task): Strengthen return type from gimple to
1877         gomp_task *.
1878         (gimple_build_omp_continue): Strengthen return type from gimple to
1879         gomp_continue *.
1880         (gimple_build_omp_sections): Strengthen return type from gimple to
1881         gomp_sections *.
1882         (gimple_build_omp_single): Strengthen return type from gimple to
1883         gomp_single *.
1884         (gimple_build_omp_target): Strengthen return type from gimple to
1885         gomp_target *.
1886         (gimple_build_omp_teams): Strengthen return type from gimple to
1887         gomp_teams *.
1888         (gimple_build_omp_atomic_load): Strengthen return type from gimple
1889         to gomp_atomic_load *.
1890         (gimple_build_omp_atomic_store): Strengthen return type from gimple
1891         to gomp_atomic_store *.
1892         (gimple_build_transaction): Strengthen return type from gimple
1893         to gtransaction *.
1894         (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
1895         (gimple_call_fnspec): Require a const gcall *.
1896         (gimple_call_arg_flags): Likewise.
1897         (gimple_call_return_flags): Likewise.
1898         (gimple_set_bb): Add a checked cast.
1899         (gimple_copy): Within the cases, add locals of the appropriate
1900         subclass and use in place of "stmt" and "copy" for typesafety.
1901         (gimple_has_side_effects): Add a checked cast.
1902         (gimple_could_trap_p_1): Likewise.
1903         (gimple_call_copy_skip_args): Require a gcall *, and return one.
1904         (gimple_asm_clobbers_memory_p): Require a const gasm *.
1905         (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
1906         dyn_cast, introducing local "return_stmt" and using ti in place
1907         of "stmt".
1909         * gimple.h (gimple_vec): Eliminate this typedef.
1910         (struct gimple_statement_call): Rename to...
1911         (struct gcall): ...this.
1912         (struct gimple_statement_bind): Rename to...
1913         (struct gbind): ...this.
1914         (struct gimple_statement_catch): Rename to...
1915         (struct gcatch): ...this.
1916         (struct gimple_statement_eh_filter): Rename to...
1917         (struct geh_filter): ...this.
1918         (struct gimple_statement_eh_else): Rename to...
1919         (struct geh_else): ...this.
1920         (struct gimple_statement_eh_mnt): Rename to...
1921         (struct geh_mnt): ...this.
1922         (struct gimple_statement_phi): Rename to...
1923         (struct gphi): ...this.
1924         (struct gimple_statement_resx): Rename to...
1925         (struct gresx): ...this.
1926         (struct gimple_statement_eh_dispatch): Rename to...
1927         (struct geh_dispatch): ...this.
1928         (struct gimple_statement_try): Rename to...
1929         (struct gtry): ...this.
1930         (struct gimple_statement_asm): Rename to...
1931         (struct gasm): ...this.
1932         (struct gimple_statement_omp_critical): Rename to...
1933         (struct gomp_critical): ...this.
1934         (struct gimple_statement_omp_for): Rename to...
1935         (struct gomp_for): ...this.
1936         (struct gimple_statement_omp_parallel): Rename to...
1937         (struct gomp_parallel): ...this.
1938         (struct gimple_statement_omp_target): Rename to...
1939         (struct gomp_target): ...this.
1940         (struct gimple_statement_omp_task): Rename to...
1941         (struct gomp_task): ...this.
1942         (struct gimple_statement_omp_sections): Rename to...
1943         (struct gomp_sections): ...this.
1944         (struct gimple_statement_omp_continue): Rename to...
1945         (struct gomp_continue): ...this.
1946         (struct gimple_statement_omp_single): Rename to...
1947         (struct gomp_single): ...this.
1948         (struct gimple_statement_omp_teams): Rename to...
1949         (struct gomp_teams): ...this.
1950         (struct gimple_statement_omp_atomic_load): Rename to...
1951         (struct gomp_atomic_load): ...this.
1952         (struct gimple_statement_omp_atomic_store :): Rename to...
1953         (struct gomp_atomic_store :): ...this.
1954         (struct gimple_statement_transaction): Rename to...
1955         (struct gtransaction): ...this.
1956         (struct gcond): New subclass.
1957         (struct gdebug): New subclass.
1958         (struct ggoto): New subclass.
1959         (struct glabel): New subclass.
1960         (struct gswitch): New subclass.
1961         (struct gassign): New subclass.
1962         (struct greturn): New subclass.
1963         (is_a_helper <gimple_statement_asm *>::test): Rename to...
1964         (is_a_helper <gasm *>::test): ...this.
1965         (is_a_helper <gimple_statement_bind *>::test): Rename to...
1966         (is_a_helper <gbind *>::test): ...this.
1967         (is_a_helper <gassign *>::test): New.
1968         (is_a_helper <gimple_statement_call *>::test): Rename to...
1969         (is_a_helper <gcall *>::test): ...this.
1970         (is_a_helper <gimple_statement_catch *>::test): Rename to...
1971         (is_a_helper <gcatch *>::test): ...this.
1972         (is_a_helper <gimple_statement_resx *>::test): Rename to...
1973         (is_a_helper <gresx *>::test): ...this.
1974         (is_a_helper <gcond *>::test): New.
1975         (is_a_helper <gdebug *>::test): New.
1976         (is_a_helper <ggoto *>::test): New.
1977         (is_a_helper <glabel *>::test): New.
1978         (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
1979         (is_a_helper <geh_dispatch *>::test): ...this.
1980         (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
1981         (is_a_helper <geh_else *>::test): ...this.
1982         (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
1983         (is_a_helper <geh_filter *>::test): ...this.
1984         (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
1985         (is_a_helper <geh_mnt *>::test): ...this.
1986         (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
1987         (is_a_helper <gomp_atomic_load *>::test): ...this.
1988         (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
1989         (is_a_helper <gomp_atomic_store *>::test): ...this.
1990         (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
1991         (is_a_helper <gomp_continue *>::test): ...this.
1992         (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
1993         (is_a_helper <gomp_critical *>::test): ...this.
1994         (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
1995         (is_a_helper <gomp_for *>::test): ...this.
1996         (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
1997         (is_a_helper <gomp_parallel *>::test): ...this.
1998         (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
1999         (is_a_helper <gomp_target *>::test): ...this.
2000         (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
2001         (is_a_helper <gomp_sections *>::test): ...this.
2002         (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
2003         (is_a_helper <gomp_single *>::test): ...this.
2004         (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
2005         (is_a_helper <gomp_teams *>::test): ...this.
2006         (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
2007         (is_a_helper <gomp_task *>::test): ...this.
2008         (is_a_helper <gimple_statement_phi *>::test): Rename to...
2009         (is_a_helper <gphi *>::test): ...this.
2010         (is_a_helper <gimple_statement_transaction *>::test): Rename to...
2011         (is_a_helper <gtransaction *>::test): ...this.
2012         (is_a_helper <greturn *>::test): New.
2013         (is_a_helper <gswitch *>::test): New.
2014         (is_a_helper <gimple_statement_try *>::test): Rename to...
2015         (is_a_helper <gtry *>::test): ...this.
2016         (is_a_helper <const gimple_statement_asm *>::test): Rename to...
2017         (is_a_helper <const gasm *>::test): ...this.
2018         (is_a_helper <const gimple_statement_bind *>::test): Rename to...
2019         (is_a_helper <const gbind *>::test): ...this.
2020         (is_a_helper <const gimple_statement_call *>::test): Rename to...
2021         (is_a_helper <const gcall *>::test): ...this.
2022         (is_a_helper <const gimple_statement_catch *>::test): Rename to...
2023         (is_a_helper <const gcatch *>::test): ...this.
2024         (is_a_helper <const gimple_statement_resx *>::test): Rename to...
2025         (is_a_helper <const gresx *>::test): ...this.
2026         (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
2027         (is_a_helper <const geh_dispatch *>::test): ...this.
2028         (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
2029         (is_a_helper <const geh_filter *>::test): ...this.
2030         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
2031         Rename to...
2032         (is_a_helper <const gomp_atomic_load *>::test): ...this.
2033         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
2034         Rename to...
2035         (is_a_helper <const gomp_atomic_store *>::test): ...this.
2036         (is_a_helper <const gimple_statement_omp_continue *>::test):
2037         Rename to...
2038         (is_a_helper <const gomp_continue *>::test): ...this.
2039         (is_a_helper <const gimple_statement_omp_critical *>::test):
2040         Rename to...
2041         (is_a_helper <const gomp_critical *>::test): ...this.
2042         (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
2043         (is_a_helper <const gomp_for *>::test): ...this.
2044         (is_a_helper <const gimple_statement_omp_parallel *>::test):
2045         Rename to...
2046         (is_a_helper <const gomp_parallel *>::test): ...this.
2047         (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
2048         (is_a_helper <const gomp_target *>::test): ...this.
2049         (is_a_helper <const gimple_statement_omp_sections *>::test):
2050         Rename to...
2051         (is_a_helper <const gomp_sections *>::test): ...this.
2052         (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
2053         (is_a_helper <const gomp_single *>::test): ...this.
2054         (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
2055         (is_a_helper <const gomp_teams *>::test): ...this.
2056         (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
2057         (is_a_helper <const gomp_task *>::test): ...this.
2058         (is_a_helper <const gimple_statement_phi *>::test): Rename to...
2059         (is_a_helper <const gphi *>::test): ...this.
2060         (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
2061         (is_a_helper <const gtransaction *>::test): ...this.
2062         (gimple_build_return): Strengthen return type to greturn *.
2063         (gimple_call_reset_alias_info): Require a gcall *.
2064         (gimple_build_call_vec): Return a gcall *.
2065         (gimple_build_call): Likewise.
2066         (gimple_build_call_valist): Likewise.
2067         (gimple_build_call_internal): Likewise.
2068         (gimple_build_call_internal_vec): Likewise.
2069         (gimple_build_call_from_tree): Likewise.
2070         (gimple_build_assign_stat): Return a gassign *.
2071         (gimple_build_assign_with_ops): Likewise.
2072         (gimple_build_cond): Return a gcond *.
2073         (gimple_build_cond_from_tree): Likewise.
2074         (gimple_cond_set_condition_from_tree): Require a gcond *.
2075         (gimple_build_label): Return a glabel *.
2076         (gimple_build_goto): Return a ggoto *.
2077         (gimple_build_bind): Return a gbind *.
2078         (gimple_build_asm_vec): Return a gasm *.
2079         (gimple_build_catch): Return a gcatch *.
2080         (gimple_build_eh_filter): Return a geh_filter *.
2081         (gimple_build_eh_must_not_throw): Return a geh_mnt *.
2082         (gimple_build_eh_else): Return a geh_else *.
2083         (gimple_build_try): Return a gtry *.
2084         (gimple_build_resx): Return a gresx *.
2085         (gimple_build_switch_nlabels): Return a gswitch *.
2086         (gimple_build_switch): Return a gswitch *.
2087         (gimple_build_eh_dispatch): Return a geh_dispatch *.
2088         (gimple_build_debug_bind_stat): Return a gdebug *.
2089         (gimple_build_debug_source_bind_stat): Return a gdebug *.
2090         (gimple_build_omp_critical): Return a gomp_critical *.
2091         (gimple_build_omp_for): Return a gomp_for *.
2092         (gimple_build_omp_parallel): Return a gomp_parallel *.
2093         (gimple_build_omp_task): Return a gomp_task *.
2094         (gimple_build_omp_continue): Return a gomp_continue *.
2095         (gimple_build_omp_sections): Return a gomp_sections *.
2096         (gimple_build_omp_single): Return a gomp_single *.
2097         (gimple_build_omp_target): Return a gomp_target *.
2098         (gimple_build_omp_teams): Return a gomp_teams *.
2099         (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
2100         (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
2101         (gimple_build_transaction): Return a gtransaction *.
2102         (gimple_call_arg_flags): Require a const gcall *.
2103         (gimple_call_return_flags): Likewise.
2104         (gimple_call_copy_skip_args): Require and return a gcall *.
2105         (gimple_asm_clobbers_memory_p): Require a const gasm *.
2106         (gimple_seq_first_stmt_as_a_bind): New.
2107         (gimple_assign_nontemporal_move_p): Require a const gassign *
2108         rather than a const_gimple.
2109         (gimple_call_internal_fn): Update for renaming to gcall.
2110         (gimple_call_fntype): Likewise.
2111         (gimple_call_set_fntype): Require a gcall * rather than a gimple.
2112         (gimple_call_set_fn): Likewise.
2113         (gimple_call_set_internal_fn): Likewise.
2114         (gimple_call_set_chain): Likewise.
2115         (gimple_call_set_tail): Likewise.
2116         (gimple_call_tail_p): Likewise.
2117         (gimple_call_set_return_slot_opt): Likewise.
2118         (gimple_call_return_slot_opt_p): Likewise.
2119         (gimple_call_set_from_thunk): Likewise.
2120         (gimple_call_from_thunk_p): Likewise.
2121         (gimple_call_set_va_arg_pack): Likewise.
2122         (gimple_call_va_arg_pack_p): Likewise.
2123         (gimple_call_set_nothrow): Likewise.
2124         (gimple_call_nothrow_p): Likewise.
2125         (gimple_call_set_alloca_for_var): Likewise.
2126         (gimple_call_alloca_for_var_p): Likewise.
2127         (gimple_call_use_set): Likewise.
2128         (gimple_call_clobber_set): Likewise.
2129         (gimple_call_return_type): Require a const gcall * rather than a
2130         const_gimple.
2131         (gimple_call_chain_ptr): Likewise.
2132         (gimple_call_copy_flags): Require a pair of gcall *.
2133         (gimple_cond_set_code): Require a gcond * rather than a gimple
2134         (gimple_cond_set_lhs): Likewise.
2135         (gimple_cond_set_rhs): Likewise.
2136         (gimple_cond_set_true_label): Likewise.
2137         (gimple_cond_set_false_label): Likewise.
2138         (gimple_cond_make_false): Likewise.
2139         (gimple_cond_make_true): Likewise.
2140         (gimple_cond_lhs_ptr): Require a const gcond * rather than a
2141         const_gimple.
2142         (gimple_cond_rhs_ptr): Likewise.
2143         (gimple_cond_true_label): Likewise.
2144         (gimple_cond_false_label): Likewise.
2145         (gimple_cond_true_p): Likewise.
2146         (gimple_cond_false_p): Likewise.
2147         (gimple_cond_set_condition): Likewise.
2148         (gimple_label_label): Require a const glabel *.
2149         (gimple_label_set_label): Require a glabel *.
2150         (gimple_goto_set_dest): Require a ggoto *.
2151         (gimple_bind_vars): Require a const gbind *.
2152         (gimple_bind_block): Likewise.
2153         (gimple_bind_set_vars): Require a gbind *.
2154         (gimple_bind_append_vars): Likewise.
2155         (gimple_bind_body_ptr): Likewise.
2156         (gimple_bind_body): Likewise.
2157         (gimple_bind_set_body): Likewise.
2158         (gimple_bind_add_stmt): Likewise.
2159         (gimple_bind_add_seq): Likewise.
2160         (gimple_bind_set_block): Likewise.
2161         (gimple_asm_ninputs): Require a const gasm *.
2162         (gimple_asm_noutputs): Likewise.
2163         (gimple_asm_nclobbers): Likewise.
2164         (gimple_asm_nlabels): Likewise.
2165         (gimple_asm_input_op): Likewise.
2166         (gimple_asm_input_op_ptr): Likewise.
2167         (gimple_asm_output_op): Likewise.
2168         (gimple_asm_output_op_ptr): Likewise.
2169         (gimple_asm_clobber_op): Likewise.
2170         (gimple_asm_label_op): Likewise.
2171         (gimple_asm_string): Likewise.
2172         (gimple_asm_volatile_p): Likewise.
2173         (gimple_asm_input_p): Likewise.
2174         (gimple_asm_set_input_op): Require a gasm *.
2175         (gimple_asm_set_output_op): Likewise.
2176         (gimple_asm_set_clobber_op): Likewise.
2177         (gimple_asm_set_label_op): Likewise.
2178         (gimple_asm_set_volatile): Likewise.
2179         (gimple_asm_set_input): Likewise.
2180         (gimple_catch_types): Require a const gcatch *.
2181         (gimple_catch_types_ptr): Require a gcatch *.
2182         (gimple_catch_handler_ptr): Likewise.
2183         (gimple_catch_handler): Likewise.
2184         (gimple_catch_set_types): Likewise.
2185         (gimple_catch_set_handler): Likewise.
2186         (gimple_eh_filter_types): Update for renaming of subclass to
2187         geh_filter.
2188         (gimple_eh_filter_types_ptr): Likewise.
2189         (gimple_eh_filter_failure_ptr): Likewise.
2190         (gimple_eh_filter_set_types): Require a geh_filter *.
2191         (gimple_eh_filter_set_failure): Likewise.
2192         (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
2193         (gimple_eh_must_not_throw_set_fndecl): Likewise.
2194         (gimple_eh_else_n_body_ptr): Require a geh_else *.
2195         (gimple_eh_else_n_body): Likewise.
2196         (gimple_eh_else_e_body_ptr): Likewise.
2197         (gimple_eh_else_e_body): Likewise.
2198         (gimple_eh_else_set_n_body): Likewise.
2199         (gimple_eh_else_set_e_body): Likewise.
2200         (gimple_try_set_kind): Require a gtry *.
2201         (gimple_try_set_catch_is_cleanup): Likewise.
2202         (gimple_try_set_eval): Likewise.
2203         (gimple_try_set_cleanup): Likewise.
2204         (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
2205         (gimple_try_cleanup_ptr): Likewise.
2206         (gimple_phi_capacity): Update for renaming of subclass to gphi.
2207         (gimple_phi_num_args): Likewise.
2208         (gimple_phi_result): Likewise.
2209         (gimple_phi_result_ptr): Likewise.
2210         (gimple_phi_arg): Likewise.
2211         (gimple_phi_set_result): Require a gphi *.
2212         (gimple_phi_set_arg): Likewise.
2213         (gimple_phi_arg_def_ptr): Likewise.
2214         (gimple_phi_arg_edge): Likewise.
2215         (gimple_phi_arg_location): Likewise.
2216         (gimple_phi_arg_location_from_edge): Likewise.
2217         (gimple_phi_arg_set_location): Likewise.
2218         (gimple_phi_arg_has_location): Likewise.
2219         (gimple_resx_region): Require a const gresx *.
2220         (gimple_resx_set_region): Require a gresx *.
2221         (gimple_eh_dispatch_region): Require a const geh_dispatch *.
2222         (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
2223         (gimple_switch_num_labels): Require a const gswitch *.
2224         (gimple_switch_set_num_labels): Likewise.
2225         (gimple_switch_index): Likewise.
2226         (gimple_switch_index_ptr): Likewise.
2227         (gimple_switch_label): Likewise.
2228         (gimple_switch_default_label): Likewise.
2229         (gimple_switch_set_index): Require a gswitch *.
2230         (gimple_switch_set_label): Likewise.
2231         (gimple_switch_set_default_label): Likewise.
2232         (gimple_omp_critical_name): Require a const gomp_critical *.
2233         (gimple_omp_critical_name_ptr): Require a gomp_critical *.
2234         (gimple_omp_critical_set_name): Likewise.
2235         (gimple_omp_for_set_kind): Require a gomp_for *.
2236         (gimple_omp_for_set_combined_p): Likewise.
2237         (gimple_omp_for_set_combined_into_p): Likewise.
2238         (gimple_omp_for_clauses): Update for renaming of subclass to
2239         gomp_for.
2240         (gimple_omp_for_clauses_ptr): Likewise.
2241         (gimple_omp_for_set_clauses): Likewise.
2242         (gimple_omp_for_collapse): Likewise.
2243         (gimple_omp_for_index): Likewise.
2244         (gimple_omp_for_index_ptr): Likewise.
2245         (gimple_omp_for_set_index): Likewise.
2246         (gimple_omp_for_initial): Likewise.
2247         (gimple_omp_for_initial_ptr): Likewise.
2248         (gimple_omp_for_set_initial): Likewise.
2249         (gimple_omp_for_final): Likewise.
2250         (gimple_omp_for_final_ptr): Likewise.
2251         (gimple_omp_for_set_final): Likewise.
2252         (gimple_omp_for_incr): Likewise.
2253         (gimple_omp_for_incr_ptr): Likewise.
2254         (gimple_omp_for_set_incr): Likewise.
2255         (gimple_omp_for_pre_body): Likewise.
2256         (gimple_omp_for_set_pre_body): Likewise.
2257         (gimple_omp_parallel_clauses): Update for renaming of subclass to
2258         gomp_parallel.
2259         (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
2260         (gimple_omp_parallel_set_clauses): Likewise.
2261         (gimple_omp_parallel_child_fn_ptr): Likewise.
2262         (gimple_omp_parallel_set_child_fn): Likewise.
2263         (gimple_omp_parallel_data_arg_ptr): Likewise.
2264         (gimple_omp_parallel_set_data_arg): Likewise.
2265         (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
2266         (gimple_omp_parallel_data_arg): Likewise.
2267         (gimple_omp_task_clauses): Update for renaming of subclass to
2268         gomp_task.
2269         (gimple_omp_task_clauses_ptr): Likewise.
2270         (gimple_omp_task_set_clauses): Likewise.
2271         (gimple_omp_task_child_fn): Likewise.
2272         (gimple_omp_task_child_fn_ptr): Likewise.
2273         (gimple_omp_task_set_child_fn): Likewise.
2274         (gimple_omp_task_data_arg): Likewise.
2275         (gimple_omp_task_data_arg_ptr): Likewise.
2276         (gimple_omp_task_set_data_arg): Likewise.
2277         (gimple_omp_taskreg_clauses): Whitespace fixes.
2278         (gimple_omp_taskreg_clauses_ptr): Likewise.
2279         (gimple_omp_taskreg_set_clauses): Likewise.
2280         (gimple_omp_taskreg_child_fn): Likewise.
2281         (gimple_omp_taskreg_child_fn_ptr): Likewise.
2282         (gimple_omp_taskreg_set_child_fn): Likewise.
2283         (gimple_omp_taskreg_data_arg): Likewise.
2284         (gimple_omp_taskreg_data_arg_ptr): Likewise.
2285         (gimple_omp_taskreg_set_data_arg): Likewise.
2286         (gimple_omp_task_copy_fn): Update for renaming of subclass to
2287         gomp_task.
2288         (gimple_omp_task_copy_fn_ptr): Likewise.
2289         (gimple_omp_task_set_copy_fn): Likewise.
2290         (gimple_omp_task_arg_size): Likewise.
2291         (gimple_omp_task_arg_size_ptr): Likewise.
2292         (gimple_omp_task_set_arg_size): Likewise.
2293         (gimple_omp_task_arg_align): Likewise.
2294         (gimple_omp_task_arg_align_ptr): Likewise.
2295         (gimple_omp_task_set_arg_align): Likewise.
2296         (gimple_omp_single_clauses): Update for renaming of subclass to
2297         gomp_single.
2298         (gimple_omp_single_clauses_ptr): Likewise.
2299         (gimple_omp_single_set_clauses): Likewise.
2300         (gimple_omp_target_clauses): Update for renaming of subclass to
2301         gomp_target.
2302         (gimple_omp_target_clauses_ptr): Likewise.
2303         (gimple_omp_target_set_clauses): Require a gomp_target *.
2304         (gimple_omp_target_set_kind): Likewise.
2305         (gimple_omp_target_child_fn_ptr): Likewise.
2306         (gimple_omp_target_set_child_fn): Likewise.
2307         (gimple_omp_target_data_arg_ptr): Likewise.
2308         (gimple_omp_target_set_data_arg): Likewise.
2309         (gimple_omp_target_child_fn): Require a const gomp_target *.
2310         (gimple_omp_target_data_arg): Likewise.
2311         (gimple_omp_teams_clauses): Update for renaming of subclass to
2312         gomp_teams.
2313         (gimple_omp_teams_clauses_ptr): Likewise.
2314         (gimple_omp_teams_set_clauses): Require a gomp_teams *.
2315         (gimple_omp_sections_clauses): Update for renaming of subclass to
2316         gomp_sections.
2317         (gimple_omp_sections_clauses_ptr): Likewise.
2318         (gimple_omp_sections_set_clauses): Likewise.
2319         (gimple_omp_sections_control): Likewise.
2320         (gimple_omp_sections_control_ptr): Likewise.
2321         (gimple_omp_sections_set_control): Likewise.
2322         (gimple_omp_for_set_cond): Likewise.
2323         (gimple_omp_for_cond): Likewise.
2324         (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
2325         (gimple_omp_atomic_store_val_ptr): Likewise.
2326         (gimple_omp_atomic_load_set_lhs): Likewise.
2327         (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
2328         (gimple_omp_atomic_load_lhs): Likewise.
2329         (gimple_omp_atomic_load_rhs): Likewise.
2330         (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
2331         (gimple_omp_atomic_load_set_rhs): Likewise.
2332         (gimple_omp_atomic_load_rhs_ptr): Likewise.
2333         (gimple_omp_continue_control_def): Require a const gomp_continue *.
2334         (gimple_omp_continue_control_use): Likewise.
2335         (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
2336         (gimple_omp_continue_set_control_def): Likewise.
2337         (gimple_omp_continue_control_use_ptr): Likewise.
2338         (gimple_omp_continue_set_control_use): Likewise.
2339         (gimple_transaction_body_ptr): Require a gtransaction *.
2340         (gimple_transaction_body): Likewise.
2341         (gimple_transaction_label_ptr): Likewise.
2342         (gimple_transaction_label): Require a const gtransaction *.
2343         (gimple_transaction_subcode): Likewise.
2344         (gimple_transaction_set_body): Require a gtransaction *.
2345         (gimple_transaction_set_label): Likewise.
2346         (gimple_transaction_set_subcode): Likewise.
2347         (gimple_return_retval_ptr): Require a const greturn *.
2348         (gimple_return_retval): Likewise.
2349         (gimple_return_set_retval): Require a greturn *.
2350         (gimple_expr_type): Introduce local "call_stmt" and use in place of
2351         "stmt" for typesafety.
2353         * asan.c: Use gimple subclasses.
2354         * auto-profile.c: Likewise.
2355         * builtins.c: Likewise.
2356         * builtins.h: Likewise.
2357         * cfgexpand.c: Likewise.
2358         * cfgloop.c: Likewise.
2359         * cfgloopmanip.c: Likewise.
2360         * cgraph.c: Likewise.
2361         * cgraph.h: Likewise.
2362         * cgraphbuild.c: Likewise.
2363         * cgraphclones.c: Likewise.
2364         * cgraphunit.c: Likewise.
2365         * expr.h: Likewise.
2366         * gimple-builder.c: Likewise.
2367         * gimple-builder.h: Likewise.
2368         * gimple-fold.c: Likewise.
2369         * gimple-low.c: Likewise.
2370         * gimple-pretty-print.c: Likewise.
2371         * gimple-ssa-isolate-paths.c: Likewise.
2372         * gimple-ssa-strength-reduction.c: Likewise.
2373         * gimple-streamer-in.c: Likewise.
2374         * gimple-streamer-out.c: Likewise.
2375         * gimple-walk.c: Likewise.
2376         * gimplify-me.c: Likewise.
2377         * gimplify.c: Likewise.
2378         * gimplify.h: Likewise.
2379         * graphite-scop-detection.c: Likewise.
2380         * graphite-sese-to-poly.c: Likewise.
2381         * internal-fn.c: Likewise.
2382         * internal-fn.def:: Likewise.
2383         * internal-fn.h: Likewise.
2384         * ipa-icf-gimple.c: Likewise.
2385         * ipa-icf-gimple.h: Likewise.
2386         * ipa-icf.c: Likewise.
2387         * ipa-inline-analysis.c: Likewise.
2388         * ipa-prop.c: Likewise.
2389         * ipa-prop.h: Likewise.
2390         * ipa-pure-const.c: Likewise.
2391         * ipa-split.c: Likewise.
2392         * lto-streamer-in.c: Likewise.
2393         * lto-streamer-out.c: Likewise.
2394         * omp-low.c: Likewise.
2395         * predict.c: Likewise.
2396         * sanopt.c: Likewise.
2397         * sese.c: Likewise.
2398         * ssa-iterators.h: Likewise.
2399         * stmt.c: Likewise.
2400         * trans-mem.c: Likewise.
2401         * tree-call-cdce.c: Likewise.
2402         * tree-cfg.c: Likewise.
2403         * tree-cfg.h: Likewise.
2404         * tree-cfgcleanup.c: Likewise.
2405         * tree-chkp.c: Likewise.
2406         * tree-chkp.h: Likewise.
2407         * tree-complex.c: Likewise.
2408         * tree-data-ref.c: Likewise.
2409         * tree-dfa.c: Likewise.
2410         * tree-eh.c: Likewise.
2411         * tree-eh.h: Likewise.
2412         * tree-emutls.c: Likewise.
2413         * tree-if-conv.c: Likewise.
2414         * tree-inline.c: Likewise.
2415         * tree-inline.h: Likewise.
2416         * tree-into-ssa.c: Likewise.
2417         * tree-into-ssa.h: Likewise.
2418         * tree-loop-distribution.c: Likewise.
2419         * tree-nrv.c: Likewise.
2420         * tree-object-size.c: Likewise.
2421         * tree-outof-ssa.c: Likewise.
2422         * tree-parloops.c: Likewise.
2423         * tree-phinodes.c: Likewise.
2424         * tree-phinodes.h: Likewise.
2425         * tree-predcom.c: Likewise.
2426         * tree-profile.c: Likewise.
2427         * tree-scalar-evolution.c: Likewise.
2428         * tree-scalar-evolution.h
2429         * tree-sra.cn_function):
2430         * tree-ssa-alias.c: Likewise.
2431         * tree-ssa-alias.h: Likewise.
2432         * tree-ssa-ccp.c: Likewise.
2433         * tree-ssa-coalesce.c: Likewise.
2434         * tree-ssa-copy.c: Likewise.
2435         * tree-ssa-copyrename.c: Likewise.
2436         * tree-ssa-dce.c: Likewise.
2437         * tree-ssa-dom.c: Likewise.
2438         * tree-ssa-forwprop.c: Likewise.
2439         * tree-ssa-ifcombine.c: Likewise.
2440         * tree-ssa-live.c: Likewise.
2441         * tree-ssa-loop-im.c: Likewise.
2442         * tree-ssa-loop-ivcanon.c: Likewise.
2443         * tree-ssa-loop-ivopts.c: Likewise.
2444         * tree-ssa-loop-manip.c: Likewise.
2445         * tree-ssa-loop-niter.c: Likewise.
2446         * tree-ssa-loop-prefetch.c: Likewise.
2447         * tree-ssa-loop-unswitch.c: Likewise.
2448         * tree-ssa-math-opts.c: Likewise.
2449         * tree-ssa-operands.c: Likewise.
2450         * tree-ssa-phiopt.c: Likewise.
2451         * tree-ssa-phiprop.c: Likewise.
2452         * tree-ssa-pre.c: Likewise.
2453         * tree-ssa-propagate.c: Likewise.
2454         * tree-ssa-propagate.h: Likewise.
2455         * tree-ssa-reassoc.c: Likewise.
2456         * tree-ssa-sccvn.c: Likewise.
2457         * tree-ssa-sccvn.h: Likewise.
2458         * tree-ssa-sink.c: Likewise.
2459         * tree-ssa-strlen.c
2460         * tree-ssa-structalias.c
2461         * tree-ssa-tail-merge.c: Likewise.
2462         * tree-ssa-ter.c: Likewise.
2463         * tree-ssa-threadedge.c: Likewise.
2464         * tree-ssa-threadedge.h: Likewise.
2465         * tree-ssa-threadupdate.c: Likewise.
2466         * tree-ssa-uncprop.c: Likewise.
2467         * tree-ssa-uninit.c: Likewise.
2468         * tree-ssa.c: Likewise.
2469         * tree-stdarg.c: Likewise.
2470         * tree-switch-conversion.c: Likewise.
2471         * tree-tailcall.c: Likewise.
2472         * tree-vect-data-refs.c: Likewise.
2473         * tree-vect-generic.c: Likewise.
2474         * tree-vect-loop-manip.c: Likewise.
2475         * tree-vect-loop.c: Likewise.
2476         * tree-vect-patterns.c: Likewise.
2477         * tree-vect-slp.c: Likewise.
2478         * tree-vect-stmts.c: Likewise.
2479         * tree-vectorizer.h: Likewise.
2480         * tree-vrp.c: Likewise.
2481         * tree.c: Likewise.
2482         * ubsan.c: Likewise.
2483         * value-prof.c: Likewise.
2484         * value-prof.h: Likewise.
2485         * vtable-verify.c: Likewise.
2487 2014-11-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
2489         * config/rs6000/constraints.md: Avoid signed integer overflows.
2490         * config/rs6000/predicates.md: Likewise.
2492 2014-11-19  Renlin Li  <Renlin.Li@arm.com>
2494         PR target/63424
2495         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
2497 2014-11-19  Renlin Li  <Renlin.Li@arm.com>
2499         PR middle-end/63762
2500         * ira.c (ira): Update preferred class.
2502 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
2504         * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
2505         (gimple_assign_set_rhs_with_ops_1): Renamed to ...
2506         (gimple_assign_set_rhs_with_ops): ... this.  Adjust binary arg
2507         inline overload to use it.  Add unary arg overload.
2508         * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
2509         (gimple_assign_set_rhs_from_tree): Use
2510         gimple_assign_set_rhs_with_ops instead of
2511         gimple_assign_set_rhs_with_ops_1.
2512         (gimple_assign_set_rhs_with_ops_1): Renamed to ...
2513         (gimple_assign_set_rhs_with_ops): ... this.
2514         * ipa-split.c (split_function): Remove last NULL argument
2515         from gimple_build_assign_with_ops call.
2516         * tree-ssa-loop-im.c
2517         (move_computations_dom_walker::before_dom_children): Likewise.
2518         * tsan.c (instrument_builtin_call): Likewise.
2519         * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2520         vectorizable_conversion, vectorizable_load): Likewise.
2521         * tree-vect-loop.c (vect_is_simple_reduction_1,
2522         get_initial_def_for_induction): Likewise.
2523         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2524         * tree-vect-patterns.c (vect_handle_widen_op_by_const,
2525         vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
2526         vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
2527         vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
2528         vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
2529         adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
2530         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
2531         neg_replacement): Likewise.
2532         * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2533         maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2534         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2535         * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
2536         expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
2537         simd_clone_adjust): Likewise.
2538         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
2539         * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
2540         replace_one_candidate): Likewise.
2541         * gimple-builder.c (build_type_cast): Likewise.
2542         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2543         (forward_propagate_addr_expr_1): Remove last NULL argument
2544         from gimple_assign_set_rhs_with_ops call.
2545         (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
2546         instead of gimple_assign_set_rhs_with_ops_1.
2547         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
2548         argument from gimple_build_assign_with_ops call.
2549         (repropagate_negates): Remove last NULL argument from
2550         gimple_assign_set_rhs_with_ops call.
2551         * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
2552         last NULL argument from gimple_build_assign_with_ops call.
2553         (instrument_bool_enum_load): Likewise.  Remove last NULL argument
2554         from gimple_assign_set_rhs_with_ops call.
2555         * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
2556         Remove last NULL argument from gimple_build_assign_with_ops call.
2557         (bswap_replace): Likewise.  Use gimple_assign_set_rhs_with_ops instead
2558         of gimple_assign_set_rhs_with_ops_1.
2559         (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
2560         instead of gimple_assign_set_rhs_with_ops_1.
2561         * gimple-fold.c (replace_stmt_with_simplification): Likewise.
2562         (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
2563         from gimple_build_assign_with_ops call.
2564         * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
2565         from gimple_assign_set_rhs_with_ops call.
2566         * tree-vrp.c (simplify_truth_ops_using_ranges,
2567         simplify_bit_ops_using_ranges): Remove last NULL argument from
2568         gimple_assign_set_rhs_with_ops call.
2569         (simplify_float_conversion_using_ranges,
2570         simplify_internal_call_using_ranges): Remove last NULL argument from
2571         gimple_build_assign_with_ops call.
2573 2014-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
2575         PR target/61915
2576         * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
2577         cost.
2579 2014-11-19  Marek Polacek  <polacek@redhat.com>
2581         PR sanitizer/63690
2582         * ubsan.c (instrument_object_size): Check for MEM_REF.
2584 2014-11-19  Ilya Verbin  <ilya.verbin@intel.com>
2586         PR regression/63868
2587         * cgraph.c (cgraph_node::create): Guard g->have_offload with
2588         ifdef ENABLE_OFFLOADING.
2589         * omp-low.c (create_omp_child_function): Likewise.
2590         (expand_omp_target): Guard node->mark_force_output and offload_funcs
2591         with ifdef ENABLE_OFFLOADING.
2592         * varpool.c (varpool_node::get_create): Guard g->have_offload and
2593         offload_vars with ifdef ENABLE_OFFLOADING.
2595 2014-11-19  Felix Yang  <felix.yang@huawei.com>
2596             Shanyao Chen  <chenshanyao@huawei.com>
2598         PR target/59593
2599         * config/arm/arm.md (define_attr "arch"): Add v6t2.
2600         (define_attr "arch_enabled"): Add test for the above.
2601         (*movhi_insn_arch4): Add new alternative.
2603 2014-11-19  Richard Henderson  <rth@redhat.com>
2605         * c-family/c-common.c (c_common_reswords): Add
2606         __builtin_call_with_static_chain.
2607         * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
2608         * c/c-parser.c (c_parser_postfix_expression): Handle it.
2609         * doc/extend.texi (__builtin_call_with_static_chain): Document it.
2611         * calls.c (prepare_call_address): Allow decl or type for first arg.
2612         (expand_call): Pass type to prepare_call_address if no decl.
2613         * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
2614         the function doesn't use it; fold it otherwise.
2615         * gimplify.c (gimplify_call_expr): Gimplify the static chain.
2616         * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
2617         function calls.
2619         * targhooks.c (default_static_chain): Remove check for
2620         DECL_STATIC_CHAIN.
2621         * config/moxie/moxie.c (moxie_static_chain): Likewise.
2622         * config/i386/i386.c (ix86_static_chain): Allow decl or type
2623         as the first argument.
2624         * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
2625         of the unused first parameter.
2626         * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
2627         may be a type.
2628         * target.def (static_chain): Likewise.
2630 2014-11-19  Renlin Li  <renlin.li@arm.com>
2632     * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_FP_FAST,
2633         __ARM_FEATURE_FMA, __ARM_FP, __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
2635 2014-11-19  Marek Polacek  <polacek@redhat.com>
2637         PR sanitizer/63879
2638         * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
2639         !TYPE_OVERFLOW_SANITIZED.
2640         (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
2641         does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
2642         is 0.
2644 2014-11-19  Ilya Tocar  <ilya.tocar@intel.com>
2646         * collect2.c (main): Don't call fatal_error before
2647         diagnostic_initialize.
2648         * lto-wrapper.c (main): Likewise.
2650 2014-11-19  Tom de Vries  <tom@codesourcery.com>
2652         PR tree-optimization/62167
2653         * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
2654         conservatively.
2655         (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
2656         assigns.
2658 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
2660         PR tree-optimization/63915
2661         * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
2662         true instead of false as last argument to gsi_replace.
2664         PR sanitizer/63520
2665         * internal-fn.c (expand_ubsan_result_store): New function.
2666         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2667         Use it instead of just emit_move_insn.
2669 2014-11-19  Richard Biener  <rguenther@suse.de>
2671         PR tree-optimization/63844
2672         * omp-low.c (fixup_child_record_type): Use a restrict qualified
2673         referece type for the receiver parameter.
2675 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
2677         PR sanitizer/63913
2678         * ubsan.c: Include tree-eh.h.
2679         (instrument_bool_enum_load): Handle loads that can throw.
2681         PR rtl-optimization/63843
2682         * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
2683         optimization of ashiftrt of subreg of lshiftrt, check that code
2684         is ASHIFTRT.
2686 2014-11-18  Andrew MacLeod  <amacleod@redhat.com>
2688         * attribs.c (decl_attributes): Remove always true condition,
2689         TREE_TYPE(x) will never compare equal to a TYPE_DECL.
2691 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
2693         PR target/63937
2694         * target.def (use_by_pieces_infrastructure_p): Take unsigned
2695         HOST_WIDE_INT as the size parameter.
2696         * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
2697         * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
2698         * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
2699         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
2700         * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
2701         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
2702         * config/aarch64/aarch64.c
2703         (aarch64_use_by_pieces_infrastructure_p)): Likewise.
2704         * doc/tm.texi: Regenerate.
2706 2014-11-18  Jan Hubicka  <hubicka@ucw.cz>
2708         * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
2709         (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
2710         (ipa_get_indirect_edge_target_1): Use opt_for_fn.
2711         (good_cloning_opportunity_p): Likewise.
2712         (ipa-cp gate): Enable ipa-cp with LTO.
2713         * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
2714         * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
2715         inheritance.
2716         * ipa-inline-transform.c (inline_transform): Check if there are inlines
2717         to apply even at -O0.
2718         * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
2719         (analyze_functions): Build type inheritance graph.
2720         * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
2721         (want_early_inline_function_p, want_inline_small_function_p):
2722         Likewise.
2723         (check_callers): Likewise.
2724         (edge_badness): Likewise.
2725         (inline_small_functions): Always be ready for indirect inlining
2726         to happend.
2727         (ipa_inline): Always use want_inline_function_to_all_callers_p.
2728         (early_inline_small_functions): Use opt_for_fn.
2729         * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
2730         (estimate_function_body_sizes): Likewise.
2731         (compute_inline_parameters): Likewise.
2732         (estimate_edge_devirt_benefit): Likewise.
2733         (inline_analyze_function): Likewise.
2734         * ipa-devirt.c (ipa_devirt): Likewise.
2735         (gate): Use in_lto_p.
2736         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
2737         (try_make_edge_direct_virtual_call): Likewise.
2738         (update_indirect_edges_after_inlining): Likewise.
2739         (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
2740         * common.opt (findirect-inlining): Turn into optimization.
2741         * ipa-pure-const.c (add_new_function): Use opt_for_fn.
2742         (pure_const_generate_summary): Likewise.
2743         (gate_pure_const): Always enable with in_lto_p.
2745 2014-11-18  Maciej W. Rozycki  <macro@codesourcery.com>
2747         * config/mips/mips.md (compression): Add `micromips32' setting.
2748         (enabled, length): Handle it.
2749         (shift_compression): Replace `micromips' with `micromips32' in
2750         the `compression' attribute.
2751         (*add<mode>3, sub<mode>3): Likewise.
2753 2014-11-18  Maciej W. Rozycki  <macro@codesourcery.com>
2755         * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
2756         range, a jump otherwise.
2758 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2760         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
2761         Split into...
2762         (cortex_a15_gp_to_vfp): ...This.
2763         (cortex_a15_fp_to_gp): ...And this.
2764         Define and comment bypass from vfp operations to fp->gp moves.
2766 2014-11-18  Martin Liska  <mliska@suse.cz>
2768         * var-tracking.c (vt_find_locations): New fibonacci_node is used.
2770 2014-11-18  Martin Liska  <mliska@suse.cz>
2772         * bt-load.c (add_btr_def): New fibonacci_heap is used.
2773         (migrate_btr_defs): Likewise.
2775 2014-11-18  Martin Liska  <mliska@suse.cz>
2777         * tracer.c (tail_duplicate): New fibonacci_heap class is used.
2779 2014-11-18  Martin Liska  <mliska@suse.cz>
2781         * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
2782         (find_traces): Likewise.
2783         (find_traces_1_round): Likewise.
2785 2014-11-18  Martin Liska  <mliska@suse.cz>
2787         * fibonacci_heap.h: New file.
2788         (fibonacci_heap::insert): Created from fibheap_insert.
2789         (fibonacci_heap::empty): Created from fibheap_empty.
2790         (fibonacci_heap::nodes): Created from fibheap_nodes.
2791         (fibonacci_heap::min_key): Created from fibheap_min_key.
2792         (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
2793         (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
2794         (fibonacci_heap::extract_min): Created from fibheap_extract_min.
2795         (fibonacci_heap::min): Created from fibheap_min.
2796         (fibonacci_heap::replace_data): Created from fibheap_replace_data.
2797         (fibonacci_heap::delete_node): Created from fibheap_delete_node.
2798         (fibonacci_heap::union_with): Created from fibheap_union.
2799         * ipa-inline.c (update_edge_key): New heap API is used.
2800         (update_caller_keys): Likewise.
2801         (update_callee_keys): Likewise.
2802         (lookup_recursive_calls): Likewise.
2803         (recursive_inlining): Likewise.
2804         (add_new_edges_to_heap): Likewise.
2805         (heap_edge_removal_hook): Likewise.
2806         (inline_small_functions): Likewise.
2808 2014-11-18  Marek Polacek  <polacek@redhat.com>
2810         PR sanitizer/63866
2811         * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
2812         put it into TYPE_NAME and TYPE_STUB_DECL.
2813         * ubsan.c (ubsan_type_descriptor_type): New variable.
2814         Function renamed to ...
2815         (ubsan_get_type_descriptor_type): ... this.  Cache
2816         return value in ubsan_type_descriptor_type variable.
2817         Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
2818         TYPE_NAME and TYPE_STUB_DECL.
2819         (ubsan_get_source_location_type): Create a TYPE_DECL for
2820         "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
2821         (ubsan_type_descriptor, ubsan_create_data): Call
2822         ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
2823         Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
2825 2014-11-18  Felix Yang  <felix.yang@huawei.com>
2827         * config/aarch64/aarch64.c (doloop_end): New pattern.
2828         * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
2830 2014-11-18  Jason Merrill  <jason@redhat.com>
2832         * tree.c (warn_deprecated_use): Show declaration with inform.
2834 2014-11-18  Richard Biener  <rguenther@suse.de>
2836         PR tree-optimization/63914
2837         * tree-ssa-ccp.c (canonicalize_value): Remove float value
2838         canonicalization.
2839         (valid_lattice_transition): Allow (partial) transition
2840         from NaN to non-NaN if !HONOR_NANS.
2841         (set_lattice_value): Check for valid lattice transitions
2842         only when checking is enabled.
2844 2014-11-18  Bernd Schmidt  <bernds@codesourcery.com>
2846         * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
2848 2014-11-18  Christophe Lyon  <christophe.lyon@linaro.org>
2850         * config/arm/neon-testgen.ml (emit_prologue): Handle new
2851         compile_test_optim argument.
2852         (emit_automatics): Rename to emit_variables. Support variable
2853         indentation of its output.
2854         (compile_test_optim): New function.
2855         (test_intrinsic): Call compile_test_optim.
2856         * config/arm/neon.ml (features): Add Compiler_optim.
2857         (ops): Add Compiler_optim feature to Vbic and Vorn.
2858         (type_in_crypto_only): Replace 'or' by '||'.
2859         (reinterp): Likewise.
2860         (reinterpq): Likewise.
2862 2014-11-18  Alan Lawrence  <alan.lawrence@arm.com>
2864         * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
2865         vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
2866         vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
2867         vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
2868         vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
2869         vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
2870         pointer dereference.
2872 2014-11-18  Marc Glisse  <marc.glisse@inria.fr>
2874         * tree.c (element_mode, integer_truep): New functions.
2875         * tree.h (element_mode, integer_truep): Declare them.
2876         * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
2877         fold_cond_expr_with_comparison, fold_real_zero_addition_p,
2878         fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
2879         fold_strip_sign_ops): Use element_mode.
2880         (fold_binary_loc): Use element_mode and element_precision.
2881         * match.pd: Use integer_truep, element_mode, element_precision,
2882         VECTOR_TYPE_P and build_one_cst. Extend some transformations to
2883         vectors. Simplify A/-A.
2885 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2887         * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
2888         manual swapping implementation.
2889         (movcond_addsi): Likewise.
2890         * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
2891         (arm_select_dominance_cc_mode): Likewise.
2892         (arm_reload_out_hi): Likewise.
2893         (gen_operands_ldrd_strd): Likewise.
2894         (output_move_double): Likewise.
2895         (arm_print_operand_address): Likewise.
2896         (thumb_output_move_mem_multiple): Likewise.
2897         (SWAP_RTX): Delete.
2899 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
2901         * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
2902         (COPYSIGNF_QUALIFIERS): Likewise.
2903         (CREATE_QUALIFIERS): Likewise.
2904         (DUP_QUALIFIERS): Likewise.
2905         (FLOAT_WIDEN_QUALIFIERS): Likewise.
2906         (FLOAT_NARROW_QUALIFIERS): Likewise.
2907         (REINTERP_QUALIFIERS): Likewise.
2908         (RINT_QUALIFIERS): Likewise.
2909         (SPLIT_QUALIFIERS): Likewise.
2910         (FIXCONV_QUALIFIERS): Likewise.
2911         (SCALARMUL_QUALIFIERS): Likewise.
2912         (SCALARMULL_QUALIFIERS): Likewise.
2913         (SCALARMULH_QUALIFIERS): Likewise.
2914         (SELECT_QUALIFIERS): Likewise.
2915         (VTBX_QUALIFIERS): Likewise.
2916         (SHIFTIMM_QUALIFIERS): Likewise.
2917         (SCALARMAC_QUALIFIERS): Likewise.
2918         (LANEMUL_QUALIFIERS): Likewise.
2919         (LANEMULH_QUALIFIERS): Likewise.
2920         (LANEMULL_QUALIFIERS): Likewise.
2921         (SHIFTACC_QUALIFIERS): Likewise.
2922         (SHIFTINSERT_QUALIFIERS): Likewise.
2923         (VTBL_QUALIFIERS): Likewise.
2924         (LOADSTRUCT_QUALIFIERS): Likewise.
2925         (LOADSTRUCTLANE_QUALIFIERS): Likewise.
2926         (STORESTRUCT_QUALIFIERS): Likewise.
2927         (STORESTRUCTLANE_QUALIFIERS): Likewise.
2928         (neon_builtin_type_mode): Delete.
2929         (v8qi_UP): Map to V8QImode.
2930         (v8qi_UP): Map to V8QImode.
2931         (v4hi_UP): Map to V4HImode.
2932         (v4hf_UP): Map to V4HFmode.
2933         (v2si_UP): Map to V2SImode.
2934         (v2sf_UP): Map to V2SFmode.
2935         (di_UP): Map to DImode.
2936         (v16qi_UP): Map to V16QImode.
2937         (v8hi_UP): Map to V8HImode.
2938         (v4si_UP): Map to V4SImode.
2939         (v4sf_UP): Map to V4SFmode.
2940         (v2di_UP): Map to V2DImode.
2941         (ti_UP): Map to TImode.
2942         (ei_UP): Map to EImode.
2943         (oi_UP): Map to OImode.
2944         (neon_itype): Delete.
2945         (neon_builtin_datum): Remove itype, make mode a machine_mode.
2946         (VAR1): Update accordingly.
2947         (arm_init_neon_builtins): Use machine_mode directly.
2948         (neon_dereference_pointer): Likewise.
2949         (arm_expand_neon_args): Use qualifiers to decide operand types.
2950         (arm_expand_neon_builtin): Likewise.
2951         * config/arm/arm_neon_builtins.def: Remap operation type for
2952         many builtins.
2954 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
2956         * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
2957         (enum arm_simd_type): Likewise.
2958         (struct arm_simd_type_info): Likewise
2959         (arm_mangle_builtin_scalar_type): Likewise.
2960         (arm_mangle_builtin_vector_type): Likewise.
2961         (arm_mangle_builtin_type): Likewise.
2962         (arm_simd_builtin_std_type): Likewise.
2963         (arm_lookup_simd_builtin_type): Likewise.
2964         (arm_simd_builtin_type): Likewise.
2965         (arm_init_simd_builtin_types): Likewise.
2966         (arm_init_simd_builtin_scalar_types): Likewise.
2967         (arm_init_neon_builtins): Rewrite using qualifiers.
2968         * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
2969         * config/arm/arm-simd-builtin-types.def: New file.
2970         * config/arm/t-arm (arm-builtins.o): Depend on it.
2971         * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
2972         * config/arm/arm_neon.h (int8x8_t): Use new internal type.
2973         (int16x4_t): Likewise.
2974         (int32x2_t): Likewise.
2975         (float16x4_t): Likewise.
2976         (float32x2_t): Likewise.
2977         (poly8x8_t): Likewise.
2978         (poly16x4_t): Likewise.
2979         (uint8x8_t): Likewise.
2980         (uint16x4_t): Likewise.
2981         (uint32x2_t): Likewise.
2982         (int8x16_t): Likewise.
2983         (int16x8_t): Likewise.
2984         (int32x4_t): Likewise.
2985         (int64x2_t): Likewise.
2986         (float32x4_t): Likewise.
2987         (poly8x16_t): Likewise.
2988         (poly16x8_t): Likewise.
2989         (uint8x16_t): Likewise.
2990         (uint16x8_t): Likewise.
2991         (uint32x4_t): Likewise.
2992         (uint64x2_t): Likewise.
2994 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
2996         * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
2997         (neon_itype): Add new types corresponding to the types used in
2998         qualifiers names.
2999         (arm_unop_qualifiers): New.
3000         (arm_bswap_qualifiers): Likewise.
3001         (arm_binop_qualifiers): Likewise.
3002         (arm_ternop_qualifiers): Likewise.
3003         (arm_getlane_qualifiers): Likewise.
3004         (arm_lanemac_qualifiers): Likewise.
3005         (arm_setlane_qualifiers): Likewise.
3006         (arm_combine_qualifiers): Likewise.
3007         (arm_load1_qualifiers): Likewise.
3008         (arm_load1_lane_qualifiers): Likewise.
3009         (arm_store1_qualifiers): Likewise.
3010         (arm_storestruct_lane_qualifiers): Likewise.
3011         (UNOP_QUALIFIERS): Likewise.
3012         (DUP_QUALIFIERS): Likewise.
3013         (SPLIT_QUALIFIERS): Likewise.
3014         (CONVERT_QUALIFIERS): Likewise.
3015         (FLOAT_WIDEN_QUALIFIERS): Likewise.
3016         (FLOAT_NARROW_QUALIFIERS): Likewise.
3017         (RINT_QUALIFIERS): Likewise.
3018         (COPYSIGNF_QUALIFIERS): Likewise.
3019         (CREATE_QUALIFIERS): Likewise.
3020         (REINTERP_QUALIFIERS): Likewise.
3021         (BSWAP_QUALIFIERS): Likewise.
3022         (BINOP_QUALIFIERS): Likewise.
3023         (FIXCONV_QUALIFIERS): Likewise.
3024         (SCALARMUL_QUALIFIERS): Likewise.
3025         (SCALARMULL_QUALIFIERS): Likewise.
3026         (SCALARMULH_QUALIFIERS): Likewise.
3027         (TERNOP_QUALIFIERS): Likewise.
3028         (SELECT_QUALIFIERS): Likewise.
3029         (VTBX_QUALIFIERS): Likewise.
3030         (GETLANE_QUALIFIERS): Likewise.
3031         (SHIFTIMM_QUALIFIERS): Likewise.
3032         (LANEMAC_QUALIFIERS): Likewise.
3033         (SCALARMAC_QUALIFIERS): Likewise.
3034         (SETLANE_QUALIFIERS): Likewise.
3035         (SHIFTINSERT_QUALIFIERS): Likewise.
3036         (SHIFTACC_QUALIFIERS): Likewise.
3037         (LANEMUL_QUALIFIERS): Likewise.
3038         (LANEMULL_QUALIFIERS): Likewise.
3039         (LANEMULH_QUALIFIERS): Likewise.
3040         (COMBINE_QUALIFIERS): Likewise.
3041         (VTBL_QUALIFIERS): Likewise.
3042         (LOAD1_QUALIFIERS): Likewise.
3043         (LOADSTRUCT_QUALIFIERS): Likewise.
3044         (LOAD1LANE_QUALIFIERS): Likewise.
3045         (LOADSTRUCTLANE_QUALIFIERS): Likewise.
3046         (STORE1_QUALIFIERS): Likewise.
3047         (STORESTRUCT_QUALIFIERS): Likewise.
3048         (STORE1LANE_QUALIFIERS): Likewise.
3049         (STORESTRUCTLANE_QUALIFIERS): Likewise.
3050         (neon_builtin_datum): Keep track of qualifiers.
3051         (VAR1): Likewise.
3053 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3055         * config/arm/arm-builtins.c (VAR1): Add a comma.
3056         (VAR2): Rewrite in terms of VAR1.
3057         (VAR3-10): Likewise.
3058         (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
3059         * config/arm/arm_neon_builtins.def: Remove trailing commas.
3061 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3063         * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
3064         (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
3065         * config/arm/arm-builtins.c: New.
3066         * config/arm/t-arm (arm_builtins.o): New.
3067         * config/arm/arm-protos.h (arm_expand_builtin): New.
3068         (arm_builtin_decl): Likewise.
3069         (arm_init_builtins): Likewise.
3070         (arm_atomic_assign_expand_fenv): Likewise.
3071         * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
3072         (arm_init_builtins): Likewise.
3073         (arm_init_iwmmxt_builtins): Likewise
3074         (safe_vector_operand): Likewise
3075         (arm_expand_binop_builtin): Likewise
3076         (arm_expand_unop_builtin): Likewise
3077         (arm_expand_builtin): Likewise
3078         (arm_builtin_decl): Likewise
3079         (insn_flags): Remove static.
3080         (tune_flags): Likewise.
3081         (enum arm_builtins): Move to config/arm/arm-builtins.c.
3082         (arm_init_neon_builtins): Likewise.
3083         (struct builtin_description): Likewise.
3084         (arm_init_iwmmxt_builtins): Likewise.
3085         (arm_init_fp16_builtins): Likewise.
3086         (arm_init_crc32_builtins): Likewise.
3087         (arm_init_builtins): Likewise.
3088         (arm_builtin_decl): Likewise.
3089         (safe_vector_operand): Likewise.
3090         (arm_expand_ternop_builtin): Likewise.
3091         (arm_expand_binop_builtin): Likewise.
3092         (arm_expand_unop_builtin): Likewise.
3093         (neon_dereference_pointer): Likewise.
3094         (arm_expand_neon_args): Likewise.
3095         (arm_expand_neon_builtin): Likewise.
3096         (neon_split_vcombine): Likewise.
3097         (arm_expand_builtin): Likewise.
3098         (arm_builtin_vectorized_function): Likewise.
3099         (arm_atomic_assign_expand_fenv): Likewise.
3101 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3103         * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
3104         * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
3105         (FL_ARCH3M): Likewise.
3106         (FL_MODE26): Likewise.
3107         (FL_MODE32): Likewise.
3108         (FL_ARCH4): Likewise.
3109         (FL_ARCH5): Likewise.
3110         (FL_THUMB): Likewise.
3111         (FL_LDSCHED): Likewise.
3112         (FL_STRONG): Likewise.
3113         (FL_ARCH5E): Likewise.
3114         (FL_XSCALE): Likewise.
3115         (FL_ARCH6): Likewise.
3116         (FL_VFPV2): Likewise.
3117         (FL_WBUF): Likewise.
3118         (FL_ARCH6K): Likewise.
3119         (FL_THUMB2): Likewise.
3120         (FL_NOTM): Likewise.
3121         (FL_THUMB_DIV): Likewise.
3122         (FL_VFPV3): Likewise.
3123         (FL_NEON): Likewise.
3124         (FL_ARCH7EM): Likewise.
3125         (FL_ARCH7): Likewise.
3126         (FL_ARM_DIV): Likewise.
3127         (FL_ARCH8): Likewise.
3128         (FL_CRC32): Likewise.
3129         (FL_SMALLMUL): Likewise.
3130         (FL_IWMMXT): Likewise.
3131         (FL_IWMMXT2): Likewise.
3132         (FL_TUNE): Likewise.
3133         (FL_FOR_ARCH2): Likewise.
3134         (FL_FOR_ARCH3): Likewise.
3135         (FL_FOR_ARCH3M): Likewise.
3136         (FL_FOR_ARCH4): Likewise.
3137         (FL_FOR_ARCH4T): Likewise.
3138         (FL_FOR_ARCH5): Likewise.
3139         (FL_FOR_ARCH5T): Likewise.
3140         (FL_FOR_ARCH5E): Likewise.
3141         (FL_FOR_ARCH5TE): Likewise.
3142         (FL_FOR_ARCH5TEJ): Likewise.
3143         (FL_FOR_ARCH6): Likewise.
3144         (FL_FOR_ARCH6J): Likewise.
3145         (FL_FOR_ARCH6K): Likewise.
3146         (FL_FOR_ARCH6Z): Likewise.
3147         (FL_FOR_ARCH6ZK): Likewise.
3148         (FL_FOR_ARCH6T2): Likewise.
3149         (FL_FOR_ARCH6M): Likewise.
3150         (FL_FOR_ARCH7): Likewise.
3151         (FL_FOR_ARCH7A): Likewise.
3152         (FL_FOR_ARCH7VE): Likewise.
3153         (FL_FOR_ARCH7R): Likewise.
3154         (FL_FOR_ARCH7M): Likewise.
3155         (FL_FOR_ARCH7EM): Likewise.
3156         (FL_FOR_ARCH8A): Likewise.
3157         * config/arm/arm-protos.h: Take definitions moved from arm.c.
3159 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3161         * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
3162         parameter, rearrange switch statement accordingly.
3163         (arm_evpc_neon_vrev): Remove "Magic Word".
3164         * config/arm/unspecs.md (unspec): Split many UNSPECs to
3165         rounding, or signed/unsigned variants.
3166         * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
3167         (vcondu<mode><mode>): Likewise.
3168         (neon_vadd): Remove "Magic Word" operand.
3169         (neon_vaddl): Remove "Magic Word" operand, convert to use
3170         signed/unsigned iterator.
3171         (neon_vaddw): Likewise.
3172         (neon_vhadd): Likewise, also iterate over "rounding" forms.
3173         (neon_vqadd): Remove "Magic Word" operand, convert to use
3174         signed/unsigned iterator.
3175         (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
3176         over "rounding" forms.
3177         (neon_vmul): Remove "Magic Word" operand, iterate over
3178         polynomial/float instruction forms.
3179         (neon_vmla): Remove "Magic Word" operand.
3180         (neon_vfma): Likewise.
3181         (neon_vfms): Likewise.
3182         (neon_vmls): Likewise.
3183         (neon_vmlal): Remove "Magic Word" operand, iterate over
3184         signed/unsigned forms.
3185         (neon_vmlsl): Likewise.
3186         (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
3187         forms.
3188         (neon_vqdmlal): Remove "Magic Word" operand, iterate over
3189         signed/unsigned forms.
3190         (neon_vqdmlsl): Likewise.
3191         (neon_vmull): Likewise.
3192         (neon_vqdmull): Remove "Magic Word" operand.
3193         (neon_vsub): Remove "Magic Word" operand.
3194         (neon_vsubl): Remove "Magic Word" operand, convert to use
3195         signed/unsigned iterator.
3196         (neon_vsubw): Likewise.
3197         (neon_vhsub): Likewise.
3198         (neon_vqsub): Likewise.
3199         (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
3200         over "rounding" forms.
3201         (neon_vceq): Remove "Magic Word" operand.
3202         (neon_vcge): Likewise.
3203         (neon_vcgeu): Likewise.
3204         (neon_vcgt): Likewise.
3205         (neon_vcgtu): Likewise.
3206         (neon_vcle): Likewise.
3207         (neon_vclt): Likewise.
3208         (neon_vcage): Likewise.
3209         (neon_vcagt): Likewise.
3210         (neon_vabd): Remove "Magic Word" operand, iterate over
3211         signed/unsigned forms, and split out...
3212         (neon_vabdf): ...this as new.
3213         (neon_vabdl): Remove "Magic Word" operand, iterate over
3214         signed/unsigned forms.
3215         (neon_vaba): Likewise.
3216         (neon_vmax): Remove "Magic Word" operand, iterate over
3217         signed/unsigned and max/min forms, and split out...
3218         (neon_v<maxmin>f): ...this as new.
3219         (neon_vmin): Delete.
3220         (neon_vpadd): Remove "Magic Word" operand.
3221         (neon_vpaddl): Remove "Magic Word" operand, iterate over
3222         signed/unsigned variants.
3223         (neon_vpadal): Likewise.
3224         (neon_vpmax): Remove "Magic Word" operand, iterate over
3225         signed/unsigned and max/min forms, and split out...
3226         (neon_vp<maxmin>f): ...this as new.
3227         (neon_vpmin): Delete.
3228         (neon_vrecps): Remove "Magic Word" operand.
3229         (neon_vrsqrts): Likewise.
3230         (neon_vabs): Likewise.
3231         (neon_vqabs): Likewise.
3232         (neon_vneg): Likewise.
3233         (neon_vqneg): Likewise.
3234         (neon_vcls): Likewise.
3235         (neon_vcnt): Likewise.
3236         (neon_vrecpe): Likewise.
3237         (neon_vrsqrte): Likewise.
3238         (neon_vmvn): Likewise.
3239         (neon_vget_lane): Likewise.
3240         (neon_vget_laneu): New.
3241         (neon_vget_lanedi): Remove "Magic Word" operand.
3242         (neon_vget_lanev2di): Likewise.
3243         (neon_vcvt): Remove "Magic Word" operand, iterate over
3244         signed/unsigned variants.
3245         (neon_vcvt_n): Likewise.
3246         (neon_vmovn): Remove "Magic Word" operand.
3247         (neon_vqmovn): Remove "Magic Word" operand, iterate over
3248         signed/unsigned variants.
3249         (neon_vmovun): Remove "Magic Word" operand.
3250         (neon_vmovl): Remove "Magic Word" operand, iterate over
3251         signed/unsigned variants.
3252         (neon_vmul_lane): Remove "Magic Word" operand.
3253         (neon_vmull_lane): Remove "Magic Word" operand, iterate over
3254         signed/unsigned variants.
3255         (neon_vqdmull_lane): Remove "Magic Word" operand.
3256         (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
3257         rounding variants.
3258         (neon_vmla_lane): Remove "Magic Word" operand.
3259         (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
3260         signed/unsigned variants.
3261         (neon_vqdmlal_lane): Remove "Magic Word" operand.
3262         (neon_vmls_lane): Likewise.
3263         (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
3264         signed/unsigned variants.
3265         (neon_vqdmlsl_lane): Remove "Magic Word" operand.
3266         (neon_vmul_n): Remove "Magic Word" operand.
3267         (neon_vmull_n): Rename to...
3268         (neon_vmulls_n): ...this, remove "Magic Word" operand.
3269         (neon_vmullu_n): New.
3270         (neon_vqdmull_n): Remove "Magic Word" operand.
3271         (neon_vqdmulh_n): Likewise.
3272         (neon_vqrdmulh_n): New.
3273         (neon_vmla_n): Remove "Magic Word" operand.
3274         (neon_vmls_n): Likewise.
3275         (neon_vmlal_n): Rename to...
3276         (neon_vmlals_n): ...this, remove "Magic Word" operand.
3277         (neon_vmlalu_n): New.
3278         (neon_vqdmlal_n): Remove "Magic Word" operand.
3279         (neon_vmlsl_n): Rename to...
3280         (neon_vmlsls_n): ...this, remove "Magic Word" operand.
3281         (neon_vmlslu_n): New.
3282         (neon_vqdmlsl_n): Remove "Magic Word" operand.
3283         (neon_vrev64): Remove "Magic Word" operand.
3284         (neon_vrev32): Likewise.
3285         (neon_vrev16): Likewise.
3286         (neon_vshl): Remove "Magic Word" operand, iterate over
3287         signed/unsigned and "rounding" forms.
3288         (neon_vqshl): Likewise.
3289         (neon_vshr_n): Likewise.
3290         (neon_vshrn_n): Remove "Magic Word" operand, iterate over
3291         "rounding" forms.
3292         (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
3293         signed/unsigned and "rounding" forms.
3294         (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
3295         "rounding" forms.
3296         (neon_vshl_n): Remove "Magic Word" operand.
3297         (neon_vqshl_n): Remove "Magic Word" operand, iterate over
3298         signed/unsigned variants.
3299         (neon_vqshlu_n): Remove "Magic Word" operand.
3300         (neon_vshll_n): Remove "Magic Word" operand, iterate over
3301         signed/unsigned variants.
3302         (neon_vsra_n): Remove "Magic Word" operand, iterate over
3303         signed/unsigned and "rounding" forms.
3304         * config/arm/iterators.md (VPF): New.
3305         (VADDL): Likewise.
3306         (VADDW): Likewise.
3307         (VHADD): Likewise.
3308         (VQADD): Likewise.
3309         (VADDHN): Likewise.
3310         (VMLAL): Likewise.
3311         (VMLAL_LANE): Likewise.
3312         (VLMSL): Likewise.
3313         (VMLSL_LANE): Likewise.
3314         (VQDMULH): Likewise,
3315         (VQDMULH_LANE): Likewise.
3316         (VMULL): Likewise.
3317         (VMULL_LANE): Likewise.
3318         (VSUBL): Likewise.
3319         (VSUBW): Likewise.
3320         (VHSUB): Likewise.
3321         (VQSUB): Likewise.
3322         (VSUBHN): Likewise.
3323         (VABD): Likewise.
3324         (VABDL): Likewise.
3325         (VMAXMIN): Likewise.
3326         (VMAXMINF): Likewise.
3327         (VPADDL): Likewise.
3328         (VPADAL): Likewise.
3329         (VPMAXMIN): Likewise.
3330         (VPMAXMINF): Likewise.
3331         (VCVT_US): Likewise.
3332         (VCVT_US_N): Likewise.
3333         (VQMOVN): Likewise.
3334         (VMOVL): Likewise.
3335         (VSHL): Likewise.
3336         (VQSHL): Likewise.
3337         (VSHR_N): Likewise.
3338         (VSHRN_N): Likewise.
3339         (VQSHRN_N): Likewise.
3340         (VQSHRUN_N): Likewise.
3341         (VQSHL_N): Likewise.
3342         (VSHLL_N): Likewise.
3343         (VSRA_N): Likewise.
3344         (pf): Likewise.
3345         (sup): Likewise.
3346         (r): Liekwise.
3347         (maxmin): Likewise.
3348         (shift_op): Likewise.
3349         * config/arm/arm_neon_builtins.def (vaddl): Split to...
3350         (vaddls): ...this and...
3351         (vaddlu): ...this.
3352         (vaddw): Split to...
3353         (vaddws): ...this and...
3354         (vaddwu): ...this.
3355         (vhadd): Split to...
3356         (vhadds): ...this and...
3357         (vhaddu): ...this and...
3358         (vrhadds): ...this and...
3359         (vrhaddu): ...this.
3360         (vqadd): Split to...
3361         (vqadds): ...this and...
3362         (vqaddu): ...this.
3363         (vaddhn): Split to itself and...
3364         (vraddhn): ...this.
3365         (vmul): Split to...
3366         (vmulf): ...this and...
3367         (vmulp): ...this.
3368         (vmlal): Split to...
3369         (vmlals): ...this and...
3370         (vmlalu): ...this.
3371         (vmlsl): Split to...
3372         (vmlsls): ...this and...
3373         (vmlslu): ...this.
3374         (vqdmulh): Split to itself and...
3375         (vqrdmulh): ...this.
3376         (vmull): Split to...
3377         (vmullp): ...this and...
3378         (vmulls): ...this and...
3379         (vmullu): ...this.
3380         (vmull_n): Split to...
3381         (vmulls_n): ...this and...
3382         (vmullu_n): ...this.
3383         (vmull_lane): Split to...
3384         (vmulls_lane): ...this and...
3385         (vmullu_lane): ...this.
3386         (vqdmulh_n): Split to itself and...
3387         (vqrdmulh_n): ...this.
3388         (vqdmulh_lane): Split to itself and...
3389         (vqrdmulh_lane): ...this.
3390         (vshl): Split to...
3391         (vshls): ...this and...
3392         (vshlu): ...this and...
3393         (vrshls): ...this and...
3394         (vrshlu): ...this.
3395         (vqshl): Split to...
3396         (vqshls): ...this and...
3397         (vqrshlu): ...this and...
3398         (vqrshls): ...this and...
3399         (vqrshlu): ...this.
3400         (vshr_n): Split to...
3401         (vshrs_n): ...this and...
3402         (vshru_n): ...this and...
3403         (vrshrs_n): ...this and...
3404         (vrshru_n): ...this.
3405         (vshrn_n): Split to itself and...
3406         (vrshrn_n): ...this.
3407         (vqshrn_n): Split to...
3408         (vqshrns_n): ...this and...
3409         (vqshrnu_n): ...this and...
3410         (vqrshrns_n): ...this and...
3411         (vqrshrnu_n): ...this.
3412         (vqshrun_n): Split to itself and...
3413         (vqrshrun_n): ...this.
3414         (vqshl_n): Split to...
3415         (vqshl_s_n): ...this and...
3416         (vqshl_u_n): ...this.
3417         (vshll_n): Split to...
3418         (vshlls_n): ...this and...
3419         (vshllu_n): ...this.
3420         (vsra_n): Split to...
3421         (vsras_n): ...this and...
3422         (vsrau_n): ...this and.
3423         (vrsras_n): ...this and...
3424         (vrsrau_n): ...this and.
3425         (vsubl): Split to...
3426         (vsubls): ...this and...
3427         (vsublu): ...this.
3428         (vsubw): Split to...
3429         (vsubws): ...this and...
3430         (vsubwu): ...this.
3431         (vqsub): Split to...
3432         (vqsubs): ...this and...
3433         (vqsubu): ...this.
3434         (vhsub): Split to...
3435         (vhsubs): ...this and...
3436         (vhsubu): ...this.
3437         (vsubhn): Split to itself and...
3438         (vrsubhn): ...this.
3439         (vabd): Split to...
3440         (vabds): ...this and...
3441         (vabdu): ...this and...
3442         (vabdf): ...this.
3443         (vabdl): Split to...
3444         (vabdls): ...this and...
3445         (vabdlu): ...this.
3446         (vaba): Split to...
3447         (vabas): ...this and...
3448         (vabau): ...this and...
3449         (vabal): Split to...
3450         (vabals): ...this and...
3451         (vabalu): ...this.
3452         (vmax): Split to...
3453         (vmaxs): ...this and...
3454         (vmaxu): ...this and...
3455         (vmaxf): ...this.
3456         (vmin): Split to...
3457         (vmins): ...this and...
3458         (vminu): ...this and...
3459         (vminf): ...this.
3460         (vpmax): Split to...
3461         (vpmaxs): ...this and...
3462         (vpmaxu): ...this and...
3463         (vpmaxf): ...this.
3464         (vpmin): Split to...
3465         (vpmins): ...this and...
3466         (vpminu): ...this and...
3467         (vpminf): ...this.
3468         (vpaddl): Split to...
3469         (vpaddls): ...this and...
3470         (vpaddlu): ...this.
3471         (vpadal): Split to...
3472         (vpadals): ...this and...
3473         (vpadalu): ...this.
3474         (vget_laneu): New.
3475         (vqmovn): Split to...
3476         (vqmovns): ...this and...
3477         (vqmovnu): ...this.
3478         (vmovl): Split to...
3479         (vmovls): ...this and...
3480         (vmovlu): ...this.
3481         (vmlal_lane): Split to...
3482         (vmlals_lane): ...this and...
3483         (vmlalu_lane): ...this.
3484         (vmlsl_lane): Split to...
3485         (vmlsls_lane): ...this and...
3486         (vmlslu_lane): ...this.
3487         (vmlal_n): Split to...
3488         (vmlals_n): ...this and...
3489         (vmlalu_n): ...this.
3490         (vmlsl_n): Split to...
3491         (vmlsls_n): ...this and...
3492         (vmlslu_n): ...this.
3493         (vext): Make type "SHIFTINSERT".
3494         (vcvt): Split to...
3495         (vcvts): ...this and...
3496         (vcvtu): ...this.
3497         (vcvt_n): Split to...
3498         (vcvts_n): ...this and...
3499         (vcvtu_n): ...this.
3500         * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
3501         (vaddl_s16): Likewise.
3502         (vaddl_s32): Likewise.
3503         (vaddl_u8): Likewise.
3504         (vaddl_u16): Likewise.
3505         (vaddl_u32): Likewise.
3506         (vaddw_s8): Likewise.
3507         (vaddw_s16): Likewise.
3508         (vaddw_s32): Likewise.
3509         (vaddw_u8): Likewise.
3510         (vaddw_u16): Likewise.
3511         (vaddw_u32): Likewise.
3512         (vhadd_s8): Likewise.
3513         (vhadd_s16): Likewise.
3514         (vhadd_s32): Likewise.
3515         (vhadd_u8): Likewise.
3516         (vhadd_u16): Likewise.
3517         (vhadd_u32): Likewise.
3518         (vhaddq_s8): Likewise.
3519         (vhaddq_s16): Likewise.
3520         (vhaddq_s32): Likewise.
3521         (vhaddq_u8): Likewise.
3522         (vhaddq_u16): Likewise.
3523         (vrhadd_s8): Likewise.
3524         (vrhadd_s16): Likewise.
3525         (vrhadd_s32): Likewise.
3526         (vrhadd_u8): Likewise.
3527         (vrhadd_u16): Likewise.
3528         (vrhadd_u32): Likewise.
3529         (vrhaddq_s8): Likewise.
3530         (vrhaddq_s16): Likewise.
3531         (vrhaddq_s32): Likewise.
3532         (vrhaddq_u8): Likewise.
3533         (vrhaddq_u16): Likewise.
3534         (vrhaddq_u32): Likewise.
3535         (vqadd_s8): Likewise.
3536         (vqadd_s16): Likewise.
3537         (vqadd_s32): Likewise.
3538         (vqadd_s64): Likewise.
3539         (vqadd_u8): Likewise.
3540         (vqadd_u16): Likewise.
3541         (vqadd_u32): Likewise.
3542         (vqadd_u64): Likewise.
3543         (vqaddq_s8): Likewise.
3544         (vqaddq_s16): Likewise.
3545         (vqaddq_s32): Likewise.
3546         (vqaddq_s64): Likewise.
3547         (vqaddq_u8): Likewise.
3548         (vqaddq_u16): Likewise.
3549         (vqaddq_u32): Likewise.
3550         (vqaddq_u64): Likewise.
3551         (vaddhn_s16): Likewise.
3552         (vaddhn_s32): Likewise.
3553         (vaddhn_s64): Likewise.
3554         (vaddhn_u16): Likewise.
3555         (vaddhn_u32): Likewise.
3556         (vaddhn_u64): Likewise.
3557         (vraddhn_s16): Likewise.
3558         (vraddhn_s32): Likewise.
3559         (vraddhn_s64): Likewise.
3560         (vraddhn_u16): Likewise.
3561         (vraddhn_u32): Likewise.
3562         (vraddhn_u64): Likewise.
3563         (vmul_p8): Likewise.
3564         (vmulq_p8): Likewise.
3565         (vqdmulh_s16): Likewise.
3566         (vqdmulh_s32): Likewise.
3567         (vqdmulhq_s16): Likewise.
3568         (vqdmulhq_s32): Likewise.
3569         (vqrdmulh_s16): Likewise.
3570         (vqrdmulh_s32): Likewise.
3571         (vqrdmulhq_s16): Likewise.
3572         (vqrdmulhq_s32): Likewise.
3573         (vmull_s8): Likewise.
3574         (vmull_s16): Likewise.
3575         (vmull_s32): Likewise.
3576         (vmull_u8): Likewise.
3577         (vmull_u16): Likewise.
3578         (vmull_u32): Likewise.
3579         (vmull_p8): Likewise.
3580         (vqdmull_s16): Likewise.
3581         (vqdmull_s32): Likewise.
3582         (vmla_s8): Likewise.
3583         (vmla_s16): Likewise.
3584         (vmla_s32): Likewise.
3585         (vmla_f32): Likewise.
3586         (vmla_u8): Likewise.
3587         (vmla_u16): Likewise.
3588         (vmla_u32): Likewise.
3589         (vmlaq_s8): Likewise.
3590         (vmlaq_s16): Likewise.
3591         (vmlaq_s32): Likewise.
3592         (vmlaq_f32): Likewise.
3593         (vmlaq_u8): Likewise.
3594         (vmlaq_u16): Likewise.
3595         (vmlaq_u32): Likewise.
3596         (vmlal_s8): Likewise.
3597         (vmlal_s16): Likewise.
3598         (vmlal_s32): Likewise.
3599         (vmlal_u8): Likewise.
3600         (vmlal_u16): Likewise.
3601         (vmlal_u32): Likewise.
3602         (vqdmlal_s16): Likewise.
3603         (vqdmlal_s32): Likewise.
3604         (vmls_s8): Likewise.
3605         (vmls_s16): Likewise.
3606         (vmls_s32): Likewise.
3607         (vmls_f32): Likewise.
3608         (vmls_u8): Likewise.
3609         (vmls_u16): Likewise.
3610         (vmls_u32): Likewise.
3611         (vmlsq_s8): Likewise.
3612         (vmlsq_s16): Likewise.
3613         (vmlsq_s32): Likewise.
3614         (vmlsq_f32): Likewise.
3615         (vmlsq_u8): Likewise.
3616         (vmlsq_u16): Likewise.
3617         (vmlsq_u32): Likewise.
3618         (vmlsl_s8): Likewise.
3619         (vmlsl_s16): Likewise.
3620         (vmlsl_s32): Likewise.
3621         (vmlsl_u8): Likewise.
3622         (vmlsl_u16): Likewise.
3623         (vmlsl_u32): Likewise.
3624         (vqdmlsl_s16): Likewise.
3625         (vqdmlsl_s32): Likewise.
3626         (vfma_f32): Likewise.
3627         (vfmaq_f32): Likewise.
3628         (vfms_f32): Likewise.
3629         (vfmsq_f32): Likewise.
3630         (vsubl_s8): Likewise.
3631         (vsubl_s16): Likewise.
3632         (vsubl_s32): Likewise.
3633         (vsubl_u8): Likewise.
3634         (vsubl_u16): Likewise.
3635         (vsubl_u32): Likewise.
3636         (vsubw_s8): Likewise.
3637         (vsubw_s16): Likewise.
3638         (vsubw_s32): Likewise.
3639         (vsubw_u8): Likewise.
3640         (vsubw_u16): Likewise.
3641         (vsubw_u32): Likewise.
3642         (vhsub_s8): Likewise.
3643         (vhsub_s16): Likewise.
3644         (vhsub_s32): Likewise.
3645         (vhsub_u8): Likewise.
3646         (vhsub_u16): Likewise.
3647         (vhsub_u32): Likewise.
3648         (vhsubq_s8): Likewise.
3649         (vhsubq_s16): Likewise.
3650         (vhsubq_s32): Likewise.
3651         (vhsubq_u8): Likewise.
3652         (vhsubq_u16): Likewise.
3653         (vhsubq_u32): Likewise.
3654         (vqsub_s8): Likewise.
3655         (vqsub_s16): Likewise.
3656         (vqsub_s32): Likewise.
3657         (vqsub_s64): Likewise.
3658         (vqsub_u8): Likewise.
3659         (vqsub_u16): Likewise.
3660         (vqsub_u32): Likewise.
3661         (vqsub_u64): Likewise.
3662         (vqsubq_s8): Likewise.
3663         (vqsubq_s16): Likewise.
3664         (vqsubq_s32): Likewise.
3665         (vqsubq_s64): Likewise.
3666         (vqsubq_u8): Likewise.
3667         (vqsubq_u16): Likewise.
3668         (vqsubq_u32): Likewise.
3669         (vqsubq_u64): Likewise.
3670         (vsubhn_s16): Likewise.
3671         (vsubhn_s32): Likewise.
3672         (vsubhn_s64): Likewise.
3673         (vsubhn_u16): Likewise.
3674         (vsubhn_u32): Likewise.
3675         (vsubhn_u64): Likewise.
3676         (vrsubhn_s16): Likewise.
3677         (vrsubhn_s32): Likewise.
3678         (vrsubhn_s64): Likewise.
3679         (vrsubhn_u16): Likewise.
3680         (vrsubhn_u32): Likewise.
3681         (vrsubhn_u64): Likewise.
3682         (vceq_s8): Likewise.
3683         (vceq_s16): Likewise.
3684         (vceq_s32): Likewise.
3685         (vceq_f32): Likewise.
3686         (vceq_u8): Likewise.
3687         (vceq_u16): Likewise.
3688         (vceq_u32): Likewise.
3689         (vceq_p8): Likewise.
3690         (vceqq_s8): Likewise.
3691         (vceqq_s16): Likewise.
3692         (vceqq_s32): Likewise.
3693         (vceqq_f32): Likewise.
3694         (vceqq_u8): Likewise.
3695         (vceqq_u16): Likewise.
3696         (vceqq_u32): Likewise.
3697         (vceqq_p8): Likewise.
3698         (vcge_s8): Likewise.
3699         (vcge_s16): Likewise.
3700         (vcge_s32): Likewise.
3701         (vcge_f32): Likewise.
3702         (vcge_u8): Likewise.
3703         (vcge_u16): Likewise.
3704         (vcge_u32): Likewise.
3705         (vcgeq_s8): Likewise.
3706         (vcgeq_s16): Likewise.
3707         (vcgeq_s32): Likewise.
3708         (vcgeq_f32): Likewise.
3709         (vcgeq_u8): Likewise.
3710         (vcgeq_u16): Likewise.
3711         (vcgeq_u32): Likewise.
3712         (vcle_s8): Likewise.
3713         (vcle_s16): Likewise.
3714         (vcle_s32): Likewise.
3715         (vcle_f32): Likewise.
3716         (vcle_u8): Likewise.
3717         (vcle_u16): Likewise.
3718         (vcle_u32): Likewise.
3719         (vcleq_s8): Likewise.
3720         (vcleq_s16): Likewise.
3721         (vcleq_s32): Likewise.
3722         (vcleq_f32): Likewise.
3723         (vcleq_u8): Likewise.
3724         (vcleq_u16): Likewise.
3725         (vcleq_u32): Likewise.
3726         (vcgt_s8): Likewise.
3727         (vcgt_s16): Likewise.
3728         (vcgt_s32): Likewise.
3729         (vcgt_f32): Likewise.
3730         (vcgt_u8): Likewise.
3731         (vcgt_u16): Likewise.
3732         (vcgt_u32): Likewise.
3733         (vcgtq_s8): Likewise.
3734         (vcgtq_s16): Likewise.
3735         (vcgtq_s32): Likewise.
3736         (vcgtq_f32): Likewise.
3737         (vcgtq_u8): Likewise.
3738         (vcgtq_u16): Likewise.
3739         (vcgtq_u32): Likewise.
3740         (vclt_s8): Likewise.
3741         (vclt_s16): Likewise.
3742         (vclt_s32): Likewise.
3743         (vclt_f32): Likewise.
3744         (vclt_u8): Likewise.
3745         (vclt_u16): Likewise.
3746         (vclt_u32): Likewise.
3747         (vcltq_s8): Likewise.
3748         (vcltq_s16): Likewise.
3749         (vcltq_s32): Likewise.
3750         (vcltq_f32): Likewise.
3751         (vcltq_u8): Likewise.
3752         (vcltq_u16): Likewise.
3753         (vcltq_u32): Likewise.
3754         (vcage_f32): Likewise.
3755         (vcageq_f32): Likewise.
3756         (vcale_f32): Likewise.
3757         (vcaleq_f32): Likewise.
3758         (vcagt_f32): Likewise.
3759         (vcagtq_f32): Likewise.
3760         (vcalt_f32): Likewise.
3761         (vcaltq_f32): Likewise.
3762         (vtst_s8): Likewise.
3763         (vtst_s16): Likewise.
3764         (vtst_s32): Likewise.
3765         (vtst_u8): Likewise.
3766         (vtst_u16): Likewise.
3767         (vtst_u32): Likewise.
3768         (vtst_p8): Likewise.
3769         (vtstq_s8): Likewise.
3770         (vtstq_s16): Likewise.
3771         (vtstq_s32): Likewise.
3772         (vtstq_u8): Likewise.
3773         (vtstq_u16): Likewise.
3774         (vtstq_u32): Likewise.
3775         (vtstq_p8): Likewise.
3776         (vabd_s8): Likewise.
3777         (vabd_s16): Likewise.
3778         (vabd_s32): Likewise.
3779         (vabd_f32): Likewise.
3780         (vabd_u8): Likewise.
3781         (vabd_u16): Likewise.
3782         (vabd_u32): Likewise.
3783         (vabdq_s8): Likewise.
3784         (vabdq_s16): Likewise.
3785         (vabdq_s32): Likewise.
3786         (vabdq_f32): Likewise.
3787         (vabdq_u8): Likewise.
3788         (vabdq_u16): Likewise.
3789         (vabdq_u32): Likewise.
3790         (vabdl_s8): Likewise.
3791         (vabdl_s16): Likewise.
3792         (vabdl_s32): Likewise.
3793         (vabdl_u8): Likewise.
3794         (vabdl_u16): Likewise.
3795         (vabdl_u32): Likewise.
3796         (vaba_s8): Likewise.
3797         (vaba_s16): Likewise.
3798         (vaba_s32): Likewise.
3799         (vaba_u8): Likewise.
3800         (vaba_u16): Likewise.
3801         (vaba_u32): Likewise.
3802         (vabaq_s8): Likewise.
3803         (vabaq_s16): Likewise.
3804         (vabaq_s32): Likewise.
3805         (vabaq_u8): Likewise.
3806         (vabaq_u16): Likewise.
3807         (vabaq_u32): Likewise.
3808         (vabal_s8): Likewise.
3809         (vabal_s16): Likewise.
3810         (vabal_s32): Likewise.
3811         (vabal_u8): Likewise.
3812         (vabal_u16): Likewise.
3813         (vabal_u32): Likewise.
3814         (vmax_s8): Likewise.
3815         (vmax_s16): Likewise.
3816         (vmax_s32): Likewise.
3817         (vmax_f32): Likewise.
3818         (vmax_u8): Likewise.
3819         (vmax_u16): Likewise.
3820         (vmax_u32): Likewise.
3821         (vmaxq_s8): Likewise.
3822         (vmaxq_s16): Likewise.
3823         (vmaxq_s32): Likewise.
3824         (vmaxq_f32): Likewise.
3825         (vmaxq_u8): Likewise.
3826         (vmaxq_u16): Likewise.
3827         (vmaxq_u32): Likewise.
3828         (vmin_s8): Likewise.
3829         (vmin_s16): Likewise.
3830         (vmin_s32): Likewise.
3831         (vmin_f32): Likewise.
3832         (vmin_u8): Likewise.
3833         (vmin_u16): Likewise.
3834         (vmin_u32): Likewise.
3835         (vminq_s8): Likewise.
3836         (vminq_s16): Likewise.
3837         (vminq_s32): Likewise.
3838         (vminq_f32): Likewise.
3839         (vminq_u8): Likewise.
3840         (vminq_u16): Likewise.
3841         (vminq_u32): Likewise.
3842         (vpadd_s8): Likewise.
3843         (vpadd_s16): Likewise.
3844         (vpadd_s32): Likewise.
3845         (vpadd_f32): Likewise.
3846         (vpadd_u8): Likewise.
3847         (vpadd_u16): Likewise.
3848         (vpadd_u32): Likewise.
3849         (vpaddl_s8): Likewise.
3850         (vpaddl_s16): Likewise.
3851         (vpaddl_s32): Likewise.
3852         (vpaddl_u8): Likewise.
3853         (vpaddl_u16): Likewise.
3854         (vpaddl_u32): Likewise.
3855         (vpaddlq_s8): Likewise.
3856         (vpaddlq_s16): Likewise.
3857         (vpaddlq_s32): Likewise.
3858         (vpaddlq_u8): Likewise.
3859         (vpaddlq_u16): Likewise.
3860         (vpaddlq_u32): Likewise.
3861         (vpadal_s8): Likewise.
3862         (vpadal_s16): Likewise.
3863         (vpadal_s32): Likewise.
3864         (vpadal_u8): Likewise.
3865         (vpadal_u16): Likewise.
3866         (vpadal_u32): Likewise.
3867         (vpadalq_s8): Likewise.
3868         (vpadalq_s16): Likewise.
3869         (vpadalq_s32): Likewise.
3870         (vpadalq_u8): Likewise.
3871         (vpadalq_u16): Likewise.
3872         (vpadalq_u32): Likewise.
3873         (vpmax_s8): Likewise.
3874         (vpmax_s16): Likewise.
3875         (vpmax_s32): Likewise.
3876         (vpmax_f32): Likewise.
3877         (vpmax_u8): Likewise.
3878         (vpmax_u16): Likewise.
3879         (vpmax_u32): Likewise.
3880         (vpmin_s8): Likewise.
3881         (vpmin_s16): Likewise.
3882         (vpmin_s32): Likewise.
3883         (vpmin_f32): Likewise.
3884         (vpmin_u8): Likewise.
3885         (vpmin_u16): Likewise.
3886         (vpmin_u32): Likewise.
3887         (vrecps_f32): Likewise.
3888         (vrecpsq_f32): Likewise.
3889         (vrsqrts_f32): Likewise.
3890         (vrsqrtsq_f32): Likewise.
3891         (vshl_s8): Likewise.
3892         (vshl_s16): Likewise.
3893         (vshl_s32): Likewise.
3894         (vshl_s64): Likewise.
3895         (vshl_u8): Likewise.
3896         (vshl_u16): Likewise.
3897         (vshl_u32): Likewise.
3898         (vshl_u64): Likewise.
3899         (vshlq_s8): Likewise.
3900         (vshlq_s16): Likewise.
3901         (vshlq_s32): Likewise.
3902         (vshlq_s64): Likewise.
3903         (vshlq_u8): Likewise.
3904         (vshlq_u16): Likewise.
3905         (vshlq_u32): Likewise.
3906         (vshlq_u64): Likewise.
3907         (vrshl_s8): Likewise.
3908         (vrshl_s16): Likewise.
3909         (vrshl_s32): Likewise.
3910         (vrshl_s64): Likewise.
3911         (vrshl_u8): Likewise.
3912         (vrshl_u16): Likewise.
3913         (vrshl_u32): Likewise.
3914         (vrshl_u64): Likewise.
3915         (vrshlq_s8): Likewise.
3916         (vrshlq_s16): Likewise.
3917         (vrshlq_s32): Likewise.
3918         (vrshlq_s64): Likewise.
3919         (vrshlq_u8): Likewise.
3920         (vrshlq_u16): Likewise.
3921         (vrshlq_u32): Likewise.
3922         (vrshlq_u64): Likewise.
3923         (vqshl_s8): Likewise.
3924         (vqshl_s16): Likewise.
3925         (vqshl_s32): Likewise.
3926         (vqshl_s64): Likewise.
3927         (vqshl_u8): Likewise.
3928         (vqshl_u16): Likewise.
3929         (vqshl_u32): Likewise.
3930         (vqshl_u64): Likewise.
3931         (vqshlq_s8): Likewise.
3932         (vqshlq_s16): Likewise.
3933         (vqshlq_s32): Likewise.
3934         (vqshlq_s64): Likewise.
3935         (vqshlq_u8): Likewise.
3936         (vqshlq_u16): Likewise.
3937         (vqshlq_u32): Likewise.
3938         (vqshlq_u64): Likewise.
3939         (vqrshl_s8): Likewise.
3940         (vqrshl_s16): Likewise.
3941         (vqrshl_s32): Likewise.
3942         (vqrshl_s64): Likewise.
3943         (vqrshl_u8): Likewise.
3944         (vqrshl_u16): Likewise.
3945         (vqrshl_u32): Likewise.
3946         (vqrshl_u64): Likewise.
3947         (vqrshlq_s8): Likewise.
3948         (vqrshlq_s16): Likewise.
3949         (vqrshlq_s32): Likewise.
3950         (vqrshlq_s64): Likewise.
3951         (vqrshlq_u8): Likewise.
3952         (vqrshlq_u16): Likewise.
3953         (vqrshlq_u32): Likewise.
3954         (vqrshlq_u64): Likewise.
3955         (vshr_n_s8): Likewise.
3956         (vshr_n_s16): Likewise.
3957         (vshr_n_s32): Likewise.
3958         (vshr_n_s64): Likewise.
3959         (vshr_n_u8): Likewise.
3960         (vshr_n_u16): Likewise.
3961         (vshr_n_u32): Likewise.
3962         (vshr_n_u64): Likewise.
3963         (vshrq_n_s8): Likewise.
3964         (vshrq_n_s16): Likewise.
3965         (vshrq_n_s32): Likewise.
3966         (vshrq_n_s64): Likewise.
3967         (vshrq_n_u8): Likewise.
3968         (vshrq_n_u16): Likewise.
3969         (vshrq_n_u32): Likewise.
3970         (vshrq_n_u64): Likewise.
3971         (vrshr_n_s8): Likewise.
3972         (vrshr_n_s16): Likewise.
3973         (vrshr_n_s32): Likewise.
3974         (vrshr_n_s64): Likewise.
3975         (vrshr_n_u8): Likewise.
3976         (vrshr_n_u16): Likewise.
3977         (vrshr_n_u32): Likewise.
3978         (vrshr_n_u64): Likewise.
3979         (vrshrq_n_s8): Likewise.
3980         (vrshrq_n_s16): Likewise.
3981         (vrshrq_n_s32): Likewise.
3982         (vrshrq_n_s64): Likewise.
3983         (vrshrq_n_u8): Likewise.
3984         (vrshrq_n_u16): Likewise.
3985         (vrshrq_n_u32): Likewise.
3986         (vrshrq_n_u64): Likewise.
3987         (vshrn_n_s16): Likewise.
3988         (vshrn_n_s32): Likewise.
3989         (vshrn_n_s64): Likewise.
3990         (vshrn_n_u16): Likewise.
3991         (vshrn_n_u32): Likewise.
3992         (vshrn_n_u64): Likewise.
3993         (vrshrn_n_s16): Likewise.
3994         (vrshrn_n_s32): Likewise.
3995         (vrshrn_n_s64): Likewise.
3996         (vrshrn_n_u16): Likewise.
3997         (vrshrn_n_u32): Likewise.
3998         (vrshrn_n_u64): Likewise.
3999         (vqshrn_n_s16): Likewise.
4000         (vqshrn_n_s32): Likewise.
4001         (vqshrn_n_s64): Likewise.
4002         (vqshrn_n_u16): Likewise.
4003         (vqshrn_n_u32): Likewise.
4004         (vqshrn_n_u64): Likewise.
4005         (vqrshrn_n_s16): Likewise.
4006         (vqrshrn_n_s32): Likewise.
4007         (vqrshrn_n_s64): Likewise.
4008         (vqrshrn_n_u16): Likewise.
4009         (vqrshrn_n_u32): Likewise.
4010         (vqrshrn_n_u64): Likewise.
4011         (vqshrun_n_s16): Likewise.
4012         (vqshrun_n_s32): Likewise.
4013         (vqshrun_n_s64): Likewise.
4014         (vqrshrun_n_s16): Likewise.
4015         (vqrshrun_n_s32): Likewise.
4016         (vqrshrun_n_s64): Likewise.
4017         (vshl_n_s8): Likewise.
4018         (vshl_n_s16): Likewise.
4019         (vshl_n_s32): Likewise.
4020         (vshl_n_s64): Likewise.
4021         (vshl_n_u8): Likewise.
4022         (vshl_n_u16): Likewise.
4023         (vshl_n_u32): Likewise.
4024         (vshl_n_u64): Likewise.
4025         (vshlq_n_s8): Likewise.
4026         (vshlq_n_s16): Likewise.
4027         (vshlq_n_s32): Likewise.
4028         (vshlq_n_s64): Likewise.
4029         (vshlq_n_u8): Likewise.
4030         (vshlq_n_u16): Likewise.
4031         (vshlq_n_u32): Likewise.
4032         (vshlq_n_u64): Likewise.
4033         (vqshl_n_s8): Likewise.
4034         (vqshl_n_s16): Likewise.
4035         (vqshl_n_s32): Likewise.
4036         (vqshl_n_s64): Likewise.
4037         (vqshl_n_u8): Likewise.
4038         (vqshl_n_u16): Likewise.
4039         (vqshl_n_u32): Likewise.
4040         (vqshl_n_u64): Likewise.
4041         (vqshlq_n_s8): Likewise.
4042         (vqshlq_n_s16): Likewise.
4043         (vqshlq_n_s32): Likewise.
4044         (vqshlq_n_s64): Likewise.
4045         (vqshlq_n_u8): Likewise.
4046         (vqshlq_n_u16): Likewise.
4047         (vqshlq_n_u32): Likewise.
4048         (vqshlq_n_u64): Likewise.
4049         (vqshlu_n_s8): Likewise.
4050         (vqshlu_n_s16): Likewise.
4051         (vqshlu_n_s32): Likewise.
4052         (vqshlu_n_s64): Likewise.
4053         (vqshluq_n_s8): Likewise.
4054         (vqshluq_n_s16): Likewise.
4055         (vqshluq_n_s32): Likewise.
4056         (vqshluq_n_s64): Likewise.
4057         (vshll_n_s8): Likewise.
4058         (vshll_n_s16): Likewise.
4059         (vshll_n_s32): Likewise.
4060         (vshll_n_u8): Likewise.
4061         (vshll_n_u16): Likewise.
4062         (vshll_n_u32): Likewise.
4063         (vsra_n_s8): Likewise.
4064         (vsra_n_s16): Likewise.
4065         (vsra_n_s32): Likewise.
4066         (vsra_n_s64): Likewise.
4067         (vsra_n_u8): Likewise.
4068         (vsra_n_u16): Likewise.
4069         (vsra_n_u32): Likewise.
4070         (vsra_n_u64): Likewise.
4071         (vsraq_n_s8): Likewise.
4072         (vsraq_n_s16): Likewise.
4073         (vsraq_n_s32): Likewise.
4074         (vsraq_n_s64): Likewise.
4075         (vsraq_n_u8): Likewise.
4076         (vsraq_n_u16): Likewise.
4077         (vsraq_n_u32): Likewise.
4078         (vsraq_n_u64): Likewise.
4079         (vrsra_n_s8): Likewise.
4080         (vrsra_n_s16): Likewise.
4081         (vrsra_n_s32): Likewise.
4082         (vrsra_n_s64): Likewise.
4083         (vrsra_n_u8): Likewise.
4084         (vrsra_n_u16): Likewise.
4085         (vrsra_n_u32): Likewise.
4086         (vrsra_n_u64): Likewise.
4087         (vrsraq_n_s8): Likewise.
4088         (vrsraq_n_s16): Likewise.
4089         (vrsraq_n_s32): Likewise.
4090         (vrsraq_n_s64): Likewise.
4091         (vrsraq_n_u8): Likewise.
4092         (vrsraq_n_u16): Likewise.
4093         (vrsraq_n_u32): Likewise.
4094         (vrsraq_n_u64): Likewise.
4095         (vabs_s8): Likewise.
4096         (vabs_s16): Likewise.
4097         (vabs_s32): Likewise.
4098         (vabs_f32): Likewise.
4099         (vabsq_s8): Likewise.
4100         (vabsq_s16): Likewise.
4101         (vabsq_s32): Likewise.
4102         (vabsq_f32): Likewise.
4103         (vqabs_s8): Likewise.
4104         (vqabs_s16): Likewise.
4105         (vqabs_s32): Likewise.
4106         (vqabsq_s8): Likewise.
4107         (vqabsq_s16): Likewise.
4108         (vqabsq_s32): Likewise.
4109         (vneg_s8): Likewise.
4110         (vneg_s16): Likewise.
4111         (vneg_s32): Likewise.
4112         (vneg_f32): Likewise.
4113         (vnegq_s8): Likewise.
4114         (vnegq_s16): Likewise.
4115         (vnegq_s32): Likewise.
4116         (vnegq_f32): Likewise.
4117         (vqneg_s8): Likewise.
4118         (vqneg_s16): Likewise.
4119         (vqneg_s32): Likewise.
4120         (vqnegq_s8): Likewise.
4121         (vqnegq_s16): Likewise.
4122         (vqnegq_s32): Likewise.
4123         (vmvn_s8): Likewise.
4124         (vmvn_s16): Likewise.
4125         (vmvn_s32): Likewise.
4126         (vmvn_u8): Likewise.
4127         (vmvn_u16): Likewise.
4128         (vmvn_u32): Likewise.
4129         (vmvn_p8): Likewise.
4130         (vmvnq_s8): Likewise.
4131         (vmvnq_s16): Likewise.
4132         (vmvnq_s32): Likewise.
4133         (vmvnq_u8): Likewise.
4134         (vmvnq_u16): Likewise.
4135         (vmvnq_u32): Likewise.
4136         (vmvnq_p8): Likewise.
4137         (vcls_s8): Likewise.
4138         (vcls_s16): Likewise.
4139         (vcls_s32): Likewise.
4140         (vclsq_s8): Likewise.
4141         (vclsq_s16): Likewise.
4142         (vclsq_s32): Likewise.
4143         (vclz_s8): Likewise.
4144         (vclz_s16): Likewise.
4145         (vclz_s32): Likewise.
4146         (vclz_u8): Likewise.
4147         (vclz_u16): Likewise.
4148         (vclz_u32): Likewise.
4149         (vclzq_s8): Likewise.
4150         (vclzq_s16): Likewise.
4151         (vclzq_s32): Likewise.
4152         (vclzq_u8): Likewise.
4153         (vclzq_u16): Likewise.
4154         (vclzq_u32): Likewise.
4155         (vcnt_s8): Likewise.
4156         (vcnt_u8): Likewise.
4157         (vcnt_p8): Likewise.
4158         (vcntq_s8): Likewise.
4159         (vcntq_u8): Likewise.
4160         (vcntq_p8): Likewise.
4161         (vrecpe_f32): Likewise.
4162         (vrecpe_u32): Likewise.
4163         (vrecpeq_f32): Likewise.
4164         (vrecpeq_u32): Likewise.
4165         (vrsqrte_f32): Likewise.
4166         (vrsqrte_u32): Likewise.
4167         (vrsqrteq_f32): Likewise.
4168         (vrsqrteq_u32): Likewise.
4169         (vget_lane_s8): Likewise.
4170         (vget_lane_s16): Likewise.
4171         (vget_lane_s32): Likewise.
4172         (vget_lane_f32): Likewise.
4173         (vget_lane_u8): Likewise.
4174         (vget_lane_u16): Likewise.
4175         (vget_lane_u32): Likewise.
4176         (vget_lane_p8): Likewise.
4177         (vget_lane_p16): Likewise.
4178         (vget_lane_s64): Likewise.
4179         (vget_lane_u64): Likewise.
4180         (vgetq_lane_s8): Likewise.
4181         (vgetq_lane_s16): Likewise.
4182         (vgetq_lane_s32): Likewise.
4183         (vgetq_lane_f32): Likewise.
4184         (vgetq_lane_u8): Likewise.
4185         (vgetq_lane_u16): Likewise.
4186         (vgetq_lane_u32): Likewise.
4187         (vgetq_lane_p8): Likewise.
4188         (vgetq_lane_p16): Likewise.
4189         (vgetq_lane_s64): Likewise.
4190         (vgetq_lane_u64): Likewise.
4191         (vcvt_s32_f32): Likewise.
4192         (vcvt_f32_s32): Likewise.
4193         (vcvt_f32_u32): Likewise.
4194         (vcvt_u32_f32): Likewise.
4195         (vcvtq_s32_f32): Likewise.
4196         (vcvtq_f32_s32): Likewise.
4197         (vcvtq_f32_u32): Likewise.
4198         (vcvtq_u32_f32): Likewise.
4199         (vcvt_n_s32_f32): Likewise.
4200         (vcvt_n_f32_s32): Likewise.
4201         (vcvt_n_f32_u32): Likewise.
4202         (vcvt_n_u32_f32): Likewise.
4203         (vcvtq_n_s32_f32): Likewise.
4204         (vcvtq_n_f32_s32): Likewise.
4205         (vcvtq_n_f32_u32): Likewise.
4206         (vcvtq_n_u32_f32): Likewise.
4207         (vmovn_s16): Likewise.
4208         (vmovn_s32): Likewise.
4209         (vmovn_s64): Likewise.
4210         (vmovn_u16): Likewise.
4211         (vmovn_u32): Likewise.
4212         (vmovn_u64): Likewise.
4213         (vqmovn_s16): Likewise.
4214         (vqmovn_s32): Likewise.
4215         (vqmovn_s64): Likewise.
4216         (vqmovn_u16): Likewise.
4217         (vqmovn_u32): Likewise.
4218         (vqmovn_u64): Likewise.
4219         (vqmovun_s16): Likewise.
4220         (vqmovun_s32): Likewise.
4221         (vqmovun_s64): Likewise.
4222         (vmovl_s8): Likewise.
4223         (vmovl_s16): Likewise.
4224         (vmovl_s32): Likewise.
4225         (vmovl_u8): Likewise.
4226         (vmovl_u16): Likewise.
4227         (vmovl_u32): Likewise.
4228         (vmul_lane_s16): Likewise.
4229         (vmul_lane_s32): Likewise.
4230         (vmul_lane_f32): Likewise.
4231         (vmul_lane_u16): Likewise.
4232         (vmul_lane_u32): Likewise.
4233         (vmulq_lane_s16): Likewise.
4234         (vmulq_lane_s32): Likewise.
4235         (vmulq_lane_f32): Likewise.
4236         (vmulq_lane_u16): Likewise.
4237         (vmulq_lane_u32): Likewise.
4238         (vmla_lane_s16): Likewise.
4239         (vmla_lane_s32): Likewise.
4240         (vmla_lane_f32): Likewise.
4241         (vmla_lane_u16): Likewise.
4242         (vmla_lane_u32): Likewise.
4243         (vmlaq_lane_s16): Likewise.
4244         (vmlaq_lane_s32): Likewise.
4245         (vmlaq_lane_f32): Likewise.
4246         (vmlaq_lane_u16): Likewise.
4247         (vmlaq_lane_u32): Likewise.
4248         (vmlal_lane_s16): Likewise.
4249         (vmlal_lane_s32): Likewise.
4250         (vmlal_lane_u16): Likewise.
4251         (vmlal_lane_u32): Likewise.
4252         (vqdmlal_lane_s16): Likewise.
4253         (vqdmlal_lane_s32): Likewise.
4254         (vmls_lane_s16): Likewise.
4255         (vmls_lane_s32): Likewise.
4256         (vmls_lane_f32): Likewise.
4257         (vmls_lane_u16): Likewise.
4258         (vmls_lane_u32): Likewise.
4259         (vmlsq_lane_s16): Likewise.
4260         (vmlsq_lane_s32): Likewise.
4261         (vmlsq_lane_f32): Likewise.
4262         (vmlsq_lane_u16): Likewise.
4263         (vmlsq_lane_u32): Likewise.
4264         (vmlsl_lane_s16): Likewise.
4265         (vmlsl_lane_s32): Likewise.
4266         (vmlsl_lane_u16): Likewise.
4267         (vmlsl_lane_u32): Likewise.
4268         (vqdmlsl_lane_s16): Likewise.
4269         (vqdmlsl_lane_s32): Likewise.
4270         (vmull_lane_s16): Likewise.
4271         (vmull_lane_s32): Likewise.
4272         (vmull_lane_u16): Likewise.
4273         (vmull_lane_u32): Likewise.
4274         (vqdmull_lane_s16): Likewise.
4275         (vqdmull_lane_s32): Likewise.
4276         (vqdmulhq_lane_s16): Likewise.
4277         (vqdmulhq_lane_s32): Likewise.
4278         (vqdmulh_lane_s16): Likewise.
4279         (vqdmulh_lane_s32): Likewise.
4280         (vqrdmulhq_lane_s16): Likewise.
4281         (vqrdmulhq_lane_s32): Likewise.
4282         (vqrdmulh_lane_s16): Likewise.
4283         (vqrdmulh_lane_s32): Likewise.
4284         (vmul_n_s16): Likewise.
4285         (vmul_n_s32): Likewise.
4286         (vmul_n_f32): Likewise.
4287         (vmul_n_u16): Likewise.
4288         (vmul_n_u32): Likewise.
4289         (vmulq_n_s16): Likewise.
4290         (vmulq_n_s32): Likewise.
4291         (vmulq_n_f32): Likewise.
4292         (vmulq_n_u16): Likewise.
4293         (vmulq_n_u32): Likewise.
4294         (vmull_n_s16): Likewise.
4295         (vmull_n_s32): Likewise.
4296         (vmull_n_u16): Likewise.
4297         (vmull_n_u32): Likewise.
4298         (vqdmull_n_s16): Likewise.
4299         (vqdmull_n_s32): Likewise.
4300         (vqdmulhq_n_s16): Likewise.
4301         (vqdmulhq_n_s32): Likewise.
4302         (vqdmulh_n_s16): Likewise.
4303         (vqdmulh_n_s32): Likewise.
4304         (vqrdmulhq_n_s16): Likewise.
4305         (vqrdmulhq_n_s32): Likewise.
4306         (vqrdmulh_n_s16): Likewise.
4307         (vqrdmulh_n_s32): Likewise.
4308         (vmla_n_s16): Likewise.
4309         (vmla_n_s32): Likewise.
4310         (vmla_n_f32): Likewise.
4311         (vmla_n_u16): Likewise.
4312         (vmla_n_u32): Likewise.
4313         (vmlaq_n_s16): Likewise.
4314         (vmlaq_n_s32): Likewise.
4315         (vmlaq_n_f32): Likewise.
4316         (vmlaq_n_u16): Likewise.
4317         (vmlaq_n_u32): Likewise.
4318         (vmlal_n_s16): Likewise.
4319         (vmlal_n_s32): Likewise.
4320         (vmlal_n_u16): Likewise.
4321         (vmlal_n_u32): Likewise.
4322         (vqdmlal_n_s16): Likewise.
4323         (vqdmlal_n_s32): Likewise.
4324         (vmls_n_s16): Likewise.
4325         (vmls_n_s32): Likewise.
4326         (vmls_n_f32): Likewise.
4327         (vmls_n_u16): Likewise.
4328         (vmls_n_u32): Likewise.
4329         (vmlsq_n_s16): Likewise.
4330         (vmlsq_n_s32): Likewise.
4331         (vmlsq_n_f32): Likewise.
4332         (vmlsq_n_u16): Likewise.
4333         (vmlsq_n_u32): Likewise.
4334         (vmlsl_n_s16): Likewise.
4335         (vmlsl_n_s32): Likewise.
4336         (vmlsl_n_u16): Likewise.
4337         (vmlsl_n_u32): Likewise.
4338         (vqdmlsl_n_s16): Likewise.
4339         (vqdmlsl_n_s32): Likewise.
4341 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4343         * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
4344         Add cost of alu.arith in simple SImode case.
4346 2014-11-18  Jiong Wang  <jiong.wang@arm.com>
4348         * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
4349         registers.
4351 2014-11-18  Marat Zakirov  <m.zakirov@samsung.com>
4353         * opts.c (finish_options): Disable aggressive opts for sanitizer.  
4354         (common_handle_option): Move code to finish_options.  
4356 2014-11-18  Yury Gribov  <y.gribov@samsung.com>
4358         PR sanitizer/63802
4359         * stor-layout.c (min_align_of_type): Respect user alignment
4360         more.
4362 2014-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
4364         * passes.c (remove_cgraph_node_from_order): New.
4365         (do_per_function_toporder): Register cgraph removal
4366         hook.
4368 2014-11-17  Terry Guo  <terry.guo@arm.com>
4370         * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
4371         * config/arm/arm.md (generic_sched): Exclude cortex-m7.
4372         (generic_vfp): Likewise.
4373         * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
4375 2014-11-17  Vladimir Makarov  <vmakarov@redhat.com>
4377         PR rtl-optimization/63906
4378         * lra-remat.c (operand_to_remat): Check SP and
4379         frame_pointer_required.
4381 2014-11-17  Mircea Namolaru  <mircea.namolaru@inria.fr>
4383         * doc/invoke.texi (floop-unroll-and-jam): Document
4384         (loop-unroll-jam-size): Likewise.
4385         (loop-unroll-jam-depth): Likewise.
4386         * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
4387         (getScheduleForBandList): Replaced unsafe union_map reuse.
4389 2014-11-17  Andrew Pinski  <apinski@cavium.com>
4391         * config/aarch64/thunderx.md: Remove copyright which should not
4392         have been there.
4394 2014-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
4395             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4397         * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
4398         Altivec style vector loads that ignore the bottom 3 bits of the
4399         address.
4400         (rs6000_debug_addr_mask): New function to print the addr_mask
4401         values if debugging.
4402         (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
4403         out addr_mask.
4404         (rs6000_setup_reg_addr_masks): Add support for Altivec style
4405         vector loads that ignore the bottom 3 bits of the address.  Allow
4406         pre-increment and pre-decrement on floating point, even if the
4407         -mupper-regs-{sf,df} options were used.
4408         (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
4409         -mupper-regs-df.  Add support for -mupper-regs-sf.  Rearrange code
4410         placement for direct move support.
4411         (rs6000_option_override_internal): Add checks for -mupper-regs-df
4412         requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
4413         If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
4414         depending on the underlying cpu.
4415         (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
4416         (rs6000_secondary_reload_toc_costs): Helper function to identify
4417         costs of a TOC load for secondary reload support.
4418         (rs6000_secondary_reload_memory): Helper function for secondary
4419         reload, to determine if a particular memory operation is directly
4420         handled by the hardware, or if it needs support from secondary
4421         reload to create a valid address.
4422         (rs6000_secondary_reload): Rework code, to be clearer.  If the
4423         appropriate -mupper-regs-{sf,df} is used, use FPR registers to
4424         reload scalar values, since the FPR registers have D-form
4425         addressing. Move most of the code handling memory to the function
4426         rs6000_secondary_reload_memory, and use the reg_addr structure to
4427         determine what type of address modes are supported.  Print more
4428         debug information if -mdebug=addr.
4429         (rs6000_secondary_reload_inner): Rework entire function to be more
4430         general.  Use the reg_addr bits to determine what type of
4431         addressing is supported.
4432         (rs6000_preferred_reload_class): Rework.  Move constant handling
4433         into a single place.  Prefer using FLOAT_REGS for scalar floating
4434         point.
4435         (rs6000_secondary_reload_class): Use a FPR register to move a
4436         value from an Altivec register to a GPR, and vice versa.  Move VSX
4437         handling above traditional floating point.
4439         * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
4440         Delete some spaces in the constraints.
4441         (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
4442         allow using FPR registers to load/store an Altivec register for
4443         scalar floating point types.
4444         (SF->SF move peephole2): Likewise.
4445         (DFmode splitter): Add a define_split to move floating point
4446         constants to the constant pool before register allocation.
4447         Normally constants are put into the pool immediately, but
4448         -ffast-math delays putting them into the constant pool for the
4449         reciprocal approximation support.
4450         (SFmode splitter): Likewise.
4452         * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
4453         (-mupper-regs-sf): Likewise.
4455         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4456         __UPPER_REGS_DF__ if -mupper-regs-df.  Define __UPPER_REGS_SF__ if
4457         -mupper-regs-sf.
4458         (-mupper-regs): New combination option that sets -mupper-regs-sf
4459         and -mupper-regs-df by default if the cpu supports the instructions.
4461         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4462         -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
4464         * config/rs6000/predicates.md (memory_fp_constant): New predicate
4465         to return true if the operand is a floating point constant that
4466         must be put into the constant pool, before register allocation
4467         occurs.
4469         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
4470         -mupper-regs-df by default.
4471         (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
4472         (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
4473         various -mcpu=... options.
4474         (power7 cpu): Enable -mupper-regs-df by default.
4476         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4477         -mupper-regs.
4479 2014-11-17  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4481         * ira-conflicts.c (build_conflict_bit_table): Add the current
4482         object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
4484 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
4486         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
4487         (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
4488         (devirtualization_time_bonus): Use it.
4489         (ipcp_discover_new_direct_edges): Likewise.
4490         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
4491         * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
4493 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
4495         * tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
4496         to optimization_default_node.
4498 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
4500         * cgraphunit.c (analyze_functions): Use opt_for_fn.
4501         * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
4503 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
4505         * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
4506         (cgraph_node::cannot_return_p): Likewise.
4507         (cgraph_edge::cannot_lead_to_return_p): Likewise.
4508         (cgraph_edge::maybe_hot_p): Likewise.
4510 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
4512         * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
4513         (optimize_function_for_size_p): Likewise.
4514         (probably_never_executed): Likewise; replace cfun by fun.
4516 2014-11-17  Alan Lawrence  <alan.lawrence@arm.com>
4518         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
4519         variant reading from memory and assembling to ld1.
4521         * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
4522         vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
4523         vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
4524         vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
4525         vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
4526         vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
4527         vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
4529 2014-11-17  Jason Merrill  <jason@redhat.com>
4531         * tree-inline.c (copy_fn): New.
4532         * tree-inline.h: Declare it.
4534 2014-11-17  Alan Lawrence  <alan.lawrence@arm.com>
4536         * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
4537         * config/aarch64/aarch64-simd-builtins.def (create): Remove.
4538         * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
4539         * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
4540         vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
4541         * config/aarch64/iterators.md (VD1): Remove.
4543 2014-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4545         * config/aarch64/aarch64-cores.def (cortex-a53): Remove
4546         AARCH64_FL_CRYPTO from feature flags.
4547         (cortex-a57): Likewise.
4548         (cortex-a57.cortex-a53): Likewise.
4550 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
4552         * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
4553         DECL_FUNCTION_SPECIFIC_TARGET.
4554         * i386.c (ix86_set_current_function): Handle explicit default options.
4556 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
4558         * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
4559         instead of BNDmode.
4560         (expand_builtin_mempcpy_with_bounds): Likewise.
4561         (expand_builtin_memset_with_bounds): Likewise.
4563 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
4565         * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
4566         ipa-ref.h, plugin-api.h.
4567         (get_string_length): Handle calls with bounds.
4568         (adjust_last_stmt): Likewise.
4569         (handle_builtin_strchr): Likewise.
4570         (handle_builtin_strcpy): Likewise.
4571         (handle_builtin_memcpy): Likewise.
4572         (handle_builtin_strcat): Likewise.
4574 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
4576         * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
4577         (chkp_get_nochk_fndecl): New.
4578         (chkp_optimize_string_function_calls): New.
4579         (chkp_opt_execute): Call chkp_optimize_string_function_calls.
4580         * tree-cfg.h (insert_cond_bb): New.
4581         * tree-cfg.c (insert_cond_bb): New.
4583 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
4585         * tree-core.h (built_in_class): Add builtin codes to be used
4586         by Pointer Bounds Checker for instrumented builtin functions.
4587         * tree-streamer-in.c: Include ipa-chkp.h.
4588         (streamer_get_builtin_tree): Created instrumented decl if
4589         required.
4590         * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
4591         * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
4592         function decls.
4593         (chkp_maybe_clone_builtin_fndecl): New.
4594         (chkp_maybe_create_clone): Support builtin function decls.
4595         (chkp_versioning): Clone builtin functions.
4596         * tree-chkp.c (chkp_instrument_normal_builtin): New.
4597         (chkp_add_bounds_to_call_stmt): Support builtin functions.
4598         (chkp_replace_function_pointer): Likewise.
4599         * builtins.c (expand_builtin_memcpy_args): New.
4600         (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
4601         (expand_builtin_memcpy_with_bounds): New.
4602         (expand_builtin_mempcpy_with_bounds): New.
4603         (expand_builtin_mempcpy_args): Add orig_exp arg. Support
4604         BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
4605         (expand_builtin_memset_with_bounds): New.
4606         (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
4607         (expand_builtin_with_bounds): New.
4608         * builtins.h (expand_builtin_with_bounds): New.
4609         * expr.c (expand_expr_real_1): Support instrumented builtin calls.
4611 2014-11-17  Dodji Seketeli  <dodji@redhat.com>
4613         * gimple.h (gimple_set_visited, gimple_visited_p)
4614         (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
4615         comments to these accessors.
4617 2014-11-17  Georg-Johann Lay  <avr@gjlay.de>
4619         * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
4620         Set avr_log_details to "all".
4622 2014-11-17  Richard Biener  <rguenther@suse.de>
4624         PR middle-end/63898
4625         * match.pd: Guard X / CST -> X * CST' transform against
4626         zero CST.
4628 2014-11-17  Terry Guo  <terry.guo@arm.com>
4630         * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
4631         format.
4633 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4635         * ifcvt.c (HAVE_cbranchcc4): Define.
4636         (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
4637         Use HAVE_cbranchcc4.
4639 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4641         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
4642         aarch64_convert_mode, aarch64_gen_ccmp_first,
4643         aarch64_gen_ccmp_next): New functions.
4644         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
4646 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4648         * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
4649         * aarch64.c (aarch64_nzcv_codes): New data.
4650         (aarch64_ccmp_mode_to_code): New.
4651         (aarch64_print_operand): Output nzcv.
4652         config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
4653         New patterns.
4654         (cstore<mode>4): Handle ccmp_cc_register.
4655         * config/aarch64/predicates.md (const0_operand): New.
4657 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4659         * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
4660         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
4661         extacted from aarch64_get_condition_code.
4662         (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
4663         config/aarch64/predicates.md (ccmp_cc_register): New predicate.
4665 014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4667         * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
4668         aarch64_ccmp_operand): New constraints.
4670 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4672         * Makefile.in: Add ccmp.o.
4673         * ccmp.c: New file.
4674         * ccmp.h: New file.
4675         * expr.c: include "ccmp.h"
4676         (expand_cond_expr_using_cmove): Handle VOIDmode.
4677         (expand_expr_real_1): Try to expand ccmp.
4679 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4681         * cfgexpand.c (expand_gimple_cond): Check ccmp.
4682         * expmed.c (emit_cstore): Make it global.
4683         * expmed.h: #include "insn-codes.h"
4684         (emit_cstore): New prototype.
4685         * expr.c (expand_operands): Make it global.
4686         * expr.h (expand_operands): New prototype.
4687         * optabs.c (get_rtx_code): Make it global.
4688         * optabs.h (get_rtx_code): New prototype.
4690 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4692         * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
4693         * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
4694         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
4696 2014-11-16  Patrick Palka  <ppalka@gcc.gnu.org>
4698         PR middle-end/63790
4699         * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
4700         Always combine comparisons or conversions from booleans.
4702 2014-11-16  Jan Hubicka  <hubicka@ucw.cz>
4704         * ipa-polymorphic-call.c
4705         (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
4706         (ipa_polymorphic_call_context::meet_speculation_with): New function.
4707         (ipa_polymorphic_call_context::combine_with): Handle types in construction
4708         better.
4709         (ipa_polymorphic_call_context::equal_to): Do not bother about useless
4710         speculation.
4711         (ipa_polymorphic_call_context::meet_with): New function.
4712         * cgraph.h (class ipa_polymorphic_call_context): Add
4713         meet_width, meet_speculation_with; constify speculation_consistent_p.
4714         * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine with incomming
4715         context.
4716         (propagate_context_accross_jump_function): Likewise; be more cureful.
4717         about set_contains_variable.
4718         (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
4719         (find_more_scalar_values_for_callers_subset): Fix.
4720         (find_more_contexts_for_caller_subset): Perform meet operation.
4722 2014-11-16  Jan Hubicka  <hubicka@ucw.cz>
4724         * passes.c (execute_one_pass): Do not apply all transforms prior
4725         every simple IPA pass.
4726         * cgraphunit.c: Do not include fibheap.h
4727         (expand_thunk): Use get_untransformed_body.
4728         (cgraph_node::expand): Likewise.
4729         * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
4730         * cgraph.c (release_function_body): Do not push cfun when CFG is not there.
4731         (cgraph_node::get_untransformed_body): Break out from ...
4732         (cgraph_node::get_body): ... here; add code to apply all transforms.
4733         * cgraph.h (cgraph_node): Add get_untransformed_body.
4734         * ipa-icf.c (sem_function::init): Use get_untransformed_body.
4735         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
4736         * tree-inline.c (expand_call_inline): LIkewise.
4737         * i386.c (ix86_reset_to_default_globals): Break out from ...
4738         (ix86_set_current_function): ... here;
4739         (ix86_reset_previous_fndecl): Use it.
4740         (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
4742 2014-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4744         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
4745         * doc/tm.texi: Regenerate.
4747 2014-11-16  Uros Bizjak  <ubizjak@gmail.com>
4749         * config/sh/sh.c: Do not include algorithm.
4750         (sh_emit_scc_to_t): Replace open-coded swap with std::swap
4751         to swap values.
4752         (sh_emit_compare_and_branch): Ditto.
4753         (sh_emit_compare_and_set): Ditto.
4754         * config/sh/sh.md (replacement peephole2): Ditto.
4755         (cstore4_media): Ditto.
4756         (*fmasf4): Ditto.
4758 2014-11-15  Vladimir Makarov  <vmakarov@redhat.com>
4760         * lra-remat.c (cand_transf_func): Process regno for
4761         rematerialization too.
4762         * lra.c (lra): Switch on rematerialization pass.
4764 2014-11-15  Vladimir Makarov  <vmakarov@redhat.com>
4766         * lra.c (lra): Switch off rematerialization pass.
4768 2014-11-15  Marc Glisse  <marc.glisse@inria.fr>
4770         * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
4771         _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
4772         instead of builtins.
4773         * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
4774         typedefs.
4775         (_mm_sqrt_sd): Fix comment.
4776         (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4777         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4778         _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4779         _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
4780         _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
4781         _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
4782         _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
4783         _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
4784         Use vector extensions instead of builtins.
4785         * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
4786         _mm_mullo_epi32): Likewise.
4787         * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
4788         New typedefs.
4789         (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
4790         _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
4791         Use vector extensions instead of builtins.
4792         * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
4793         _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
4794         _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
4795         _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
4796         _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
4797         _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
4798         _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
4799         * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
4800         New typedefs.
4801         (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
4802         _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
4803         _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
4804         _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
4805         _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
4806         _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
4807         _mm512_div_ps): Use vector extensions instead of builtins.
4808         * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
4809         _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
4810         * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
4811         * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
4812         Likewise.
4814 2014-11-15  Jan Hubicka <hubicka@ucw.cz>
4816         * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
4817         * lto-streamer.h (cl_optimization_stream_out, cl_optimization_stream_in): Declare.
4818         * optc-save-gen.awk: Generate cl_optimization LTO streaming and hashing routines.
4819         * opth-gen.awk: Add prototype of cl_optimization_hash.
4820         * tree-streamer-in.c (unpack_ts_optimization): Remove.
4821         (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
4822         * tree-streamer-out.c (pack_ts_optimization): Remove.
4823         (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
4825 2014-11-15  Mircea Namolaru  <mircea.namolaru@inria.fr>
4827         * common.opt (flag_loop_unroll_and_jam): New flag.
4828         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
4829         jam flag.
4830         (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
4831         * graphite-poly.h (struct poly_bb:map_sepclass): New field
4832         * graphite-poly.c (new_poly_bb): Initialization for new field.
4833         (apply_poly_transforms): Support for unroll and jam flag.
4834         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
4835         separation class.
4836         (generate_luj_sepclass_opt): Build the separation class option.
4837         (generate_luj_options): Set unroll and jam options.
4838         (set_options): Support for unroll and jam options.
4839         (scop_to_isl_ast): Likewise
4840         * graphite-optimize-isl.c (getPrevectorMap_full): New function for
4841         computing the separating class map.
4842         (optimize_isl): Support for the separating class map.
4843         (apply_schedule_map_to_scop): Likewise.
4844         (getScheduleMap): Likewise.
4845         (getScheduleForBand): Likewise.
4846         (getScheduleForBandList): Likewise.
4847         * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
4848         * toplev.c (process_options) Likewise.
4850 2014-11-15  Eric Botcazou  <ebotcazou@adacore.com>
4852         * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
4853         from...
4854         (replace_loop_annotate): ...here.  Call it on the header and on the
4855         latch block, if any.  Restore proper behavior of final cleanup.
4857 2014-11-15  Eric Botcazou  <ebotcazou@adacore.com>
4859         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
4860         for max-completely-peeled-insns limit.
4862 2014-11-14  Jan Hubicka  <hubicka@ucw.cz>
4864         * ipa-prop.h (ipa_known_type_data): Remove.
4865         (ipa_binfo_from_known_type_jfunc): Remove.
4867 2014-11-14  Andrew Pinski  <apinski@cavium.com>
4869         * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
4870         over to thunderx.
4871         * config/aarch64/aarch64.md: Include thunderx.md.
4872         (generic_sched): Set to no for thunderx.
4873         * config/aarch64/thunderx.md: New file.
4875 2014-11-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4877         * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
4878         tests for 0.0.
4880         * config/rs6000/vector.md (VEC_R): Move secondary reload support
4881         insns to rs6000.md from vector.md.
4882         (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
4883         (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
4884         (vec_reload_and_plus_<mptrsize>): Likewise.
4886         * config/rs6000/rs6000.md (Fa): New mode attribute to give
4887         constraint for the Altivec registers for a type.
4888         (RELOAD): New mode iterator for all of the types that have
4889         secondary reload address support to load up a base register.
4890         (extendsfdf2_fpr): Use correct constraint.
4891         (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
4892         instruction.
4893         (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
4894         Generate the non-VSX instruction if all registers were FPRs.  Do
4895         not use the patterns in vsx.md for scalar operations.
4896         (floatsi<mode>2_lfiwax_mem): Likewise.
4897         (floatunssi<mode>2_lfiwzx): Likewise.
4898         (floatunssi<mode>2_lfiwzx_mem): Likewise.
4899         (fix_trunc<mode>di2_fctidz): Likewise.
4900         (fixuns_trunc<mode>di2_fctiduz): Likewise.
4901         (fctiwz_<mode>): Likewise.
4902         (fctiwuz_<mode>): Likewise.
4903         (friz): Likewise.
4904         (floatdidf2_fpr): Likewise.
4905         (floatdidf2_mem): Likewise.
4906         (floatunsdidf2): Likewise.
4907         (floatunsdidf2_fcfidu): Likewise.
4908         (floatunsdidf2_mem): Likewise.
4909         (floatdisf2_fcfids): Likewise.
4910         (floatdisf2_mem): Likewise.
4911         (floatdisf2_internal1): Add explicit test for not FCFIDS to make
4912         it more obvious that the code is for pre-ISA 2.06 machines.
4913         (floatdisf2_internal2): Likewise.
4914         (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
4915         Generate the non-VSX instruction if all registers were FPRs.  Do
4916         not use the patterns in vsx.md for scalar operations.
4917         (floatunsdisf2_mem): Likewise.
4918         (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
4919         handlers here from vector.md, and expand the types we generate
4920         reload handlers for.
4921         (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
4922         (vec_reload_and_plus_<mptrsize>): Likewise.
4924         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
4925         vector forms of the instructions.  Move VSX scalar forms to
4926         rs6000.md, and add support for -mupper-regs-sf.
4927         (vsx_floatuns<VSi><mode>2): Likewise.
4928         (vsx_fix_trunc<mode><VSi>2): Likewise.
4929         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
4930         (vsx_float_fix_<mode>2): Delete DF version, rename to
4931         vsx_float_fix_v2df2.
4932         (vsx_float_fix_v2df2): Likewise.
4934 2014-11-14  Martin Jambor  <mjambor@suse.cz>
4936         * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
4937         (ipa_pass_through_data): Removed field type_preserved.
4938         (ipa_ancestor_jf_data): removed fields type and type_preserved.
4939         (ipa_jump_func): Removed field known_type.
4940         (ipa_get_jf_known_type_offset): Removed.
4941         (ipa_get_jf_known_type_base_type): Likewise.
4942         (ipa_get_jf_known_type_component_type): Likewise.
4943         (ipa_get_jf_ancestor_type): Likewise.
4944         * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
4945         (ipa_get_jf_pass_through_result): Likewise.
4946         (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
4947         (values_equal_for_ipcp_p): Removed BINFO handling.
4948         (ipa_get_indirect_edge_target_1): Updated comment.
4949         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
4950         of IPA_JF_KNOWN_TYPE jump functions.  Do not print removed fields.
4951         (ipa_set_jf_known_type): Removed.
4952         (ipa_set_jf_simple_pass_through): Do not set removed fields.  Update
4953         all callers.
4954         (ipa_set_jf_arith_pass_through): Likewise.
4955         (ipa_set_ancestor_jf): Likewise.
4956         (ipa_binfo_from_known_type_jfunc): Removed.
4957         (prop_type_change_info): Removed fields known_current_type and
4958         multiple_types_encountered.
4959         (extr_type_from_vtbl_ptr_store): Removed.
4960         (check_stmt_for_type_change): Do not attempt to identify changed type.
4961         (detect_type_change_from_memory_writes): Do not set the removed fields,
4962         always set jfunc to unknown.
4963         (compute_complex_assign_jump_func): Do not detect dynamic type change.
4964         (compute_complex_ancestor_jump_func): Likewise.
4965         (compute_known_type_jump_func): Removed.
4966         (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
4967         change.  Do not comute known type jump functions.
4968         (combine_known_type_and_ancestor_jfs): Removed.
4969         (update_jump_functions_after_inlining): Removed handling of
4970         IPA_JF_KNOWN_TYPE jump functions.  Do not set removed fields.
4971         (ipa_write_jump_function): Do not stream removed fields or known type
4972         jump functions.
4973         (ipa_read_jump_function): Likewise.
4975 2014-11-14  Vladimir Makarov  <vmakarov@redhat.com>
4977         * lra-int.h (lra_create_live_ranges): Add parameter.
4978         * lra-lives.c (temp_bitmap): Move higher.
4979         (initiate_live_solver): Move temp_bitmap initialization into
4980         lra_live_ranges_init.
4981         (finish_live_solver): Move temp_bitmap clearing into
4982         live_ranges_finish.
4983         (process_bb_lives): Add parameter.  Use it to control live info
4984         update and dead insn elimination.  Pass it to mark_regno_live and
4985         mark_regno_dead.
4986         (lra_create_live_ranges): Add parameter.  Pass it to
4987         process_bb_lives.
4988         (lra_live_ranges_init, lra_live_ranges_finish): See changes in
4989         initiate_live_solver and finish_live_solver.
4990         * lra-remat.c (do_remat): Process insn non-operand hard regs too.
4991         Use temp_bitmap to update avail_cands.
4992         * lra.c (lra): Pass new parameter to lra_create_live_ranges.  Move
4993         check with lra_need_for_spill_p after live range pass.  Switch on
4994         rematerialization pass.
4996 2014-11-14  Martin Jambor  <mjambor@suse.cz>
4998         * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
4999         agg_preserved flag instead.
5000         (ipa_get_jf_ancestor_type_preserved): Likewise.
5001         (ipa_node_params): Rename known_vals to known_csts, update all users.
5002         New field known_contexts.
5003         (ipa_get_indirect_edge_target): Update prototype.
5004         (ipcp_poly_ctx_values_pool): Declare.
5005         (ipa_context_from_jfunc): Likewise.
5006         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
5007         * cgraph.h (ipa_polymorphic_call_context): New method equal_to.  New
5008         parameter newline of method dump.
5009         * ipa-cp.c (ctxlat): New field.
5010         (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
5011         (ipcp_poly_ctx_values_pool):New variable.
5012         (ipa_get_poly_ctx_lat): New function.
5013         (print_ipcp_constant_value): New overloaded function for contexts.
5014         (print_all_lattices): Also print contexts.
5015         (ipa_topo_info): New field contexts;
5016         (set_all_contains_variable): Also set the flag in the context lattice.
5017         (initialize_node_lattices): Likewise for flag bottom.
5018         (ipa_get_jf_ancestor_result): Removed BINFO handling.
5019         (ipa_value_from_jfunc): Likewise.
5020         (ipa_context_from_jfunc): New function.
5021         (values_equal_for_ipcp_p): New overloaded function for contexts.
5022         (allocate_and_init_ipcp_value): Construct the value.
5023         (allocate_and_init_ipcp_value): New overloaded function for contexts.
5024         (propagate_scalar_accross_jump_function): Removed handling of
5025         KNOWN_TYPE jump functions.
5026         (propagate_context_accross_jump_function): New function.
5027         (propagate_constants_accross_call): Also propagate contexts.
5028         (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
5029         (ipa_get_indirect_edge_target): Likewise.
5030         (devirtualization_time_bonus): Likewise.
5031         (gather_context_independent_values): Create and populate known_contexts
5032         vector rather than known_binfos.
5033         (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
5034         (estimate_local_effects): Likewise.
5035         (add_all_node_vals_to_toposort): Also add contexts to teir topological
5036         sort.
5037         (ipcp_propagate_stage): Also propagate effects of contexts.
5038         (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
5039         ipa_get_indirect_edge_target_1.
5040         (cgraph_edge_brings_value_p): New overloaded function for contexts.
5041         (create_specialized_node): Work on contexts rather than BINFOs.
5042         (find_more_contexts_for_caller_subset): New function.
5043         (known_contexts_useful_p): New function.
5044         (copy_useful_known_contexts): Likewise.
5045         (modify_known_vectors_with_val): Likewise.
5046         (ipcp_val_in_agg_replacements_p): Renamed to
5047         ipcp_val_agg_replacement_ok_p, return true for all offset indicating
5048         non-aggregate.
5049         (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
5050         (decide_about_value): Work on contexts rather than BINFOs.
5051         (decide_whether_version_node): Likewise.
5052         (ipcp_driver): Initialize the new alloc pool.
5053         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
5054         printing of edge contexts.
5055         (ipa_set_ancestor_jf): Replace assert with conditional setting of
5056         type_preserved to false.
5057         (update_jump_functions_after_inlining): Use access function instead of
5058         reading agg_preserved directly.  Store combined context in the ancestor
5059         case.
5060         (try_make_edge_direct_virtual_call): Work on contexts rather than
5061         BINFOs.
5062         (update_indirect_edges_after_inlining): Get context from
5063         ipa_context_from_jfunc.
5064         (ipa_free_node_params_substructures): Free also known_contexts.
5065         (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
5066         (ipa_free_all_structures_after_iinln): Likewise.
5067         * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
5068         contexts rather than BINFOs.
5069         (estimate_edge_devirt_benefit): Likewise.
5070         (estimate_edge_size_and_time): Likewise.
5071         (estimate_calls_size_and_time): Likewise.
5072         (estimate_node_size_and_time): Likewise.
5073         (estimate_ipcp_clone_size_and_time): Likewise.
5074         (do_estimate_edge_time): Likewise.
5075         (do_estimate_edge_size): Likewise.
5076         (do_estimate_edge_hints): Likewise.
5077         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
5078         parameter newline, ouput newline only when it is set.
5079         (ipa_polymorphic_call_context::equal_to): New method.
5081 2014-11-14  Martin Jambor  <mjambor@suse.cz>
5083         * ipa-cp.c (ipcp_value_source): Converted to a template class.  All
5084         users converted to the same specialization as the using class/function
5085         or specialization on tree.
5086         (ipcp_value): Likewise.
5087         (ipcp_lattice): Likewise.
5088         (ipcp_agg_lattice): Now derived from tree specialization of
5089         ipcp_lattice.
5090         (values_topo): Moved to new class value_topo_info.
5091         (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
5092         Updated all callers.
5093         (print_lattice): Turned into ipcp_lattice::print.  Updated all
5094         callers.
5095         (value_topo_info): New class template.
5096         (ipa_topo_info): New field constants.  New constructor.
5097         (build_toporder_info): Do not clear stack_top, only checkign assert
5098         it.
5099         (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
5100         Updated all callers.
5101         (set_lattice_contains_variable): Turned into
5102         ipcp_lattice::set_contains_variable.  Updated all callers.
5103         (add_value_source): Turned into ipcp_value::add_source.  Updated all
5104         callers.
5105         (allocate_and_init_ipcp_value): New function.
5106         (add_value_to_lattice): Turned into ipcp_lattice::add_value.  Last
5107         parameter got default a value.  Updated all callers.
5108         (add_scalar_value_to_lattice): Removed, users converted to using
5109         ipcp_lattice::add_value with default value of the last parameter.
5110         (add_val_to_toposort): Turned to value_topo_info::add_val.  Updated
5111         all callers.
5112         (propagate_effects): Made method of value_topo_info.
5113         (cgraph_edge_brings_value_p): Now a template function.
5114         (get_info_about_necessary_edges): Likewise.
5115         (gather_edges_for_value): Likewise.
5116         (perhaps_add_new_callers): Likewise.
5117         (decide_about_value): Likewise.
5118         * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
5120 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
5122         * doc/install.texi (--with-diagnostics-color=): Document.
5124         * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
5125         IFN_GOMP_SIMD_LANE without lhs as useless.
5127         * ipa-pure-const.c (struct funct_state_d): Add can_free field.
5128         (varying_state): Add true for can_free.
5129         (check_call): For builtin or internal !nonfreeing_call_p set
5130         local->can_free.
5131         (check_stmt): For asm volatile and asm with "memory" set
5132         local->can_free.
5133         (analyze_function): Clear local->can_free initially, continue
5134         calling check_stmt until all flags are computed, dump can_free
5135         flag.
5136         (pure_const_write_summary): Write can_free flag.
5137         (pure_const_read_summary): Read it back.
5138         (propagate_pure_const): Propagate also can_free flag, set
5139         w->nonfreeing_fn if it is false after propagation.
5140         * cgraph.h (cgraph_node): Add nonfreeing_fn member.
5141         * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
5142         (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
5143         Also return true for IFN_ABNORMAL_DISPATCHER.
5144         * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
5145         * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
5146         (input_overwrite_node): Read it back.
5148 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
5149             Marek Polacek  <polacek@redhat.com>
5151         * sanopt.c: Include tree-ssa-operands.h.
5152         (struct sanopt_info): Add has_freeing_call_p,
5153         has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
5154         imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
5155         being_visited_p fields.
5156         (struct sanopt_ctx): Add asan_check_map field.
5157         (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
5158         maybe_optimize_asan_check_ifn): New functions.
5159         (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
5160         internal calls.
5161         (pass_sanopt::execute): Call sanopt_optimize even for
5162         -fsanitize=address.
5163         * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
5164         internal calls.
5166 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
5168         * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
5169         'if (extract_scalar_result)' to the only place that it is true.
5171 2014-11-14  H.J. Lu  <hongjiu.lu@intel.com>
5173         * config.gcc (default_gnu_indirect_function): Set to yes
5174         for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
5175         Android nor uclibc.
5177 2014-11-14  Felix Yang  <felix.yang@huawei.com>
5178             Jiji Jiang  <jiangjiji@huawei.com>
5180         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
5181         VALL mode iterator instead of VALLDI.
5184 2014-11-14  Jan Hubicka  <hubicka@ucw.cz>
5186         * optc-save-gen.awk: Output cl_target_option_eq,
5187         cl_target_option_hash, cl_target_option_stream_out,
5188         cl_target_option_stream_in functions.
5189         * opth-gen.awk: Output prototypes for
5190         cl_target_option_eq and cl_target_option_hash.
5191         * lto-streamer.h (cl_target_option_stream_out,
5192         cl_target_option_stream_in): Declare.
5193         * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
5194         (cl_option_hash_eq): Use cl_target_option_eq.
5195         * tree-streamer-in.c (unpack_value_fields): Stream in
5196         TREE_TARGET_OPTION.
5197         * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
5198         DECL_FUNCTION_SPECIFIC_TARGET.
5199         (hash_tree): Hash TREE_TARGET_OPTION; visit
5200         DECL_FUNCTION_SPECIFIC_TARGET.
5201         * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
5202         TS_TARGET_OPTION.
5203         (streamer_write_tree_body): Output TS_TARGET_OPTION.
5205 2014-11-14  Richard Biener  <rguenther@suse.de>
5207         * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
5208         valueization hook defaulted to no_follow_ssa_edges.
5209         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
5210         2nd valueization hook to gimple_simplify.
5211         * tree-ssa-ccp.c (valueize_op_1): New function to be
5212         used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
5213         (ccp_fold): Adjust.
5214         * tree-vrp.c (vrp_valueize_1): New function to be
5215         used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
5216         (vrp_visit_assignment_or_call): Adjust.
5218 2014-11-14  Marek Polacek  <polacek@redhat.com>
5220         * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
5221         that overflows when SANITIZE_SI_OVERFLOW is on.  Guard -(-A)
5222         folding with TYPE_OVERFLOW_SANITIZED.
5224 2014-11-14  Marek Polacek  <polacek@redhat.com>
5226         PR sanitizer/63839
5227         * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
5228         ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
5229         * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
5230         Define.
5231         * builtins.c (fold_builtin_0): Don't include ubsan.h.  Don't
5232         instrument BUILT_IN_UNREACHABLE here.
5233         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
5234         const.
5235         * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
5236         * tree-ssa-ccp.c (optimize_unreachable): Bail out if
5237         SANITIZE_UNREACHABLE.
5238         * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
5239         * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
5241 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
5243         * config/rs6000/vector.md (vec_shl_<mode>): Remove.
5244         (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
5246 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
5248         * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
5249         BYTES_BIG_ENDIAN.
5250         * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
5251         vect_create_epilog_for_reduction): Likewise.
5252         * doc/md.texi (vec_shr_m): Clarify direction of shifting.
5254 2014-11-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5256         PR target/63724
5257         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
5258         numerical immediate handling to...
5259         (aarch64_internal_mov_immediate): ...this. New.
5260         (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
5261         (aarch64_mov_operand_p): Relax predicate.
5262         * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
5263         (*movsi_aarch64): Turn into define_insn_and_split and new alternative
5264         for 'n'.
5265         (*movdi_aarch64): Likewise.
5267 2014-11-14  Richard Biener  <rguenther@suse.de>
5269         * match.pd: Implement more binary patterns exercised by
5270         fold_stmt.
5271         * fold-const.c (sing_bit_p): Export.
5272         (exact_inverse): Likewise.
5273         (fold_binary_loc): Remove patterns here.
5274         (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
5275         * fold-const.h (sing_bit_p): Declare.
5276         (exact_inverse): Likewise.
5278 2014-11-14  Marek Polacek  <polacek@redhat.com>
5280         * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
5282 2014-11-14  Richard Biener  <rguenther@suse.de>
5284         * genmatch.c (add_operator): Allow CONSTRUCTOR.
5285         (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
5286         (parser::parse_op): Allow to iterate over predicates.
5288 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
5290         * configure.ac (--with-diagnostics-color): New configure
5291         option, default to --with-diagnostics-color=auto.
5292         * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
5293         to determine -fdiagnostics-color= option default.
5294         * doc/invoke.texi (-fdiagnostics-color=): Document new
5295         default.
5296         * configure: Regenerated.
5297         * config.in: Regenerated.
5299 2014-11-13  Teresa Johnson  <tejohnson@google.com>
5301         PR tree-optimization/63841
5302         * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
5304 2014-11-14  Bin Cheng  <bin.cheng@arm.com>
5306         * timevar.def (TV_SCHED_FUSION): New time var.
5307         * passes.def (pass_sched_fusion): New pass.
5308         * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
5309         (extract_base_offset_in_addr, fusion_load_store): New.
5310         (arm_sched_fusion_priority): New.
5311         (arm_option_override): Disable scheduling fusion by default
5312         on non-armv7 processors or ldrd/strd isn't preferred.
5313         * sched-int.h (struct _haifa_insn_data): New field.
5314         (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
5315         * sched-rgn.c (rest_of_handle_sched_fusion): New.
5316         (pass_data_sched_fusion, pass_sched_fusion): New.
5317         (make_pass_sched_fusion): New.
5318         * haifa-sched.c (sched_fusion): New.
5319         (insn_cost): Handle sched_fusion.
5320         (priority): Handle sched_fusion by calling target hook.
5321         (enum rfs_decision): New enum value.
5322         (rfs_str): New element for RFS_FUSION.
5323         (rank_for_schedule): Support sched_fusion.
5324         (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
5325         (schedule_block, fix_tick_ready): Handle sched_fusion.
5326         * common.opt (flag_schedule_fusion): New.
5327         * tree-pass.h (make_pass_sched_fusion): New.
5328         * target.def (fusion_priority): New.
5329         * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
5330         * doc/tm.texi: Regenerated.
5331         * doc/invoke.texi (-fschedule-fusion): New.
5333 2014-11-13  Rong Xu  <xur@google.com>
5335         PR debug/63581
5336         * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
5337         footer, instead of unconditionally overwritten.
5339 2014-11-14  Martin Jambor  <mjambor@suse.cz>
5341         * cgraph.h (clear_outer_type): Make public.  Fix comment.
5342         * ipa-devirt.c (possible_polymorphic_call_targets): Use
5343         clear_outer_type when resetting the context.
5345 2014-11-13  Dominique Dhumieres  <dominiq@lps.ens.fr>
5347         PR bootstrap/63853
5348         * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
5349         * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
5351 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
5353         * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
5354         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
5355         * tree-inline.c (estimate_operator_cost): Likewise.
5356         * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
5357         Likewise.
5359         * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
5360         against VEC_RSHIFT_EXPR.
5362         * optabs.h (expand_vec_shift_expr): Remove.
5363         * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
5364         (expand_vec_shift_expr): Remove.
5365         * tree.def (VEC_RSHIFT_EXPR): Remove
5367 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
5369         * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
5370         (shift_amt_for_vec_perm_mask): New.
5371         (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
5372         and mask appropriate.
5374         * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
5375         (have_whole_vector_shift): New.
5376         (vect_model_reduction_cost): Call have_whole_vector_shift instead of
5377         looking for vec_shr_optab.
5378         (vect_create_epilog_for_reduction): Likewise; also rename local variable
5379         have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
5380         instead of VEC_RSHIFT_EXPRs.
5382         * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
5384 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
5386         * tree-vectorizer.h (vect_gen_perm_mask): Remove.
5387         (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
5389         tree_vec_data_refs.c (vect_permute_load_chain, vec_permute_store_chain,
5390         vec_shift_permute_load_chain): Replace vect_gen_perm_mask & assert
5391         with vect_gen_perm_mask_checked.
5393         * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
5394         Likewise.
5396         (vect_gen_perm_mask_checked): New.
5397         (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
5398         (vect_gen_perm_mask_any): ...this.
5400         (perm_mask_for_reverse): Call can_vec_perm_p and
5401         vect_gen_perm_mask_checked.
5403 2014-11-13  Felix Yang  <felix.yang@huawei.com>
5405         * ipa-utils.h: Fix typo in comments.
5406         * ipa-profile.c: Likewise.
5407         * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
5409 2014-11-13  Teresa Johnson  <tejohnson@google.com>
5411         PR tree-optimization/63841
5412         * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
5414 2014-11-13  Teresa Johnson  <tejohnson@google.com>
5416         PR tree-optimization/63841
5417         * tree.c (initializer_zerop): A clobber does not zero initialize.
5419 2014-11-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5421         * optabs.c (prepare_operand): Gracefully fail if the mode of X
5422         does not match the operand mode expected by the insn pattern.
5424 2014-11-13  Richard Biener  <rguenther@suse.de>
5426         * match.pd: Add tcc_comparison, inverted_tcc_comparison
5427         and inverted_tcc_comparison_with_nans operator lists.
5428         Use tcc_comparison in the truth_valued_p predicate definition.
5429         Restrict logical_inverted_value with bit_xor to integral types.
5430         Build a boolean true for simplifying x |^ !x because of
5431         vector types.  Implement patterns from forward_propagate_comparison
5432         * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
5433         (get_prop_dest_stmt): Likewise.
5434         (pass_forwprop::execute): Do not call it.
5435         * fold-const.c (fold_unary_loc): Remove the pattern here.
5437 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
5438             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5440         * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
5441         tmake_file.
5442         (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
5443         accelerator compiler.
5444         * config/i386/intelmic-mkoffload.c: New file.
5445         * config/i386/t-intelmic: Ditto.
5447 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
5448             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5449             Ilya Verbin  <ilya.verbin@intel.com>
5451         * common.opt (foffload, foffload-abi): New options.
5452         * config/i386/i386.c (ix86_offload_options): New static function.
5453         (TARGET_OFFLOAD_OPTIONS): Define.
5454         * coretypes.h (enum offload_abi): New enum.
5455         * doc/tm.texi: Regenerate.
5456         * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
5457         * gcc.c (offload_targets): New static variable.
5458         (handle_foffload_option): New static function.
5459         (driver_handle_option): Handle OPT_foffload_.
5460         (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
5461         according to offload_targets.
5462         * hooks.c (hook_charptr_void_null): New hook.
5463         * hooks.h (hook_charptr_void_null): Declare.
5464         * lto-opts.c: Include lto-section-names.h.
5465         (lto_write_options): Append options from target offload_options hook and
5466         store them to offload_lto section.  Do not store target-specific,
5467         driver and diagnostic options in offload_lto section.
5468         * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
5469         OPT_foffload_abi_.
5470         (append_compiler_options, append_linker_options)
5471         (append_offload_options): New static functions.
5472         (compile_offload_image): Add new arguments with options.
5473         Call append_compiler_options and append_offload_options.
5474         (compile_images_for_offload_targets): Add new arguments with options.
5475         (find_and_merge_options): New static function.
5476         (run_gcc): Outline options handling into the new functions:
5477         find_and_merge_options, append_compiler_options, append_linker_options.
5478         * opts.c (common_handle_option): Don't handle OPT_foffload_.
5479         Forbid OPT_foffload_abi_ for non-offload compiler.
5480         * target.def (offload_options): New target hook.
5482 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
5483             Bernd Schmidt  <bernds@codesourcery.com>
5484             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5485             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5487         * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
5488         (process_command): Tweak path construction for the possibility
5489         of being configured as an offload compiler.
5490         (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
5491         (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
5492         (driver::set_up_specs): Tweak path construction for the possibility of
5493         being configured as an offload compiler.
5494         * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
5495         (offload_names, offloadbegin, offloadend): New static variables.
5496         (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
5497         (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
5498         New static functions.
5499         (run_gcc): Determine whether offload sections are present.  If so, run
5500         compile_images_for_offload_targets and return the names of new generated
5501         objects to linker.  If there are offload sections, but no LTO sections,
5502         then return the copies of input objects without link-time recompilation.
5504 2014-11-13  Richard Biener  <rguenther@suse.de>
5506         * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
5508 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
5509             Bernd Schmidt  <bernds@codesourcery.com>
5510             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5511             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5513         * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
5514         * cgraphunit.c: Include omp-low.h.
5515         * doc/tm.texi: Regenerate.
5516         * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
5517         * gengtype.c (open_base_files): Add omp-low.h to ifiles.
5518         * lto-cgraph.c (output_offload_tables): New function.
5519         (input_offload_tables): Likewise.
5520         * lto-section-in.c (lto_section_name): Add "offload_table".
5521         * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
5522         (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
5523         * lto-streamer-out.c (lto_output): Call output_offload_tables.
5524         * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
5525         (output_offload_tables, input_offload_tables): Declare.
5526         * omp-low.c: Include common/common-target.h and lto-section-names.h.
5527         (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
5528         (expand_omp_target): Add child_fn into offload_funcs vector.
5529         (add_decls_addresses_to_decl_constructor): New function.
5530         (omp_finish_file): Likewise.
5531         * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
5532         * target.def (record_offload_symbol): New DEFHOOK.
5533         * toplev.c: Include omp-low.h.
5534         (compile_file): Call omp_finish_file.
5535         * varpool.c: Include omp-low.h.
5536         (varpool_node::get_create): Add decl into offload_vars vector.
5538 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
5539             Ilya Tocar  <ilya.tocar@intel.com>
5540             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5541             Bernd Schmidt  <bernds@codesourcery.com>
5543         * cgraph.c: Include context.h.
5544         (cgraph_node::create): Set node->offloadable and g->have_offload if
5545         decl have "omp declare target" attribute.
5546         * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
5547         * cgraphunit.c: Include lto-section-names.h.
5548         (ipa_passes): Call ipa_write_summaries if there is something to write to
5549         OFFLOAD_SECTION_NAME_PREFIX sections.
5550         (symbol_table::compile): Set flag_generate_lto if there is something to
5551         offload.
5552         Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
5553         * context.c (gcc::context::context): Initialize have_offload with false.
5554         * context.h (class context): Add have_offload flag.
5555         * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
5556         flag_generate_lto.
5557         (inline_free_summary): Always remove hooks.
5558         * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
5559         from non-offloadable nodes while streaming a node into offload section.
5560         (reachable_from_other_partition_p): Likewise.
5561         (select_what_to_stream): New function.
5562         (compute_ltrans_boundary): Do not call
5563         lto_set_symtab_encoder_in_partition if the node should not be streamed.
5564         * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
5565         (section_name_prefix): Declare.
5566         * lto-streamer.c (section_name_prefix): New variable.
5567         (lto_get_section_name): Use section_name_prefix instead of
5568         LTO_SECTION_NAME_PREFIX.
5569         * lto-streamer.h (select_what_to_stream): Declare.
5570         * omp-low.c: Include context.h.
5571         (is_targetreg_ctx): New function.
5572         (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
5573         (create_omp_child_function, check_omp_nesting_restrictions): Use new
5574         is_targetreg_ctx function.  Replace usage of "omp declare target"
5575         attribute with a cgraph_node flag offloadable.
5576         (expand_omp_target): Set mark_force_output for offloadable functions.
5577         (lower_omp_critical): Set offloadable flag for omp critical symbol.
5578         * passes.c (ipa_write_summaries): New argument offload_lto_mode.  Call
5579         select_what_to_stream.  Do not call lto_set_symtab_encoder_in_partition
5580         if the node should not be streamed out.
5581         * tree-pass.h (ipa_write_summaries): New bool argument.
5582         * varpool.c: Include context.h.
5583         (varpool_node::get_create): Set node->offloadable and g->have_offload if
5584         decl have "omp declare target" attribute.
5586 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
5587             Thomas Schwinge  <thomas@codesourcery.com>
5588             Ilya Verbin  <ilya.verbin@intel.com>
5589             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5591         * Makefile.in (real_target_noncanonical, accel_dir_suffix)
5592         (enable_as_accelerator): New variables substituted by configure.
5593         (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
5594         being configured as an offload compiler.
5595         (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
5596         ACCEL_DIR_SUFFIX.
5597         (install-cpp, install-common, install_driver, install-gcc-ar): Do not
5598         install for the offload compiler.
5599         * config.in: Regenerate.
5600         * configure: Regenerate.
5601         * configure.ac (real_target_noncanonical, accel_dir_suffix)
5602         (enable_as_accelerator): Compute new variables.
5603         (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
5604         (OFFLOAD_TARGETS): List of target names suitable for offloading.
5605         (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
5606         * doc/install.texi (Options specification): Document
5607         --enable-as-accelerator-for and --enable-offload-targets.
5609 2014-11-13  H.J. Lu  <hongjiu.lu@intel.com>
5611         PR tree-optimization/63828
5612         * ipa-polymorphic-call.c (possible_placement_new): Check
5613         POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
5615 2014-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5617         * doc/tm.texi.in (SELECT_CC_MODE): Update example.
5618         (REVERSIBLE_CC_MODE): Fix example.
5619         (REVERSE_CONDITION): Fix typo.
5620         * doc/tm.texi: Regenerate.
5622 2014-11-13  Tom de Vries  <tom@codesourcery.com>
5624         * omp-low.c (pass_data_expand_omp): Set properties_provided to
5625         PROP_gimple_eomp.
5626         (pass_expand_omp::gate): Remove function.  Move gate expression to ...
5627         (pass_expand_omp::execute): ... here, as new variable gate.  Add early
5628         exit if gate is false.
5629         (pass_data pass_data_expand_omp_ssa): New pass_data.
5630         (class pass_expand_omp_ssa): New pass.
5631         (make_pass_expand_omp_ssa): New function.
5632         * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
5633         instead of NEXT_PASS.
5634         (pass_expand_omp_ssa): Add after pass_parallelize_loops.
5635         * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
5636         (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
5637         and TODO_rebuild_alias yet.  Add TODO_update_ssa.  Set
5638         cfun->omp_expand_needed.
5639         * tree-pass.h: Add define PROP_gimple_eomp.
5640         (make_pass_expand_omp_ssa): Declare.
5642 2014-11-13  Marek Polacek  <polacek@redhat.com>
5644         * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
5645         * fold-const.c (fold_binary_loc): Use it.
5646         * match.pd: Likewise.
5648 2014-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
5650         * lra-lives.c (struct bb_data): Rename to ...
5651         (struct bb_data_pseudos): ... this.
5652         (initiate_live_solver): Update struct name.
5654 2014-11-13  Richard Biener  <rguenther@suse.de>
5656         * match.pd: Implement conditional expression patterns.
5657         * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
5658         them here.
5659         (combine_cond_exprs): Remove.
5660         (pass_forwprop::execute): Do not call combine_cond_exprs.
5661         * fold-const.c (fold_ternary_loc): Remove patterns here.
5662         (pedantic_omit_one_operand_loc): Remove.
5664 2014-12-13  Richard Biener  <rguenther@suse.de>
5666         PR middle-end/61559
5667         * match.pd: Implement bswap patterns for transforms checked by
5668         gcc.dg/builtin-bswap-8.c.
5670 2014-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5672         * lra.c (lra): Switch off rematerialization pass.
5674 2014-11-12  Vladimir Makarov  <vmakarov@redhat.com>
5676         * common.opt (flra-remat): New.
5677         * opts.c (default_options_table): Add entry for flra_remat.
5678         * timevar_def (TV_LRA_REMAT): New.
5679         * doc/invoke.texi (-flra-remat): Add description of the new
5680         option.
5681         * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
5682         lra-saves.c.  Add lra-remat.c.
5683         * Makefile.in (OBJS): Add lra-remat.o.
5684         * lra-remat.c: New file.
5685         * lra.c: Add info about the rematerialization pass in the top
5686         comment.
5687         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
5688         Process unallocatable regs too.
5689         (lra_constraint_new_insn_uid_start): Remove.
5690         (lra): Add code for calling rematerialization sub-pass.
5691         * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
5692         (lra_constrain_insn, lra_remat): New prototypes.
5693         (lra_eliminate_regs_1): Add parameter.
5694         * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
5695         Process unallocatable hard regs too.
5696         (process_bb_lives): Ditto.
5697         * lra-spills.c (remove_pseudos): Add argument to
5698         lra_eliminate_regs_1 call.
5699         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter.  Use it
5700         for sp offset calculation.
5701         (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
5702         (eliminate_regs_in_insn): Add parameter.  Use it for sp offset
5703         calculation.
5704         (process_insn_for_elimination): Add argument for
5705         eliminate_regs_in_insn call.
5706         * lra-constraints.c (get_equiv_with_elimination):  Add argument
5707         for lra_eliminate_regs_1 call.
5708         (process_addr_reg): Add parameter.  Use it.
5709         (process_address_1): Ditto.  Add argument for process_addr_reg
5710         call.
5711         (process_address): Ditto.
5712         (curr_insn_transform): Add parameter.  Use it.  Add argument for
5713         process_address calls.
5714         (lra_constrain_insn): New function.
5715         (lra_constraints): Add argument for curr_insn_transform call.
5717 2014-11-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5719         * opts-global.c (postpone_unknown_option_warning): Fix spelling.
5720         (print_ignored_options): Fix quoting.
5721         * opts.c (common_handle_option): Likewise.
5722         (set_debug_level): Likewise.
5723         * toplev.c (process_options): Likewise.
5725 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
5727         PR ipa/63838
5728         * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
5729         chain instead of node->indirect_calls.  Put !can_throw into
5730         conditions of all the loops.
5732 2014-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5734         * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
5735         set pic_offset_table_rtx.
5737 2014-11-12  Matthew Fortune  <matthew.fortune@imgtec.com>
5739         * common/config/mips/mips-common.c (mips_handle_option): Ensure
5740         that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
5741         * config.gcc (--with-fp-32): New option.
5742         (--with-odd-spreg-32): Likewise.
5743         * config.in (HAVE_AS_DOT_MODULE): New config define.
5744         * config/mips/mips-protos.h
5745         (mips_secondary_memory_needed): New prototype.
5746         (mips_hard_regno_caller_save_mode): Likewise.
5747         * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
5748         (mips_get_arg_info): Assert that V2SFmode is only handled specially
5749         with TARGET_PAIRED_SINGLE_FLOAT.
5750         (mips_return_mode_in_fpr_p): Likewise.
5751         (mips16_call_stub_mode_suffix): Likewise.
5752         (mips_get_reg_raw_mode): New static function.
5753         (mips_return_fpr_pair): O32 return values span two registers.
5754         (mips16_build_call_stub): Likewise.
5755         (mips_function_value_regno_p): Support both FP return registers.
5756         (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1.  Add
5757         specific cases for TARGET_FPXX to move via memory.
5758         (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
5759         than UNITS_PER_FPREG 'span' one register.
5760         (mips_dwarf_frame_reg_mode): New static function.
5761         (mips_file_start): Switch to using .module instead of .gnu_attribute.
5762         No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
5763         Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
5764         (mips_save_reg, mips_restore_reg): Always represent DFmode frame
5765         slots with two CFI directives even for O32 FP64.
5766         (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
5767         saving/restoring callee-saved registers.
5768         (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
5769         (mips_secondary_memory_needed): New function.
5770         (mips_option_override): ABI check for TARGET_FLOATXX.  Disable
5771         odd-numbered single-precision registers when using TARGET_FLOATXX.
5772         Implement -modd-spreg and defaults.
5773         (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
5774         callee-saved behaviour.
5775         (mips_hard_regno_caller_save_mode): Implement.
5776         (TARGET_GET_RAW_RESULT_MODE): Define target hook.
5777         (TARGET_GET_RAW_ARG_MODE): Define target hook.
5778         (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
5779         * config/mips/mips.h (TARGET_FLOAT32): New macro.
5780         (TARGET_O32_FP64A_ABI): Likewise.
5781         (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
5782         _MIPS_SPFPSET builtin define.
5783         (MIPS_FPXX_OPTION_SPEC): New macro.
5784         (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
5785         --with-odd-spreg-32=* to -m[no-]odd-spreg.
5786         (ISA_HAS_ODD_SPREG): New macro.
5787         (ISA_HAS_MXHC1): True for anything other than -mfp32.
5788         (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
5789         (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
5790         (HARD_REGNO_CALLER_SAVE_MODE): Define.  Implement O32 FPXX extension
5791         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
5792         (SECONDARY_MEMORY_NEEDED): Likewise.
5793         (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
5794         * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
5795         FP64A ABI extensions.
5796         (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
5797         TARGET_FLOAT64.
5798         * config/mips/mips.opt (mfpxx): New target option.
5799         (modd-spreg): Likewise.
5800         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
5801         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
5802         fp64 sysroot.
5803         * config/mips/t-mti-elf: Remove fp64 multilib.
5804         * config/mips/t-mti-linux: Likewise.
5805         * configure.ac: Detect .module support.
5806         * configure: Regenerate.
5807         * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
5808         * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
5809         options.
5811 2014-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5813         PR target/63815
5814         * config/i386/i386.c (ix86_init_large_pic_reg): New.  Extracted
5815         from ...
5816         (ix86_init_pic_reg): Here.  Use ix86_init_large_pic_reg.
5817         (x86_output_mi_thunk): Set PIC register to %r11.  Call
5818         ix86_init_large_pic_reg to initialize PIC register.
5820 2014-11-12  Kai Tietz  <ktietz@redhat.com>
5822         * sdbout.c (sdbout_symbol): Eliminate register only
5823         if decl isn't a global variable.
5825 2014-11-12  Alan Lawrence  <alan.lawrence@arm.com>
5827         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
5829         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
5830         qualifier_lane_index.
5831         (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
5832         (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
5833         (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
5835         (aarch64_types_getlane_qualifiers): Rename to...
5836         (aarch64_types_binop_imm_qualifiers): ...this.
5837         (TYPES_SHIFTIMM): Follow renaming.
5838         (TYPES_GETLANE): Rename to...
5839         (TYPE_GETREG): ...this.
5841         (aarch64_types_setlane_qualifiers): Rename to...
5842         (aarch64_type_ternop_imm_qualifiers): ...this.
5843         (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
5844         (TYPES_SETLANE): Follow renaming above, and rename self to...
5845         (TYPE_SETREG): ...this.
5847         (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
5848         (aarch64_simd_expand_args): Add range check and endianness-flip.
5850         (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
5852         * config/aarch64/aarch64-simd.md
5853         (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
5854         (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
5855         (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
5857         (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
5858         (aarch64_sq<r>dmulh_lane<mode>): ...this.
5860         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
5861         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
5863         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
5864         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
5866         (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
5867         (aarch64_sqdmull_lane<mode>): ...this.
5869         (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
5870         (aarch64_sqdmull_laneq<mode>): ...this.
5872         (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
5873         (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
5874         aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
5875         aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
5877         (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
5878         aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
5879         aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
5880         bounds check and lane flip.
5882         * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
5883         get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
5884         set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
5886         (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
5887         sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
5888         renaming of TERNOP_LANE to QUADOP_LANE.
5890         (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
5891         sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
5892         qualifiers to TERNOP_LANE.
5894 2014-11-12  Tobias Burnus  <burnus@net-b.de>
5896         * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
5897         * configure.ac: Ditto.
5898         * graphite-interchange.c: Remove HAVE_CLOOG block.
5899         * config.in: Regenerate.
5900         * configure: Regenerate.
5902 2014-11-12  Jiong Wang  <jiong.wang@arm.com>
5904         * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
5905         caller-save.
5906         (EPILOGUE_USES): Guard the check by epilogue_completed.
5907         * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
5908         LR.
5909         (aarch64_can_eliminate): Check LR_REGNUM liveness.
5911 2014-11-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5913         * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
5915 2014-11-12  Marek Polacek  <polacek@redhat.com>
5917         * fold-const.c (fold_binary_loc): Don't fold if the result
5918         is undefined.
5919         * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
5920         -(-A) -> A): Likewise.
5922 2014-11-12  Richard Biener  <rguenther@suse.de>
5924         Merge from match-and-simplify branch
5925         2014-11-04  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
5927         * genmatch.c (user_id): Add new member is_oper_list.
5928         (user_id::user_id): Add new default argument.
5929         (parser::parse_operator_list): New function.
5930         (parser::parse_for): Allow operator-list.
5931         (parser::parse_pattern): Call parser::parse_operator_list.
5932         (parser::parse_operation): Reject operator-list.
5933         * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
5935         2014-10-31  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
5937         * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
5939         2014-10-30  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
5941         * genmatch.c (parser::parse_op): Check if predicate is used in
5942         result operand.
5944         2014-10-29  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
5946         * genmatch.c (parser::parse_for): Make sure to have a valid
5947         token to report errors at.
5949         2014-10-28  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
5951         * genmatch.c (parser): Add new member parsing_match_operand.
5952         (parser::parse_operation): Check for conditional convert in result
5953         operand.
5954         (parser::parse_expr): Check for commutative operator in result operand.
5955         Check for :type in match operand.
5956         (parser::parse_simplify): Set/unset parsing_match_operand.
5957         (parser::parser): Initialize parsing_match_operand.
5959         2014-10-28  Richard Biener  <rguenther@suse.de>
5961         * genmatch.c (parser::parse_for): Properly check for already
5962         defined operators.
5964         2014-10-28  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
5966         * genmatch.c (error_cb): Adjust for printing warnings.
5967         (warning_at): New function.
5968         (user_id): Add new member used.
5969         (get_operator): Mark user_id as used.
5970         (parse_for): Warn for unused operators.
5972 2014-11-12  Richard Biener  <rguenther@suse.de>
5974         * match.pd: Implement simple complex operations cancelling.
5975         * fold-const.c (fold_unary_loc): Remove them here.
5977 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
5979         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
5980         Define __NO_MATH_ERRNO__ if -fno-math-errno.
5981         * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
5983 2014-11-12  Richard Biener  <rguenther@suse.de>
5985         * genmatch.c (::gen_transform): Add capture_info and
5986         expand_compares arguments.
5987         (struct expr): Add is_generic flag.
5988         (lower_cond): New functions lowering [VEC_]COND_EXPR
5989         conditions to a GENERIC and a GIMPLE variant.
5990         (lower): Call lower_cond.
5991         (cmp_operand): Also compare the is_generic flag.
5992         (capture_info::cinfo): Add cond_expr_cond_p flag.
5993         (capture_info::capture_info): Pass down whether the
5994         expression argument is a COND_EXPR condition.
5995         (capture_info::walk_match): Likewise, mark captures
5996         capturing COND_EXPR conditions with cond_expr_cond_p.
5997         (expr::gen_transform): Pass down whether we need to
5998         expand compares from COND_EXPR conditions.
5999         (capture::gen_transform): Expand compares substituted
6000         from COND_EXPR conditions into non-COND_EXPR conditions.
6001         (dt_operand::gen_gimple_expr): Handle explicitely marked
6002         GENERIC expressions as generic.
6003         (dt_simplify::gen): Pass whether we need to expand
6004         conditions to gen_transform.  Handle capture results
6005         which are from COND_EXPR conditions.
6006         (main): Pass gimple flag down to lower.
6008 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
6010         PR c/59708
6011         * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
6012         * builtins.c (fold_builtin_arith_overflow): New function.
6013         (fold_builtin_3): Use it.
6014         * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
6015         BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
6016         BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
6017         BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
6018         BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
6019         BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
6020         BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
6021         BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
6022         BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
6023         BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
6024         * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
6025         BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
6026         BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
6027         BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
6028         BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
6029         * expr.c (write_complex_part): Remove prototype, no longer static.
6030         * expr.h (write_complex_part): New prototype.
6031         * function.c (aggregate_value_p): For internal functions return 0.
6032         * gimple-fold.c (arith_overflowed_p): New functions.
6033         (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
6034         * gimple-fold.h (arith_overflowed_p): New prototype.
6035         * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
6036         (find_non_realpart_uses, maybe_optimize_arith_overflow): New
6037         functions.
6038         (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
6039         into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
6040         never used.
6041         * gimplify.c (gimplify_call_expr): Handle gimplification of
6042         internal calls with lhs.
6043         * internal-fn.c (get_range_pos_neg, get_min_precision,
6044         expand_arith_overflow_result_store): New functions.
6045         (ubsan_expand_si_overflow_addsub_check): Renamed to ...
6046         (expand_addsub_overflow): ... this.  Add LOC, LHS, ARG0, ARG1,
6047         UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
6048         Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
6049         (ubsan_expand_si_overflow_neg_check): Renamed to ...
6050         (expand_neg_overflow): ... this.  Add LOC, LHS, ARG1, IS_UBSAN
6051         arguments, remove STMT argument.  Handle SUB_OVERFLOW with
6052         0 as first argument expansion.
6053         (ubsan_expand_si_overflow_mul_check): Renamed to ...
6054         (expand_mul_overflow): ... this.  Add LOC, LHS, ARG0, ARG1,
6055         UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
6056         Handle MUL_OVERFLOW expansion.
6057         (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
6058         arguments for it.
6059         (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
6060         expand_neg_overflow, prepare arguments for it.
6061         (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
6062         for it.
6063         (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
6064         expand_MUL_OVERFLOW): New functions.
6065         * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
6066         internal functions.
6067         * tree-vrp.c (check_for_binary_op_overflow): New function.
6068         (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
6069         is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
6070         (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
6071         internal functions.
6072         * optabs.def (umulv4_optab): New optab.
6073         * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
6074         (*umulv<mode>4, *<u>mulvqi4): New define_insns.
6075         * doc/extend.texi (Integer Overflow Builtins): Document
6076         __builtin_*_overflow.
6078 2014-11-12  Richard Biener  <rguenther@suse.de>
6080         * genmatch.c (capture_info::capture_info): Add missing
6081         COND_EXPR handling.
6082         (capture_info::walk_match): Fix COND_EXPR handling.
6083         (capture_info::walk_result): Likewise.
6085 2014-11-12  Richard Biener  <rguenther@suse.de>
6087         PR middle-end/63821
6088         * match.pd: Add missing conversion to the -(T)-X pattern.
6090 2014-11-12  Richard Biener  <rguenther@suse.de>
6092         PR bootstrap/63819
6093         * hash-table.h: Include ggc.h also for generator programs.
6094         * genmatch.c (ggc_internal_cleared_alloc): Properly define
6095         using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
6097 2014-11-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6099         PR tree-optimization/63761
6100         * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
6101         rather than taking it as a parameter. Add some comments to explain the
6102         gsi_move_before in case of load and why canonicalization of bswap into
6103         a rotation is only done for 16bit values.
6104         (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
6105         refer to the statement just before cur_stmt. Ignore 16bit bswap that
6106         are already in canonical form. Adapt bswap_replace to removal of its
6107         gsi parameter.
6109 2014-11-12  Richard Sandiford  <richard.sandiford@arm.com>
6111         * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
6112         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
6113         (for_each_rtx_in_insn): Delete.
6114         (init_rtlanal): Remove initialization of non_rtx_starting_operands.
6115         * df-core.c: Remove reference to for_each_rtx in comment.
6117 2014-11-12  Tejas Belagod  <tejas.belagod@arm.com>
6119         * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
6120         arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
6121         * doc/aarch64-acle-intrinsics.texi: Remove.
6122         * doc/arm-acle-intrinsics.texi: Remove.
6123         * doc/arm-neon-intrinsics.texi: Remove.
6124         * doc/extend.texi: Consolidate sections AArch64 intrinsics,
6125         ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
6126         Extension section. Add references to public ACLE specification.
6128 2014-11-11  Patrick Palka  <ppalka@gcc.gnu.org>
6130         * tree-vrp.c (register_edge_assert_for_2): Change return type to
6131         void and adjust accordingly.
6132         (register_edge_assert_for_1): Likewise.
6133         (register_edge_assert_for): Likewise.
6134         (find_conditional_asserts): Likewise.
6135         (find_switch_asserts): Likewise.
6136         (find_assert_locations_1): Likewise.
6137         (find_assert_locations): Likewise.
6138         (insert_range_insertions): Inspect the need_assert_for bitmap.
6140 2014-11-11  Andrew Pinski  <apinski@cavium.com>
6142         Bug target/61997
6143         * config.gcc (aarch64*-*-*): Set target_gtfiles to include
6144         aarch64-builtins.c.
6145         * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
6146         at the end of the file.
6148 2014-11-11  Anthony Brandon  <anthony.brandon@gmail.com>
6149             Manuel López-Ibáñez  <manu@gcc.gnu.org>
6151         PR driver/36312
6152         * diagnostic-core.h: Add prototype for fatal_error.
6153         * diagnostic.c (fatal_error): New function fatal_error.
6154         * gcc.c (store_arg): Remove have_o_argbuf_index.
6155         (process_command): Check if input and output files are the same.
6156         * toplev.c (init_asm_output): Check if input and output files are
6157         the same.
6159 2014-11-11  Eric Botcazou  <ebotcazou@adacore.com>
6161         * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
6163 2014-11-11  Eric Botcazou  <ebotcazou@adacore.com>
6165         PR target/61535
6166         * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
6167         smaller than 8 bytes.
6168         (sparc_function_arg_1): Tweak.
6169         (sparc_function_value_1): Tweak.
6171 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
6173         * ChangeLog.jit: New.
6174         * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
6175         sphinx is installed, falling back to "texinfo" otherwise.
6176         (FULL_DRIVER_NAME): New variable, adapted from the
6177         install-driver target.  New target, a symlink within the builddir,
6178         linked to "xgcc", for use when running the JIT library from the
6179         builddir.
6180         (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
6181         (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
6182         out.
6183         * configure.ac (doc_build_sys): New variable, set to "sphinx" if
6184         sphinx is installed, falling back to "texinfo" otherwise.
6185         (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
6186         GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
6187         * configure: Regenerate.
6188         * doc/install.texi (--enable-host-shared): Specify that this is
6189         required when building libgccjit.
6190         (Tools/packages necessary for modifying GCC): Add Sphinx.
6191         * timevar.def (TV_JIT_REPLAY): New.
6192         (TV_ASSEMBLE): New.
6193         (TV_LINK): New.
6194         (TV_LOAD): New.
6196 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6198         PR target/63610
6199         * configure: Regenerate.
6201 2014-11-11  James Greenhalgh  <james.greenhalgh@arm.com>
6203         * config/aarch64/aarch64-simd.md
6204         (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
6205         (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
6206         are punning between float vectors and integer vectors.
6208 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
6210         * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
6211         open-coded swap with std::swap to swap values.
6212         (alpha_emit_setcc): Ditto.
6213         (alpha_emit_conditional_move): Ditto.
6214         (alpha_split_tmode_pair): Ditto.
6216 2014-11-11  Evgeny Stupachenko  <evstupac@gmail.com>
6218         * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
6219         permutations on power of 2 cases.
6221 2014-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6223         * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
6224         (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
6226 2014-11-11  Richard Biener  <rguenther@suse.de>
6228         * tree-core.h (pedantic_lvalues): Remove.
6229         * fold-const.c (pedantic_lvalues): Likewise.
6230         (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
6232 2014-11-11  Martin Liska  <mliska@suse.cz>
6234         PR ipa/63622
6235         PR ipa/63795
6236         * ipa-icf.c (sem_function::merge): Add new target symbol alias
6237         support guard.
6238         (sem_variable::merge): Likewise.
6239         * ipa-icf.h (target_supports_symbol_aliases_p): New function.
6241 2014-11-11  Richard Biener  <rguenther@suse.de>
6243         * match.pd: Implement patterns from associate_plusminus
6244         and factor in differences from the fold-const.c implementation.
6245         * fold-const.c (fold_binary_loc): Remove patterns here.
6246         * tree-ssa-forwprop.c (associate_plusminus): Remove.
6247         (pass_forwprop::execute): Don't call it.
6248         * tree.c (tree_nop_conversion_p): New function, factored
6249         from tree_nop_conversion.
6250         * tree.h (tree_nop_conversion_p): Declare.
6252 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
6254         * system.h: Include algorithm and utility.
6255         * rtl.h: Do not include utility here.
6256         * wide-int.h: Ditto.
6257         * tree-vect-data-refs.c (swap): Remove template.
6258         (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
6260 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6262         PR bootstrap/63699
6263         PR bootstrap/63750
6264         * system.h: Include <string> before "safe-ctype.h"
6265         * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
6266         calls to min/max with wi namespace.
6267         * ipa-chkp.c: Don't include <string>.
6269 2014-11-11  Terry Guo  <terry.guo@arm.com>
6271         * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
6272         * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
6273         registers.
6274         (*thumb1_movhf): Likewise.
6276 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
6278         * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
6279         instead of INT64_MAX.
6281 2014-11-11  Tobias Burnus  <burnus@net-b.de>
6283         * doc/install.texi (Prerequisites): Remove CLooG.
6285 2014-11-10  Trevor Saunders  <tsaunders@mozilla.com>
6287         * ipa-inline.c (edge_badness): Adjust.
6288         (inline_small_functions): Likewise.
6289         * predict.c (propagate_freq): Likewise.
6290         (estimate_bb_frequencies): Likewise.
6291         * sreal.c (sreal::dump): Rename from dump_sreal.
6292         (debug): Adjust.
6293         (copy): Remove function.
6294         (sreal::shift_right): Rename from sreal_sift_right.
6295         (sreal::normalize): Rename from normalize.
6296         (sreal_init): Remove function.
6297         (sreal::to_int): Rename from sreal_to_int.
6298         (sreal_compare): Remove function.
6299         (sreal::operator+): Rename from sreal_add.
6300         (sreal::operator-): Rename from sreal_sub.
6301         (sreal::operator*): Rename from sreal_mul.
6302         (sreal::operator/): Rename from sreal_div.
6303         * sreal.h (class sreal): Adjust.
6304         (inline sreal &operator+=): New operator.
6305         (inline sreal &operator-=): Likewise.
6306         (inline sreal &operator/=): Likewise.
6307         (inline sreal &operator*=): Likewise.
6308         (inline bool operator!=): Likewise.
6309         (inline bool operator>): Likewise.
6310         (inline bool operator<=): Likewise.
6311         (inline bool operator>=): Likewise.
6313 2014-11-11  Bin Cheng  <bin.cheng@arm.com>
6315         * sched-deps.c (sched_analyze_1): Check pending list if it is not
6316         less than MAX_PENDING_LIST_LENGTH.
6317         (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
6319 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
6321         * config/i386/i386.c (ix86_decompose_address): Replace open-coded
6322         swap with std::swap to swap values.
6323         (ix86_fixup_binary_operands): Ditto.
6324         (ix86_binary_operator_ok): Ditto.
6325         (ix86_prepare_fp_compare_args): Ditto.
6326         (ix86_expand_branch): Ditto.
6327         (ix86_expand_carry_flag_compare): Ditto.
6328         (ix86_expand_int_movcc): Ditto.
6329         (ix86_prepare_sse_fp_compare_args): Ditto.
6330         (ix86_expand_sse_fp_minmax): Ditto.
6331         (ix86_expand_int_vcond): Ditto.
6332         (ix86_split_long_move): Ditto.
6333         (ix86_expand_sse_comi): Ditto.
6334         (ix86_expand_sse_compare_and_jump): Ditto.
6335         (ix86_expand_sse_compare_mask): Ditto.
6336         * config/i386/i386.md (*add<mode>_1): Ditto.
6337         (addsi_1_zext): Ditto.
6338         (*addhi_1): Ditto.
6339         (*addqi_1): Ditto.
6340         (*add<mode>_2): Ditto.
6341         (*addsi_2_zext): Ditto.
6342         (*add<mode>_3): Ditto.
6343         (*addsi_3_zext): Ditto.
6344         (*add<mode>_5): Ditto.
6345         (absneg splitter): Ditto.
6347 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
6349         Revert:
6350         2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
6352         PR target/63620
6353         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
6354         * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
6355         * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
6356         be reloaded through memory.
6357         (*pushxf): Ditto.
6358         (*pushdf): Ditto.
6360 2014-11-11  Jakub Jelinek  <jakub@redhat.com>
6361             Martin Liska  <mliska@suse.cz>
6363         * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
6364         (func_checker::compare_gimple_call): Compare gimple_call_fn,
6365         gimple_call_chain, gimple_call_fntype and call flags.
6367 2014-11-10  Vladimir Makarov  <vmakarov@redhat.com>
6369         PR rtl-optimization/63620
6370         PR rtl-optimization/63799
6371         * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
6372         and setting PIC pseudo insns.
6373         (lra_create_live_ranges): Fix the typo.
6375 2014-11-10  Patrick Palka  <ppalka@gcc.gnu.org>
6377         PR middle-end/63748
6378         * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
6379         SSA copies whose source and destination names both occur in
6380         abnormal PHIs.
6382 2014-11-10 Roman Gareev  <gareevroman@gmail.com>
6384         * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
6385         * common.opt: Remove using of fgraphite-code-generator flag.
6386         * flag-types.h: Likewise.
6387         * graphite.c: Remove using of CLooG.
6388         * graphite-blocking.c: Likewise.
6389         * graphite-dependences.c: Likewise.
6390         * graphite-poly.c: Likewise.
6391         * graphite-poly.h: Likewise.
6392         * graphite-scop-detection.c: Likewise.
6393         * graphite-sese-to-poly.c: Likewise.
6394         * graphite-clast-to-gimple.c: Removed.
6395         * graphite-clast-to-gimple.h: Likewise.
6396         * graphite-htab.h: Likewise.
6398 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
6400         * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
6401         Add.
6403 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
6405         * config/frv/frv.c (frv_io_handle_use_1): Delete.
6406         (frv_io_handle_use): Use find_all_hard_regs.
6408 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
6410         * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
6411         than an rtx *.  Take the regstate_t directly rather than via a void *.
6412         Return a bool rather than an int.  Iterate over all subrtxes here.
6413         (frv_registers_conflict_p): Update accordingly.
6415 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
6417         * config/frv/frv.c: Include rtl-iter.h.
6418         (frv_acc_group_1): Delete.
6419         (frv_acc_group): Use FOR_EACH_SUBRTX.
6421 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
6423         * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
6424         (frv_clear_registers_used): Delete.
6425         (frv_ifcvt_modify_tests): Use find_all_hard_regs.
6427 2014-11-10  Jan Hubicka  <hubicka@ucw.cz>
6429         PR bootstrap/63573
6430         * calls.c (initialize_argument_information): When emitting thunk call
6431         use original memory placement of the argument.
6433 2014-11-10  Renlin Li  <renlin.li@arm.com>
6435         PR middle-end/61529
6436         * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
6438 2014-11-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6440         * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
6441         bswaphi if available.
6443 2014-11-10  Bernd Schmidt  <bernds@codesourcery.com>
6445         * config/nvptx/nvptx.c: New file.
6446         * config/nvptx/nvptx.h: New file.
6447         * config/nvptx/nvptx-protos.h: New file.
6448         * config/nvptx/nvptx.md: New file.
6449         * config/nvptx/t-nvptx: New file.
6450         * config/nvptx/nvptx.opt: New file.
6451         * common/config/nvptx/nvptx-common.c: New file.
6452         * config.gcc: Handle nvptx-*-*.
6454 2014-11-10  Richard Biener  <rguenther@suse.de>
6456         * tree-ssa-operands.c (finalize_ssa_uses): Properly put
6457         released operands on the free list.
6459 2014-11-10  Richard Biener  <rguenther@suse.de>
6461         * match.pd: Implement pattern from simplify_mult.
6462         * tree-ssa-forwprop.c (simplify_mult): Remove.
6463         (pass_forwprop::execute): Do not call simplify_mult.
6465 2014-11-10  Richard Biener  <rguenther@suse.de>
6467         PR tree-optimization/63800
6468         * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
6469         we can restore the previous availability in after_dom_children.
6470         (eliminate_dom_walker::after_dom_children): Restore
6471         previous availability.
6473 2014-11-10  Richard Biener  <rguenther@suse.de>
6475         PR middle-end/63798
6476         * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
6477         properly treat the embedded multiplication as commutative
6478         when looking for feeding negates.
6480 2014-11-10  Joern Rennecke  <joern.rennecke@embecosm.com>
6482         * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
6484 2014-11-10  Martin Liska  <mliska@suse.cz>
6486         * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
6487         for the test because of default char signedness
6488         on powerpc64 target.
6490 2014-11-10  Richard Biener  <rguenther@suse.de>
6492         * match.pd: Implement pattern from simplify_conversion_from_bitmask.
6493         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
6494         (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
6496 2014-11-10  Richard Biener  <rguenther@suse.de>
6498         * match.pd: Move rest of the conversion combining patterns
6499         from tree-ssa-forwprop.c.
6500         * tree-ssa-forwprop.c (combine_conversions): Remove.
6501         (pass_forwprop::execute): Do not call it.
6503 2014-11-10  Eric Botcazou  <ebotcazou@adacore.com>
6505         * gimple-low.c (lower_function_body): Clear the location of the first
6506         inserted representative return if it also fills in for the fallthru.
6508 2014-11-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
6510         * tree-if-conv.c (add_to_predicate_list): Check unconditionally
6511         that bb is always executed to early exit. Use predicate of
6512         cd-equivalent block for join blocks if it exists.
6513         (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
6514         (tree_if_conversion): Free post-dominance information.
6516 2014-11-09  Jason Merrill  <jason@redhat.com>
6518         * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
6519         * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
6520         (_mm_mask_cvtusepi32_storeu_epi16)
6521         (_mm_mask_cvtsepi64_storeu_epi32): Return void.
6523 2014-11-09  Joern Rennecke  <joern.rennecke@embecosm.com>
6525         * config/avr/predicates.md (low_io_address_operand): Fix typo.
6527 2014-11-09  Vladimir Makarov  <vmakarov@redhat.com>
6529         PR rtl-optimization/63620
6530         * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
6531         name.  Move to lra.c.  Make it external.
6532         (substitute_pseudo_within_insn): Ditto.
6533         (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
6534         the new names.
6535         (undo_optional_reloads): Ditto.
6536         * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
6537         New prototypes.
6538         (lra_substitute_pseudo_within_insn): Ditto.
6539         * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
6540         (mark_regno_live): Add parameter.  Update bb_gen_pseudos.
6541         (mark_regno_dead): Add parameter.  Update bb_gen_pseudos and
6542         bb_killed_pseudos.
6543         (struct bb_data, bb_data_t, bb_data): New.
6544         (get_bb_data, get_bb_data_by_index): Ditto.
6545         (all_hard_regs_bitmap): New.
6546         (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
6547         (initiate_live_solver, finish_live_solver): New.
6548         (process_bb_lives): Change return type.  Add code updating local
6549         live data and removing dead insns.  Pass new argument to
6550         mark_regno_live and mark_regno_dead.  Check changing bb pseudo
6551         life info.  Return the result.
6552         (lra_create_live_ranges): Add code to do global pseudo live
6553         analysis.
6554         (lra_live_ranges_init): Call initiate_live_solver.
6555         (lra_live_ranges_finish): Call finish_live_solver.
6556         * lra.c (lra_dump_bitmap_with_title): New.
6557         (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
6558         from lra-constraints.c.
6560 2014-11-09  Richard Biener  <rguenther@suse.de>
6562         * match.pd: Add patterns convering two conversions in a row
6563         from fold-const.c.
6564         * fold-const.c (fold_unary_loc): Remove them here.
6565         * tree-ssa-forwprop.c (combine_conversions): Likewise.
6566         * genmatch.c (dt_node::gen_kids): Check whether we may
6567         follow SSA use-def chains.
6569 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6571         * config/aarch64/aarch64.c: Include rtl-iter.h.
6572         (aarch64_tls_operand_p_1): Delete.
6573         (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
6575 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6577         * config/arm/arm.c (arm_note_pic_base): Delete.
6578         (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
6580 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6582         * config/arm/arm.c: Include rtl-iter.h.
6583         (arm_tls_referenced_p_1): Delete.
6584         (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
6586 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6588         * config/arm/aarch-common.c: Include rtl-iter.h.
6589         (search_term, arm_find_sub_rtx_with_search_term): Delete.
6590         (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
6591         (arm_get_set_operands): Pass the insn pattern rather than the
6592         insn itself.
6593         (arm_no_early_store_addr_dep): Likewise.
6595 2014-11-08  Eric Botcazou  <ebotcazou@adacore.com>
6597         * config/arm/arm.c (arm_set_return_address): Mark the store as frame
6598         related, if any.
6599         (thumb_set_return_address): Likewise.
6601 2014-11-07  Jeff Law  <law@redhat.com>
6603         PR tree-optimization/61515
6604         * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
6605         stack rather than looking at every SSA_NAME's value.
6607 2014-11-07  Richard Biener  <rguenther@suse.de>
6609         PR tree-optimization/63605
6610         * fold-const.c (fold_binary_loc): Properly use element_precision
6611         for types that may not be scalar.
6613 2014-11-07  Evgeny Stupachenko  <evstupac@gmail.com>
6615         PR target/63534
6616         * config/i386/i386.md (builtin_setjmp_receiver): Use
6617         pic_offset_table_rtx for PIC register.
6618         (nonlocal_goto_receiver): Delete.
6620 2014-11-07  Daniel Hellstrom  <daniel@gaisler.com>
6622         * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
6623         * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
6625 2014-11-07  Martin Liska  <mliska@suse.cz>
6627         PR ipa/63580
6628         * cgraphunit.c (cgraph_node::create_wrapper):
6629         TREE_ADDRESSABLE is set to false for a newly created thunk.
6631 2014-11-07  Martin Liska  <mliska@suse.cz>
6633         PR ipa/63747
6634         * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
6635         Missing checking for CASE_LOW and CASE_HIGH added.
6637 2014-11-07  Martin Liska  <mliska@suse.cz>
6639         PR ipa/63595
6640         * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
6641         is correctly handled for thunks created by IPA ICF.
6643 2014-11-07  Jiong Wang  <jiong.wang@arm.com>
6644 2014-11-07  Richard Biener  <rguenther@suse.de>
6646         PR tree-optimization/63676
6647         * gimple-fold.c (fold_gimple_assign): Do not fold node when
6648         TREE_CLOBBER_P be true.
6650 2014-11-07  Richard Biener  <rguenther@suse.de>
6652         PR middle-end/63770
6653         * match.pd: Guard conflicting GENERIC pattern properly.
6655 2014-11-07  Richard Biener  <rguenther@suse.de>
6657         * match.pd: Add patterns for POINTER_PLUS_EXPR association
6658         and special patterns from tree-ssa-forwprop.c
6659         * fold-const.c (fold_binary_loc): Remove them here.
6660         * tree-ssa-forwprop.c (to_purge): New global bitmap.
6661         (fwprop_set_lattice_val): New function.
6662         (fwprop_invalidate_lattice): Likewise.
6663         (remove_prop_source_from_use): Instead of purging dead EH
6664         edges record blocks to do that in to_purge.
6665         (tidy_after_forward_propagate_addr): Likewise.
6666         (forward_propagate_addr_expr): Invalidate the lattice for
6667         SSA names we release.
6668         (simplify_conversion_from_bitmask): Likewise.
6669         (simplify_builtin_call): Likewise.
6670         (associate_pointerplus_align): Remove.
6671         (associate_pointerplus_diff): Likewise.
6672         (associate_pointerplus): Likewise.
6673         (fold_all_stmts): Merge with ...
6674         (pass_forwprop::execute): ... the original loop over all
6675         basic-blocks.  Delay purging dead EH edges and invalidate
6676         the lattice for SSA names we release.
6678 2014-11-07  Terry Guo  <terry.guo@arm.com>
6680         * config/arm/arm.opt (masm-syntax-unified): New option.
6681         * doc/invoke.texi (-masm-syntax-unified): Document new option.
6682         * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
6683         (ASM_APP_ON): Redefined.
6684         * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
6685         code always use UAL syntax.
6686         (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
6687         * config/arm/thumb1.md: Likewise.
6689 2014-11-06  John David Anglin  <danglin@gcc.gnu.org>
6691         * config/pa/pa.md (trap): New insn.  Add "trap" to attribute type.
6692         Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
6693         or in_call_delay.
6694         
6695 2014-11-06  Steve Ellcey  <sellcey@imgtec.com>
6697         * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
6698         Set default_mips_arch and default_mips_abi instead of tm_defines.
6699         (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
6700         of tm_defines.
6701         (mips*-*-*): Check with_arch and with_abi.  Set tm_defines.
6702         * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
6703         based on MIPS_ABI_DEFAULT.
6704         (STANDARD_STARTFILE_PREFIX_2): Ditto.
6706 2014-11-06  Joseph Myers  <joseph@codesourcery.com>
6708         * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
6709         cases of extended identifiers.
6711 2014-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6713         * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
6715 2014-11-06  DJ Delorie  <dj@redhat.com>
6717         * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
6718         conditional.
6719         (movhicc_<code>_<mode>): Likewise.
6720         * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
6721         subregs.
6722         (m32c_eh_return_data_regno): Change to using memregs to avoid
6723         tying up all the compute regs.
6724         (m32c_legitimate_address_p) Subregs are not valid addresses.
6726 2014-11-06  Bernd Schmidt  <bernds@codesourcery.com>
6728         * function.c (thread_prologue_and_epilogue_insns): No longer static.
6729         * function.h (thread_prologue_and_epilogue_insns): Declare.
6731         * target.def (assemble_undefined_decl): New hooks.
6732         * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
6733         * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
6734         * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
6735         * doc/tm.texi: Regenerate.
6736         * output.h (assemble_undefined_decl): Declare.
6737         (get_fnname_from_decl): Declare.
6738         * varasm.c (assemble_undefined_decl): New function.
6739         (get_fnname_from_decl): New function.
6740         * final.c (rest_of_handle_final): Use it.
6741         * varpool.c (varpool_output_variables): Call assemble_undefined_decl
6742         for nodes without a definition.
6744         * target.def (call_args, end_call_args): New hooks.
6745         * hooks.c (hook_void_rtx_tree): New empty function.
6746         * hooks.h (hook_void_rtx_tree): Declare.
6747         * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
6748         * doc/tm.texi: Regenerate.
6749         * calls.c (expand_call): Slightly rearrange the code.  Use the two new
6750         hooks.
6751         (expand_library_call_value_1): Use the two new hooks.
6753         * expr.c (use_reg_mode): Just return for pseudo registers.
6755         * combine.c (try_combine): Don't allow a call as one of the source
6756         insns.
6758         * target.def (decl_end): New hook.
6759         * varasm.c (assemble_variable_contents, assemble_constant_contents):
6760         Use it.
6761         * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
6762         * doc/tm.texi: Regenerate.
6764 2014-11-06  Renlin Li  <renlin.li@arm.com>
6766         * config/aarch64/aarch64.c (aarch64_architecture_version): New.
6767         (processor): New architecture_version field.
6768         (aarch64_override_options): Initialize aarch64_architecture_version.
6769         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
6770         __ARM_ARCH_PROFILE, aarch64_arch_name macro.
6772 2014-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
6774         * params.def (sra-max-scalarization-size-Ospeed): New.
6775         (sra-max-scalarization-size-Osize): Likewise.
6776         * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
6777         (sra-max-scalarization-size-Osize): Likewise.
6778         * toplev.c (process_options): Set default values for new
6779         parameters.
6780         * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
6781         * targhooks.c (get_move_ratio): Remove static designator.
6782         * target.h (get_move_ratio): Declare.
6784 2014-11-06  Marek Polacek  <polacek@redhat.com>
6786         * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
6787         Remove vector limit.
6789 2014-11-06  Richard Biener  <rguenther@suse.de>
6791         * match.pd: Implement bitwise binary and unary simplifications
6792         from tree-ssa-forwprop.c.
6793         * fold-const.c (fold_unary_loc): Remove them here.
6794         (fold_binary_loc): Likewise.
6795         * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
6796         (truth_valued_ssa_name): Likewise.
6797         (lookup_logical_inverted_value): Likewise.
6798         (simplify_bitwise_binary_1): Likewise.
6799         (hoist_conversion_for_bitop_p): Likewise.
6800         (simplify_bitwise_binary_boolean): Likewise.
6801         (simplify_bitwise_binary): Likewise.
6802         (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
6803         and simplify_bitwise_binary.
6804         * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
6805         (decision_tree::insert): Also insert non-expressions.
6807 2014-11-06  Hale Wang  <hale.wang@arm.com>
6809         * config/arm/arm-cores.def: Add support for
6810         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
6811         cortex-m1.small-multiply.
6812         * config/arm/arm-tables.opt: Regenerate.
6813         * config/arm/arm-tune.md: Regenerate.
6814         * config/arm/arm.c: Update the rtx-costs for MUL.
6815         * config/arm/bpabi.h: Handle
6816         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
6817         cortex-m1.small-multiply.
6818         * doc/invoke.texi: Document
6819         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
6820         cortex-m1.small-multiply.
6822 2014-11-06  Hale Wang  <hale.wang@arm.com>
6824         * config/arm/arm.c: Add cortex-m7 tune.
6825         * config/arm/arm-cores.def: Use cortex-m7 tune.
6827 2014-11-05  Uros Bizjak  <ubizjak@gmail.com>
6829         PR target/63538
6830         * config/i386/i386.c (in_large_data_p): Reject automatic variables.
6831         (ix86_encode_section_info): Do not check for non-automatic varibles
6832         when setting SYMBOL_FLAG_FAR_ADDR flag.
6833         (x86_64_elf_select_section): Do not check ix86_cmodel here.
6834         (x86_64_elf_unique_section): Ditto.
6835         (x86_elf_aligned_common): Emit tab before .largecomm.
6837 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
6839         PR preprocessor/9449
6840         * doc/cpp.texi (Character sets, Tokenization)
6841         (Implementation-defined behavior): Don't refer to UCNs in
6842         identifiers requiring -fextended-identifiers.
6843         * doc/cppopts.texi (-fextended-identifiers): Document as enabled
6844         by default for C99 and later and C++.
6845         * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
6846         identifiers needing -fextended-identifiers.
6848 2014-11-05  Ilya Tocar  <ilya.tocar@intel.com>
6850         * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
6851         for 512-bit wide modes.
6852         (expand_vec_perm_1): Use correct versions of patterns.
6853         * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
6854         (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
6856 2014-11-05  Ilya Enkovich  <ilya.enkovich@intel.com>
6858         * ipa-chkp.c: New.
6859         * ipa-chkp.h: New.
6860         * tree-chkp.c: New.
6861         * tree-chkp.h: New.
6862         * tree-chkp-opt.c: New.
6863         * rtl-chkp.c: New.
6864         * rtl-chkp.h: New.
6865         * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
6866         tree-chkp-opt.o.
6867         (GTFILES): Add tree-chkp.c.
6868         * mode-classes.def (MODE_POINTER_BOUNDS): New.
6869         * tree.def (POINTER_BOUNDS_TYPE): New.
6870         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
6871         (POINTER_BOUNDS_MODE): New.
6872         (make_pointer_bounds_mode): New.
6873         * machmode.h (POINTER_BOUNDS_MODE_P): New.
6874         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
6875         (layout_type): Support POINTER_BOUNDS_TYPE.
6876         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
6877         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
6878         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
6879         (type_contains_placeholder_1): Likewise.
6880         (build_common_tree_nodes): Initialize
6881         pointer_bounds_type_node.
6882         * tree.h (POINTER_BOUNDS_TYPE_P): New.
6883         (pointer_bounds_type_node): New.
6884         (POINTER_BOUNDS_P): New.
6885         (BOUNDED_TYPE_P): New.
6886         (BOUNDED_P): New.
6887         (CALL_WITH_BOUNDS_P): New.
6888         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6889         (gimple_call_with_bounds_p): New.
6890         (gimple_call_set_with_bounds): New.
6891         (gimple_return_retbnd): New.
6892         (gimple_return_set_retbnd): New
6893         * gimple.c (gimple_build_return): Increase number of ops
6894         for return statement.
6895         (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
6896         flag.
6897         * gimple-pretty-print.c (dump_gimple_return): Print second op.
6898         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6899         * gimplify.c (gimplify_init_constructor): Avoid infinite
6900         loop during gimplification of bounds initializer.
6901         * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
6902         (special_function_p): Use original decl name when analyzing
6903         instrumentation clone.
6904         (arg_data): Add fields special_slot, pointer_arg and
6905         pointer_offset.
6906         (store_bounds): New.
6907         (emit_call_1): Propagate instrumentation flag for CALL.
6908         (initialize_argument_information): Compute pointer_arg,
6909         pointer_offset and special_slot for pointer bounds arguments.
6910         (finalize_must_preallocate): Preallocate when storing bounds
6911         in bounds table.
6912         (compute_argument_addresses): Skip pointer bounds.
6913         (expand_call): Store bounds into tables separately.  Return
6914         result joined with resulting bounds.
6915         * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
6916         (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
6917         (expand_return): Add returned bounds arg.  Handle returned bounds.
6918         (expand_gimple_stmt_1): Adjust to new expand_return signature.
6919         (gimple_expand_cfg): Reset rtx bounds map.
6920         * expr.c: Include tree-chkp.h, rtl-chkp.h.
6921         (expand_assignment): Handle returned bounds.
6922         (store_expr_with_bounds): New.  Replaces store_expr with new bounds
6923         target argument.  Handle bounds returned by calls.
6924         (store_expr): Now wraps store_expr_with_bounds.
6925         * expr.h (store_expr_with_bounds): New.
6926         * function.c: Include tree-chkp.h, rtl-chkp.h.
6927         (bounds_parm_data): New.
6928         (use_register_for_decl): Do not registerize decls used for bounds
6929         stores and loads.
6930         (assign_parms_augmented_arg_list): Add bounds of the result
6931         structure pointer as the second argument.
6932         (assign_parm_find_entry_rtl): Mark bounds are never passed on
6933         the stack.
6934         (assign_parm_is_stack_parm): Likewise.
6935         (assign_parm_load_bounds): New.
6936         (assign_bounds): New.
6937         (assign_parms): Load bounds and determine a location for
6938         returned bounds.
6939         (diddle_return_value_1): New.
6940         (diddle_return_value): Handle returned bounds.
6941         * function.h (rtl_data): Add field for returned bounds.
6942         * varasm.c: Include tree-chkp.h.
6943         (output_constant): Support POINTER_BOUNDS_TYPE.
6944         (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
6945         (ultimate_transparent_alias_target): Move up.
6946         (make_decl_rtl): For instrumented function use
6947         name of the original decl.
6948         (assemble_start_function): Mark function as global
6949         in case it is instrumentation clone of the global
6950         function.
6951         (do_assemble_alias): Follow transparent alias chain
6952         for identifier.  Check if original alias is public.
6953         (maybe_assemble_visibility): Use visibility of the
6954         original function for instrumented version.
6955         (default_unique_section): Likewise.
6956         * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
6957         (init_emit_once): Build pointer bounds zero constants.
6958         * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
6959         * target.def (builtin_chkp_function): New.
6960         (chkp_bound_type): New.
6961         (chkp_bound_mode): New.
6962         (chkp_make_bounds_constant): New.
6963         (chkp_initialize_bounds): New.
6964         (load_bounds_for_arg): New.
6965         (store_bounds_for_arg): New.
6966         (load_returned_bounds): New.
6967         (store_returned_bounds): New.
6968         (chkp_function_value_bounds): New.
6969         (setup_incoming_vararg_bounds): New.
6970         (function_arg): Update hook description with new possible return
6971         value CONST_INT.
6972         * targhooks.h (default_load_bounds_for_arg): New.
6973         (default_store_bounds_for_arg): New.
6974         (default_load_returned_bounds): New.
6975         (default_store_returned_bounds): New.
6976         (default_chkp_bound_type): New.
6977         (default_chkp_bound_mode): New.
6978         (default_builtin_chkp_function): New.
6979         (default_chkp_function_value_bounds): New.
6980         (default_chkp_make_bounds_constant): New.
6981         (default_chkp_initialize_bounds): New.
6982         (default_setup_incoming_vararg_bounds): New.
6983         * targhooks.c (default_load_bounds_for_arg): New.
6984         (default_store_bounds_for_arg): New.
6985         (default_load_returned_bounds): New.
6986         (default_store_returned_bounds): New.
6987         (default_chkp_bound_type): New.
6988         (default_chkp_bound_mode); New.
6989         (default_builtin_chkp_function): New.
6990         (default_chkp_function_value_bounds): New.
6991         (default_chkp_make_bounds_constant): New.
6992         (default_chkp_initialize_bounds): New.
6993         (default_setup_incoming_vararg_bounds): New.
6994         * builtin-types.def (BT_BND): New.
6995         (BT_FN_PTR_CONST_PTR): New.
6996         (BT_FN_CONST_PTR_CONST_PTR): New.
6997         (BT_FN_BND_CONST_PTR): New.
6998         (BT_FN_CONST_PTR_BND): New.
6999         (BT_FN_PTR_CONST_PTR_SIZE): New.
7000         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7001         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7002         (BT_FN_VOID_CONST_PTR_SIZE): New.
7003         (BT_FN_VOID_PTR_BND): New.
7004         (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
7005         (BT_FN_BND_CONST_PTR_SIZE): New.
7006         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7007         (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
7008         * chkp-builtins.def: New.
7009         * builtins.def: include chkp-builtins.def.
7010         (DEF_CHKP_BUILTIN): New.
7011         * builtins.c: Include tree-chkp.h and rtl-chkp.h.
7012         (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7013         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7014         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7015         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7016         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7017         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7018         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7019         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7020         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
7021         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7022         (std_expand_builtin_va_start): Init bounds for va_list.
7023         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
7024         __CHKP__ macro when Pointer Bounds Checker is on.
7025         * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
7026         * passes.def (pass_ipa_chkp_versioning): New.
7027         (pass_early_local_passes): Renamed to pass_build_ssa_passes.
7028         (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
7029         (pass_chkp_instrumentation_passes): New.
7030         (pass_ipa_chkp_produce_thunks): New.
7031         (pass_local_optimization_passes): New.
7032         (pass_chkp_opt): New.
7033         * tree-pass.h (make_pass_ipa_chkp_versioning): New.
7034         (make_pass_ipa_chkp_produce_thunks): New.
7035         (make_pass_chkp): New.
7036         (make_pass_chkp_opt): New.
7037         (make_pass_early_local_passes): Renamed to ...
7038         (make_pass_build_ssa_passes): This.
7039         (make_pass_chkp_instrumentation_passes): New.
7040         (make_pass_local_optimization_passes): New.
7041         * passes.c (pass_manager::execute_early_local_passes): Execute
7042         early passes in three steps.
7043         (execute_all_early_local_passes): Renamed to ...
7044         (execute_build_ssa_passes): This.
7045         (pass_data_early_local_passes): Renamed to ...
7046         (pass_data_build_ssa_passes): This.
7047         (pass_early_local_passes): Renamed to ...
7048         (pass_build_ssa_passes): This.
7049         (pass_data_chkp_instrumentation_passes): New.
7050         (pass_chkp_instrumentation_passes): New.
7051         (pass_data_local_optimization_passes): New.
7052         (pass_local_optimization_passes): New.
7053         (make_pass_early_local_passes): Renamed to ...
7054         (make_pass_build_ssa_passes): This.
7055         (make_pass_chkp_instrumentation_passes): New.
7056         (make_pass_local_optimization_passes): New.
7057         * c-family/c.opt (fcheck-pointer-bounds): New.
7058         (fchkp-check-incomplete-type): New.
7059         (fchkp-zero-input-bounds-for-main): New.
7060         (fchkp-first-field-has-own-bounds): New.
7061         (fchkp-narrow-bounds): New.
7062         (fchkp-narrow-to-innermost-array): New.
7063         (fchkp-optimize): New.
7064         (fchkp-use-fast-string-functions): New.
7065         (fchkp-use-nochk-string-functions): New.
7066         (fchkp-use-static-bounds): New.
7067         (fchkp-use-static-const-bounds): New.
7068         (fchkp-treat-zero-dynamic-size-as-infinite): New.
7069         (fchkp-check-read): New.
7070         (fchkp-check-write): New.
7071         (fchkp-store-bounds): New.
7072         (fchkp-instrument-calls): New.
7073         (fchkp-instrument-marked-only): New.
7074         (Wchkp): New.
7075         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7076         (handle_bnd_legacy): New.
7077         (handle_bnd_instrument): New.
7078         (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
7079         and bnd_instrument.  Fix documentation.
7080         (c_common_format_attribute_table): Likewsie.
7081         * toplev.c: include tree-chkp.h.
7082         (process_options): Check Pointer Bounds Checker is supported.
7083         (compile_file): Add chkp_finish_file call.
7084         * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
7085         to handle instrumentation clones properly.
7086         (propagate_constants_accross_call): Do not propagate
7087         through instrumentation thunks.
7088         * ipa-pure-const.c (propagate_pure_const): Support
7089         IPA_REF_CHKP.
7090         * ipa-inline.c (early_inliner): Check edge has summary allocated.
7091         * ipa-split.c: Include tree-chkp.h.
7092         (find_retbnd): New.
7093         (split_part_set_ssa_name_p): New.
7094         (consider_split): Do not split retbnd and retval
7095         producers.
7096         (insert_bndret_call_after): new.
7097         (split_function): Propagate Pointer Bounds Checker
7098         instrumentation marks and handle returned bounds.
7099         * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
7100         into bit field and add with_bounds field.
7101         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
7102         with_bounds field for instrumented calls.
7103         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
7104         CALL_WITH_BOUNDS_P flag for calls.
7105         * tree-ssa-ccp.c: Include tree-chkp.h.
7106         (insert_clobber_before_stack_restore): Handle
7107         BUILT_IN_CHKP_BNDRET calls.
7108         * tree-ssa-dce.c: Include tree-chkp.h.
7109         (propagate_necessity): For free call fed by alloc check
7110         bounds are also provided by the same alloc.
7111         (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
7112         used by free calls.
7113         * tree-inline.c: Include tree-chkp.h.
7114         (declare_return_variable): Add arg holding
7115         returned bounds slot.  Create and initialize returned bounds var.
7116         (remap_gimple_stmt): Handle returned bounds.
7117         Return sequence of statements instead of a single statement.
7118         (insert_init_stmt): Add declaration.
7119         (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
7120         (copy_bb): Adjust to changed return type of remap_gimple_stmt.
7121         Properly handle bounds in va_arg_pack and va_arg_pack_len.
7122         (expand_call_inline): Handle returned bounds.  Add bounds copy
7123         for generated mem to mem assignments.
7124         * tree-inline.h (copy_body_data): Add fields retbnd and
7125         assign_stmts.
7126         * value-prof.c: Include tree-chkp.h.
7127         (gimple_ic): Support returned bounds.
7128         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7129         with "chkp ctor" and "bnd_legacy" attributes.
7130         (symtab_remove_unreachable_nodes): Keep initial values for
7131         pointer bounds to be used for checks eliminations.
7132         (process_references): Handle IPA_REF_CHKP.
7133         (walk_polymorphic_call_targets): Likewise.
7134         * ipa-visibility.c (cgraph_externally_visible_p): Mark
7135         instrumented 'main' as externally visible.
7136         (function_and_variable_visibility): Filter instrumentation
7137         thunks.
7138         * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
7139         field.
7140         (cgraph_node): Add instrumented_version, orig_decl and
7141         instrumentation_clone fields.
7142         (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
7143         (varpool_node): Add need_bounds_init field.
7144         (cgraph_local_p): New.
7145         * cgraph.c: Include tree-chkp.h.
7146         (cgraph_node::remove): Fix instrumented_version
7147         of the referenced node if any.
7148         (cgraph_node::dump): Dump instrumentation_clone and
7149         instrumented_version fields.
7150         (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
7151         references and instrumentation thunks.
7152         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
7153         all not instrumented instrumentation clones alive.
7154         (cgraph_redirect_edge_call_stmt_to_callee): Support
7155         returned bounds.
7156         * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
7157         reference.
7158         (cgraph_rebuild_references): Likewise.
7159         * cgraphunit.c: Include tree-chkp.h.
7160         (assemble_thunks_and_aliases): Skip thunks calling instrumneted
7161         function version.
7162         (varpool_finalize_decl): Register statically initialized decls
7163         in Pointer Bounds Checker.
7164         (walk_polymorphic_call_targets): Do not mark generated call to
7165         __builtin_unreachable as with_bounds.
7166         (output_weakrefs): If there are both instrumented and original
7167         versions, output only one of them.
7168         (cgraph_node::expand_thunk): Set with_bounds flag
7169         for created call statement.
7170         * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
7171         (ipa_ref): increase size of use field.
7172         * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
7173         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
7174         (ctor_for_folding): Do not fold constant bounds vars.
7175         * lto-streamer.h (LTO_minor_version): Change minor version from
7176         0 to 1.
7177         * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
7178         pointer bounds.
7179         (lto_output_node): Output instrumentation_clone,
7180         thunk.add_pointer_bounds_args and orig_decl field.
7181         (lto_output_ref): Adjust to new ipa_ref::use field size.
7182         (input_overwrite_node): Read instrumentation_clone field.
7183         (input_node): Read thunk.add_pointer_bounds_args and orig_decl
7184         fields.
7185         (input_ref): Adjust to new ipa_ref::use field size.
7186         (input_cgraph_1): Compute instrumented_version fields and restore
7187         IDENTIFIER_TRANSPARENT_ALIAS chains.
7188         (lto_output_varpool_node): Output
7189         need_bounds_init value.
7190         (input_varpool_node): Read need_bounds_init value.
7191         * lto-partition.c (add_symbol_to_partition_1): Keep original
7192         and instrumented versions together.
7193         (privatize_symbol_name): Restore transparent alias chain if required.
7194         (add_references_to_partition): Add references to pointer bounds vars.
7195         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
7196         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
7197         (gen_type_die_with_usage): Skip pointer bounds.
7198         (dwarf2out_global_decl): Likewise.
7199         (is_base_type): Support POINTER_BOUNDS_TYPE.
7200         (gen_formal_types_die): Skip pointer bounds.
7201         (gen_decl_die): Likewise.
7202         * var-tracking.c (vt_add_function_parameters): Skip
7203         bounds parameters.
7204         * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
7205         thunk still exists.
7206         (sem_variable::merge): Reset need_bounds_init flag.
7207         * doc/extend.texi: Document Pointer Bounds Checker built-in functions
7208         and attributes.
7209         * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7210         (TARGET_STORE_BOUNDS_FOR_ARG): New.
7211         (TARGET_LOAD_RETURNED_BOUNDS): New.
7212         (TARGET_STORE_RETURNED_BOUNDS): New.
7213         (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
7214         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
7215         (TARGET_BUILTIN_CHKP_FUNCTION): New.
7216         (TARGET_CHKP_BOUND_TYPE): New.
7217         (TARGET_CHKP_BOUND_MODE): New.
7218         (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
7219         (TARGET_CHKP_INITIALIZE_BOUNDS): New.
7220         * doc/tm.texi: Regenerated.
7221         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
7222         (BND32mode): New.
7223         (BND64mode): New.
7224         * doc/invoke.texi (-mmpx): New.
7225         (-mno-mpx): New.
7226         (chkp-max-ctor-size): New.
7227         * config/i386/constraints.md (w): New.
7228         (Ti): New.
7229         (Tb): New.
7230         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
7231         * config/i386/i386-modes.def (BND32): New.
7232         (BND64): New.
7233         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
7234         * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
7235         (regclass_map): Add bound registers.
7236         (dbx_register_map): Likewise.
7237         (dbx64_register_map): Likewise.
7238         (svr4_dbx_register_map): Likewise.
7239         (isa_opts): Add -mmpx.
7240         (PTA_MPX): New.
7241         (ix86_option_override_internal): Support MPX ISA.
7242         (ix86_conditional_register_usage): Support bound registers.
7243         (ix86_code_end): Add MPX bnd prefix.
7244         (output_set_got): Likewise.
7245         (print_reg): Avoid prefixes for bound registers.
7246         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
7247         (ix86_print_operand_punct_valid_p): Likewise.
7248         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
7249         UNSPEC_BNDLDX_ADDR.
7250         (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
7251         (ix86_class_likely_spilled_p): Add bound regs support.
7252         (ix86_hard_regno_mode_ok): Likewise.
7253         (x86_order_regs_for_local_alloc): Likewise.
7254         (ix86_bnd_prefixed_insn_p): New.
7255         (ix86_builtins): Add
7256         IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
7257         IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
7258         IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
7259         IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
7260         IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
7261         IX86_BUILTIN_BNDUPPER.
7262         (builtin_isa): Add leaf_p and nothrow_p fields.
7263         (def_builtin): Initialize leaf_p and nothrow_p.
7264         (ix86_add_new_builtins): Handle leaf_p and nothrow_p
7265         flags.
7266         (bdesc_mpx): New.
7267         (bdesc_mpx_const): New.
7268         (ix86_init_mpx_builtins): New.
7269         (ix86_init_builtins): Call ix86_init_mpx_builtins.
7270         (ix86_emit_cmove): New.
7271         (ix86_emit_move_max): New.
7272         (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
7273         IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
7274         IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
7275         IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
7276         IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
7277         IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
7278         (ix86_function_value_bounds): New.
7279         (ix86_builtin_mpx_function): New.
7280         (ix86_get_arg_address_for_bt): New.
7281         (ix86_load_bounds): New.
7282         (ix86_store_bounds): New.
7283         (ix86_load_returned_bounds): New.
7284         (ix86_store_returned_bounds): New.
7285         (ix86_mpx_bound_mode): New.
7286         (ix86_make_bounds_constant): New.
7287         (ix86_initialize_bounds):
7288         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7289         (TARGET_STORE_BOUNDS_FOR_ARG): New.
7290         (TARGET_LOAD_RETURNED_BOUNDS): New.
7291         (TARGET_STORE_RETURNED_BOUNDS): New.
7292         (TARGET_CHKP_BOUND_MODE): New.
7293         (TARGET_BUILTIN_CHKP_FUNCTION): New.
7294         (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
7295         (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
7296         (TARGET_CHKP_INITIALIZE_BOUNDS): New.
7297         (ix86_option_override_internal): Do not
7298         support x32 with MPX.
7299         (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
7300         and force_bnd_pass.
7301         (function_arg_advance_32): Return number of used integer
7302         registers.
7303         (function_arg_advance_64): Likewise.
7304         (function_arg_advance_ms_64): Likewise.
7305         (ix86_function_arg_advance): Handle pointer bounds.
7306         (ix86_function_arg): Likewise.
7307         (ix86_function_value_regno_p): Mark fisrt bounds registers as
7308         possible function value.
7309         (ix86_function_value_1): Handle pointer bounds type/mode
7310         (ix86_return_in_memory): Likewise.
7311         (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
7312         (ix86_expand_call): Generate returned bounds.
7313         (ix86_setup_incoming_vararg_bounds): New.
7314         (ix86_va_start): Initialize bounds for pointers in va_list.
7315         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
7316         * config/i386/i386.h (TARGET_MPX): New.
7317         (TARGET_MPX_P): New.
7318         (FIRST_PSEUDO_REGISTER): Fix to new value.
7319         (FIXED_REGISTERS): Add bound registers.
7320         (CALL_USED_REGISTERS): Likewise.
7321         (REG_ALLOC_ORDER): Likewise.
7322         (HARD_REGNO_NREGS): Likewise.
7323         (VALID_BND_REG_MODE): New.
7324         (FIRST_BND_REG): New.
7325         (LAST_BND_REG): New.
7326         (reg_class): Add BND_REGS.
7327         (REG_CLASS_NAMES): Likewise.
7328         (REG_CLASS_CONTENTS): Likewise.
7329         (BND_REGNO_P): New.
7330         (ANY_BND_REG_P): New.
7331         (BNDmode): New.
7332         (HI_REGISTER_NAMES): Add bound registers.
7333         (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
7334         stdarg fields.
7335         * config/i386/i386.md (UNSPEC_BNDMK): New.
7336         (UNSPEC_BNDMK_ADDR): New.
7337         (UNSPEC_BNDSTX): New.
7338         (UNSPEC_BNDLDX): New.
7339         (UNSPEC_BNDLDX_ADDR): New.
7340         (UNSPEC_BNDCL): New.
7341         (UNSPEC_BNDCU): New.
7342         (UNSPEC_BNDCN): New.
7343         (UNSPEC_MPX_FENCE): New.
7344         (UNSPEC_SIZEOF): New.
7345         (BND0_REG): New.
7346         (BND1_REG): New.
7347         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7348         (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7349         (prefix_rep): Check for bnd prefix.
7350         (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7351         (length_nobnd): New.
7352         (length): Use length_nobnd when specified.
7353         (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7354         (BND): New.
7355         (bnd_ptr): New.
7356         (BNDCHECK): New.
7357         (bndcheck): New.
7358         (*jcc_1): Add MPX bnd prefix.
7359         (*jcc_2): Likewise.
7360         (jump): Likewise.
7361         (*indirect_jump): Likewise.
7362         (*tablejump_1): Likewise.
7363         (simple_return_internal): Likewise.
7364         (simple_return_internal_long): Likewise.
7365         (simple_return_pop_internal): Likewise.
7366         (simple_return_indirect_internal): Likewise.
7367         (<mode>_mk): New.
7368         (*<mode>_mk): New.
7369         (mov<mode>): New.
7370         (*mov<mode>_internal_mpx): New.
7371         (<mode>_<bndcheck>): New.
7372         (*<mode>_<bndcheck>): New.
7373         (<mode>_ldx): New.
7374         (*<mode>_ldx): New.
7375         (<mode>_stx): New.
7376         (*<mode>_stx): New.
7377         move_size_reloc_<mode>): New.
7378         * config/i386/predicates.md (address_mpx_no_base_operand): New.
7379         (address_mpx_no_index_operand): New.
7380         (bnd_mem_operator): New.
7381         (symbol_operand): New.
7382         (x86_64_immediate_size_operand): New.
7383         * config/i386/i386.opt (mmpx): New.
7384         * config/i386/i386-builtin-types.def (BND): New.
7385         (ULONG): New.
7386         (BND_FTYPE_PCVOID_ULONG): New.
7387         (VOID_FTYPE_BND_PCVOID): New.
7388         (VOID_FTYPE_PCVOID_PCVOID_BND): New.
7389         (BND_FTYPE_PCVOID_PCVOID): New.
7390         (BND_FTYPE_PCVOID): New.
7391         (BND_FTYPE_BND_BND): New.
7392         (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
7393         (PVOID_FTYPE_PCVOID_BND_ULONG): New.
7394         (ULONG_FTYPE_VOID): New.
7395         (PVOID_FTYPE_BND): New.
7397 2014-11-05  Bernd Schmidt  <bernds@codesourcery.com>
7399         * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
7400         pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
7401         pass_cleanup_barriers, pass_delay_slots,
7402         pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
7403         pass_shorten_branches, pass_est_nothrow_function_flags,
7404         pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
7405         into pass_late_compilation.
7406         (pass_late_compilation): Add.
7407         * passes.c (pass_data_late_compilation, pass_late_compilation,
7408         make_pass_late_compilation): New.
7409         * timevar.def (TV_LATE_COMPILATION): New.
7411         * target.def (omit_struct_return_reg): New data hook.
7412         * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
7413         * doc/tm.texi: Regenerate.
7414         * function.c (expand_function_end): Use it.
7416         * target.def (no_register_allocation): New data hook.
7417         * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
7418         * doc/tm.texi: Regenerate.
7419         * ira.c (gate_ira): New function.
7420         (pass_data_ira): Set has_gate.
7421         (pass_ira): Add a gate function.
7422         (pass_data_reload): Likewise.
7423         (pass_reload): Add a gate function.
7424         (pass_ira): Use it.
7425         * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
7426         no register allocation happens on the target and return.
7427         * final.c (alter_subreg): Ensure register is not a pseudo before
7428         calling simplify_subreg.
7429         (output_operand): Assert that x isn't a pseudo only if doing
7430         register allocation.
7432         * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
7433         global vars.
7435         * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
7436         sorry if necessary.
7438 2014-11-05  Alex Velenko  <Alex.Velenko@arm.com>
7440         * simplify-rtx.c (simplify_binary_operation_1): Div check added.
7441         * rtl.h (SUBREG_P): New macro added.
7443 2014-11-05  Tejas Belagod  <tejas.belagod@arm.com>
7445         * config/aarch64/aarch64-builtins.c
7446         (aarch64_build_scalar_type): Remove.
7447         (aarch64_scalar_builtin_types, aarch64_simd_type,
7448         aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
7449         aarch64_mangle_builtin_vector_type,
7450         aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
7451         aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
7452         aarch64_init_simd_builtin_types,
7453         aarch64_init_simd_builtin_scalar_types): New.
7454         (aarch64_init_simd_builtins): Refactor.
7455         (aarch64_init_crc32_builtins): Fixup with qualifier.
7456         * config/aarch64/aarch64-protos.h
7457         (aarch64_mangle_builtin_type): Export.
7458         * config/aarch64/aarch64-simd-builtin-types.def: New.
7459         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
7460         (aarch64_mangle_type): Refactor.
7461         * config/aarch64/arm_neon.h: Declare vector types based on
7462         internal types.
7463         * config/aarch64/t-aarch64: Update dependency.
7465 2014-11-04  Pat Haugen  <pthaugen@us.ibm.com>
7467         * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
7468         atomic_update_decl): Guard declaration with #ifdef.
7470 2014-11-04  Marek Polacek  <polacek@redhat.com>
7472         * sanopt.c (sanopt_optimize_walker): Remove unused variables.
7474 2014-11-04  Marek Polacek  <polacek@redhat.com>
7476         * Makefile.in (OBJS): Add sanopt.o.
7477         (GTFILES): Add sanopt.c.
7478         * asan.h (asan_expand_check_ifn): Declare.
7479         * asan.c (asan_expand_check_ifn): No longer static.
7480         (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
7481         * sanopt.c: ...here.  New file.
7483 2014-11-04  Jiong Wang  <jiong.wang@arm.com>
7484 2014-11-04  Wilco Dijkstra  <wilco.dijkstra@arm.com>
7486         PR target/63293
7487         * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
7488         stack adjustment.
7490 2014-11-04  Bernd Schmidt  <bernds@codesourcery.com>
7492         * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
7493         also verify that mode is equal to the mode of op0.
7495         * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
7496         emit into a sequence instead.
7498 2014-11-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7500         * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
7502 2014-11-04  Alan Lawrence  <alan.lawrence@arm.com>
7504         config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
7505         (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
7506         (reduc_smax_<mode> *2): Rename to...
7507         (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
7508         (reduc_umin_<mode> *2): Rename to...
7509         (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
7510         (reduc_umax_<mode> *2): Rename to...
7511         (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
7513 2014-11-04  Alan Lawrence  <alan.lawrence@arm.com>
7515         config/arm/neon.md (reduc_plus_*): Rename to...
7516         (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
7518 2014-11-04  Michael Collison <michael.collison@linaro.org>
7520         * config/aarch64/iterators.md (lconst_atomic): New mode attribute
7521         to support constraints for CONST_INT in atomic operations.
7522         * config/aarch64/atomics.md
7523         (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
7524         (atomic_nand<mode>): Likewise.
7525         (atomic_fetch_<atomic_optab><mode>): Likewise.
7526         (atomic_fetch_nand<mode>): Likewise.
7527         (atomic_<atomic_optab>_fetch<mode>): Likewise.
7528         (atomic_nand_fetch<mode>): Likewise.
7530 2014-11-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7532         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
7533         of __ARM_FEATURE_IDIV.
7535 2014-11-04  Marek Polacek  <polacek@redhat.com>
7537         * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
7539 2014-11-03  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7541         * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
7543 2014-11-04  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7545         Revert:
7546         2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7547         * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
7548         Allow CC mode if HAVE_cbranchcc4.
7550 2014-11-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7552         * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
7553         with -fdump-go-spec.  Anonymous substructures are now flattened and
7554         replaced by their fields (record) or the first named, non-bitfield
7555         field (union).
7557 2014-11-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7559         * input.c (expand_location_to_spelling_point): Fix typo.
7560         (expansion_point_location_if_in_system_header): Fix comment.
7562 2014-11-03  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7564         * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
7566 2014-11-03  Richard Biener  <rguenther@suse.de>
7568         * tree-eh.c (operation_could_trap_helper_p): Handle conversions
7569         like ordinary operations.
7570         * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
7571         as NOP_EXPR.
7573 2014-11-03  Joseph Myers  <joseph@codesourcery.com>
7575         * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
7576         macros.
7577         * configure, config.h.in: Regenerate.
7578         * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
7579         (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
7580         (RS6000_GLIBC_ATOMIC_FENV): New macro.
7581         * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
7582         (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
7583         (RS6000_GLIBC_ATOMIC_FENV): New macro.
7584         * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
7585         (atomic_update_decl): New static variables.
7586         (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
7587         Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
7588         and __atomic_feupdateenv for soft-float and no-FPRs.
7590 2014-11-03  Richard Biener  <rguenther@suse.de>
7592         * match.pd: Add two abs patterns.  Announce tree_expr_nonnegative_p.
7593         Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
7594         * fold-const.c (fold_unary_loc): Remove them here.
7595         (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
7596         * gimple-fold.c (fold_gimple_assign): Remove now obsolete
7597         GIMPLE_UNARY_RHS case.
7598         (gimple_fold_stmt_to_constant_1): Likewise.
7599         (replace_stmt_with_simplification): Fix inverted comparison.
7601 2014-11-03  Marc Glisse  <marc.glisse@inria.fr>
7603         PR tree-optimization/60770
7604         * tree-into-ssa.c (rewrite_update_stmt): Return whether the
7605         statement should be removed.
7606         (maybe_register_def): Likewise. Replace clobbers with default
7607         definitions.
7608         (rewrite_dom_walker::before_dom_children): Remove statement if
7609         rewrite_update_stmt says so.
7610         * tree-ssa-live.c: Include tree-ssa.h.
7611         (set_var_live_on_entry): Do not mark undefined variables as live.
7612         (verify_live_on_entry): Do not check undefined variables.
7613         * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
7614         of partially undefined variables.
7615         * tree-ssa.c (ssa_undefined_value_p): Likewise.
7616         (execute_update_addresses_taken): Do not drop clobbers.
7618 2014-11-03  Marc Glisse  <marc.glisse@inria.fr>
7620         PR tree-optimization/63666
7621         * fold-const.c: Include "optabs.h".
7622         (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
7623         can_vec_perm_p permutation to one that is not.
7625 2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7627         * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
7629 2014-11-03  Andrew Pinski  <apinski@cavium.com>
7631         * config/mips/mips-cpus.def (octeon3): New cpu.
7632         * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
7633         (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
7634         of the comparison no longer matches mode of the operands.
7635         (mips_issue_rate): Handle PROCESSOR_OCTEON3.
7636         * config/mips/mips.h (TARGET_OCTEON):  Add Octeon3.
7637         (TARGET_OCTEON2): Likewise.
7638         (TUNE_OCTEON): Add Octeon3.
7639         * config/mips/mips.md (processor): Add octeon3.
7640         * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
7641         (octeon_arith): Add octeon3.
7642         (octeon_condmove): Remove.
7643         (octeon_condmove_o1): New reservation.
7644         (octeon_condmove_o2): New reservation.
7645         (octeon_condmove_o3_int_on_cc): New reservation.
7646         (octeon_load_o2): Add octeon3.
7647         (octeon_cop_o2): Likewise.
7648         (octeon_store): Likewise.
7649         (octeon_brj_o2): Likewise.
7650         (octeon_imul3_o2): Likewise.
7651         (octeon_imul_o2): Likewise.
7652         (octeon_mfhilo_o2): Likewise.
7653         (octeon_imadd_o2): Likewise.
7654         (octeon_idiv_o2_si): Likewise.
7655         (octeon_idiv_o2_di): Likewise.
7656         (octeon_fpu): Add to the automaton.
7657         (octeon_fpu): New cpu unit.
7658         (octeon_condmove_o2): Check for non floating point modes.
7659         (octeon_load_o2): Add prefetchx.
7660         (octeon_cop_o2): Don't check for octeon3.
7661         (octeon3_faddsubcvt): New reservation.
7662         (octeon3_fmul): Likewise.
7663         (octeon3_fmadd): Likewise.
7664         (octeon3_div_sf): Likewise.
7665         (octeon3_div_df): Likewise.
7666         (octeon3_sqrt_sf): Likewise.
7667         (octeon3_sqrt_df): Likewise.
7668         (octeon3_rsqrt_sf): Likewise.
7669         (octeon3_rsqrt_df): Likewise.
7670         (octeon3_fabsnegmov): Likewise.
7671         (octeon_fcond): Likewise.
7672         (octeon_fcondmov): Likewise.
7673         (octeon_fpmtc1): Likewise.
7674         (octeon_fpmfc1): Likewise.
7675         (octeon_fpload): Likewise.
7676         (octeon_fpstore): Likewise.
7677         * config/mips/mips-tables.opt: Regenerate.
7678         * doc/invoke.texi (-march=@var{arch}): Add octeon3.
7680 2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7682         * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
7683         Allow CC mode if HAVE_cbranchcc4.
7685 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
7687         * config/arc/arc.c (write_ext_corereg_1): Delete.
7688         (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
7690 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
7692         * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
7693         (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
7695 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
7697         * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
7698         (small_data_pattern_1): Delete.
7699         (small_data_pattern): Use FOR_EACH_SUBRTX.
7701 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
7703         * config/arc/arc.c: Include rtl-iter.h.
7704         (arc_rewrite_small_data_1): Delete.
7705         (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
7707 2014-11-02  Michael Collison  <michael.collison@linaro.org>
7709         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
7710         to support vector modes.
7711         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
7713 2014-11-01  Andrew MacLeod  <amacleod@redhat,com>
7715         * optabs.h: Flatten insn-codes.h to source files.  Move some prototypes
7716         and structs to genopinit.c.  Adjust protyoptypes to match optabs.c.
7717         * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
7718         * optabs.c: (gen_move_insn): Move to expr.c.
7719         * expr.h: Move protypes and enums to optabs.h.
7720         * expr.c: (gen_move_insn): Relocate from optabs.c.
7721         * genemit.c (main): Include insn-codes.h.
7722         * gengtype.c (open_base_files): Include insn-codes.h.
7723         * asan.c: Include insn-codes.h.
7724         * bb-reorder.c: Ditto.
7725         * builtins.c: Ditto.
7726         * calls.c: Ditto.
7727         * cfgexpand.c: Ditto.
7728         * cilk-common.c: Ditto.
7729         * combine.c: Ditto.
7730         * dojump.c: Ditto.
7731         * dse.c: Ditto.
7732         * except.c: Ditto.
7733         * explow.c: Ditto.
7734         * expmed.c: Ditto.
7735         * function.c: Ditto.
7736         * ifcvt.c: Ditto.
7737         * internal-fn.c: Ditto.
7738         * loop-unroll.c: Ditto.
7739         * lra.c: Ditto.
7740         * modulo-sched.c: Ditto.
7741         * omp-low.c: Ditto.
7742         * postreload.c: Ditto.
7743         * ree.c: Ditto.
7744         * reload.c: Ditto.
7745         * reload1.c: Ditto.
7746         * shrink-wrap.c: Ditto.
7747         * simplify-rtx.c: Ditto.
7748         * stmt.c: Ditto.
7749         * target-globals.c: Ditto.
7750         * targhooks.c: Ditto.
7751         * toplev.c: Ditto.
7752         * tree-if-conv.c: Ditto.
7753         * tree-ssa-forwprop.c: Ditto.
7754         * tree-ssa-loop-prefetch.c: Ditto.
7755         * tree-ssa-math-opts.c: Ditto.
7756         * tree-ssa-phiopt.c: Ditto.
7757         * tree-ssa-reassoc.c: Ditto.
7758         * tree-switch-conversion.c: Ditto.
7759         * tree-vect-data-refs.c: Ditto.
7760         * tree-vect-generic.c: Ditto.
7761         * tree-vect-loop.c: Ditto.
7762         * tree-vect-patterns.c: Ditto.
7763         * tree-vect-slp.c: Ditto.
7764         * tree-vect-stmts.c: Ditto.
7765         * tree-vrp.c: Ditto.
7766         * value-prof.c: Ditto.
7767         * config/aarch64/aarch64-builtins.c: Ditto.
7768         * config/alpha/alpha.c: Ditto.
7769         * config/arm/arm.c: Ditto.
7770         * config/cris/cris.c: Ditto.
7771         * config/epiphany/epiphany.c: Ditto.
7772         * config/frv/frv.c: Ditto.
7773         * config/h8300/h8300.c: Ditto.
7774         * config/ia64/ia64.c: Ditto.
7775         * config/iq2000/iq2000.c: Ditto.
7776         * config/m32c/m32c.c: Ditto.
7777         * config/mep/mep.c: Ditto.
7778         * config/microblaze/microblaze.c: Ditto.
7779         * config/mips/mips.c: Ditto.
7780         * config/mn10300/mn10300.c: Ditto.
7781         * config/moxie/moxie.c: Ditto.
7782         * config/msp430/msp430.c: Ditto.
7783         * config/nios2/nios2.c: Ditto.
7784         * config/pa/pa.c: Ditto.
7785         * config/rl78/rl78.c: Ditto.
7786         * config/rs6000/rs6000.c: Ditto.
7787         * config/rx/rx.c: Ditto.
7788         * config/s390/s390.c: Ditto.
7789         * config/sh/sh.c: Ditto.
7790         * config/sh/sh_treg_combine.cc: Ditto.
7791         * config/spu/spu.c: Ditto.
7792         * config/stormy16/stormy16.c: Ditto.
7793         * config/tilegx/mul-tables.c: Ditto.
7794         * config/tilegx/tilegx.c: Ditto.
7795         * config/tilepro/mul-tables.c: Ditto.
7796         * config/tilepro/tilepro.c: Ditto.
7797         * config/vax/vax.c: Ditto.
7799 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
7801         * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
7802         (CLEAR_BY_PIECES_P): Likewise.
7803         (SET_BY_PIECES_P): Likewise.
7804         (STORE_BY_PIECES_P): Likewise.
7805         * doc/tm.texi: Regenerate.
7806         * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
7807         SET_BY_PIECES_P, STORE_BY_PIECES_P.
7808         * expr.c (MOVE_BY_PIECES_P): Remove.
7809         (CLEAR_BY_PIECES_P): Likewise.
7810         (SET_BY_PIECES_P): Likewise.
7811         (STORE_BY_PIECES_P): Likewise.
7812         (can_move_by_pieces): Rewrite in terms of
7813         targetm.use_by_pieces_infrastructure_p.
7814         (emit_block_move_hints): Likewise.
7815         (can_store_by_pieces): Likewise.
7816         (store_by_pieces): Likewise.
7817         (clear_storage_hints): Likewise.
7818         (emit_push_insn): Likewise.
7819         (expand_constructor): Likewise.
7821 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
7823         * config/aarch64/aarch64.c
7824         (aarch64_use_by_pieces_infrastructre_p): New.
7825         (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
7826         * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
7828 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
7830         * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
7831         (STORE_BY_PIECES_P): Likewise.
7832         * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
7833         (mips_move_by_pieces_p): Rename to...
7834         (mips_use_by_pieces_infrastructure_p): ...this, use new hook
7835         parameters, use the default hook implementation as a
7836         fall-back.
7838 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
7840         * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
7841         (sh_use_by_pieces_infrastructure_p): Likewise.
7842         * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
7843         (STORE_BY_PIECES_P): Likewise.
7844         (SET_BY_PIECES_P): Likewise.
7846 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
7848         * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
7849         (arc_use_by_pieces_infrastructure_p): Likewise.
7850         * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
7851         (CAN_MOVE_BY_PIECES): Likewise.
7853 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
7855         * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
7856         (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
7857         * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
7858         (CLEAR_BY_PIECES): Likewise.
7859         (SET_BY_PIECES): Likewise.
7860         (STORE_BY_PIECES): Likewise.
7862 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
7864         * target.def (use_by_pieces_infrastructure_p): New.
7865         * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
7866         is deprecated.
7867         (STORE_BY_PIECES_P): Likewise.
7868         (CLEAR_BY_PIECES_P): Likewise.
7869         (SET_BY_PIECES_P): Likewise.
7870         (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
7871         * doc/tm.texi: Regenerate.
7872         * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
7873         TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
7874         (STORE_BY_PIECES_P): Likewise.
7875         (CLEAR_BY_PIECES_P): Likewise.
7876         (SET_BY_PIECES_P): Likewise.
7877         (STORE_MAX_PIECES): Move to...
7878         * defaults.h (STORE_MAX_PIECES): ...here.
7879         * targhooks.c (get_move_ratio): New.
7880         (default_use_by_pieces_infrastructure_p): Likewise.
7881         * targhooks.h (default_use_by_pieces_infrastructure_p): New.
7882         * target.h (by_pieces_operation): New.
7884 2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
7886         PR target/63702
7887         * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
7888         assignment to 'nargs' variable.
7890 2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
7892         PR target/63620
7893         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
7894         * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
7895         * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
7896         be reloaded through memory.
7897         (*pushxf): Ditto.
7898         (*pushdf): Ditto.
7900 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
7902         PR rtl-optimization/63659
7903         * ree.c (update_reg_equal_equiv_notes): New function.
7904         (combine_set_extension, transform_ifelse): Use it.
7906 2014-10-31  Jeff Law  <law@redhat.com>
7908         * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
7909         and Jonny Grant (collect2).
7911 2014-10-31  Richard Biener  <rguenther@suse.de>
7913         * builtins.c (fold_builtin_atomic_always_lock_free): Use
7914         CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
7915         approprate.
7916         (fold_builtin_expect): Likewise.
7917         (integer_valued_real_p): Likewise.
7918         * cfgexpand.c (expand_debug_expr): Likewise.
7919         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
7920         (find_foldable_builtin_expect): Likewise.
7921         * trans-mem.c (thread_private_new_memory): Likewise.
7922         * tree-affine.c (aff_combination_expand): Likewise.
7923         * tree-data-ref.c (initialize_matrix_A): Likewise.
7924         * tree-inline.c (copy_bb): Likewise.
7925         * tree-pretty-print.c (dump_function_name): Likewise.
7926         (print_call_name): Likewise.
7927         * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
7928         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
7929         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7930         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
7931         (vect_recog_widen_mult_pattern): Likewise.
7932         (vect_operation_fits_smaller_type): Likewise.
7933         * tree-vrp.c (find_assert_locations_1): Likewise.
7934         * tree-ssa-dom.c (initialize_hash_element): Canonicalize
7935         converts to NOP_EXPR.
7937 2014-10-31  Richard Biener  <rguenther@suse.de>
7939         * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
7940         CONVERT_EXPRs in generated code.
7941         (dt_simplify::gen): Likewise.
7943 2014-10-31  Evgeny Stupachenko  <evstupac@gmail.com>
7945         PR target/63534
7946         * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
7947         REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
7948         (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
7949         using mcount in 32bit PIC mode.
7950         (ix86_elim_entry_set_got): New.
7951         (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
7952         in PROLOGUE, delete initial if possible.
7954 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
7956         * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
7957         (want_inline_function_to_all_callers_p): Fix formatting and simplify.
7959 2014-10-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7961         PR tree-optimization/63259
7962         * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
7963         rotation left if it is a 16 bit byte swap.
7964         (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
7965         and RROTATE_EXPR statements if it is a byte rotation.
7967 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
7969         PR sanitizer/63697
7970         * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
7971         MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
7972         instead of vr0.min - vr1.min and vr0.max - vr1.max.
7974 2014-10-31  Max Ostapenko  <m.ostapenko@partner.samsung.com>
7976         PR ipa/63696
7977         * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
7978         alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
7980 2014-10-30  Felix Yang  <felix.yang@huawei.com>
7982         * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
7983         * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
7984         (xtensa_reorg, xtensa_reorg_loops): New.
7985         (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
7986         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
7987         (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
7988         (xtensa_doloop_hooks): Define.
7989         * config/xtensa/xtensa.md (doloop_end, loop_end): New
7990         (zero_cost_loop_start): Rewritten.
7991         (zero_cost_loop_end): Likewise.
7993 2014-10-30  Steve Ellcey  <sellcey@imgtec.com>
7995         * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
7997 2014-10-30  Richard Biener  <rguenther@suse.de>
7999         * genmatch.c: Remove <map>, <utility> and <string> includes.
8000         Include ggc.h and hash-map.h.
8001         (ggc_internal_cleared_alloc): Provide stub definition.
8002         (ggc_free): Likewise.
8003         (struct capture_id_map_hasher): New traits for hash_map.
8004         (cid_map_t): New typedef.
8005         (everywhere else): Replace std::map use with cid_map_t.
8006         * hash-map.h (hash_map::elements): New member function.
8007         * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
8008         hash-map.h and $(GGC_H) as dependency.
8010 2014-10-30  Richard Biener  <rguenther@suse.de>
8012         * genmatch.c (capture_info::walk_c_expr): Ignore capture
8013         uses inside TREE_TYPE ().
8014         * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
8015         (find_candidates_dom_walker::before_dom_children): Likewise.
8016         (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
8017         (replace_profitable_candidates): Likewise.
8018         * tree-ssa-dom.c (initialize_hash_element): Canonicalize
8019         CONVERT_EXPR_CODE_P to CONVERT_EXPR.
8020         * convert.c (convert_to_integer): Use CASE_CONVERT.
8022 2014-10-30  Richard Biener  <rguenther@suse.de>
8024         * match.pd: Implement more patterns that simplify to a single value.
8025         * fold-const.c (fold_binary_loc): Remove them here.
8026         * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
8027         (fwprop_ssa_val): Remove restriction on single uses.
8029 2014-10-30  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8031         * config/avr/driver-avr.c (avr_set_current_device): Remove.
8033 2014-10-30  Martin Liska  <mliska@suse.cz>
8035         PR ipa/63574
8036         PR ipa/63664
8037         * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
8038         (func_checker::compare_gimple_label): Simlified comparison introduced.
8039         * ipa-icf-gimple.h: Missing comment added.
8041 2014-10-30  Jeff Law  <law@redhat.com>
8043         * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
8044         argument from rtx to rtx_insn *.
8045         (compute_movmem_length, compute_clrmem_length): Likewise.
8046         (copy_fp_args, length_fp_args): Likewise.
8047         * config/pa/pa.c (legitimize_pic_address): Promote local variable
8048         "insn" from rtx to rtx_insn *.
8049         (legitimize_tls_address, pa_emit_move_sequence): Likewise.
8050         (pa_output_block_move, store_reg, store_reg_modify): Likewise.
8051         (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
8052         (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
8053         (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
8054         (compute_movmem_length, compute_clrmem_length): Likewise.
8055         (copy_fp-args, length_fp_args): Likewise.
8057 2014-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8059         * config/arm/arm.h (MACHMODE): Treat machine_mode as a
8060         scalar typedef.
8061         (CUMULATIVE_ARGS): Guard against target includes.
8062         (machine_function): Likewise.
8064 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8066         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
8067         recog state after aarch64_prev_real_insn call.
8069 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8071         * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
8073 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8075         * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
8076         (struct machine_function): Gate definition on
8077         !defined(USED_FOR_TARGET).
8079 2014-10-29  DJ Delorie  <dj@redhat.com>
8081         * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
8083 2014-10-29  Martin Liska  <mliska@suse.cz>
8085         PR ipa/63587
8086         * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
8087         to local declarations.
8088         * function.c (add_local_decl): Implementation moved from header
8089         file, assert introduced for tree type.
8090         * function.h: Likewise.
8092 2014-10-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8094         * godump.c (go_format_type): Represent "float _Complex" and
8095         "double _Complex" as complex64 or complex128 in Go, as appropriate.
8097 2014-10-29  Richard Biener  <rguenther@suse.de>
8099         * match.pd: Implement a first set of conversion patterns.
8100         * fold-const.c (fold_unary_loc): Remove them here.
8101         * tree-ssa-forwprop.c (simplify_vce): Remove.
8102         (pass_forwprop::execute): Do not call simplify_vce.
8104 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8106         * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
8107         builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
8108         cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
8109         config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
8110         config/aarch64/aarch64.c, config/aarch64/aarch64.h,
8111         config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
8112         config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
8113         config/arc/arc.h, config/arc/predicates.md,
8114         config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
8115         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
8116         config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
8117         config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
8118         config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
8119         config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
8120         config/cr16/cr16-protos.h, config/cr16/cr16.c,
8121         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
8122         config/darwin-protos.h, config/darwin.c,
8123         config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
8124         config/epiphany/epiphany.md, config/fr30/fr30.c,
8125         config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
8126         config/h8300/h8300-protos.h, config/h8300/h8300.c,
8127         config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
8128         config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
8129         config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
8130         config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
8131         config/iq2000/iq2000.c, config/iq2000/iq2000.md,
8132         config/lm32/lm32-protos.h, config/lm32/lm32.c,
8133         config/m32c/m32c-protos.h, config/m32c/m32c.c,
8134         config/m32r/m32r-protos.h, config/m32r/m32r.c,
8135         config/m68k/m68k-protos.h, config/m68k/m68k.c,
8136         config/mcore/mcore-protos.h, config/mcore/mcore.c,
8137         config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
8138         config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
8139         config/mips/mips-protos.h, config/mips/mips.c,
8140         config/mmix/mmix-protos.h, config/mmix/mmix.c,
8141         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
8142         config/moxie/moxie.c, config/msp430/msp430-protos.h,
8143         config/msp430/msp430.c, config/nds32/nds32-cost.c,
8144         config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
8145         config/nds32/nds32-protos.h, config/nds32/nds32.c,
8146         config/nios2/nios2-protos.h, config/nios2/nios2.c,
8147         config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
8148         config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
8149         config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
8150         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8151         config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
8152         config/s390/predicates.md, config/s390/s390-protos.h,
8153         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
8154         config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
8155         config/sh/sh.md, config/sparc/predicates.md,
8156         config/sparc/sparc-protos.h, config/sparc/sparc.c,
8157         config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
8158         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8159         config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
8160         config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
8161         config/tilepro/tilepro.c, config/v850/v850-protos.h,
8162         config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
8163         config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
8164         config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
8165         dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
8166         doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
8167         dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
8168         except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
8169         fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
8170         fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
8171         genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
8172         graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
8173         internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
8174         ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
8175         libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
8176         loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
8177         lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
8178         lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
8179         output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
8180         recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
8181         regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
8182         rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
8183         sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
8184         simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
8185         targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
8186         tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
8187         tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
8188         tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
8189         tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
8190         tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
8191         tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
8192         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
8193         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
8194         tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
8195         var-tracking.c, varasm.c: Remove redundant enum from
8196         machine_mode.
8197         * gengtype.c (main): Treat machine_mode as a scalar typedef.
8198         * genmodes.c (emit_insn_modes_h): Hide inline functions if
8199         USED_FOR_TARGET.
8201 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8203         PR rtl-optimization/63340 (part 2)
8204         * rtl.h (invalid_mode_change_p): Delete.
8205         (valid_mode_changes_for_regno): New function.
8206         * reginfo.c (invalid_mode_change_p): Delete.
8207         (valid_mode_changes_for_regno): New function.
8208         * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
8209         classes to registers that are allowed by valid_mode_changes_for_regno.
8210         (setup_regno_cost_classes_by_mode): Likewise.
8211         (print_allocno_costs): Remove invalid_mode_change_p test.
8212         (print_pseudo_costs, find_costs_and_classes): Likewise.
8214 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8216         PR rtl-optimization/63340 (part 1)
8217         * ira-costs.c (all_cost_classes): New variable.
8218         (complete_cost_classes): New function, split out from...
8219         (setup_cost_classes): ...here.
8220         (initiate_regno_cost_classes): Set up all_cost_classes.
8221         (restrict_cost_classes): New function.
8222         (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
8223         registers that are valid for the register's mode.
8224         (setup_regno_cost_classes_by_mode): Model the mode cache as a
8225         restriction of all_cost_classes to a particular mode.
8226         (print_allocno_costs): Remove contains_reg_of_mode check.
8227         (print_pseudo_costs, find_costs_and_classes): Likewise.
8229 2014-10-29  Richard Biener  <rguenther@suse.de>
8231         PR tree-optimization/63666
8232         * tree-vect-slp.c (vect_get_mask_element): Properly handle
8233         accessing out-of-bound elements.
8235 2014-10-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8236             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8237             Anna Tikhonova  <anna.tikhonova@intel.com>
8238             Ilya Tocar  <ilya.tocar@intel.com>
8239             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8240             Ilya Verbin  <ilya.verbin@intel.com>
8241             Kirill Yukhin  <kirill.yukhin@intel.com>
8242             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8244         * config/i386/i386.md
8245         (movhi_internal): Always detect maskmov.
8246         (movqi_internal): Fix target check.
8248 2014-10-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8249             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8250             Anna Tikhonova  <anna.tikhonova@intel.com>
8251             Ilya Tocar  <ilya.tocar@intel.com>
8252             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8253             Ilya Verbin  <ilya.verbin@intel.com>
8254             Kirill Yukhin  <kirill.yukhin@intel.com>
8255             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8257         * config/i386/avx512bwintrin.h: Add new intrinsics.
8258         * config/i386/avx512vlbwintrin.h: Ditto.
8259         * config/i386/avx512vlintrin.h: Ditto.
8261 2014-10-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8263         * godump.c (precision_to_units): New helper function.
8264         (go_append_artificial_name): Ditto.
8265         (go_append_decl_name): Ditto.
8266         (go_append_bitfield): Ditto.
8267         (go_get_uinttype_for_precision): Ditto.
8268         (go_append_padding): Ditto.
8269         (go_force_record_alignment): Ditto.
8270         (go_format_type): Represent unions with an array of uints of the size
8271         of the alignment in go.  This fixes the 'random' size of the union's
8272         representation using just the first field.
8273         (go_format_type): Add argument that indicates whether a record is
8274         nested (used for generation of artificial go names).
8275         (go_output_fndecl): Adapt to new go_format_type signature.
8276         (go_output_typedef): Ditto.
8277         (go_output_var): Ditto.
8278         (go_output_var): Prefer to output type as alias (typedef).
8279         (go_format_type): Bitfields in records are simulated as arrays of bytes
8280         in go.
8282         * godump.c (go_format_type): Fix handling of arrays with zero elements.
8284 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
8286         * cgraph.h: Flatten.  Remove all include files.
8287         (symbol_table::initialize): Move to cgraph.c.
8288         * cgraph.c: Adjust include files.
8289         (symbol_table::initialize): Relocate from cgraph.h.
8290         * gengtype.c (open_base_files): Adjust include files.
8291         * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
8292         included files.
8293         * ipa-inline.h: Remove all include files.
8294         * ipa-prop.h: Ditto.
8295         * ipa-reference.h: Ditto.
8296         * ipa-utils.h: Ditto:
8297         * lto-streamer.h: Remove cgraph.h from include list.
8298         * asan.c: Adjust include files.
8299         * auto-profile.c: Ditto.
8300         * bb-reorder.c: Ditto.
8301         * calls.c: Ditto.
8302         * cfgexpand.c: Ditto.
8303         * cgraphbuild.c: Ditto.
8304         * cgraphclones.c: Ditto.
8305         * cgraphunit.c: Ditto.
8306         * combine.c: Ditto.
8307         * coverage.c: Ditto.
8308         * data-streamer.c: Ditto.
8309         * data-streamer-in.c: Ditto.
8310         * data-streamer-out.c: Ditto.
8311         * dbxout.c: Ditto.
8312         * dwarf2out.c: Ditto.
8313         * except.c: Ditto.
8314         * expr.c: Ditto.
8315         * final.c: Ditto.
8316         * fold-const.c: Ditto.
8317         * ggc-page.c: Ditto.
8318         * gimple-fold.c: Ditto.
8319         * gimple-iterator.c: Ditto.
8320         * gimple-pretty-print.c: Ditto.
8321         * gimple-streamer-in.c: Ditto.
8322         * gimple-streamer-out.c: Ditto.
8323         * gimplify.c: Ditto.
8324         * ipa.c: Ditto.
8325         * ipa-comdats.c: Ditto.
8326         * ipa-cp.c: Ditto.
8327         * ipa-devirt.c: Ditto.
8328         * ipa-icf.c: Ditto.
8329         * ipa-icf-gimple.c: Ditto.
8330         * ipa-inline-analysis.c: Ditto.
8331         * ipa-inline.c: Ditto.
8332         * ipa-inline-transform.c: Ditto.
8333         * ipa-polymorphic-call.c: Ditto.
8334         * ipa-profile.c: Ditto.
8335         * ipa-prop.c: Ditto.
8336         * ipa-pure-const.c: Ditto.
8337         * ipa-ref.c: Ditto.
8338         * ipa-reference.c: Ditto.
8339         * ipa-split.c: Ditto.
8340         * ipa-utils.c: Ditto.
8341         * ipa-visibility.c: Ditto.
8342         * langhooks.c: Ditto.
8343         * lto-cgraph.c: Ditto.
8344         * lto-compress.c: Ditto.
8345         * lto-opts.c: Ditto.
8346         * lto-section-in.c: Ditto.
8347         * lto-section-out.c: Ditto.
8348         * lto-streamer.c: Ditto.
8349         * lto-streamer-in.c: Ditto.
8350         * lto-streamer-out.c: Ditto.
8351         * omp-low.c: Ditto.
8352         * opts-global.c: Ditto.
8353         * passes.c: Ditto.
8354         * predict.c: Ditto.
8355         * print-tree.c: Ditto.
8356         * profile.c: Ditto.
8357         * ree.c: Ditto.
8358         * stor-layout.c: Ditto.
8359         * symtab.c: Ditto.
8360         * toplev.c: Ditto.
8361         * trans-mem.c: Ditto.
8362         * tree.c: Ditto.
8363         * tree-cfg.c: Ditto.
8364         * tree-eh.c: Ditto.
8365         * tree-emutls.c: Ditto.
8366         * tree-inline.c: Ditto.
8367         * tree-nested.c: Ditto.
8368         * tree-pretty-print.c: Ditto.
8369         * tree-profile.c: Ditto.
8370         * tree-sra.c: Ditto.
8371         * tree-ssa-alias.c: Ditto.
8372         * tree-ssa-loop-ivcanon.c: Ditto.
8373         * tree-ssa-loop-ivopts.c: Ditto.
8374         * tree-ssa-pre.c: Ditto.
8375         * tree-ssa-structalias.c: Ditto.
8376         * tree-streamer.c: Ditto.
8377         * tree-streamer-in.c: Ditto.
8378         * tree-streamer-out.c: Ditto.
8379         * tree-switch-conversion.c: Ditto.
8380         * tree-tailcall.c: Ditto.
8381         * tree-vect-data-refs.c: Ditto.
8382         * tree-vectorizer.c: Ditto.
8383         * tree-vect-stmts.c: Ditto.
8384         * tsan.c: Ditto.
8385         * ubsan.c: Ditto.
8386         * value-prof.c: Ditto.
8387         * varasm.c: Ditto.
8388         * varpool.c: Ditto.
8389         * config/arm/arm.c: Ditto.
8390         * config/bfin/bfin.c: Ditto.
8391         * config/c6x/c6x.c: Ditto.
8392         * config/cris/cris.c: Ditto.
8393         * config/darwin.c: Ditto.
8394         * config/darwin-c.c: Ditto.
8395         * config/i386/i386.c: Ditto.
8396         * config/i386/winnt.c: Ditto.
8397         * config/microblaze/microblaze.c: Ditto.
8398         * config/mips/mips.c: Ditto.
8399         * config/rs6000/rs6000.c: Ditto.
8400         * config/rx/rx.c: Ditto.
8402 2014-10-28  Richard Biener  <rguenther@suse.de>
8404         * gimple-fold.h (follow_single_use_edges): Declare.
8405         * gimple-fold.c (follow_single_use_edges): New function.
8406         (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
8407         * tree-ssa-propagate.c
8408         (substitute_and_fold_dom_walker::before_dom_children): Allow
8409         following single-use edges when folding stmts we propagated into.
8411 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8412             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8413             Anna Tikhonova  <anna.tikhonova@intel.com>
8414             Ilya Tocar  <ilya.tocar@intel.com>
8415             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8416             Ilya Verbin  <ilya.verbin@intel.com>
8417             Kirill Yukhin  <kirill.yukhin@intel.com>
8418             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8420         * config/i386/avx512bwintrin.h: New.
8421         * config/i386/avx512dqintrin.h: Ditto.
8422         * config/i386/avx512vlbwintrin.h: Ditto.
8423         * config/i386/avx512vldqintrin.h: Ditto.
8424         * config/i386/avx512vlintrin.h: Ditto.
8425         * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
8426         avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
8428 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8429             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8430             Anna Tikhonova  <anna.tikhonova@intel.com>
8431             Ilya Tocar  <ilya.tocar@intel.com>
8432             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8433             Ilya Verbin  <ilya.verbin@intel.com>
8434             Kirill Yukhin  <kirill.yukhin@intel.com>
8435             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8437         * config/i386/i386.c
8438         (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
8439         avx_shufpd256_mask, avx_vpermilv2df_mask.
8441 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8442             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8443             Anna Tikhonova  <anna.tikhonova@intel.com>
8444             Ilya Tocar  <ilya.tocar@intel.com>
8445             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8446             Ilya Verbin  <ilya.verbin@intel.com>
8447             Kirill Yukhin  <kirill.yukhin@intel.com>
8448             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8450         * config/i386/i386.c
8451         (ix86_init_mmx_sse_builtins):
8452         Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
8453         __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
8454         __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
8455         __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
8456         __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
8457         __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
8458         __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
8459         __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
8460         __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
8461         __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
8462         __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
8463         __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
8464         __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
8465         __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
8466         __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
8467         __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
8468         __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
8469         __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
8471 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8472             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8473             Anna Tikhonova  <anna.tikhonova@intel.com>
8474             Ilya Tocar  <ilya.tocar@intel.com>
8475             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8476             Ilya Verbin  <ilya.verbin@intel.com>
8477             Kirill Yukhin  <kirill.yukhin@intel.com>
8478             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8480         * config/i386/i386.c
8481         (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
8482         IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
8483         IX86_BUILTIN_GATHER3ALTDIV8SI.
8484         (ix86_expand_builtin):
8485         Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
8486         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
8487         IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
8488         IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
8489         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
8490         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
8491         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
8492         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
8493         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
8494         IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
8495         IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
8496         IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
8497         IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
8498         IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
8499         IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
8500         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
8501         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
8502         IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
8503         (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
8504         V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
8506 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8507             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8508             Anna Tikhonova  <anna.tikhonova@intel.com>
8509             Ilya Tocar  <ilya.tocar@intel.com>
8510             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8511             Ilya Verbin  <ilya.verbin@intel.com>
8512             Kirill Yukhin  <kirill.yukhin@intel.com>
8513             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8515         * config/i386/i386-builtin-types.def
8516         (SHORT): New.
8517         (V32HI): Ditto.
8518         (V12QI): Ditto.
8519         (V14QI): Ditto.
8520         (V32SI): Ditto.
8521         (V8UDI): Ditto.
8522         (V16USI): Ditto.
8523         (V32UHI): Ditto.
8524         (PSHORT): Ditto.
8525         (PV32QI): Ditto.
8526         (PV32HI): Ditto.
8527         (PV64QI): Ditto.
8528         (PCV8HI): Ditto.
8529         (PCV16QI): Ditto.
8530         (PCV16HI): Ditto.
8531         (PCV32QI): Ditto.
8532         (PCV32HI): Ditto.
8533         (PCV64QI): Ditto.
8534         (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
8535         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
8536         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
8537         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
8538         (V16SF_FTYPE_V16HI): Ditto.
8539         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
8540         (V16SF_FTYPE_V16SI): Ditto.
8541         (V4DI_FTYPE_V4DI): Ditto.
8542         (V16SI_FTYPE_V16SF): Ditto.
8543         (V8DI_FTYPE_PV2DI): Ditto.
8544         (V8DF_FTYPE_PV2DF): Ditto.
8545         (V4DI_FTYPE_PV2DI): Ditto.
8546         (V4DF_FTYPE_PV2DF): Ditto.
8547         (V16SI_FTYPE_PV2SI): Ditto.
8548         (V16SF_FTYPE_PV2SF): Ditto.
8549         (V8SF_FTYPE_FLOAT): Ditto.
8550         (V4SF_FTYPE_FLOAT): Ditto.
8551         (V4DF_FTYPE_DOUBLE): Ditto.
8552         (V8SF_FTYPE_PV4SF): Ditto.
8553         (V8SI_FTYPE_PV4SI): Ditto.
8554         (V4SI_FTYPE_PV2SI): Ditto.
8555         (V8SF_FTYPE_PV2SF): Ditto.
8556         (V8SI_FTYPE_PV2SI): Ditto.
8557         (V16SF_FTYPE_PV8SF): Ditto.
8558         (V16SI_FTYPE_PV8SI): Ditto.
8559         (V8DI_FTYPE_V8SF): Ditto.
8560         (V4DI_FTYPE_V4SF): Ditto.
8561         (V2DI_FTYPE_V4SF): Ditto.
8562         (V64QI_FTYPE_QI): Ditto.
8563         (V32HI_FTYPE_HI): Ditto.
8564         (V16UHI_FTYPE_V16UHI): Ditto.
8565         (V32UHI_FTYPE_V32UHI): Ditto.
8566         (V2UDI_FTYPE_V2UDI): Ditto.
8567         (V4UDI_FTYPE_V4UDI): Ditto.
8568         (V8UDI_FTYPE_V8UDI): Ditto.
8569         (V4USI_FTYPE_V4USI): Ditto.
8570         (V16USI_FTYPE_V16USI): Ditto.
8571         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
8572         (V2DF_FTYPE_V8DF_INT): Ditto.
8573         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
8574         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
8575         (V8DF_FTYPE_V8DF_INT): Ditto.
8576         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
8577         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
8578         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
8579         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
8580         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
8581         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
8582         (V8DI_FTYPE_V8DI_INT): Ditto.
8583         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
8584         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
8585         (V8SF_FTYPE_V16SF_INT): Ditto.
8586         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
8587         (V64QI_FTYPE_V32HI_V32HI): Ditto.
8588         (V32HI_FTYPE_V16SI_V16SI): Ditto.
8589         (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
8590         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
8591         (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
8592         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
8593         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
8594         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
8595         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
8596         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
8597         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
8598         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
8599         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
8600         (V32HI_FTYPE_V64QI_V64QI): Ditto.
8601         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
8602         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
8603         (V32HI_FTYPE_V32HI_V32HI): Ditto.
8604         (V32HI_FTYPE_V32HI_INT): Ditto.
8605         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
8606         (V16SI_FTYPE_V32HI_V32HI): Ditto.
8607         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
8608         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
8609         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
8610         (V8SI_FTYPE_V16SI_INT): Ditto.
8611         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
8612         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8613         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8614         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8615         (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
8616         (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
8617         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
8618         (V8DI_FTYPE_V16SI_V16SI): Ditto.
8619         (V8DI_FTYPE_V64QI_V64QI): Ditto.
8620         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
8621         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
8622         (V2DI_FTYPE_V8DI_INT): Ditto.
8623         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
8624         (QI_FTYPE_QI): Ditto.
8625         (SI_FTYPE_SI): Ditto.
8626         (DI_FTYPE_DI): Ditto.
8627         (HI_FTYPE_V16QI): Ditto.
8628         (SI_FTYPE_V32QI): Ditto.
8629         (DI_FTYPE_V64QI): Ditto.
8630         (QI_FTYPE_V8HI): Ditto.
8631         (HI_FTYPE_V16HI): Ditto.
8632         (SI_FTYPE_V32HI): Ditto.
8633         (QI_FTYPE_V4SI): Ditto.
8634         (QI_FTYPE_V8SI): Ditto.
8635         (HI_FTYPE_V16SI): Ditto.
8636         (QI_FTYPE_V2DI): Ditto.
8637         (QI_FTYPE_V4DI): Ditto.
8638         (QI_FTYPE_V8DI): Ditto.
8639         (V16QI_FTYPE_HI): Ditto.
8640         (V32QI_FTYPE_SI): Ditto.
8641         (V64QI_FTYPE_DI): Ditto.
8642         (V8HI_FTYPE_QI): Ditto.
8643         (V16HI_FTYPE_HI): Ditto.
8644         (V32HI_FTYPE_SI): Ditto.
8645         (V4SI_FTYPE_QI): Ditto.
8646         (V4SI_FTYPE_HI): Ditto.
8647         (V8SI_FTYPE_QI): Ditto.
8648         (V8SI_FTYPE_HI): Ditto.
8649         (V2DI_FTYPE_QI): Ditto.
8650         (V4DI_FTYPE_QI): Ditto.
8651         (QI_FTYPE_QI_QI): Ditto.
8652         (SI_FTYPE_SI_SI): Ditto.
8653         (DI_FTYPE_DI_DI): Ditto.
8654         (QI_FTYPE_QI_INT): Ditto.
8655         (SI_FTYPE_SI_INT): Ditto.
8656         (DI_FTYPE_DI_INT): Ditto.
8657         (HI_FTYPE_V16QI_V16QI): Ditto.
8658         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
8659         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
8660         (SI_FTYPE_V32QI_V32QI): Ditto.
8661         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
8662         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
8663         (DI_FTYPE_V64QI_V64QI): Ditto.
8664         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
8665         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
8666         (QI_FTYPE_V8HI_V8HI): Ditto.
8667         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
8668         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
8669         (HI_FTYPE_V16HI_V16HI): Ditto.
8670         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
8671         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
8672         (SI_FTYPE_V32HI_V32HI): Ditto.
8673         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
8674         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
8675         (QI_FTYPE_V4SI_V4SI): Ditto.
8676         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
8677         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
8678         (QI_FTYPE_V8SI_V8SI): Ditto.
8679         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
8680         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
8681         (QI_FTYPE_V2DI_V2DI): Ditto.
8682         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
8683         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
8684         (QI_FTYPE_V4DI_V4DI): Ditto.
8685         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
8686         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
8687         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
8688         (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
8689         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
8690         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
8691         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
8692         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
8693         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
8694         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
8695         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
8696         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
8697         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
8698         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
8699         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
8700         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
8701         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
8702         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
8703         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
8704         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
8705         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
8706         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
8707         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
8708         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
8709         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
8710         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
8711         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
8712         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
8713         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
8714         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
8715         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
8716         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
8717         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
8718         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
8719         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
8720         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
8721         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
8722         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
8723         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
8724         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
8725         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
8726         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
8727         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
8728         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
8729         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
8730         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
8731         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
8732         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
8733         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
8734         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
8735         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
8736         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
8737         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
8738         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
8739         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
8740         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
8741         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
8742         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
8743         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
8744         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
8745         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
8746         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
8747         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
8748         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
8749         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
8750         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
8751         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
8752         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
8753         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
8754         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
8755         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
8756         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
8757         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
8758         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
8759         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
8760         (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
8761         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
8762         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
8763         (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
8764         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
8765         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
8766         (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
8767         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
8768         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
8769         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
8770         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
8771         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
8772         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
8773         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
8774         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
8775         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
8776         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
8777         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
8778         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
8779         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
8780         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
8781         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
8782         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
8783         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
8784         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
8785         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
8786         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
8787         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
8788         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
8789         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
8790         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
8791         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
8792         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
8793         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
8794         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
8795         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
8796         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
8797         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
8798         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
8799         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
8800         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
8801         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
8802         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
8803         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
8804         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
8805         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
8806         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
8807         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
8808         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
8809         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
8810         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
8811         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
8812         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
8813         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
8814         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
8815         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
8816         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
8817         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
8818         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
8819         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
8820         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
8821         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
8822         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
8823         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
8824         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
8825         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
8826         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
8827         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
8828         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
8829         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
8830         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
8831         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
8832         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
8833         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
8834         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
8835         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
8836         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
8837         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
8838         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
8839         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
8840         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
8841         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
8842         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
8843         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
8844         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
8845         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
8846         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
8847         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
8848         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
8849         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
8850         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
8851         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
8852         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
8853         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
8854         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
8855         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
8856         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
8857         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
8858         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
8859         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
8860         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
8861         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
8862         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
8863         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
8864         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
8865         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
8866         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
8867         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
8868         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
8869         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
8870         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
8871         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
8872         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
8873         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
8874         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
8875         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
8876         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
8877         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
8878         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
8879         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
8880         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
8881         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
8882         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
8883         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
8884         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
8885         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
8886         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
8887         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
8888         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
8889         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
8890         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
8891         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
8892         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
8893         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
8894         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
8895         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
8896         (QI_FTYPE_V8DF_INT): Ditto.
8897         (QI_FTYPE_V4DF_INT): Ditto.
8898         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
8899         (QI_FTYPE_V2DF_INT): Ditto.
8900         (HI_FTYPE_V16SF_INT): Ditto.
8901         (QI_FTYPE_V8SF_INT): Ditto.
8902         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
8903         (QI_FTYPE_V4SF_INT): Ditto.
8904         (QI_FTYPE_V8DF_INT_QI): Ditto.
8905         (QI_FTYPE_V4DF_INT_QI): Ditto.
8906         (QI_FTYPE_V2DF_INT_QI): Ditto.
8907         (HI_FTYPE_V16SF_INT_HI): Ditto.
8908         (QI_FTYPE_V8SF_INT_QI): Ditto.
8909         (QI_FTYPE_V4SF_INT_QI): Ditto.
8910         (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
8911         (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
8912         (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
8913         (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
8914         (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
8915         (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
8916         (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
8917         (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
8918         (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
8919         (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
8920         (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
8921         (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
8922         (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
8923         (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
8924         (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
8925         (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
8926         (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
8927         (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
8928         (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
8929         (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
8930         (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
8931         (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
8932         (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
8933         (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
8934         (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
8935         (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
8936         (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
8937         (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
8938         (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
8939         (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
8940         (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
8941         (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
8942         (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
8943         (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
8944         (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
8945         (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
8946         (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
8947         (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
8948         (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
8949         (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
8950         (V8DI_FTYPE_V8DI_INT): Ditto.
8951         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
8952         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8953         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8954         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8955         (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
8956         (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
8957         (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
8958         (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
8959         (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
8960         (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
8961         (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
8962         (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
8963         (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
8964         (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
8965         * config/i386/i386.c (ix86_builtins):
8966         Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
8967         IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
8968         IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
8969         IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
8970         IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
8971         IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
8972         IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
8973         IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
8974         IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
8975         IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
8976         IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
8977         IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
8978         IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
8979         IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
8980         IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
8981         IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
8982         IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
8983         IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
8984         IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
8985         IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
8986         IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
8987         IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
8988         IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
8989         IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
8990         IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
8991         IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
8992         IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
8993         IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
8994         IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
8995         IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
8996         IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
8997         IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
8998         IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
8999         IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
9000         IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
9001         IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
9002         IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
9003         IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
9004         IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
9005         IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
9006         IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
9007         IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
9008         IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
9009         IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
9010         IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
9011         IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
9012         IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
9013         IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
9014         IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
9015         IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
9016         IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
9017         IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
9018         IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
9019         IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
9020         IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
9021         IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
9022         IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
9023         IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
9024         IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
9025         IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
9026         IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
9027         IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
9028         IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
9029         IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
9030         IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
9031         IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
9032         IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
9033         IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
9034         IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
9035         IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
9036         IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
9037         IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
9038         IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
9039         IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
9040         IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
9041         IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
9042         IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
9043         IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
9044         IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
9045         IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
9046         IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
9047         IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
9048         IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
9049         IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
9050         IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
9051         IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
9052         IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
9053         IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
9054         IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
9055         IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
9056         IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
9057         IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
9058         IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
9059         IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
9060         IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
9061         IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
9062         IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
9063         IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
9064         IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
9065         IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
9066         IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
9067         IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
9068         IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
9069         IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
9070         IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
9071         IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
9072         IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
9073         IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
9074         IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
9075         IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
9076         IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
9077         IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
9078         IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
9079         IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
9080         IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
9081         IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
9082         IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
9083         IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
9084         IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
9085         IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
9086         IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
9087         IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
9088         IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
9089         IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
9090         IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
9091         IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
9092         IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
9093         IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
9094         IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
9095         IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
9096         IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
9097         IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
9098         IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
9099         IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
9100         IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
9101         IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
9102         IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
9103         IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
9104         IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
9105         IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
9106         IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
9107         IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
9108         IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
9109         IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
9110         IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
9111         IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
9112         IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
9113         IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
9114         IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
9115         IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
9116         IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
9117         IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
9118         IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
9119         IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
9120         IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
9121         IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
9122         IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
9123         IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
9124         IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
9125         IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
9126         IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
9127         IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
9128         IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
9129         IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
9130         IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
9131         IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
9132         IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
9133         IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
9134         IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
9135         IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
9136         IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
9137         IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
9138         IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
9139         IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
9140         IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
9141         IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
9142         IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
9143         IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
9144         IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
9145         IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
9146         IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
9147         IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
9148         IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
9149         IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
9150         IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
9151         IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
9152         IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
9153         IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
9154         IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
9155         IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
9156         IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
9157         IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
9158         IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
9159         IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
9160         IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
9161         IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
9162         IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
9163         IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
9164         IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
9165         IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
9166         IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
9167         IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
9168         IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
9169         IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
9170         IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
9171         IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
9172         IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
9173         IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
9174         IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
9175         IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
9176         IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
9177         IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
9178         IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
9179         IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
9180         IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
9181         IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
9182         IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
9183         IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
9184         IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
9185         IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
9186         IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
9187         IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
9188         IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
9189         IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
9190         IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
9191         IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
9192         IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
9193         IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
9194         IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
9195         IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
9196         IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
9197         IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
9198         IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
9199         IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
9200         IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
9201         IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
9202         IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
9203         IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
9204         IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
9205         IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
9206         IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
9207         IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
9208         IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
9209         IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
9210         IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
9211         IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
9212         IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
9213         IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
9214         IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
9215         IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
9216         IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
9217         IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
9218         IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
9219         IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
9220         IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
9221         IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
9222         IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
9223         IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
9224         IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
9225         IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
9226         IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
9227         IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
9228         IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
9229         IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
9230         IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
9231         IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
9232         IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
9233         IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
9234         IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
9235         IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
9236         IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
9237         IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
9238         IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
9239         IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
9240         IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
9241         IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
9242         IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
9243         IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
9244         IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
9245         IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
9246         IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
9247         IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
9248         IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
9249         IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
9250         IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
9251         IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
9252         IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
9253         IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
9254         IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
9255         IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
9256         IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
9257         IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
9258         IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
9259         IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
9260         IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
9261         IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
9262         IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
9263         IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
9264         IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
9265         IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
9266         IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
9267         IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
9268         IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
9269         IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
9270         IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
9271         IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
9272         IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
9273         IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
9274         IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
9275         IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
9276         IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
9277         IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
9278         IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
9279         IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
9280         IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
9281         IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
9282         IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
9283         IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
9284         IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
9285         IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
9286         IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
9287         IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
9288         IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
9289         IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
9290         IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
9291         IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
9292         IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
9293         IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
9294         IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
9295         IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
9296         IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
9297         IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
9298         IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
9299         IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
9300         IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
9301         IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
9302         IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
9303         IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
9304         IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
9305         IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
9306         IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
9307         IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
9308         IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
9309         IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
9310         IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
9311         IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
9312         IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
9313         IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
9314         IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
9315         IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
9316         IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
9317         IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
9318         IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
9319         IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
9320         IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
9321         IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
9322         IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
9323         IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
9324         IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
9325         IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
9326         IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
9327         IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
9328         IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
9329         IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
9330         IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
9331         IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
9332         IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
9333         IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
9334         IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
9335         IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
9336         IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
9337         IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
9338         IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
9339         IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
9340         IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
9341         IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
9342         IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
9343         IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
9344         IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
9345         IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
9346         IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
9347         IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
9348         IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
9349         IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
9350         IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
9351         IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
9352         IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
9353         IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
9354         IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
9355         IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
9356         IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
9357         IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
9358         IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
9359         IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
9360         IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
9361         IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
9362         IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
9363         IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
9364         IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
9365         IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
9366         IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
9367         IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
9368         IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
9369         IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
9370         IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
9371         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
9372         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
9373         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
9374         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
9375         IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
9376         IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
9377         IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
9378         IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
9379         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
9380         IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
9381         IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
9382         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
9383         IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
9384         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
9385         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
9386         IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
9387         IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
9388         IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
9389         IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
9390         IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
9391         IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
9392         IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
9393         IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
9394         IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
9395         IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
9396         IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
9397         IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
9398         IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
9399         IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
9400         IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
9401         IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
9402         IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
9403         IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
9404         IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
9405         IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
9406         IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
9407         IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
9408         IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
9409         IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
9410         IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
9411         IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
9412         IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
9413         IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
9414         IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
9415         IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
9416         IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
9417         IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
9418         IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
9419         IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
9420         IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
9421         IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
9422         IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
9423         IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
9424         IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
9425         IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
9426         IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
9427         IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
9428         IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
9429         IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
9430         IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
9431         IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
9432         IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
9433         IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
9434         IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
9435         IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
9436         IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
9437         IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
9438         IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
9439         IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
9440         IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
9441         IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
9442         IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
9443         IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
9444         IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
9445         IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
9446         IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
9447         IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
9448         IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
9449         IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
9450         IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
9451         IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
9452         IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
9453         IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
9454         IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
9455         IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
9456         IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
9457         (bdesc_special_args):
9458         Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
9459         __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
9460         __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
9461         __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
9462         __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
9463         __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
9464         __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
9465         __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
9466         __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
9467         __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
9468         __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
9469         __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
9470         __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
9471         __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
9472         __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
9473         __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
9474         __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
9475         __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
9476         __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
9477         __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
9478         __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
9479         __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
9480         __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
9481         __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
9482         __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
9483         __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
9484         __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
9485         __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
9486         __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
9487         __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
9488         __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
9489         __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
9490         __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
9491         __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
9492         __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
9493         __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
9494         __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
9495         __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
9496         __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
9497         __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
9498         __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
9499         __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
9500         __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
9501         __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
9502         __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
9503         __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
9504         __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
9505         __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
9506         __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
9507         __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
9508         __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
9509         __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
9510         __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
9511         __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
9512         __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
9513         __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
9514         __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
9515         __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
9516         __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
9517         __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
9518         __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
9519         __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
9520         __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
9521         __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
9522         __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
9523         __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
9524         __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
9525         __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
9526         __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
9527         __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
9528         __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
9529         __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
9530         __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
9531         __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
9532         __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
9533         __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
9534         __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
9535         __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
9536         __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
9537         __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
9538         __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
9539         __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
9540         __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
9541         __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
9542         __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
9543         __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
9544         __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
9545         __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
9546         __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
9547         __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
9548         __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
9549         __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
9550         __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
9551         __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
9552         __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
9553         __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
9554         __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
9555         __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
9556         __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
9557         __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
9558         __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
9559         __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
9560         __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
9561         __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
9562         __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
9563         __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
9564         __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
9565         __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
9566         __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
9567         __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
9568         __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
9569         __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
9570         __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
9571         __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
9572         __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
9573         __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
9574         __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
9575         __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
9576         __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
9577         __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
9578         __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
9579         __builtin_ia32_reducesd, __builtin_ia32_reducess,
9580         __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
9581         __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
9582         __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
9583         __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
9584         __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
9585         __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
9586         __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
9587         __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
9588         __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
9589         __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
9590         __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
9591         __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
9592         __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
9593         __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
9594         __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
9595         __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
9596         __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
9597         __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
9598         __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
9599         __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
9600         __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
9601         __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
9602         __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
9603         __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
9604         __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
9605         __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
9606         __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
9607         __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
9608         __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
9609         __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
9610         __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
9611         __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
9612         __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
9613         __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
9614         __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
9615         __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
9616         __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
9617         __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
9618         __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
9619         __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
9620         __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
9621         __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
9622         __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
9623         __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
9624         __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
9625         __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
9626         __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
9627         __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
9628         __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
9629         __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
9630         __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
9631         __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
9632         __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
9633         __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
9634         __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
9635         __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
9636         __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
9637         __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
9638         __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
9639         __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
9640         __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
9641         __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
9642         __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
9643         __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
9644         __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
9645         __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
9646         __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
9647         __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
9648         __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
9649         __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
9650         __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
9651         __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
9652         __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
9653         __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
9654         __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
9655         __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
9656         __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
9657         __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
9658         __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
9659         __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
9660         __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
9661         __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
9662         __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
9663         __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
9664         __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
9665         __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
9666         __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
9667         __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
9668         __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
9669         __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
9670         __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
9671         __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
9672         __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
9673         __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
9674         __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
9675         __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
9676         __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
9677         __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
9678         __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
9679         __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
9680         __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
9681         __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
9682         __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
9683         __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
9684         __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
9685         __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
9686         __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
9687         __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
9688         __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
9689         __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
9690         __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
9691         __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
9692         __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
9693         __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
9694         __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
9695         __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
9696         __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
9697         __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
9698         __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
9699         __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
9700         __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
9701         __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
9702         __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
9703         __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
9704         __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
9705         __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
9706         __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
9707         __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
9708         __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
9709         __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
9710         __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
9711         __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
9712         __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
9713         __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
9714         __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
9715         __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
9716         __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
9717         __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
9718         __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
9719         __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
9720         __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
9721         __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
9722         __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
9723         __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
9724         __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
9725         __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
9726         __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
9727         __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
9728         __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
9729         __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
9730         __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
9731         __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
9732         __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
9733         __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
9734         __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
9735         __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
9736         __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
9737         __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
9738         __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
9739         __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
9740         __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
9741         __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
9742         __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
9743         __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
9744         __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
9745         __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
9746         __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
9747         __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
9748         __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
9749         __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
9750         __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
9751         __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
9752         __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
9753         __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
9754         __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
9755         __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
9756         __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
9757         __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
9758         __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
9759         __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
9760         __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
9761         __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
9762         __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
9763         __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
9764         __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
9765         __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
9766         __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
9767         __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
9768         __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
9769         __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
9770         __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
9771         __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
9772         __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
9773         __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
9774         __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
9775         __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
9776         __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
9777         __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
9778         __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
9779         __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
9780         __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
9781         __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
9782         __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
9783         __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
9784         __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
9785         __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
9786         __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
9787         __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
9788         __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
9789         __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
9790         __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
9791         __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
9792         __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
9793         __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
9794         __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
9795         __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
9796         __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
9797         __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
9798         __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
9799         __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
9800         __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
9801         __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
9802         __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
9803         __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
9804         __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
9805         __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
9806         __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
9807         __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
9808         __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
9809         __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
9810         __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
9811         __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
9812         __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
9813         __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
9814         __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
9815         __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
9816         __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
9817         __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
9818         __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
9819         __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
9820         __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
9821         __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
9822         __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
9823         __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
9824         __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
9825         __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
9826         __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
9827         __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
9828         __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
9829         __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
9830         __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
9831         __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
9832         __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
9833         __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
9834         __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
9835         __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
9836         __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
9837         __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
9838         __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
9839         __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
9840         __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
9841         __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
9842         __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
9843         __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
9844         __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
9845         __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
9846         __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
9847         __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
9848         __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
9849         __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
9850         __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
9851         __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
9852         __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
9853         __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
9854         __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
9855         __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
9856         __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
9857         __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
9858         __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
9859         __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
9860         __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
9861         __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
9862         __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
9863         __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
9864         __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
9865         __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
9866         __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
9867         __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
9868         __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
9869         __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
9870         __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
9871         __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
9872         __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
9873         __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
9874         __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
9875         __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
9876         __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
9877         __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
9878         __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
9879         __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
9880         __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
9881         __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
9882         __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
9883         __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
9884         __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
9885         __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
9886         __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
9887         __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
9888         __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
9889         __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
9890         __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
9891         __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
9892         __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
9893         __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
9894         __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
9895         __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
9896         __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
9897         __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
9898         __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
9899         __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
9900         __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
9901         __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
9902         __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
9903         __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
9904         __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
9905         __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
9906         __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
9907         __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
9908         __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
9909         __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
9910         __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
9911         __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
9912         __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
9913         __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
9914         __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
9915         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
9916         __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
9917         __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
9918         __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
9919         __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
9920         __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
9921         __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
9922         __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
9923         __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
9924         __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
9925         __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
9926         __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
9927         __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
9928         __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
9929         __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
9930         __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
9931         __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
9932         __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
9933         __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
9934         __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
9935         (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
9936         DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
9937         V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
9938         V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
9939         HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
9940         HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
9941         V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
9942         SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
9943         QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
9944         V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
9945         V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
9946         V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
9947         V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
9948         V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
9949         V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
9950         V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
9951         V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
9952         V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
9953         V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
9954         V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
9955         V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
9956         V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
9957         V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
9958         V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
9959         V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
9960         V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
9961         V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
9962         V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
9963         V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
9964         V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
9965         V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
9966         V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
9967         V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
9968         V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
9969         HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
9970         DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
9971         HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
9972         QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
9973         QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
9974         V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
9975         V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
9976         V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
9977         V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
9978         V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
9979         V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
9980         V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
9981         V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
9982         V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
9983         V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
9984         V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
9985         V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
9986         V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
9987         V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
9988         V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
9989         V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
9990         V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
9991         V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
9992         V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
9993         V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
9994         QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
9995         HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
9996         QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
9997         V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
9998         V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
9999         V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
10000         V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
10001         V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
10002         V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
10003         V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
10004         V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
10005         V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
10006         V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
10007         V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
10008         V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
10009         V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
10010         V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
10011         V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
10012         V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
10013         V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
10014         V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
10015         V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
10016         V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
10017         QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
10018         QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
10019         QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
10020         SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
10021         SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
10022         QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
10023         V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
10024         V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
10025         V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
10026         V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
10027         V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
10028         V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
10029         V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
10030         V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
10031         V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
10032         V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
10033         V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
10034         V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
10035         V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
10036         V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
10037         V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
10038         V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
10039         V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
10040         V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
10041         V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
10042         V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
10043         V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
10044         V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
10045         V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
10046         V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
10047         V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
10048         VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
10049         VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
10050         VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
10051         VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
10052         VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
10053         VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
10054         VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
10055         VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
10056         VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
10057         VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
10058         VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
10059         VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
10060         V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
10061         V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
10062         V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
10063         V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
10064         V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
10065         V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
10066         V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
10068 2014-10-28  Jakub Jelinek  <jakub@redhat.com>
10070         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
10071         type for the left shift in CASE_CONVERT case.
10073 2014-10-28  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10075         * asan.h (asan_intercepted_p): New function.
10076         * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
10077         hash value construction.  Call iterative_hash_expr instead of explicit
10078         hash building.
10079         (asan_mem_ref_hasher::equal): Change condition.
10080         (has_mem_ref_been_instrumented): Likewise.
10081         (update_mem_ref_hash_table): Likewise.
10082         (maybe_update_mem_ref_hash_table): New function.
10083         (instrument_strlen_call): Removed.
10084         (get_mem_refs_of_builtin_call): Handle new parameter.
10085         (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
10086         of instrument_mem_region_access if intercepted_p is true.
10087         (instrument_mem_region_access): Instrument only base with len instead of
10088         base and end with 1.
10089         (build_check_stmt): Remove start_instrumented and end_instrumented
10090         parameters.
10091         (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
10092         ASAN_CHECK_END_INSTRUMENTED.  Change ASAN_CHECK_LAST.
10093         (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
10094         * builtins.c (expand_builtin): Include asan.h.  Don't expand string/memory
10095         builtin functions that have interceptors if ASan is enabled.
10097 2014-10-28  Richard Biener  <rguenther@suse.de>
10099         PR middle-end/63665
10100         * fold-const.c (fold_comparison): Properly guard simplifying
10101         against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
10103 2014-10-28  Alan Lawrence  <alan.lawrence@arm.com>
10105         * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
10106         * fold-const.c (const_binop): Likewise.
10107         * cfgexpand.c (expand_debug_expr): Likewise.
10108         * tree-inline.c (estimate_operator_cost): Likewise.
10109         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
10110         * optabs.c (optab_for_tree_code): Likewise.
10111         (expand_vec_shift_expr): Likewise, update comment.
10112         * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
10113         * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
10114         * optabs.def: Remove vec_shl_optab.
10115         * doc/md.texi: Remove references to vec_shr_m.
10117 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
10119         * asan.c (report_error_func): Add noabort path.
10120         (check_func): Ditto.  Formatting.
10121         (asan_expand_check_ifn): Handle noabort path.
10122         * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
10123         to default value.
10124         * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
10125         * opts.c (finish_options): Reword comment.
10126         * sanitizer.def: Add noabort ASan builtins.
10128 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
10130         * asan.c (set_asan_shadow_offset): New function.
10131         (asan_shadow_offset): Likewise.
10132         (asan_emit_stack_protection): Call asan_shadow_offset.
10133         (build_shadow_mem_access): Likewise.
10134         * asan.h (set_asan_shadow_offset): Declare.
10135         * common.opt (fasan-shadow-offset): New option.
10136         (frandom-seed): Fixed parameter name.
10137         * doc/invoke.texi (fasan-shadow-offset): Describe new option.
10138         (frandom-seed): Fixed parameter name.
10139         * opts-global.c (handle_common_deferred_options): Handle
10140         -fasan-shadow-offset.
10141         * opts.c (common_handle_option): Likewise.
10143 2014-10-27  Jiong Wang <jiong.wang@arm.com>
10145         PR target/63442
10146         * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
10148 2014-10-27  DJ Delorie  <dj@redhat.com>
10150         * tree.c (build_common_tree_nodes): Don't even store the
10151         __int128 types if they're not supported.
10153 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10155         * config/i386/i386.c (ix86_loop_memcount): Delete.
10156         (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
10158 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10160         * config/i386/i386.c (find_constant_1): Delete.
10161         (find_constant): Use FOR_EACH_SUBRTX.
10163 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10165         * config/i386/i386.c (extended_reg_mentioned_1): Delete.
10166         (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
10168 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10170         * config/i386/i386.c: Include rtl-iter.h
10171         (ix86_check_avx256_register): Take a const_rtx and return a bool.
10172         (ix86_check_avx256_stores): Update call accordingly.
10173         (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
10174         (ix86_avx_u128_mode_needed): Likewise.  Use FOR_EACH_SUBRTX.
10176 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10178         * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
10179         Take an rtx and return a bool.
10180         * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
10181         Use FOR_EACH_SUBRTX_VAR.
10182         * config/alpha/predicates.md (some_small_symbolic_operand): Update
10183         accordingly.
10185 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10187         * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
10188         a bool.
10189         * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
10190         (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX.  Return a bool.
10192 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10194         * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
10195         (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
10197 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10199         * config/alpha/alpha.c: Include rtl-iter.h.
10200         (split_small_symbolic_operand_1): Delete.
10201         (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
10203 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10205         * config/s390/s390.c: Include rtl-iter.h.
10206         (check_dpu): Delete.
10207         (s390_loop_unroll_adjust): Only iterate over patterns.
10208         Use FOR_EACH_SUBRTX.
10210 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10212         * config/spu/spu.c: Include rtl-iter.h
10213         (ea_symbol_ref): Replace with...
10214         (ea_symbol_ref_p): ...this new function.
10215         (spu_legitimate_address_p): Update call accordingly.
10216         (spu_legitimate_constant_p): Likewise.  Use FOR_EACH_SUBRTX.
10218 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
10219             Tom Tromey  <tromey@redhat.com>
10221         * aclocal.m4, configure: Rebuild.
10222         * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
10223         * configure.ac: Use GCC_ENABLE_PLUGINS.
10224         * stor-layout.c (finish_bitfield_layout): Now public.  Change
10225         argument type to 'tree'.
10226         (finish_record_layout): Update.
10227         * stor-layout.h (finish_bitfield_layout): Declare.
10229 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
10231         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
10232         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
10233         Restore, enable for bigendian, update to use __builtin..._scal...
10235 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
10237         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
10238         reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
10239         (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
10240         reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
10242         * config/aarch64/aarch64-simd.md
10243         (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
10244         (reduc_<maxmin_uns>_internal<mode>): ...this.
10245         (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
10246         (reduc_<maxmin_uns>_scal_<mode>): New (*2).
10248         (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
10249         (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
10250         (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
10252         * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
10253         vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
10254         vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
10255         vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
10256         vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
10257         vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
10258         vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
10259         __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
10261 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
10263         * config/aarch64/aarch64-simd-builtins.def
10264         (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
10265         Remove.
10266         (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
10268         * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
10269         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
10271         (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
10272         (aarch64_reduc_plus_internal<mode>): ...this.
10274         (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
10275         (aarch64_reduc_plus_internalv2si): ...this.
10277         (reduc_splus_<mode>/V2F): Rename to...
10278         (aarch64_reduc_plus_internal<mode>): ...this.
10280         * config/aarch64/iterators.md
10281         (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
10282         (UNSPEC_ADDV): New.
10283         (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
10285         * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
10286         vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
10287         vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
10288         vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
10289         __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
10291 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
10293         PR tree-optimization/61114
10294         * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
10295         optabs, and note in reduc_[us](plus|min|max) to prefer the former.
10297         * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
10298         back to old reduc_... + BIT_FIELD_REF only if not.
10300         * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
10301         return the reduce-to-scalar (reduc_..._scal) optab.
10302         (scalar_reduc_to_vector): New.
10304         * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
10305         reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
10306         New.
10308         * optabs.h (scalar_reduc_to_vector): Declare.
10310         * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
10311         to either scalar or vector.
10313 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
10315         PR tree-optimization/61114
10316         * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
10317         extract_bit_field around optab result.
10319         * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
10320         scalar not vector.
10322         * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
10323         for REDUC_{MIN,MAX,PLUS}_EXPR.
10325         * tree-vect-loop.c (vect_analyze_loop): Update comment.
10326         (vect_create_epilog_for_reduction): For direct vector reduction, use
10327         result of tree code directly without extract_bit_field.
10329         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
10330         comment.
10332 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
10334         * basic-block.h: Remove all includes.
10335         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
10336         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
10337         * Makefile.in (GTFILES): Add cfg.h to list.
10338         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
10339         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
10340         * genconditions.c (write_header): Add predict.h and basic-block.h to
10341         lits of includes.
10342         * genemit.c (main): Ditto.
10343         * genpreds.c (write_insn_preds_c): Ditto.
10344         * genrecog.c (write_header): Ditto.
10345         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
10346         to list of includes.
10347         * alias.c: Adjust include files.
10348         * asan.c: Ditto.
10349         * auto-inc-dec.c: Ditto.
10350         * auto-profile.c: Ditto.
10351         * bb-reorder.c: Ditto.
10352         * bt-load.c: Ditto.
10353         * builtins.c: Ditto.
10354         * caller-save.c: Ditto.
10355         * calls.c: Ditto.
10356         * cfg.c: Ditto.
10357         * cfganal.c: Ditto.
10358         * cfgbuild.c: Ditto.
10359         * cfgcleanup.c: Ditto.
10360         * cfgexpand.c: Ditto.
10361         * cfghooks.c: Ditto.
10362         * cfgloop.c: Ditto.
10363         * cfgloopanal.c: Ditto.
10364         * cfgloopmanip.c: Ditto.
10365         * cfgrtl.c: Ditto.
10366         * cgraphbuild.c: Ditto.
10367         * cgraphclones.c: Ditto.
10368         * cgraphunit.c: Ditto.
10369         * combine-stack-adj.c: Ditto.
10370         * combine.c: Ditto.
10371         * compare-elim.c: Ditto.
10372         * coverage.c: Ditto.
10373         * cprop.c: Ditto.
10374         * cse.c: Ditto.
10375         * cselib.c: Ditto.
10376         * data-streamer-in.c: Ditto.
10377         * data-streamer-out.c: Ditto.
10378         * data-streamer.c: Ditto.
10379         * dce.c: Ditto.
10380         * ddg.c: Ditto.
10381         * ddg.h: Ditto.
10382         * df-core.c: Ditto.
10383         * df-problems.c: Ditto.
10384         * df-scan.c: Ditto.
10385         * df.h: Ditto.
10386         * dojump.c: Ditto.
10387         * dominance.c: Ditto.
10388         * domwalk.c: Ditto.
10389         * dse.c: Ditto.
10390         * dwarf2cfi.c: Ditto.
10391         * emit-rtl.c: Ditto.
10392         * et-forest.c: Ditto.
10393         * except.c: Ditto.
10394         * expmed.c: Ditto.
10395         * expr.c: Ditto.
10396         * final.c: Ditto.
10397         * fold-const.c: Ditto.
10398         * function.c: Ditto.
10399         * fwprop.c: Ditto.
10400         * gcc-plugin.h: Ditto.
10401         * gcse.c: Ditto.
10402         * generic-match-head.c: Ditto.
10403         * ggc-page.c: Ditto.
10404         * gimple-builder.c: Ditto.
10405         * gimple-expr.c: Ditto.
10406         * gimple-fold.c: Ditto.
10407         * gimple-iterator.c: Ditto.
10408         * gimple-low.c: Ditto.
10409         * gimple-match-head.c: Ditto.
10410         * gimple-pretty-print.c: Ditto.
10411         * gimple-ssa-isolate-paths.c: Ditto.
10412         * gimple-ssa-strength-reduction.c: Ditto.
10413         * gimple-streamer-in.c: Ditto.
10414         * gimple-streamer-out.c: Ditto.
10415         * gimple-streamer.h: Ditto.
10416         * gimple-walk.c: Ditto.
10417         * gimple.c: Ditto.
10418         * gimplify-me.c: Ditto.
10419         * gimplify.c: Ditto.
10420         * graph.c: Ditto.
10421         * graphite-blocking.c: Ditto.
10422         * graphite-clast-to-gimple.c: Ditto.
10423         * graphite-dependences.c: Ditto.
10424         * graphite-interchange.c: Ditto.
10425         * graphite-isl-ast-to-gimple.c: Ditto.
10426         * graphite-optimize-isl.c: Ditto.
10427         * graphite-poly.c: Ditto.
10428         * graphite-scop-detection.c: Ditto.
10429         * graphite-sese-to-poly.c: Ditto.
10430         * graphite.c: Ditto.
10431         * haifa-sched.c: Ditto.
10432         * hw-doloop.c: Ditto.
10433         * ifcvt.c: Ditto.
10434         * init-regs.c: Ditto.
10435         * internal-fn.c: Ditto.
10436         * ipa-cp.c: Ditto.
10437         * ipa-devirt.c: Ditto.
10438         * ipa-icf-gimple.c: Ditto.
10439         * ipa-icf.c: Ditto.
10440         * ipa-inline-analysis.c: Ditto.
10441         * ipa-inline.c: Ditto.
10442         * ipa-polymorphic-call.c: Ditto.
10443         * ipa-profile.c: Ditto.
10444         * ipa-prop.c: Ditto.
10445         * ipa-pure-const.c: Ditto.
10446         * ipa-reference.c: Ditto.
10447         * ipa-split.c: Ditto.
10448         * ipa-utils.c: Ditto.
10449         * ipa.c: Ditto.
10450         * ira-build.c: Ditto.
10451         * ira-color.c: Ditto.
10452         * ira-conflicts.c: Ditto.
10453         * ira-costs.c: Ditto.
10454         * ira-emit.c: Ditto.
10455         * ira-lives.c: Ditto.
10456         * ira.c: Ditto.
10457         * jump.c: Ditto.
10458         * lcm.c: Ditto.
10459         * loop-doloop.c: Ditto.
10460         * loop-init.c: Ditto.
10461         * loop-invariant.c: Ditto.
10462         * loop-iv.c: Ditto.
10463         * loop-unroll.c: Ditto.
10464         * lower-subreg.c: Ditto.
10465         * lra-assigns.c: Ditto.
10466         * lra-coalesce.c: Ditto.
10467         * lra-constraints.c: Ditto.
10468         * lra-eliminations.c: Ditto.
10469         * lra-lives.c: Ditto.
10470         * lra-spills.c: Ditto.
10471         * lra.c: Ditto.
10472         * lto-cgraph.c: Ditto.
10473         * lto-compress.c: Ditto.
10474         * lto-opts.c: Ditto.
10475         * lto-section-in.c: Ditto.
10476         * lto-section-out.c: Ditto.
10477         * lto-streamer-in.c: Ditto.
10478         * lto-streamer-out.c: Ditto.
10479         * lto-streamer.c: Ditto.
10480         * mcf.c: Ditto.
10481         * mode-switching.c: Ditto.
10482         * modulo-sched.c: Ditto.
10483         * omp-low.c: Ditto.
10484         * optabs.c: Ditto.
10485         * opts-global.c: Ditto.
10486         * passes.c: Ditto.
10487         * postreload-gcse.c: Ditto.
10488         * postreload.c: Ditto.
10489         * predict.c: Ditto.
10490         * print-rtl.c: Ditto.
10491         * profile.c: Ditto.
10492         * recog.c: Ditto.
10493         * ree.c: Ditto.
10494         * reg-stack.c: Ditto.
10495         * regcprop.c: Ditto.
10496         * regcprop.h: Ditto.
10497         * reginfo.c: Ditto.
10498         * regrename.c: Ditto.
10499         * regstat.c: Ditto.
10500         * reload.c: Ditto.
10501         * reload1.c: Ditto.
10502         * reorg.c: Ditto.
10503         * resource.c: Ditto.
10504         * rtlanal.c: Ditto.
10505         * sched-deps.c: Ditto.
10506         * sched-ebb.c: Ditto.
10507         * sched-int.h: Ditto.
10508         * sched-rgn.c: Ditto.
10509         * sched-vis.c: Ditto.
10510         * sel-sched-dump.c: Ditto.
10511         * sel-sched-ir.c: Ditto.
10512         * sel-sched-ir.h: Ditto.
10513         * sel-sched.c: Ditto.
10514         * sese.c: Ditto.
10515         * shrink-wrap.c: Ditto.
10516         * stack-ptr-mod.c: Ditto.
10517         * stmt.c: Ditto.
10518         * store-motion.c: Ditto.
10519         * symtab.c: Ditto.
10520         * toplev.c: Ditto.
10521         * tracer.c: Ditto.
10522         * trans-mem.c: Ditto.
10523         * tree-affine.c: Ditto.
10524         * tree-call-cdce.c: Ditto.
10525         * tree-cfg.c: Ditto.
10526         * tree-cfgcleanup.c: Ditto.
10527         * tree-chrec.c: Ditto.
10528         * tree-complex.c: Ditto.
10529         * tree-data-ref.c: Ditto.
10530         * tree-dfa.c: Ditto.
10531         * tree-eh.c: Ditto.
10532         * tree-emutls.c: Ditto.
10533         * tree-if-conv.c: Ditto.
10534         * tree-inline.c: Ditto.
10535         * tree-into-ssa.c: Ditto.
10536         * tree-loop-distribution.c: Ditto.
10537         * tree-nested.c: Ditto.
10538         * tree-nrv.c: Ditto.
10539         * tree-object-size.c: Ditto.
10540         * tree-outof-ssa.c: Ditto.
10541         * tree-parloops.c: Ditto.
10542         * tree-phinodes.c: Ditto.
10543         * tree-predcom.c: Ditto.
10544         * tree-pretty-print.c: Ditto.
10545         * tree-profile.c: Ditto.
10546         * tree-scalar-evolution.c: Ditto.
10547         * tree-sra.c: Ditto.
10548         * tree-ssa-address.c: Ditto.
10549         * tree-ssa-alias.c: Ditto.
10550         * tree-ssa-ccp.c: Ditto.
10551         * tree-ssa-coalesce.c: Ditto.
10552         * tree-ssa-copy.c: Ditto.
10553         * tree-ssa-copyrename.c: Ditto.
10554         * tree-ssa-dce.c: Ditto.
10555         * tree-ssa-dom.c: Ditto.
10556         * tree-ssa-dse.c: Ditto.
10557         * tree-ssa-forwprop.c: Ditto.
10558         * tree-ssa-ifcombine.c: Ditto.
10559         * tree-ssa-live.c: Ditto.
10560         * tree-ssa-loop-ch.c: Ditto.
10561         * tree-ssa-loop-im.c: Ditto.
10562         * tree-ssa-loop-ivcanon.c: Ditto.
10563         * tree-ssa-loop-ivopts.c: Ditto.
10564         * tree-ssa-loop-manip.c: Ditto.
10565         * tree-ssa-loop-niter.c: Ditto.
10566         * tree-ssa-loop-prefetch.c: Ditto.
10567         * tree-ssa-loop-unswitch.c: Ditto.
10568         * tree-ssa-loop.c: Ditto.
10569         * tree-ssa-math-opts.c: Ditto.
10570         * tree-ssa-operands.c: Ditto.
10571         * tree-ssa-phiopt.c: Ditto.
10572         * tree-ssa-phiprop.c: Ditto.
10573         * tree-ssa-pre.c: Ditto.
10574         * tree-ssa-propagate.c: Ditto.
10575         * tree-ssa-reassoc.c: Ditto.
10576         * tree-ssa-sccvn.c: Ditto.
10577         * tree-ssa-sink.c: Ditto.
10578         * tree-ssa-strlen.c: Ditto.
10579         * tree-ssa-structalias.c: Ditto.
10580         * tree-ssa-tail-merge.c: Ditto.
10581         * tree-ssa-ter.c: Ditto.
10582         * tree-ssa-threadedge.c: Ditto.
10583         * tree-ssa-threadupdate.c: Ditto.
10584         * tree-ssa-uncprop.c: Ditto.
10585         * tree-ssa-uninit.c: Ditto.
10586         * tree-ssa.c: Ditto.
10587         * tree-ssanames.c: Ditto.
10588         * tree-stdarg.c: Ditto.
10589         * tree-streamer-in.c: Ditto.
10590         * tree-streamer-out.c: Ditto.
10591         * tree-streamer.c: Ditto.
10592         * tree-switch-conversion.c: Ditto.
10593         * tree-tailcall.c: Ditto.
10594         * tree-vect-data-refs.c: Ditto.
10595         * tree-vect-generic.c: Ditto.
10596         * tree-vect-loop-manip.c: Ditto.
10597         * tree-vect-loop.c: Ditto.
10598         * tree-vect-patterns.c: Ditto.
10599         * tree-vect-slp.c: Ditto.
10600         * tree-vect-stmts.c: Ditto.
10601         * tree-vectorizer.c: Ditto.
10602         * tree-vrp.c: Ditto.
10603         * tree.c: Ditto.
10604         * tsan.c: Ditto.
10605         * ubsan.c: Ditto.
10606         * valtrack.c: Ditto.
10607         * valtrack.h: Ditto.
10608         * value-prof.c: Ditto.
10609         * var-tracking.c: Ditto.
10610         * varasm.c: Ditto.
10611         * varpool.c: Ditto.
10612         * vtable-verify.c: Ditto.
10613         * web.c: Ditto.
10614         * config/aarch64/aarch64-builtins.c: Ditto.
10615         * config/aarch64/aarch64.c: Ditto.
10616         * config/alpha/alpha.c: Ditto.
10617         * config/arc/arc.c: Ditto.
10618         * config/arm/arm.c: Ditto.
10619         * config/avr/avr.c: Ditto.
10620         * config/bfin/bfin.c: Ditto.
10621         * config/c6x/c6x.c: Ditto.
10622         * config/cr16/cr16.c: Ditto.
10623         * config/cris/cris.c: Ditto.
10624         * config/darwin-c.c: Ditto.
10625         * config/darwin.c: Ditto.
10626         * config/epiphany/epiphany.c: Ditto.
10627         * config/epiphany/mode-switch-use.c: Ditto.
10628         * config/epiphany/resolve-sw-modes.c: Ditto.
10629         * config/fr30/fr30.c: Ditto.
10630         * config/frv/frv.c: Ditto.
10631         * config/h8300/h8300.c: Ditto.
10632         * config/i386/i386.c: Ditto.
10633         * config/i386/winnt.c: Ditto.
10634         * config/ia64/ia64.c: Ditto.
10635         * config/iq2000/iq2000.c: Ditto.
10636         * config/lm32/lm32.c: Ditto.
10637         * config/m32c/m32c.c: Ditto.
10638         * config/m32r/m32r.c: Ditto.
10639         * config/m68k/m68k.c: Ditto.
10640         * config/mcore/mcore.c: Ditto.
10641         * config/mep/mep.c: Ditto.
10642         * config/microblaze/microblaze.c: Ditto.
10643         * config/mips/mips.c: Ditto.
10644         * config/mmix/mmix.c: Ditto.
10645         * config/mn10300/mn10300.c: Ditto.
10646         * config/moxie/moxie.c: Ditto.
10647         * config/msp430/msp430.c: Ditto.
10648         * config/nds32/nds32-cost.c: Ditto.
10649         * config/nds32/nds32-fp-as-gp.c: Ditto.
10650         * config/nds32/nds32-intrinsic.c: Ditto.
10651         * config/nds32/nds32-isr.c: Ditto.
10652         * config/nds32/nds32-md-auxiliary.c: Ditto.
10653         * config/nds32/nds32-memory-manipulation.c: Ditto.
10654         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
10655         * config/nds32/nds32-predicates.c: Ditto.
10656         * config/nds32/nds32.c: Ditto.
10657         * config/nios2/nios2.c: Ditto.
10658         * config/pa/pa.c: Ditto.
10659         * config/pdp11/pdp11.c: Ditto.
10660         * config/rl78/rl78.c: Ditto.
10661         * config/rs6000/rs6000.c: Ditto.
10662         * config/rx/rx.c: Ditto.
10663         * config/s390/s390.c: Ditto.
10664         * config/sh/sh-mem.cc: Ditto.
10665         * config/sh/sh.c: Ditto.
10666         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
10667         * config/sh/sh_treg_combine.cc: Ditto.
10668         * config/sparc/sparc.c: Ditto.
10669         * config/spu/spu.c: Ditto.
10670         * config/stormy16/stormy16.c: Ditto.
10671         * config/tilegx/tilegx.c: Ditto.
10672         * config/tilepro/tilepro.c: Ditto.
10673         * config/v850/v850.c: Ditto.
10674         * config/vax/vax.c: Ditto.
10675         * config/xtensa/xtensa.c: Ditto.
10677 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
10679         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
10680         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
10681         Remove using preprocessor directives.
10683 2014-10-27  Richard Biener  <rguenther@suse.de>
10685         * match.pd (0 % X): Properly use the iterator iterating over
10686         all modulo operators.
10687         (X % 1): Likewise.
10689 2014-10-27  Richard Biener  <rguenther@suse.de>
10691         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
10692         (lattice): New global.
10693         (fwprop_ssa_val): New function.
10694         (fold_all_stmts): Likewise.
10695         (pass_forwprop::execute): Finally fold all stmts.
10697 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10699         PR c++/53061
10700         * doc/invoke.texi (fmessage-length): Update text to match reality.
10702 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10704         * config/microblaze/microblaze.c: Include rtl-iter.h.
10705         (microblaze_tls_referenced_p_1): Delete.
10706         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
10708 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10710         * config/mips/mips.c (mips_at_reg_p): Delete.
10711         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
10713 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10715         * config/mips/mips.c (mips_record_lo_sum): Replace with...
10716         (mips_record_lo_sums): ...this new function.
10717         (mips_reorg_process_insns): Update accordingly.
10719 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10721         * config/mips/mips.c (mips_sim_insn): Update comment.
10722         (mips_sim_wait_regs_2): Delete.
10723         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
10725 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10727         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
10728         and return a bool.  Iterate over all subrtxes here.
10729         (r10k_needs_protection_p): Update accordingly.
10731 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10733         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
10734         rather than an rtx pointer.  Change type of insn from "void *"
10735         to its real type.  Return bool rather than int.  Iterate over
10736         all subrtxes here.
10737         (r10k_needs_protection_p_store): Update accordingly.
10738         (r10k_needs_protection_p): Likewise.
10740 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10742         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
10743         (mips16_rewrite_pool_refs): Take the insn and constant pool as
10744         parameters.  Iterate over the instruction's pattern and return void.
10745         (mips16_lay_out_constants): Update accordingly.
10747 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10749         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
10750         (mips_refers_to_kernel_reg_p): ...this new function.
10751         (mips_expand_prologue): Update accordingly.
10753 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10755         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
10756         as a parameter instead of the containing MEM.  Iterate over all
10757         subrtxes.  Don't return a value.
10758         (mips_rewrite_small_data): Update call accordingly.
10760 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10762         * config/mips/mips.c: Include rtl-iter.h.
10763         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
10764         Take the context as a parameter instead of the containing MEM.
10765         Iterate over all subrtxes.
10766         (mips_small_data_pattern_p): Update call accordingly.
10768 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10770         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
10771         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
10773 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10775         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
10776         return a bool.  Replace "void *" with specific type.  Iterate
10777         over all subrtxes.
10778         (mep_store_data_bypass_1): Update calls accordingly.
10780 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10782         * config/mep/mep.c: Include rtl-iter.h.
10783         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
10784         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
10786 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10788         * config/xtensa/xtensa.c: Include rtl-iter.h.
10789         (xtensa_tls_referenced_p_1): Delete.
10790         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
10792 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10794         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
10795         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
10797 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10799         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
10800         rtx as argument and return the number of changes.
10801         * config/sh/sh.c: Include rtl-iter.h.
10802         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
10803         over all subrtxes.  Return the number of changes made.
10804         * config/sh/sh.md: Update caller accordingly.
10806 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10808         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
10809         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
10811 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
10813         * config/m68k/m68k.c: Include rtl-iter.h.
10814         (m68k_final_prescan_insn_1): Delete.
10815         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
10817 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
10819         PR tree-optimization/63641
10820         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
10821         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
10823 2014-10-25  Alan Modra  <amodra@gmail.com>
10825         PR rtl-optimization/63615
10826         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
10827         decomposing PLUS or MINUS if operands are not placed adjacent
10828         in the "ops" array.
10830 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
10832         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
10833         not allow e500 double in registers not satisyfing
10834         SPE_SIMD_REGNO_P.
10836 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
10838         * dwarf2out.c (declare_in_namespace): Only emit external
10839         declarations in the local scope once.
10841 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
10843         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
10845 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
10847         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
10848         update uses to use new macro arguments.
10849         (__LD3_LANE_FUNC): Likewise.
10850         (__LD4_LANE_FUNC): Likewise.
10852 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
10854         * config/aarch64/aarch64-builtins.c
10855         (aarch64_types_loadstruct_lane_qualifiers): Define.
10856         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
10857         ld4_lane): New builtins.
10858         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
10859         New pattern.
10860         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10861         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10862         (aarch64_ld2_lane<mode>): New expand.
10863         (aarch64_ld3_lane<mode>): Likewise.
10864         (aarch64_ld4_lane<mode>): Likewise.
10865         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
10866         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
10868 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
10870         * avr-protos.h (avr_out_sign_extend): New.
10871         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
10872         (avr_out_sign_extend): New function.
10873         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
10874         (extendhisi2, extendpsisi2): Use it.
10875         (adjust_len) [sext]: New.
10877 2014-10-24  Martin Liska  <mliska@suse.cz>
10879         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
10880         added.
10882 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10884         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
10885         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
10886         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
10887         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
10889 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10891         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
10892         do while (0).
10893         * config/aarch64/aarch64.c (is_mem_p): Delete.
10894         (is_memory_op): Rename to...
10895         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
10896         (dep_between_memop_and_curr): Assert that the input is a SET.
10897         (aarch64_madd_needs_nop): Add comment.  Do not call
10898         dep_between_memop_and_curr on NULL body.
10899         (aarch64_final_prescan_insn): Add comment.
10900         Include rtl-iter.h.
10902 2014-10-24  Richard Biener  <rguenther@suse.de>
10904         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
10905         to genmatch BUILD_LIBS instead.
10907 2014-10-24  Richard Biener  <rguenther@suse.de>
10909         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
10910         and build_call_expr_loc.
10911         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
10912         non_lvalue_loc to build it for GENERIC.
10913         (decision_tree::gen_generic): Add location argument to
10914         generic_simplify prototype.
10915         (capture_info): New class.
10916         (capture_info::capture_info): New constructor.
10917         (capture_info::walk_match): New method.
10918         (capture_info::walk_result): New method.
10919         (capture_info::walk_c_expr): New method.
10920         (dt_simplify::gen): Handle preserving side-effects for
10921         GENERIC code generation.
10922         (decision_tree::gen_generic): Do not reject operands
10923         with TREE_SIDE_EFFECTS.
10924         * generic-match.h: New file.
10925         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
10926         * match.pd: Add some constant folding patterns from fold-const.c.
10927         * fold-const.c: Include generic-match.h.
10928         (fold_unary_loc): Dispatch to generic_simplify.
10929         (fold_ternary_loc): Likewise.
10930         (fold_binary_loc): Likewise.  Remove patterns now implemented
10931         by generic_simplify.
10932         * gimple-fold.c (replace_stmt_with_simplification): New function.
10933         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
10934         (no_follow_ssa_edges): New function.
10935         (fold_stmt): New overload with valueization hook.  Use
10936         no_follow_ssa_edges for the overload without hook.
10937         (fold_stmt_inplace): Likewise.
10938         * gimple-fold.h (no_follow_ssa_edges): Declare.
10940 2014-10-24  Felix Yang  <felix.yang@huawei.com>
10941         Jiji Jiang  <jiangjiji@huawei.com>
10943         PR target/63173
10944         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
10945         (__LD3R_FUNC): Ditto.
10946         (__LD4R_FUNC): Ditto.
10947         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
10948          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
10949          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
10950          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
10951          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
10952          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
10953         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
10954          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
10955          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
10956          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
10957          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
10958          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
10959         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
10960          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
10961          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
10962          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
10963          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
10964          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
10965         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
10966         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
10967         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
10968         builtins.
10969         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
10970         (aarch64_simd_ld3r<mode>): Likewise.
10971         (aarch64_simd_ld4r<mode>): Likewise.
10972         (aarch64_ld2r<mode>): New expand.
10973         (aarch64_ld3r<mode>): Likewise.
10974         (aarch64_ld4r<mode>): Likewise.
10976 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
10978         * rtlanal.c (get_base_term): Handle SCRATCH.
10980 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
10982         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
10983         register pressure.
10985 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
10987         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
10988         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
10989         (max_issue, choose_ready, sched_init): Update.
10991 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
10993         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
10994         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
10995         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
10996         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
10997         (print_rank_for_schedule_stats): Print out elements of ready list that
10998         ended up on their respective places due to each of the sorting
10999         heuristics.
11000         (ready_sort): Update.
11001         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
11002         (schedule_block): Update.
11004 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11006         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
11007         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
11008         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
11009         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
11010         (model_start_schedule): Update.
11011         (sched_pressure_start_bb): New static function.  Calculate
11012         sched_class_regs_num.
11013         (schedule_block): Use it.
11014         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
11016 2014-10-24  Richard Biener  <rguenther@suse.de>
11018         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
11019         host library and make sure to pull in the required libintl
11020         and libiconv dependencies.
11022 2014-10-24  Richard Biener  <rguenther@suse.de>
11024         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
11026 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
11028         PR bootstrap/63632
11029         * collect2.c (main): Filter out -fno-lto.
11031 2014-10-24  Martin Liska  <mliska@suse.cz>
11033         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
11034         division by zero in dumps.
11035         (sem_item_optimizer::merge_classes): Ditto.
11037 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
11039         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
11041 2014-10-23  Ian Lance Taylor  <iant@google.com>
11043         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
11045 2014-10-23  Ian Lance Taylor  <iant@google.com>
11047         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
11049 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
11051         PR debug/63623
11052         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
11053         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
11054         instead of only handling autoinc in dest if it is a MEM.
11055         (vt_stack_adjustments): Fix up formatting.
11057 2014-10-23  DJ Delorie  <dj@redhat.com>
11059         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
11060         independend of -mlarge.
11061         * config/msp430/constraints.md (Ys): Update comment.
11063 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
11065         PR target/63534
11066         PR target/63618
11067         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
11068         while it is pseudo.
11069         * dse.c (deletable_insn_p): Likewise.
11071 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
11073         * config/avr/avr.c: Fix GNU coding rules and typos.
11074         * config/avr/avr.h: Dito.
11075         * config/avr/avr-c.c: Dito.
11076         * config/avr/avr.md: Dito.
11078 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11080         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
11081         New.
11082         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
11083         iterator.
11084         (define_expand "abs<mode>2"): Ditto.
11086 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11088         * tree-core.h (tree_var_decl): Extend `function_code' field
11089         by one bit, move `regdecl_flag' field to ...
11090         (tree_decl_with_vis): Here.
11091         * tree.h (DECL_STATIC_CHAIN): Update struct name.
11093 2014-10-23  Richard Biener  <rguenther@suse.de>
11095         * Makefile.in (BUILD_CPPLIB): Add.
11096         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
11097         Drop LIBIBERTY.
11099 2014-10-23  Richard Biener  <rguenther@suse.de>
11101         * fold-const.c (fold_binary_loc): Preserve side-effects of
11102         X - X when simplifying to 0.
11103         * stor-layout.c (finish_bitfield_representative): Strip
11104         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
11106 2014-10-22  Richard Biener  <rguenther@suse.de>
11107             Tobias Burnus <burnus@net-b.de>
11109         PR lto/63603
11110         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
11112 2014-10-22  Dehao Chen  <dehao@google.com>
11114         * auto-profile.c: Change order of header files.
11116 2014-10-22  Guozhi Wei  <carrot@google.com>
11118         PR tree-optimization/63530
11119         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
11120         pointer alignment according to DR_MISALIGNMENT.
11122 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
11124         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
11126 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
11128         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
11129         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
11130         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
11131         * dominance.h: New.  Add prototypes for dominance.c.
11132         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
11133         * cfghooks.h: (struct profile_record) Relocate here.
11134         Relocate 2 prototypes from basic-block.h.
11135         * basic-block.h: Move prototypes and struct to new header files.
11136         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
11137         * rtl.h: Move a few prototypes to new header files.
11138         * cfgcleanup.c (merge_memattrs): Make static.
11139         * genopinit.c (main): Add predict.h to list of includes.
11140         * predict.h: Update prototype list to match predict.c.
11141         * predict.c (maybe_hot_count_p): Export.
11142         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
11143         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
11144         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
11145         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
11146         * profile.h: Adjust prototypes.
11147         * ifcvt.h: New.  Relocate struct ce_if_block here.
11148         * ifcvt.c: Include ifcvt.h.
11149         * config/frv/frv.c: Include ifcvt.h.
11150         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
11152 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
11154         * lra.c (lra): Remove call to recog_init.
11155         * config/i386/i386.md (preferred_for_speed): New attribute
11156         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
11157         "enabled".  Remove check for sched1.
11159 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
11161         * recog.h (recog_data_d): Remove enabled_alternatives.
11162         * recog.c (extract_insn): Don't set it.
11163         * reload.c (find_reloads): Call get_enabled_alternatives.
11165 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
11167         * recog.h (constrain_operands): Add an alternative_mask parameter.
11168         (constrain_operands_cached): Likewise.
11169         (get_preferred_alternatives): Declare new form.
11170         * recog.c (get_preferred_alternatives): New bb-taking instance.
11171         (constrain_operands): Take the set of available alternatives as
11172         a parameter.
11173         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
11174         (extract_constrain_insn_cached): Update calls to constrain_operands.
11175         * caller-save.c (reg_save_code): Likewise.
11176         * ira.c (setup_prohibited_mode_move_regs): Likewise.
11177         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
11178         * ree.c (combine_reaching_defs): Likewise.
11179         * reload.c (can_reload_into): Likewise.
11180         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
11181         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
11182         (emit_insn_if_valid_for_reload): Likewise.
11183         * reorg.c (fill_slots_from_thread): Likewise.
11184         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
11185         * config/pa/pa.c (pa_can_combine_p): Likewise.
11186         * config/rl78/rl78.c (insn_ok_now): Likewise.
11187         * config/sh/sh.md (define_peephole2): Likewise.
11188         * final.c (final_scan_insn): Update call to constrain_operands_cached.
11190 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
11192         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
11193         attributes.
11194         * genattr.c (main): Handle "preferred_for_size" and
11195         "preferred_for_speed" in the same way as "enabled".
11196         * recog.h (bool_attr): New enum.
11197         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
11198         (get_preferred_alternatives, check_bool_attrs): Declare.
11199         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
11200         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
11201         New functions.
11202         (get_enabled_alternatives): Use get_bool_attr_mask.
11203         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
11204         instead of recog_data.enabled_alternatives.
11205         * ira.c (ira_setup_alts): Likewise.
11206         * postreload.c (reload_cse_simplify_operands): Likewise.
11207         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
11208         * ira-lives.c (preferred_alternatives): New variable.
11209         (process_bb_node_lives): Set it.
11210         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
11211         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
11212         of recog_data.enabled_alternatives.
11213         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
11214         to preferred_alternatives.
11215         * lra-constraints.c (process_alt_operands): Update accordingly.
11216         * lra.c (lra_set_insn_recog_data): Likewise.
11217         (lra_update_insn_recog_data): Assert check_bool_attrs.
11219 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
11221         * recog.h (extract_constrain_insn): Declare.
11222         * recog.c (extract_constrain_insn): New function.
11223         * lra.c (check_rtl): Use it.
11224         * postreload.c (reload_cse_simplify_operands): Likewise.
11225         * reg-stack.c (check_asm_stack_operands): Likewise.
11226         (subst_asm_stack_regs): Likewise.
11227         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
11228         * regrename.c (build_def_use): Likewise.
11229         * sel-sched.c (get_reg_class): Likewise.
11230         * config/arm/arm.c (note_invalid_constants): Likewise.
11231         * config/s390/predicates.md (execute_operation): Likewise.
11233 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
11234             Yury Gribov  <y.gribov@samsung.com>
11236         * common.opt (flag_sanitize_recover): New variable.
11237         (fsanitize-recover): Remove Var/Init, deprecate.
11238         (fsanitize-recover=): New option.
11239         * doc/invoke.texi (fsanitize-recover): Update docs.
11240         * opts.c (finish_options): Use opts->x_flag_sanitize
11241         instead of flag_sanitize.  Prohibit -fsanitize-recover
11242         for anything besides UBSan.  Formatting.
11243         (common_handle_option): Handle OPT_fsanitize_recover_
11244         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
11245         instead of flag_sanitize.
11246         * asan.c (pass_sanopt::execute): Fix up formatting.
11247         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
11248         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
11249         instrument_bool_enum_load, ubsan_instrument_float_cast,
11250         instrument_nonnull_arg, instrument_nonnull_return): Check
11251         bits in flag_sanitize_recover bitmask instead of
11252         flag_sanitize_recover as bool flag.
11254 2014-10-22  Jiong Wang <jiong.wang@arm.com>
11256         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
11258 2014-10-22  Renlin Li <renlin.li@arm.com>
11260         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
11261         __ARM_FEATURE_IDIV__.
11263 2014-10-22  Richard Biener  <rguenther@suse.de>
11265         * Makefile.in (s-match): Adjust dependencies to only catch
11266         match.pd.
11268 2014-10-22  Richard Biener  <rguenther@suse.de>
11269         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
11271         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
11272         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
11273         (gimple-match.c): Generate by triggering s-match.
11274         (generic-match.c): Likewise.
11275         (s-match): Rule to build gimple-match.c and generic-match.c
11276         by running the genmatch generator program.
11277         (build/hash-table.o): Dependencies to build hash-table.c for the host.
11278         (build/genmatch.o): Dependencies to build genmatch.
11279         (genprog): Add match.
11280         (build/genmatch): Likewise.
11281         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
11282         * generic-match-head.c: New file.
11283         * gimple-match-head.c: Likewise.
11284         * gimple-match.h: Likewise.
11285         * genmatch.c: Likewise.
11286         * match.pd: Likewise.
11287         * builtins.h (fold_builtin_n): Export.
11288         * builtins.c (fold_builtin_n): Likewise.
11289         * gimple-fold.h (gimple_build): Declare various overloads.
11290         (gimple_simplify): Likewise.
11291         (gimple_convert): Re-implement in terms of gimple_build.
11292         * gimple-fold.c (gimple_convert): Remove.
11293         (gimple_build): New functions.
11294         * doc/match-and-simplify.texi: New file.
11295         * doc/gccint.texi: Add menu item Match and Simplify and include
11296         match-and-simplify.texi.
11298 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
11300         PR target/63594
11301         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
11302         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
11303         even for just TARGET_AVX2, not only for
11304         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
11305         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
11306         otherwise build it using concatenation of 256-bit
11307         broadcast.
11308         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
11309         avx512 broadcast patterns.
11310         (vec_dup<mode>): Likewise.  For avx2 use
11311         v<sseintprefix>broadcast<bcstscalarsuff> instead of
11312         vbroadcast<ssescalarmodesuffix>.
11313         (AVX2_VEC_DUP_MODE): New mode iterator.
11314         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
11315         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
11317         PR target/63542
11318         * config/i386/i386.c (ix86_pic_register_p): Also return
11319         true if x is a hard register with ORIGINAL_REGNO equal to
11320         pic_offset_table_rtx pseudo REGNO.
11321         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
11322         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
11324 2014-10-22  Alan Modra  <amodra@gmail.com>
11326         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
11327         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
11328         (gcc_obstack_init): Use obstack_specify_allocation in place of
11329         _obstack_begin.
11330         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
11331         (regexp_representation): Likewise.
11332         * godump.c (go_output_type): Likewise.
11334 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
11336         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
11337         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
11338         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
11340 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
11342         * doc/invoke.texi (pedantic-errors): Explain better.
11344 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
11345             Vidya Praveen <vidya.praveen@atmel.com>
11346             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
11347             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
11348             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
11350         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
11351         __MEMX for avrtiny.
11352         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
11353         (avr_nonconst_pointer_addrspace): Likewise.
11354         * config/avr/avr.h (AVR_HAVE_LPM): Define.
11356         Added AVRTINY architecture to avr target.
11357         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
11358         (base_arch_s): member added for AVRTINY architecture.
11359         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
11360         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
11361         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
11362         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
11363         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
11364         in callee saved register list.
11365         (avr_option_override): CCP address updated for AVRTINY.
11366         (avr_init_expanders): tmp and zero rtx initialized as per arch.
11367         Reset avr_have_dimode if AVRTINY.
11368         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
11369         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
11370         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
11371         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
11372         (expand_epilogue): Likewise.
11373         (avr_print_operand): Print CCP address in case of AVRTINY also.
11374         <TBD>bad address
11375         (function_arg_regno_p): Check different register list for arguments
11376         if AVRTINY.
11377         (init_cumulative_args): Check for AVRTINY to update number of argument
11378         registers.
11379         (tiny_valid_direct_memory_access_range): New function. Return false if
11380         direct memory access range is not in accepted range for AVRTINY.
11381         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
11382         indirect load (with displacement) for AVRTINY.
11383         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
11384         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
11385         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
11386         indirect load (no displacement) for AVRTINY.
11387         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
11388         indirect load (with displacement) for AVRTINY.
11389         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
11390         indirect load for pre-decrement address.
11391         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
11392         functions. Update instruction length for AVRTINY.
11393         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
11394         SImode.
11395         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
11396         (out_movsi_r_mr): Likewise, for SImode.
11397         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
11398         indirect store (no displacement) for AVRTINY.
11399         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
11400         indirect store (with displacement) for AVRTINY.
11401         (out_movsi_mr_r): Emit out insn for IO address store. Update store
11402         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
11403         store functions.
11404         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
11405         indirect load (no displacement) for PSImode in AVRTINY.
11406         (avr_out_load_psi_reg_disp_tiny): New function to handle register
11407         indirect load (with displacement) for PSImode in AVRTINY.
11408         (avr_out_load_psi): Call PSImode register indirect load functions for
11409         AVRTINY. Update instruction length for AVRTINY.
11410         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
11411         indirect store (no displacement) for PSImode in AVRTINY.
11412         (avr_out_store_psi_reg_disp_tiny): New function to handle register
11413         indirect store (with displacement) for PSImode in AVRTINY.
11414         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
11415         register indirect store functions for AVRTINY.
11416         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
11417         register indirect store (with displacement) for AVRTINY.
11418         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
11419         register indirect store function for QImode in AVRTINY.
11420         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
11421         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
11422         indirect store (no displacement) for HImode in AVRTINY.
11423         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
11424         indirect store (with displacement) for HImode in AVRTINY.
11425         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
11426         indirect store for post-increment address in HImode.
11427         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
11428         register indirect store function for HImode in AVRTINY.
11429         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
11430         in case of AVRTINY.
11431         (order_regs_for_local_alloc): Updated register allocation order for
11432         AVRTINY.
11433         (avr_conditional_register_usage): New function. It is a target hook
11434         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
11435         used registers list and register allocation order for AVRTINY.
11436         (avr_return_in_memory): Update return value size for AVRTINY.
11437         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
11438         for AVRTINY arch and tiny program memory base address.
11439         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
11440         (avr_texinfo): Added description for AVRTINY arch.
11441         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
11442         STATIC_CHAIN_REGNUM for AVRTINY.
11443         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
11444         * config/avr/avr.md: Added constants for tmp/ zero registers in
11445         AVRTINY. Attributes for AVRTINY added.
11446         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
11447         memory access range.
11448         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
11449         in AVRTINY memory access range.
11450         (*mov<mode>): Likewise for HImode and SImode.
11451         (*movsf): Likewise for SFmode.
11452         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
11453         not have sbiw.
11454         * config/avr/avr-protos.h: Added function prototype for
11455         tiny_valid_direct_memory_access_range.
11456         * config/avr/avr-tables.opt: Regenerate.
11457         * gcc/config/avr/t-multilib: Regenerate.
11458         * doc/avr-mmcu.texi: Regenerate.
11460 2014-10-21  Andrew Pinski  <apinski@cavium.com>
11462         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
11463         available option also.
11464         * config/aarch64/aarch64-cost-tables.h: New file.
11465         * config/aarch64/aarch64-cores.def (thunderx): New core.
11466         * config/aarch64/aarch64-tune.md: Regenerate.
11467         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
11468         of config/arm/aarch-cost-tables.h.
11469         (thunderx_regmove_cost): New variable.
11470         (thunderx_tunings): New variable.
11472 2014-10-21  Dehao Chen  <dehao@google.com>
11474         * auto-profile.c: New file.
11475         * auto-profile.h: New file.
11476         * basic-block.h (maybe_hot_count_p): New export func.
11477         (add_working_set): New export func.
11478         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
11479         (GCOV_TAG_AFDO_FUNCTION): Likewise.
11480         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
11481         * opts.c (enable_fdo_optimizations): New func.
11482         (common_handle_option): Handle -fauto-profile flag.
11483         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
11484         (class pass_early_inline): Export early_inliner.
11485         (early_inliner): Likewise.
11486         (pass_early_inline::execute): Likewise.
11487         * ipa-inline.h (early_inliner): Likewise.
11488         * predict.c (maybe_hot_count_p): New export func.
11489         (counts_to_freqs): AutoFDO logic.
11490         (rebuild_frequencies): Likewise.
11491         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
11492         * profile.c (add_working_set): New func.
11493         * Makefile.in (auto-profile.o): New object file.
11494         * passes.def (pass_ipa_auto_profile): New pass.
11495         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
11496         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
11497         * toplev.c (compile_file): AutoFDO logic.
11498         * doc/invoke.texi (-fauto-profile): New doc.
11499         * coverage.c (coverage_init): AutoFDO logic.
11500         * common.opt (-fauto-profile): New flag.
11501         * timevar.def (TV_IPA_AUTOFDO): New tag.
11502         * value-prof.c (gimple_alloc_histogram_value): New export func.
11503         (check_ic_target): Likewise.
11504         * value-prof.h (gimple_alloc_histogram_value): Likewise.
11505         (check_ic_target): Likewise.
11507 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
11509         * cgraph.c (cgraph_c_finalize): New function.
11510         * cgraph.h (cgraph_c_finalize): New prototype.
11511         (cgraphunit_c_finalize): New prototype.
11512         * cgraphunit.c (first_analyzed): Move from analyze_functions
11513         to file-scope.
11514         (first_analyzed_var): Likewise.
11515         (analyze_functions): Move static variables into file-scope.
11516         (cgraphunit_c_finalize): New function.
11517         * diagnostic.c (diagnostic_finish): Free the memory for
11518         context->classify_diagnostic and context->printer, running the
11519         destructor for the latter.
11520         (bt_stop): Use toplev::main.
11521         * dwarf2out.c (dwarf2out_finalize): New function.
11522         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
11523         * gcse.c (gcse_c_finalize): New function.
11524         * gcse.h (gcse_c_finalize): New prototype.
11525         * ggc-page.c (init_ggc): Make idempotent.
11526         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
11527         * ipa-cp.c (ipa_cp_c_finalize): New function.
11528         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
11529         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
11530         a field of class pass_ipa_pure_const.
11531         (node_duplication_hook_holder): Likewise.
11532         (node_removal_hook_holder): Likewise.
11533         (register_hooks): Convert to method...
11534         (pass_ipa_pure_const::register_hooks): ...here, converting
11535         static variable init_p into...
11536         (pass_ipa_pure_const::init_p): ...new field.
11537         (pure_const_generate_summary): Update invocation of
11538         register_hooks to invoke as a method of current_pass.
11539         (pure_const_read_summary): Likewise.
11540         (propagate): Convert to...
11541         (pass_ipa_pure_const::execute): ...method.
11542         * ipa-reference.c (ipa_init): Move static bool init_p from here
11543         to...
11544         (ipa_init_p): New file-scope variable, so that it can be reset
11545         when repeatedly invoking the compiler within one process by...
11546         (ipa_reference_c_finalize): New function.
11547         * ipa-reference.h (ipa_reference_c_finalize): New.
11548         * main.c (main): Replace invocation of toplev_main with
11549         construction of a toplev instance, and call its "main" method.
11550         * params.c (global_init_params): Add an assert that
11551         params_finished is false.
11552         (params_c_finalize): New.
11553         * params.h (params_c_finalize): New.
11554         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
11555         invoking generate_summary, for the benefit of pass_ipa_pure_const.
11556         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
11557         before calling write_summary hook.
11558         (ipa_write_optimization_summaries_1): Likewise when calling
11559         write_optimization_summary hook.
11560         (ipa_read_summaries_1): Likewise for read_summary hook.
11561         (ipa_read_optimization_summaries_1): Likewise for
11562         read_optimization_summary hook.
11563         (execute_ipa_stmt_fixups): Likewise.
11564         * stringpool.c (init_stringpool): Clean up if we're called more
11565         than once.
11566         * timevar.c (timevar_init): Ignore repeated calls.
11567         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
11568         "ipa-prop.h".
11569         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
11570         (initialize_rtl): Move static local "initialized_once"
11571         into file scope, and rename to...
11572         (rtl_initialized): New variable.
11573         (do_compile): Move timevar initialization from here to
11574         toplev::start_timevars.
11575         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
11576         toplev::finalize): New functions.
11577         (toplev_main): Rename to...
11578         (toplev::main): ...this.
11579         * toplev.h (class toplev): New class.
11581 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
11583         * loop-doloop.c: Include loop-unroll.h.
11585 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
11587         * cfg.h: New.  Header file for cfg.c.
11588         * cfganal.h: New.  Header file for cfganal.c.
11589         * lcm.h: New.  Header file for lcm.c.
11590         * loop-unroll.h: New.  Header file for loop-unroll.h.
11591         * cfgloop.h: (unroll_loops): Remove prototype.
11592         * basic-block.h: Move prototypes and structs to new header files.
11593         Include cfg.h, cfganal.h, and lcm.h.
11594         * loop-init.c: Include loop-unroll.h.
11595         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
11596         * modulo-sched.c: Include loop-unroll.h.
11598 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11600         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
11601         MARKER_BYTE_UNKNOWN markers when handling casts.
11603 2014-10-21  Richard Biener  <rguenther@suse.de>
11605         * tree-ssa-phiopt.c (value_replacement): Properly verify we
11606         are the non-singleton PHI.
11608 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
11610         PR tree-optimization/63563
11611         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
11612         if either dra or drb stmts are not normal loads/stores.
11614 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
11616         * config/i386/i386.c (expand_vec_perm_1): Fix
11617         expand_vec_perm_palignr case.
11618         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
11619         VI1_AVX512.
11621 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11623         * cfgloopanal.c (seq_cost): Delete.
11624         * rtl.h (seq_cost): New prototype.
11625         * rtlanal.c (seq_cost): New function.
11626         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
11628 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
11630         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
11631         * basic-block.h: Remove prototypes for cfgrtl.c.
11632         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
11633         prototypes to cfgrtl.h.
11634         * profile.h (profile_info): Add extern export declaration.
11635         * rtl.h: Remove prototypes for cfgrtl.h.
11636         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
11637         * ipa-inline.c: Include profile.h.
11638         * loop-unroll.c: Ditto.
11639         * modulo-sched.c: Ditto.
11640         * postreload-gcse.c: Ditto.
11641         * predict.c: Ditto.
11642         * sched-ebb.c: Ditto.
11643         * sched-rgn.c: Ditto.
11644         * tracer.c: Ditto.
11645         * tree-ssa-loop-ivcanon.c: Ditto.
11647 2014-10-20  Richard Biener  <rguenther@suse.de>
11649         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
11650         operands to get a def operand kind match.  Signal mismatches
11651         to the parent so we can try swapping its operands.
11652         (vect_build_slp_tree): Try swapping operands if they have
11653         a mismatched operand kind.
11655 2014-10-20  Alan Modra  <amodra@gmail.com>
11657         PR debug/60655
11658         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
11659         Increase "ops" array size.  Correct array size tests.  Init
11660         n_constants in loop.  Break out of innermost loop when finding
11661         a trivial CONST expression.
11663 2014-10-20  Martin Liska  <mliska@suse.cz>
11665         PR ipa/63583
11666         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
11667         Gimple tempate string is compared.
11669 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
11671         * varasm.c (const_alias_set): Remove.
11672         (init_varasm_once): Remove initialization of const_alias_set.
11673         (build_constant_desc): Do not set alias set to const_alias_set.
11675 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
11677         * configure: Regenerate.
11678         * configure.ac: Move the test for section attribute specifier "e" in GAS
11679         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
11680         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
11681         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
11682         ifdef HAVE_GAS_SECTION_EXCLUDE.
11684 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
11686         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
11687         match_operand expression.
11689 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11690             David Edelsohn  <dje.gcc@gmail.com>
11692         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
11693         function.
11694         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
11696 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11698         * doc/invoke.texi (Options to Request or Suppress Warnings):
11699         Explain options precedence.
11700         (Wtrampolines): Do not indent paragraph.
11702 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
11704         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
11705         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
11706         (pa_jump_in_call_delay): Likewise.
11707         * config/pa/pa.c (pa_option_override): Remove jump in call delay
11708         override.
11709         (pa_output_millicode_call): Remove support for jump in call delay.
11710         (pa_output_call): Likewise.
11711         (pa_jump_in_call_delay): Delete.
11712         (pa_following_call): Likewise.
11713         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
11714         (uncond_branch): Remove following call check from attribute length.
11716 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
11718         PR target/53513
11719         * config/sh/sh-modes.def (PSI): Remove.
11720         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
11721         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
11722         (sh_reorg): Remove commented out FPSCR code.
11723         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
11724         insn instead of move insn.
11725         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
11726         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
11727         handling.
11728         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
11729         (sh1_builtin_p): Uncomment.
11730         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
11731         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
11732         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
11733         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
11734         (general_movsrc_operand, general_movdst_operand): Disallow
11735         fpscr_operand.
11736         * config/sh/sh.md (FPSCR_FR): New constant.
11737         (push_fpscr): Emit sts_fpscr insn.
11738         (pop_fpscr): Emit lds_fpscr_insn.
11739         (movsi_ie): Disallow FPSCR operands.
11740         (fpu_switch, unnamed related split, extend_psi_si,
11741         truncate_si_psi): Remove insns.
11742         (lds_fpscr, sts_fpscr): New insns.
11743         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
11745 >>>>>>> .r217525
11746 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
11748         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
11749         (clone_inlined_nodes): Do not overwrite the clone if above predicate
11750         returns true.
11752 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
11754         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
11755         (expand_vec_perm_d): Ditto.
11756         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
11757         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
11758         V4DFmode.
11759         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
11760         (ix86_expand_sse_unpack): Handle V64QImode.
11761         (expand_vec_perm_blend): Update conditions for TARGET, handle
11762         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
11763         (expand_vec_perm_pshufb): Handle V64QImode.
11764         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
11765         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
11766         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
11767         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
11768         (ix86_expand_vecop_qihi): Handle V64QImode.
11769         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
11770         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
11771         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
11772         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
11773         (mul<mode>3): Use VI1_AVX512.
11774         (<sse2_avx2>_packsswb): Ditto.
11775         (<sse2_avx2>_packuswb): Ditto.
11776         (<ssse3_avx2>_pshufb<mode>3): Ditto.
11777         (<shift_insn><mode>3): Ditto.
11779 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
11781         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
11782         conditions to fix bootstrap.
11784 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
11786         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
11788 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11789             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11790             Anna Tikhonova  <anna.tikhonova@intel.com>
11791             Ilya Tocar  <ilya.tocar@intel.com>
11792             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11793             Ilya Verbin  <ilya.verbin@intel.com>
11794             Kirill Yukhin  <kirill.yukhin@intel.com>
11795             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11797         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
11798         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
11799         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
11800         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
11801         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
11802         (define_expand "vec_init<mode>"): Use VF48_I1248.
11804 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11805             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11806             Anna Tikhonova  <anna.tikhonova@intel.com>
11807             Ilya Tocar  <ilya.tocar@intel.com>
11808             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11809             Ilya Verbin  <ilya.verbin@intel.com>
11810             Kirill Yukhin  <kirill.yukhin@intel.com>
11811             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11813         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
11814         expand_sse2_mulvxdi3.
11816 2014-10-17  Richard Biener  <rguenther@suse.de>
11818         * fold-const.c (fold_comparison): Remove redundant constant
11819         folding and operand swapping.
11820         (fold_binary_loc): Do comparison operand swapping here.
11821         (fold_ternary_loc): Canonicalize operand order for
11822         commutative ternary operations.
11823         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
11824         and FMA_EXPR.
11826 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
11828         PR tree-optimization/63464
11829         * gimple.h (gimple_seq_discard): New prototype.
11830         * gimple.c: Include stringpool.h and tree-ssanames.h.
11831         (gimple_seq_discard): New function.
11832         * optabs.h (lshift_cheap_p): New prototype.
11833         * optabs.c (lshift_cheap_p): New function, moved from...
11834         * tree-switch-conversion.c (lshift_cheap_p): ... here.
11835         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
11836         (reassoc_branch_fixups): New variable.
11837         (update_range_test): Add otherrangep and seq arguments.
11838         Unshare exp.  If otherrange is NULL, use for other ranges
11839         array of pointers pointed by otherrangep instead.
11840         Emit seq before gimplified statements for tem.
11841         (optimize_range_tests_diff): Adjust update_range_test
11842         caller.
11843         (optimize_range_tests_xor): Likewise.  Fix up comment.
11844         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
11845         functions.
11846         (optimize_range_tests): Adjust update_range_test caller.
11847         Call optimize_range_tests_to_bit_test.
11848         (branch_fixup): New function.
11849         (execute_reassoc): Call branch_fixup.
11851         PR tree-optimization/63302
11852         * tree-ssa-reassoc.c (optimize_range_tests_xor,
11853         optimize_range_tests_diff): Use !integer_pow2p () instead of
11854         tree_log2 () < 0.
11856 2014-10-17  Martin Liska  <mliska@suse.cz>
11858         * ipa-icf.c (sem_function::merge): Local flags are set to false
11859         to enforce equal calling convention to be used.
11860         * opts.c (common_handle_option): Indentation fix.
11862 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
11864         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
11866 2014-10-17  Tom de Vries  <tom@codesourcery.com>
11868         PR rtl-optimization/61605
11869         * regcprop.c (copyprop_hardreg_forward_1): Use
11870         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
11872 2014-10-17  Tom de Vries  <tom@codesourcery.com>
11874         PR rtl-optimization/61605
11875         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
11876         notice stores for noops.  Don't regard noops as copies.
11878 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
11880         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
11881         register in a special way.
11882         (__cpuid_count): Ditto.
11883         * config/i386/driver-i386.h: Protect with
11884         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
11885         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
11886         is required to compile the function.
11888 2014-10-16  DJ Delorie  <dj@redhat.com>
11890         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
11891         integers.
11893         * config/rs6000/rs6000-c.c (rid_int128): New.
11894         (rs6000_macro_to_expand): Use instead of RID_INT128.
11896 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
11898         * function.h: Flatten file.  Remove includes, adjust prototypes to
11899         reflect only what is in function.h.
11900         (enum direction, struct args_size, struct locate_and_pad_arg_data,
11901         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
11902         from expr.h.
11903         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
11904         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
11905         prototypes to predict.h.
11906         (init_varasm_status): Move prototype to varasm.h.
11907         * expr.h: Adjust include files.
11908         (enum direction, struct args_size, struct locate_and_pad_arg_data,
11909         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
11910         to function.h.
11911         (locate_and_pad_parm): Move prototype to function.h.
11912         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
11913         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
11914         assign_temp, reposition_prologue_and_epilogue_notes,
11915         prologue_epilogue_contains, sibcall_epilogue_contains,
11916         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
11917         set_return_jump_label): Move prototypes to function.h.
11918         * predict.h (optimize_function_for_size_p,
11919         optimize_function_for_speed_p): Relocate prototypes from function.h.
11920         * shrink-wrap.h (emit_return_into_block, active_insn_between,
11921         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
11922         function.h.
11923         * varasm.h (init_varasm_status): Relocate prototype from function.h.
11924         * genattrtab.c (write_header): Add predict.h to include list.
11925         * genconditions.c (write_header): Add predict.h to include list.
11926         * genemit.c (main): Adjust header file includes.
11927         * gengtype.c (ifiles): Add flattened function.h header files.
11928         * genoutput.c (output_prologue): Add predict.h to include list.
11929         * genpreds.c (write_insn_preds_c): Adjust header file includes.
11930         * genrecog.c (write_header): Add flattened function.h header files.
11931         * alias.c: Adjust include files.
11932         * auto-inc-dec.c: Likewise.
11933         * basic-block.h: Likewise.
11934         * bb-reorder.c: Likewise.
11935         * bt-load.c: Likewise.
11936         * builtins.c: Likewise.
11937         * caller-save.c: Likewise.
11938         * calls.c: Likewise.
11939         * cfgbuild.c: Likewise.
11940         * cfgcleanup.c: Likewise.
11941         * cfgexpand.c: Likewise.
11942         * cfgloop.c: Likewise.
11943         * cfgloop.h: Likewise.
11944         * cfgrtl.c: Likewise.
11945         * cgraph.h: Likewise.
11946         * cgraphclones.c: Likewise.
11947         * cgraphunit.c: Likewise.
11948         * combine-stack-adj.c: Likewise.
11949         * combine.c: Likewise.
11950         * coverage.c: Likewise.
11951         * cprop.c: Likewise.
11952         * cse.c: Likewise.
11953         * cselib.c: Likewise.
11954         * dbxout.c: Likewise.
11955         * ddg.c: Likewise.
11956         * df-core.c: Likewise.
11957         * df-problems.c: Likewise.
11958         * df-scan.c: Likewise.
11959         * dojump.c: Likewise.
11960         * dwarf2cfi.c: Likewise.
11961         * dwarf2out.c: Likewise.
11962         * emit-rtl.c: Likewise.
11963         * except.c: Likewise.
11964         * explow.c: Likewise.
11965         * expr.c: Likewise.
11966         * final.c: Likewise.
11967         * function.c: Likewise.
11968         * gcse.c: Likewise.
11969         * gimple-fold.c: Likewise.
11970         * gimple-low.c: Likewise.
11971         * gimple-streamer.h: Likewise.
11972         * haifa-sched.c: Likewise.
11973         * ifcvt.c: Likewise.
11974         * ira.c: Likewise.
11975         * jump.c: Likewise.
11976         * lcm.c: Likewise.
11977         * loop-invariant.c: Likewise.
11978         * lra-assigns.c: Likewise.
11979         * lra-coalesce.c: Likewise.
11980         * lra-constraints.c: Likewise.
11981         * lra-eliminations.c: Likewise.
11982         * lra-lives.c: Likewise.
11983         * lra-spills.c: Likewise.
11984         * lra.c: Likewise.
11985         * lto-cgraph.c: Likewise.
11986         * lto-section-in.c: Likewise.
11987         * lto-section-out.c: Likewise.
11988         * lto-streamer-in.c: Likewise.
11989         * lto-streamer-out.c: Likewise.
11990         * mode-switching.c: Likewise.
11991         * modulo-sched.c: Likewise.
11992         * omp-low.c: Likewise.
11993         * optabs.c: Likewise.
11994         * passes.c: Likewise.
11995         * postreload-gcse.c: Likewise.
11996         * postreload.c: Likewise.
11997         * predict.c: Likewise.
11998         * profile.c: Likewise.
11999         * recog.c: Likewise.
12000         * ree.c: Likewise.
12001         * reg-stack.c: Likewise.
12002         * regcprop.c: Likewise.
12003         * reginfo.c: Likewise.
12004         * regrename.c: Likewise.
12005         * reload.c: Likewise.
12006         * reload1.c: Likewise.
12007         * reorg.c: Likewise.
12008         * resource.c: Likewise.
12009         * rtlanal.c: Likewise.
12010         * sched-deps.c: Likewise.
12011         * sched-ebb.c: Likewise.
12012         * sched-rgn.c: Likewise.
12013         * sel-sched-dump.c: Likewise.
12014         * sel-sched-ir.c: Likewise.
12015         * sel-sched.c: Likewise.
12016         * shrink-wrap.c: Likewise.
12017         * simplify-rtx.c: Likewise.
12018         * statistics.c: Likewise.
12019         * stmt.c: Likewise.
12020         * stor-layout.c: Likewise.
12021         * store-motion.c: Likewise.
12022         * symtab.c: Likewise.
12023         * targhooks.c: Likewise.
12024         * toplev.c: Likewise.
12025         * trans-mem.c: Likewise.
12026         * tree-cfg.c: Likewise.
12027         * tree-cfgcleanup.c: Likewise.
12028         * tree-dfa.c: Likewise.
12029         * tree-eh.c: Likewise.
12030         * tree-inline.c: Likewise.
12031         * tree-into-ssa.c: Likewise.
12032         * tree-nested.c: Likewise.
12033         * tree-nrv.c: Likewise.
12034         * tree-profile.c: Likewise.
12035         * tree-ssa-alias.c: Likewise.
12036         * tree-ssa-ccp.c: Likewise.
12037         * tree-ssa-copy.c: Likewise.
12038         * tree-ssa-copyrename.c: Likewise.
12039         * tree-ssa-dom.c: Likewise.
12040         * tree-ssa-operands.c: Likewise.
12041         * tree-ssa-propagate.c: Likewise.
12042         * tree-ssa-structalias.c: Likewise.
12043         * tree-ssa-tail-merge.c: Likewise.
12044         * tree-ssa-threadedge.c: Likewise.
12045         * tree-ssa-threadupdate.c: Likewise.
12046         * tree-ssa-uncprop.c: Likewise.
12047         * tree-ssa-uninit.c: Likewise.
12048         * tree-ssa.c: Likewise.
12049         * tree-stdarg.c: Likewise.
12050         * tree-tailcall.c: Likewise.
12051         * tree.c: Likewise.
12052         * tsan.c: Likewise.
12053         * valtrack.c: Likewise.
12054         * varasm.c: Likewise.
12055         * vmsdbgout.c: Likewise.
12056         * web.c: Likewise.
12057         * config/aarch64/aarch64.c: Add flattened includes from function.h.
12058         * config/alpha/alpha.c: Likewise.
12059         * config/arc/arc.c: Likewise.
12060         * config/arm/arm.c: Likewise.
12061         * config/avr/avr-log.c: Likewise.
12062         * config/avr/avr.c: Likewise.
12063         * config/bfin/bfin.c: Likewise.
12064         * config/c6x/c6x.c: Likewise.
12065         * config/cr16/cr16.c: Likewise.
12066         * config/cris/cris.c: Likewise.
12067         * config/darwin.c: Likewise.
12068         * config/epiphany/epiphany.c: Likewise.
12069         * config/epiphany/mode-switch-use.c: Likewise.
12070         * config/epiphany/resolve-sw-modes.c: Likewise.
12071         * config/fr30/fr30.c: Likewise.
12072         * config/frv/frv.c: Likewise.
12073         * config/h8300/h8300.c: Likewise.
12074         * config/i386/i386.c: Likewise.
12075         * config/ia64/ia64.c: Likewise.
12076         * config/iq2000/iq2000.c: Likewise.
12077         * config/lm32/lm32.c: Likewise.
12078         * config/m32c/m32c.c: Likewise.
12079         * config/m32r/m32r.c: Likewise.
12080         * config/m68k/m68k.c: Likewise.
12081         * config/mcore/mcore.c: Likewise.
12082         * config/mep/mep-pragma.c: Likewise.
12083         * config/mep/mep.c: Likewise.
12084         * config/microblaze/microblaze.c: Likewise.
12085         * config/mips/mips.c: Likewise.
12086         * config/mmix/mmix.c: Likewise.
12087         * config/mn10300/mn10300.c: Likewise.
12088         * config/moxie/moxie.c: Likewise.
12089         * config/msp430/msp430.c: Likewise.
12090         * config/nds32/nds32-cost.c: Likewise.
12091         * config/nds32/nds32-fp-as-gp.c: Likewise.
12092         * config/nds32/nds32-intrinsic.c: Likewise.
12093         * config/nds32/nds32-isr.c: Likewise.
12094         * config/nds32/nds32-md-auxiliary.c: Likewise.
12095         * config/nds32/nds32-memory-manipulation.c: Likewise.
12096         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12097         * config/nds32/nds32-predicates.c: Likewise.
12098         * config/nds32/nds32.c: Likewise.
12099         * config/nios2/nios2.c: Likewise.
12100         * config/pa/pa.c: Likewise.
12101         * config/pdp11/pdp11.c: Likewise.
12102         * config/rl78/rl78.c: Likewise.
12103         * config/rs6000/rs6000.c: Likewise.
12104         * config/rx/rx.c: Likewise.
12105         * config/s390/s390.c: Likewise.
12106         * config/score/score.c: Likewise.
12107         * config/sh/sh.c: Likewise.
12108         * config/sparc/sparc.c: Likewise.
12109         * config/spu/spu.c: Likewise.
12110         * config/stormy16/stormy16.c: Likewise.
12111         * config/tilegx/tilegx.c: Likewise.
12112         * config/tilepro/tilepro.c: Likewise.
12113         * config/v850/v850.c: Likewise.
12114         * config/vax/vax.c: Likewise.
12115         * config/xtensa/xtensa.c: Likewise.
12117 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
12119         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
12120         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
12122 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
12124         * config/sh/sh-protos.h (fldi_ok): Remove.
12125         * config/sh/sh.c (fldi_ok): Likewise.
12126         (sh_secondary_reload): Don't use fldi_ok.
12127         * config/sh/constraints.md (G constraint, H constraint): Don't use
12128         fldi_ok.
12130 2014-10-16  Martin Liska  <mliska@suse.cz>
12132         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
12133         Cast to unsigned long.
12134         (sem_item_optimizer::dump_cong_classes): Likewise.
12136 2014-10-16  Tom de Vries  <tom@codesourcery.com>
12138         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
12139         with SSA_NAME_IN_FREELIST.
12141 2014-10-16  Richard Biener  <rguenther@suse.de>
12143         PR middle-end/63554
12144         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
12145         (fold_builtin_strncat_chk): Move ...
12146         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
12147         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
12149 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
12151         PR target/59401
12152         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
12153         GBR to 0.
12155 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12156             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12157             Anna Tikhonova  <anna.tikhonova@intel.com>
12158             Ilya Tocar  <ilya.tocar@intel.com>
12159             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12160             Ilya Verbin  <ilya.verbin@intel.com>
12161             Kirill Yukhin  <kirill.yukhin@intel.com>
12162             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12164         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
12165         V64QI modes.
12167 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12168             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12169             Anna Tikhonova  <anna.tikhonova@intel.com>
12170             Ilya Tocar  <ilya.tocar@intel.com>
12171             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12172             Ilya Verbin  <ilya.verbin@intel.com>
12173             Kirill Yukhin  <kirill.yukhin@intel.com>
12174             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12176         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
12177         V16SI, V32HI, V64QI modes.
12179 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
12181         PR target/53513
12182         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
12183         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
12185         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
12186         to match fp insn patterns.
12187         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
12188         list.
12189         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
12190         expand_df_unop, expand_df_binop): Remove.
12191         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
12192         FPSCR_STAT_REG as not call clobbered.
12193         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
12194         invoking fpscr_set_from_mem.
12196         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
12197         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
12198         FPSCR_STAT_REG.
12199         (REGISTER_NAMES): Adjust.
12200         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
12201         (FIRST_PSEUDO_REGISTER): Increase to 156.
12202         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
12203         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
12204         FPSCR_STAT_REG.
12205         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
12206         FPSCR_MODES_REG and FPSCR_STAT_REG.
12207         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
12209         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
12210         FPSCR_SZ): Add new constants.
12211         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
12213         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
12214         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
12215         Use TARGET_FPU_ANY condition.
12216         (fpu_switch peephole2): Remove.
12217         (fpu_switch split): Use simple_mem_operand to capture the mem and
12218         adjust split implementation.
12219         (extend_psi_si, truncate_si_psi): New insns.
12220         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
12221         set of FPSCR_MODES_REG.
12223         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
12224         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
12225         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
12226         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
12227         call_value_compact, call_value_compact_rettramp, call,
12228         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
12229         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
12230         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
12231         sibcall_value_compact, sibcall_value, call_value_pop_compact,
12232         call_value_pop_compact_rettramp, various unnamed splits):
12233         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
12234         function uses.
12236         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
12237         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
12238         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
12239         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
12240         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
12242         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
12243         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
12244         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
12245         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
12246         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
12247         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
12248         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
12250 2014-10-16  Martin Liska  <mliska@suse.cz>
12251             Jan Hubicka  <hubicka@ucw.cz>
12253         * Makefile.in: New object files included.
12254         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
12255         is printed.
12256         (verify_edge_corresponds_to_fndecl): More sensitive verification
12257         of nodes that are merged by IPA ICF.
12258         * cgraph.h (cgraph_node::num_references): New function.
12259         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
12260         * common.opt: New options ipa-icf, ipa-icf-functions and
12261         ipa-icf-variables introduced.
12262         * doc/invoke.texi: Documentation of new options introduced.
12263         * ipa-icf-gimple.c: New file.
12264         * ipa-icf-gimple.h: New file.
12265         * ipa-icf.c: New file.
12266         * ipa-icf.h: New file.
12267         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
12268         (input_overwrite_node): Likewise.
12269         * lto-section-in.c: New icf section added.
12270         * lto-streamer.h (enum lto_section_type): Likewise.
12271         * opts.c (common_handle_option): New option added.
12272         * passes.def: New pass included.
12273         * timevar.def: Time variable for IPA ICF added.
12274         * tree-pass.h: New IPA ICF pass entry point added.
12276 2014-10-16  Richard Biener  <rguenther@suse.de>
12278         PR tree-optimization/63168
12279         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
12280         latches if after merging they are no longer simple.
12281         * cfghooks.c (merge_blocks): Handle merging a latch block
12282         into another block.
12284 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12285             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12286             Anna Tikhonova  <anna.tikhonova@intel.com>
12287             Ilya Tocar  <ilya.tocar@intel.com>
12288             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12289             Ilya Verbin  <ilya.verbin@intel.com>
12290             Kirill Yukhin  <kirill.yukhin@intel.com>
12291             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12293         * config/i386/sse.md
12294         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
12295         support AVX-512VL instructions.
12297 2014-10-16  DJ Delorie  <dj@redhat.com>
12299         * tree-core.h: Fix comment to not assume pointers are multiples of
12300         bytes.
12302 2014-10-15  Tom Tromey  <tromey@redhat.com>
12304         * timevar.h (class auto_timevar): New class.
12306 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
12308         PR go/59432
12309         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
12310         Remove the second alternative.
12311         (regprefix): Remove mode attribute.
12312         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
12313         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
12315         Revert:
12316         2013-11-05  Ian Lance Taylor  <iant@google.com>
12318         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
12319         If possible, add .cfi directives to record change to bx.
12320         * config/i386/i386.c (ix86_emit_cfi): New function.
12321         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
12323 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
12325         PR lto/62026
12326         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
12327         to duplicate.
12328         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
12329         at WPA time.
12331 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
12333         PR rtl-optimization/63448
12334         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
12335         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
12336         (LRA_MAX_INHERITANCE_PASSES): Use it.
12337         (lra_constraint_iter_after_spill): Remove.
12338         (lra_assignment_iter): New.
12339         (lra_assignment_iter_after_spill): New.
12340         * lra-assigns.c (lra_assignment_iter): New.
12341         (lra_assignment_iter_after_spill): New.
12342         (former_reload_pseudo_spill_p): New.
12343         (spill_for): Set up former_reload_pseudo_spill_p.
12344         (setup_live_pseudos_and_spill_after_risky): Ditto.
12345         (assign_by_spills): Ditto.
12346         (lra_assign): Increment lra_assignment_iter.  Print the iteration
12347         number.  Reset former_reload_pseudo_spill_p.  Check
12348         lra_assignment_iter_after_spill.
12349         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
12350         lra_assignment_iter and lra_assignment_iter_after_spill.
12351         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
12352         (lra_constraints): Remove code with
12353         lra_assignment_iter_after_spill.
12355 2014-10-15  Teresa Johnson  <tejohnson@google.com>
12357         PR bootstrap/63432
12358         * tree-ssa-threadupdate.c (recompute_probabilities): Better
12359         overflow checking.
12361 2014-10-15  Renlin Li <renlin.li@arm.com>
12363         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12364         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
12365         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
12366         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
12368 2014-10-15  Richard Biener  <rguenther@suse.de>
12370         * gimple-fold.c (gimple_fold_call): Properly keep virtual
12371         SSA form up-to-date when devirtualizing a call to
12372         __builtin_unreachable and avoid fixing up EH info here.
12374 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12375             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12376             Anna Tikhonova  <anna.tikhonova@intel.com>
12377             Ilya Tocar  <ilya.tocar@intel.com>
12378             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12379             Ilya Verbin  <ilya.verbin@intel.com>
12380             Kirill Yukhin  <kirill.yukhin@intel.com>
12381             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12383         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
12384         to support AVX-512BW.
12385         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
12386         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
12387         (define_insn "*<plusminus_insn><mode>3"): Ditto.
12388         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
12389         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
12390         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
12391         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
12392         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
12393         (define_insn "*andnot<mode>3"): Ditto.
12394         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
12395         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
12396         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
12397         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
12398         (define_insn "*abs<mode>2"): Remove masking support.
12399         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
12400         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
12401         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
12403 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12404             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12405             Anna Tikhonova  <anna.tikhonova@intel.com>
12406             Ilya Tocar  <ilya.tocar@intel.com>
12407             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12408             Ilya Verbin  <ilya.verbin@intel.com>
12409             Kirill Yukhin  <kirill.yukhin@intel.com>
12410             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12412         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
12413         * config/i386/sse.md
12414         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
12415         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
12416         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
12417         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
12418         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
12419         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
12420         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
12422 2014-10-15  Renlin Li <renlin.li@arm.com>
12424         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
12426 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
12428         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
12429         MINUS_EXPR in unsigned type to avoid undefined behavior.
12431 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
12433         * stor-layout.c (self_referential_size): Do not promote arguments.
12435 2014-10-15  Marek Polacek  <polacek@redhat.com>
12437         * doc/invoke.texi: Update to reflect that GNU11 is the default
12438         mode for C.
12439         * c-common.h (c_language_kind): Update comment.
12441 2014-10-15  Richard Biener  <rguenther@suse.de>
12443         * hash-table.c: Include bconfig.h if building for the host.
12444         * hash-table.h: Do not include ggc.h on the host but just declare
12445         a few ggc allocation templates.
12447 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
12448             Jeff Law  <law@redhat.com>
12450         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
12451         multiple hard registers, use smaller mode derived from MODE.
12453 2014-10-15  Andreas Schwab  <schwab@suse.de>
12455         * explow.c (convert_memory_address_addr_space_1): Mark in_const
12456         as ATTRIBUTE_UNUSED.
12458 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
12460         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
12461         (decide_unrolling): ... this one.
12462         (peel_loops_completely): Remove.
12463         (decide_peel_simple): Remove.
12464         (decide_peel_once_rolling): Remove.
12465         (decide_peel_completely): Remove.
12466         (peel_loop_simple): Remove.
12467         (peel_loop_completely): Remove.
12468         (unroll_and_peel_loops): Rename to ...
12469         (unroll_loops): ... this one; handle only unrolling.
12470         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
12471         LPT_PEEL_SIMPLE.
12472         (UAP_PEEL): Remove.
12473         (unroll_and_peel_loops): Remove.
12474         (unroll_loops): New.
12475         * passes.def: Replace
12476         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
12477         * loop-init.c (gate_rtl_unroll_and_peel_loops,
12478         rtl_unroll_and_peel_loops): Rename to ...
12479         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
12480         (pass_rtl_unroll_and_peel_loops): Rename to ...
12481         (pass_rtl_unroll_loops): ... this one.
12482         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
12483         (make_pass_rtl_unroll_loops): New.
12484         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
12485         (canonicalize_loop_induction_variables): Update.
12487 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
12489         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
12490         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
12491         !TARGET_HARD_FLOAT_POSTINC.
12492         (*lsip, *ssip): new instructions.
12494 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
12496         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
12497         remove.
12499 2014-10-14  Andrew Pinski  <apinski@cavium.com>
12501         * explow.c (convert_memory_address_addr_space): Rename to ...
12502         (convert_memory_address_addr_space_1): This.  Add in_const argument.
12503         Inside a CONST RTL, permute the conversion and addition of constant
12504         for zero and sign extended pointers.
12505         (convert_memory_address_addr_space): New function.
12507 2014-10-14  Andrew Pinski  <apinski@cavium.com>
12509         Revert:
12510         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12512         PR middle-end/49721
12513         * explow.c (convert_memory_address_addr_space): Also permute the
12514         conversion and addition of constant for zero-extend.
12516 2014-10-14  DJ Delorie  <dj@redhat.com>
12518         * config/msp430/msp430-modes.def (PSI): Add.
12520         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
12521         (msp430_hard_regno_nregs_with_padding): New.
12522         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
12523         (msp430_hard_regno_nregs_has_padding): New.
12524         (msp430_hard_regno_nregs_with_padding): New.
12525         (msp430_unwind_word_mode): Use PSImode instead of SImode.
12526         (msp430_addr_space_legitimate_address_p): New.
12527         (msp430_asm_integer): New.
12528         (msp430_init_dwarf_reg_sizes_extra): New.
12529         (msp430_print_operand): Use X suffix for PSImode even in small model.
12530         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
12531         (PTR_SIZE): ...but 4 bytes for EH.
12532         (SIZE_TYPE): Use __int20.
12533         (PTRDIFF_TYPE): Likewise.
12534         (INCOMING_FRAME_SP_OFFSET): Adjust.
12535         * config/msp430/msp430.md (movqi_topbyte): New.
12536         (movpsi): Use fixed suffixes.
12537         (movsipsi2): Enable for 430X, not large model.
12538         (extendhipsi2): Likewise.
12539         (zero_extendhisi2): Likewise.
12540         (zero_extendhisipsi2): Likewise.
12541         (extend_and_shift1_hipsi2): Likewise.
12542         (extendpsisi2): Likewise.
12543         (*bitbranch<mode>4_z): Fix suffix logic.
12545 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
12547         PR ada/62019
12548         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
12549         do not choke on null node.
12550         <VAR_DECL>: Likewise.
12552 2014-10-14  DJ Delorie  <dj@redhat.com>
12554         * machmode.h (int_n_data_t): New.
12555         (int_n_enabled_p): New.
12556         (int_n_data): New.
12557         * tree.c (int_n_enabled_p): New.
12558         (int_n_trees): New.
12559         (make_or_reuse_type): Check for all __intN types, not just
12560         __int128.
12561         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
12562         entries.
12563         * tree.h (int128_integer_type_node): Remove.
12564         (int128_unsigned_type_node): Remove.
12565         (int_n_trees_t): New.
12566         (int_n_enabled_p): New.
12567         (int_n_trees): New.
12568         * toplev.c (standard_type_bitsize): New.
12569         (do_compile): Check which __intN types are enabled for the current
12570         run.
12571         * builtin-types.def (BT_INT128): Remove.
12572         (BT_UINT128): Remove.
12573         * machmode.def: Add macro to create __int128 for all targets.
12574         * stor-layout.c (mode_for_size): Support __intN types.
12575         (smallest_mode_for_size): Likewise.
12576         (initialize_sizetypes): Support __intN types.
12577         * genmodes.c (struct mode_data): Add int_n field.
12578         (blank_mode): Likewise.
12579         (INT_N): New.
12580         (make_int_n): New.
12581         (emit_insn_modes_h): Count __intN entries and define
12582         NUM_INT_N_ENTS.
12583         (emit_mode_int_n): New.
12584         (emit_insn_modes_c): Call it.
12585         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
12586         types, not just __int128.
12587         * tree-core.h (integer_type_kind): Remove __int128-specific
12588         entries, reserve spots for __intN entries.
12590         * config/msp430/msp430-modes.def (PSI): Add.
12592 2014-10-14  Kito Cheng  <kito@0xlab.org>
12594         * ira.c: Fix typo in comment.
12595         * ira.h: Ditto.
12596         * ira-build.c: Ditto.
12597         * ira-color.c: Ditto.
12598         * ira-emit.c: Ditto.
12599         * ira-int.h: Ditto.
12600         * ira-lives.c: Ditto.
12602 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
12604         PR rtl-optimization/63475
12605         * alias.c (true_dependence_1): Always use get_addr to extract
12606         true address operands from x_addr and mem_addr.  Use extracted
12607         address operands to check for references with alignment ANDs.
12608         Use extracted address operands with find_base_term and
12609         base_alias_check. For noncanonicalized operands call canon_rtx with
12610         extracted address operand.
12611         (write_dependence_1): Ditto.
12612         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
12614 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
12616         PR target/63534
12617         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
12618         __morestack local.
12620 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12621             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12622             Anna Tikhonova  <anna.tikhonova@intel.com>
12623             Ilya Tocar  <ilya.tocar@intel.com>
12624             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12625             Ilya Verbin  <ilya.verbin@intel.com>
12626             Kirill Yukhin  <kirill.yukhin@intel.com>
12627             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12629         * config/i386/i386.c
12630         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
12631         (ix86_expand_int_vcond): Ditto.
12633 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12634             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12635             Anna Tikhonova  <anna.tikhonova@intel.com>
12636             Ilya Tocar  <ilya.tocar@intel.com>
12637             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12638             Ilya Verbin  <ilya.verbin@intel.com>
12639             Kirill Yukhin  <kirill.yukhin@intel.com>
12640             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12642         * config/i386/i386.c
12643         (emit_reduc_half): Handle V64QI and V32HI mode.
12644         * config/i386/sse.md
12645         (define_mode_iterator VI_AVX512BW): New.
12646         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
12648 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12649             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12650             Anna Tikhonova  <anna.tikhonova@intel.com>
12651             Ilya Tocar  <ilya.tocar@intel.com>
12652             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12653             Ilya Verbin  <ilya.verbin@intel.com>
12654             Kirill Yukhin  <kirill.yukhin@intel.com>
12655             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12657         * config/i386/sse.md
12658         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
12660 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12661             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12662             Anna Tikhonova  <anna.tikhonova@intel.com>
12663             Ilya Tocar  <ilya.tocar@intel.com>
12664             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12665             Ilya Verbin  <ilya.verbin@intel.com>
12666             Kirill Yukhin  <kirill.yukhin@intel.com>
12667             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12669         * config/i386/i386.c
12670         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
12671         * config/i386/sse.md
12672         (define_mode_iterator VI): Add V64QI and V32HI modes.
12674 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12675             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12676             Anna Tikhonova  <anna.tikhonova@intel.com>
12677             Ilya Tocar  <ilya.tocar@intel.com>
12678             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12679             Ilya Verbin  <ilya.verbin@intel.com>
12680             Kirill Yukhin  <kirill.yukhin@intel.com>
12681             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12683         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
12685 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12686             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12687             Anna Tikhonova  <anna.tikhonova@intel.com>
12688             Ilya Tocar  <ilya.tocar@intel.com>
12689             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12690             Ilya Verbin  <ilya.verbin@intel.com>
12691             Kirill Yukhin  <kirill.yukhin@intel.com>
12692             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12694         * config/i386/sse.md
12695         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
12696         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
12698 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12699             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12700             Anna Tikhonova  <anna.tikhonova@intel.com>
12701             Ilya Tocar  <ilya.tocar@intel.com>
12702             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12703             Ilya Verbin  <ilya.verbin@intel.com>
12704             Kirill Yukhin  <kirill.yukhin@intel.com>
12705             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12707         * config/i386/sse.md
12708         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
12709         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
12711 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12712             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12713             Anna Tikhonova  <anna.tikhonova@intel.com>
12714             Ilya Tocar  <ilya.tocar@intel.com>
12715             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12716             Ilya Verbin  <ilya.verbin@intel.com>
12717             Kirill Yukhin  <kirill.yukhin@intel.com>
12718             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12720         * config/i386/sse.md
12721         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
12722         (define_mode_iterator VI2_AVX2): Add V32HI mode.
12723         (define_expand "mul<mode>3<mask_name>"): Add masking.
12724         (define_insn "*mul<mode>3<mask_name>"): Ditto.
12725         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
12726         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
12727         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
12728         (define_mode_attr SDOT_PMADD_SUF): Ditto.
12729         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
12730         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
12731         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
12732         (define_insn "avx2_packusdw"): Delete.
12733         (define_insn "sse4_1_packusdw"): Ditto.
12734         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
12736 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12737             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12738             Anna Tikhonova  <anna.tikhonova@intel.com>
12739             Ilya Tocar  <ilya.tocar@intel.com>
12740             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12741             Ilya Verbin  <ilya.verbin@intel.com>
12742             Kirill Yukhin  <kirill.yukhin@intel.com>
12743             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12745         * config/i386/sse.md
12746         (define_insn "vec_dup<mode>"): Update constraints.
12748 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12749             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12750             Anna Tikhonova  <anna.tikhonova@intel.com>
12751             Ilya Tocar  <ilya.tocar@intel.com>
12752             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12753             Ilya Verbin  <ilya.verbin@intel.com>
12754             Kirill Yukhin  <kirill.yukhin@intel.com>
12755             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12757         * config/i386/sse.md
12758         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
12759         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
12760         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
12762 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12763             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12764             Anna Tikhonova  <anna.tikhonova@intel.com>
12765             Ilya Tocar  <ilya.tocar@intel.com>
12766             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12767             Ilya Verbin  <ilya.verbin@intel.com>
12768             Kirill Yukhin  <kirill.yukhin@intel.com>
12769             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12771         * config/i386/sse.md
12772         (define_expand "mul<mode>3<mask_name>"): Add masking.
12774 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12775             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12776             Anna Tikhonova  <anna.tikhonova@intel.com>
12777             Ilya Tocar  <ilya.tocar@intel.com>
12778             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12779             Ilya Verbin  <ilya.verbin@intel.com>
12780             Kirill Yukhin  <kirill.yukhin@intel.com>
12781             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12783         * config/i386/sse.md
12784         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
12785         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
12787 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12788             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12789             Anna Tikhonova  <anna.tikhonova@intel.com>
12790             Ilya Tocar  <ilya.tocar@intel.com>
12791             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12792             Ilya Verbin  <ilya.verbin@intel.com>
12793             Kirill Yukhin  <kirill.yukhin@intel.com>
12794             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12796         * config/i386/sse.md
12797         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
12798         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
12799         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
12800         Ditto.
12802 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12803             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12804             Anna Tikhonova  <anna.tikhonova@intel.com>
12805             Ilya Tocar  <ilya.tocar@intel.com>
12806             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12807             Ilya Verbin  <ilya.verbin@intel.com>
12808             Kirill Yukhin  <kirill.yukhin@intel.com>
12809             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12811         * config/i386/sse.md
12812         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
12813         use VF_128_256 mode iterator and update assembler emit code.
12814         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
12815         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
12816         Add masking, use VF_128_256 mode iterator.
12817         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
12818         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
12819         Add masking, use VF_128_256 mode iterator and update assembler emit
12820         code.
12821         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
12822         (define_mode_attr avx512flogicsuff): Delete.
12823         (define_insn "avx512f_<logic><mode>"): Ditto.
12824         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
12825         MODE_TI.
12826         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
12828 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12829             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12830             Anna Tikhonova  <anna.tikhonova@intel.com>
12831             Ilya Tocar  <ilya.tocar@intel.com>
12832             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12833             Ilya Verbin  <ilya.verbin@intel.com>
12834             Kirill Yukhin  <kirill.yukhin@intel.com>
12835             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12837         * config/i386/sse.md
12838         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
12839         (define_expand "vashr<mode>3<mask_name>"): Add masking,
12840         use VI12_128 mode iterator.
12841         (define_expand "ashrv2di3<mask_name>"): New.
12843 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12844             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12845             Anna Tikhonova  <anna.tikhonova@intel.com>
12846             Ilya Tocar  <ilya.tocar@intel.com>
12847             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12848             Ilya Verbin  <ilya.verbin@intel.com>
12849             Kirill Yukhin  <kirill.yukhin@intel.com>
12850             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12852         * config/i386/i386.c
12853         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
12854         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
12855         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
12856         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
12857         CODE_FOR_avx512vl_ucmpv4si3_mask.
12858         * config/i386/sse.md
12859         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
12860         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
12861         (define_insn
12862         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
12863         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
12864         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
12865         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
12866         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
12867         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
12869 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12870             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12871             Anna Tikhonova  <anna.tikhonova@intel.com>
12872             Ilya Tocar  <ilya.tocar@intel.com>
12873             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12874             Ilya Verbin  <ilya.verbin@intel.com>
12875             Kirill Yukhin  <kirill.yukhin@intel.com>
12876             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12878         * config/i386/sse.md
12879         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
12880         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
12881         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
12882         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
12883         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
12884         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
12885         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
12886         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
12887         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
12889 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12890             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12891             Anna Tikhonova  <anna.tikhonova@intel.com>
12892             Ilya Tocar  <ilya.tocar@intel.com>
12893             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12894             Ilya Verbin  <ilya.verbin@intel.com>
12895             Kirill Yukhin  <kirill.yukhin@intel.com>
12896             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12898         * config/i386/sse.md
12899         (define_insn "avx512f_blendm<mode>"): Delete.
12900         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
12901         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
12902         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
12903         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
12904         (define_insn
12905         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
12906         Remove.
12907         (define_insn
12908         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
12909         New.
12910         (define_insn
12911         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
12912         Ditto.
12913         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
12914         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
12915         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
12916         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
12917         Delete.
12918         (define_insn
12919         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
12920         New.
12921         (define_insn
12922         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
12923         Ditto.
12924         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
12925         Delete.
12926         (define_insn
12927         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
12928         New.
12929         (define_insn
12930         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
12931         Ditto.
12933 2014-10-14  Richard Biener  <rguenther@suse.de>
12935         PR tree-optimization/63512
12936         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
12937         modified.
12939 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
12941         PR target/63260
12942         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
12943         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
12944         of FPSCR.
12945         (negsf2_i): Rename to *negsf2_i.
12946         (abssf2_i): Rename to *abssf2_i.
12947         (negdf2_i): Rename to *negdf2_i.
12948         (absdf2_i): Rename to *absdf2_i.
12950 2014-10-14  Felix Yang  <felix.yang@huawei.com>
12951             Jeff Law  <law@redhat.com>
12953         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
12954         "replace" into boolean bitfields; turn member "loop_depth" into a short
12955         integer; add new member "no_equiv" and "reserved".
12956         (no_equiv): Set no_equiv of struct equivalence if register is marked
12957         as having no known equivalence.
12958         (update_equiv_regs): Check all definitions for a multiple-set
12959         register to make sure that the RHS have the same value.
12961 2014-10-13  Richard Henderson  <rth@redhat.com>
12963         * combine-stack-adj.c (no_unhandled_cfa): New.
12964         (maybe_merge_cfa_adjust): New.
12965         (combine_stack_adjustments_for_block): Use them.
12967 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
12969         * Makefile.in (TAGS): Tag ../include files.
12971 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12973         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
12974         to rs6000_dbx_register_number.
12975         (DWARF_FRAME_REGNUM): Redefine as identity map.
12976         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
12977         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
12978         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
12979         argument to handle .debug_frame and .eh_frame directly.  Always
12980         translate SPE high register numbers.  Add special treatment for CR,
12981         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
12983         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
12984         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
12985         (RS6000_USE_DWARF_NUMBERING): Define.
12986         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
12987         (RS6000_USE_DWARF_NUMBERING): Define.
12988         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
12989         (RS6000_USE_DWARF_NUMBERING): Define.
12990         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
12991         (RS6000_USE_DWARF_NUMBERING): Define.
12992         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
12993         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
12995 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
12997         * config/i386/i386.c (ix86_address_cost): Lower cost for
12998         when address contains GOT register.
13000 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13001             Vladimir Makarov  <vmakarov@redhat.com>
13003         PR target/8340
13004         PR middle-end/47602
13005         PR rtl-optimization/55458
13006         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
13007         (ix86_init_pic_reg): New.
13008         (ix86_select_alt_pic_regnum): Add check on pseudo register.
13009         (ix86_save_reg): Likewise.
13010         (ix86_expand_prologue): Remove PIC register initialization
13011         now performed in ix86_init_pic_reg.
13012         (ix86_output_function_epilogue): Add check on pseudo register.
13013         (set_pic_reg_ever_alive): New.
13014         (legitimize_pic_address): Replace df_set_regs_ever_live with new
13015         set_pic_reg_ever_alive.
13016         (legitimize_tls_address): Likewise.
13017         (ix86_pic_register_p): New check.
13018         (ix86_delegitimize_address): Add check on pseudo register.
13019         (ix86_expand_call): Insert move from pseudo PIC register to ABI
13020         defined REAL_PIC_OFFSET_TABLE_REGNUM.
13021         (TARGET_INIT_PIC_REG): New.
13022         (TARGET_USE_PSEUDO_PIC_REG): New.
13023         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
13024         if pic_offset_table_rtx exists.
13025         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
13026         Document.
13027         * doc/tm.texi: Regenerate.
13028         * function.c (assign_parms): Generate pseudo register for PIC.
13029         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
13030         register.
13031         * ira-color.c (color_pass): Add check on pseudo register.
13032         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
13033         register.
13034         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
13035         register.
13036         (ira): Add target specific PIC register initialization.
13037         (do_reload): Keep PIC pseudo register.
13038         * lra-assigns.c (spill_for): Add checks on pseudo register.
13039         * lra-constraints.c (contains_symbol_ref_p): New.
13040         (lra_constraints): Enable lra risky transformations when PIC is pseudo
13041         register.
13042         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
13043         * target.def (use_pseudo_pic_reg): New.
13044         (init_pic_reg): New.
13046 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
13048         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
13049         Remove m_SILVERMONT and m_INTEL from the tune.
13051 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13053         PR libfortran/63471
13054         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13055         when _HPUX_SOURCE is defined.
13057 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
13059         PR tree-optimization/62127
13060         * tree.c (remap_type_1): When remapping array, remap
13061         also its type.
13063 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
13065         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
13066         longer impact parallelization.
13068 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
13070         PR bootstrap/63496
13071         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
13073 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
13075         * asan.c (instrument_derefs): BIT_FIELD_REF added.
13077 2014-10-13  Richard Biener  <rguenther@suse.de>
13079         PR tree-optimization/63419
13080         * gimple-fold.h (gimple_convert): New function.
13081         * gimple-fold.c (gimple_convert): Likewise.
13082         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
13083         to split out required conversions early.
13085 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
13087         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
13088         Add the parts of an insn in reverse order, with the pattern at
13089         the top of the queue.  Detect when we're iterating over a SEQUENCE
13090         pattern and in that case just consider patterns of subinstructions.
13092 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
13094         PR target/59401
13095         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
13096         of rtx.
13097         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
13098         insn walking.
13099         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
13100         address.  Use def chains to handle GBR clobbering call insns.
13102 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
13104         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
13105         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
13106         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
13107         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
13108         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
13109         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
13110         * doc/gty.texi (for_user): Document new option.
13111         * gengtype.c (create_user_defined_type): Don't try to get a struct for
13112         char.
13113         (walk_type): Don't error out on for_user option.
13114         (write_func_for_structure): Emit user marking routines if requested by
13115         for_user option.
13116         (write_local_func_for_structure): Likewise.
13117         (main): Mark types with for_user option as used.
13118         * ggc.h (gt_pch_nx): Add overload for unsigned int.
13119         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
13120         * hash-table.h (ggc_hasher): New struct.
13121         (hash_table::create_ggc): New function.
13122         (gt_pch_nx): New overload for hash_table.
13124 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
13126         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
13127         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
13128         * config/sh/sh.c: Likewise.
13129         * config/sh/sh-mem.cc: Likewise.
13130         * config/sh/sh.md: Likewise.
13131         * config/sh/predicates.md: Likewise.
13132         * config/sh/sync.md: Likewise.
13134 2014-10-11  Martin Liska  <mliska@suse.cz>
13136         PR middle-end/63376
13137         * cgraphunit.c (symbol_table::process_new_functions): Missing call
13138         for call_cgraph_insertion_hooks added.
13140 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
13142         PR c/63495
13143         * stor-layout.c (min_align_of_type): Don't decrease alignment
13144         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
13145         TYPE_USER_ALIGN is set.
13147 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
13149         PR rtl-optimization/63483
13150         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
13151         references when alignment ANDs are involved.
13152         (write_dependence_p): Ditto.
13153         (may_alias_p): Ditto.
13155 2014-10-10  Marek Polacek  <polacek@redhat.com>
13157         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
13158         * doc/invoke.texi: Document -fsanitize=object-size.
13159         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
13160         or it into SANITIZE_UNDEFINED.
13161         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
13162         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
13163         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
13164         * opts.c (common_handle_option): Handle -fsanitize=object-size.
13165         * ubsan.c: Include tree-object-size.h.
13166         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
13167         (ubsan_expand_bounds_ifn): Use false instead of 0.
13168         (ubsan_expand_objsize_ifn): New function.
13169         (instrument_object_size): New function.
13170         (pass_ubsan::execute): Add object size instrumentation.
13171         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
13173 2014-10-10  Richard Henderson  <rth@redhat.com>
13175         PR target/63404
13176         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
13177         Restrict the set of expressions we're willing to move.
13179 2014-10-10  Jeff Law  <law@redhat.com>
13181         * ira.c (struct equivalence): Promote INIT_INSNs field to
13182         an rtx_insn_list.  Add comments.
13183         (no_equiv): Promote LIST to an rtx_insn_list.  Update
13184         testing for and creating the special marker.  Use methods
13185         to extract the insn and next pointers.  Promote INSN to an
13186         rtx_insn.
13187         (update_equiv_regs): Update test for special marker in the
13188         INIT_INSNs list.
13190 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13192         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
13193         * configure: Regenerate.
13194         * config/aarch64/aarch64.c (aarch64_override_options): Handle
13195         TARGET_FIX_ERR_A53_835769_DEFAULT.
13196         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
13197         value to 2.
13198         * doc/install.texi (aarch64*-*-*): Document
13199         new --enable-fix-cortex-a53-835769 option.
13201 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13202             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13204         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
13205         (ADJUST_INSN_LENGTH): Define.
13206         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
13207         * config/aarch64/aarch64.c (is_mem_p): New function.
13208         (is_memory_op): Likewise.
13209         (aarch64_prev_real_insn): Likewise.
13210         (is_madd_op): Likewise.
13211         (dep_between_memop_and_curr): Likewise.
13212         (aarch64_madd_needs_nop): Likewise.
13213         (aarch64_final_prescan_insn): Likewise.
13214         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
13215         and -mno-fix-cortex-a53-835769 options.
13217 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
13219         PR tree-optimization/63464
13220         * tree-switch-conversion.c (struct case_bit_test): Remove
13221         hi and lo fields, add wide_int mask field.
13222         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
13223         hi/lo fields into wide_int mask operations, optimize by pretending
13224         minval to be 0 if maxval is small enough.
13225         (process_switch): Adjust caller.
13227 2014-10-10  Richard Biener  <rguenther@suse.de>
13229         PR tree-optimization/63379
13230         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
13231         a neutral operand for min/max when it is not a reduction chain.
13233 2014-10-10  Richard Biener  <rguenther@suse.de>
13235         PR tree-optimization/63476
13236         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
13237         (BB_LIVE_VOP_ON_EXIT): New define.
13238         (create_expression_by_pieces): Assign VUSEs to stmts.
13239         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
13240         (pass_pre::execute): Assert virtual SSA form is up-to-date
13241         after insertion.
13243 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
13245         * lra-assigns.c (assign_by_spills): Error out on spill failure.
13247 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
13249         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
13250         assertion.
13252 2014-10-09  Richard Biener  <rguenther@suse.de>
13254         PR tree-optimization/63380
13255         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
13256         may trap.
13258 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
13260         * config/avr/avr.opt (mmcu=): Change to have a string value.
13261         (mn-flash=, mskip-bug, march=, mrmw): New options.
13262         (HeaderInclude): New.
13263         (mmcu=): Remove Var / Init clauses.
13264         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
13265         -specs option.
13266         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
13267         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
13268         (SYMBOL_FLAG_IO_LOW): Define.
13269         (avr_device_to_as, avr_device_to_ld): Don't declare.
13270         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
13271         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
13272         (EXTRA_SPEC_FUNCTIONS): Don't define.
13273         (ASM_SPEC): Translate -arch= option to -mmcu= option.
13274         (LINK_SPEC): Translate -arch= option to -m= option.
13275         Don't use device_to_ld / device_to_data_start.
13276         (STARTFILE_SPEC): Now empty.
13277         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
13278         * config/avr/gen-avr-mmcu-specs.c: New file.
13279         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
13280         (s-device-specs): Likewise.
13281         (GCC_PASSES): Add s-device-specs.
13282         (install-driver): Depend on install-device-specs.
13283         (install-device-specs): New rule.
13284         * config/avr/avr.c (avr_option_override): Look up mcu arch by
13285         avr_arch_index and provide fallback initialization for avr_n_flash.
13286         (varasm.h): #include.
13287         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
13288         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
13289         (avr_attribute_table): Add "io", "address" and "io_low".
13290         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
13291         Add special handling for symbols with "io" and/or "address" attributes.
13292         (avr_asm_asm_output_aligned_bss): New function.
13293         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
13294         as appropriate.  Handle io_low attribute.
13295         (avr_out_sbxx_branch): Handle symbolic io addresses.
13296         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
13297         avr_n_flash instead of avr_current_device->n_flash.
13298         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
13299         (avr_emit_movmemhi): Likewise.
13300         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
13301         Use TARGET_RMW instead of avr_current_device->dev_attributes.
13302         Don't define avr_current_device->macro (that's the specfile's job).
13303         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
13304         * config/avr/avr.c (avr_2word_insn_p): Likewise.
13305         * config/avr/avr.md (*cpse.ne): Likewise.
13306         (mov<mode>): Use avr_eval_addr_attrib.
13307         (cbi): Change constraint for low_io_address_operand operand to "i".
13308         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
13309         * config/avr/predicates.md (io_address_operand):
13310         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
13311         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
13312         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
13313         Update prototype.
13314         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
13315         * config/avr/genmultilib.awk: Use -march=.
13316         Remove Multilib matches processing.
13317         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
13318         * config/avr/avr-arch.h: Add double include guard.
13319         (avr_mcu_t) <library_name>: Update comment.
13320         * config/avr/driver-avr.c (avr_device_to_as): Delete.
13321         (avr_device_to_ld, avr_device_to_data_start): Likewise.
13322         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
13323         (avr_device_to_sp8): Likewise.
13324         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
13326         * doc/extend.texi (io, address): Document new AVR variable attributes.
13327         (io_low): Likewise.
13329 2014-10-09  Marek Polacek  <polacek@redhat.com>
13331         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
13333 2014-10-08  Richard Biener  <rguenther@suse.de>
13335         PR tree-optimization/61969
13336         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
13337         variables.
13339 2014-10-09  Richard Biener  <rguenther@suse.de>
13341         PR tree-optimization/63445
13342         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
13343         overflow for non-equality compares.
13345 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
13347         PR rtl-optimization/57003
13348         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
13349         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
13350         killing regs_invalidated_by_call.
13352 2014-10-08  Teresa Johnson  <tejohnson@google.com>
13354         PR bootstrap/63432.
13355         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
13356         (ssa_fix_duplicate_block_edges): Invoke it.
13357         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
13359 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
13361         PR target/52941
13362         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
13363         atomic_fetch_<fetchop_name>si_hard,
13364         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
13365         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
13366         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
13367         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
13369 2014-10-08  Rong Xu  <xur@google.com>
13371         * gcov-tool.c (profile_overlap): New driver function
13372         to compute profile overlap.
13373         (print_overlap_usage_message): New.
13374         (overlap_usage): New.
13375         (do_overlap): New.
13376         (print_usage): Add calls to overlap function.
13377         (main): Ditto.
13378         * doc/gcov-tool.texi: Add documentation.
13380 2014-10-08  Steve Ellcey  <sellcey@mips.com>
13382         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
13383         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
13385 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
13387         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
13388         pattern matching of MEM_REF.
13389         (check_stmt_for_type_change): Update.
13391 2014-10-08  Steve Ellcey  <sellcey@mips.com>
13393         * config/mips/linux64.h: Remove.
13394         * config/mips/gnu-user64.h: Remove.
13395         * gcc.config (mips*-*-*): Remove references to linux64.h and
13396         gnu-user64.h
13397         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
13398         with modified version from gnu-user64.h.
13399         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
13400         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
13401         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
13402         linux64.h.
13403         (GNU_USER_LINK_EMULATION64): Ditto.
13404         (GNU_USER_LINK_EMULATIONN32): Ditto.
13405         (GLIBC_DYNAMIC_LINKER32): Ditto.
13406         (GLIBC_DYNAMIC_LINKER64): Ditto.
13407         (GLIBC_DYNAMIC_LINKERN32): Ditto.
13408         (UCLIBC_DYNAMIC_LINKER32): Ditto.
13409         (UCLIBC_DYNAMIC_LINKER64): Ditto.
13410         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
13411         (BIONIC_DYNAMIC_LINKERN32): Ditto.
13412         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
13413         (GLIBC_DYNAMIC_LINKER): Delete.
13414         (UCLIBC_DYNAMIC_LINKER): Delete.
13416 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
13417             Richard Biener  <rguenther@suse.de>
13419         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
13420         Get address space from operand 0 (BASE).
13422 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
13424         PR target/61387
13425         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
13427 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
13429         * dwarf2out.c: Remove current_function_has_inlines.
13430         (gen_subprogram_die): Same.
13431         (gen_inlined_subroutine_die): Same.
13433 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
13435         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
13436         type.
13437         (_addcarry_u64): Ditto.
13438         (_addcarryx_u64): Ditto.
13440 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
13442         * cgraph.h (cgraph_node::get_fun): Declare.
13443         * cgraph.c (cgraph_node::get_fun): New method.
13444         * ipa-inline.c (can_inline_edge_p): Use it.
13446 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
13448         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
13449         and -ftrapping-math.
13450         * lto-wrapper.c (merge_and_complain): Likewise.
13451         (run_gcc): Likewise.
13453 2014-10-06  Rong Xu  <xur@google.com>
13455         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
13456         * tree-profile.c: (params.h): New include.
13457         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
13458         and __gcov_indirect_call_topn_counters for
13459         indirect_call_topn_profile.
13460         (gimple_init_edge_profiler): New decls for
13461         __gcov_indirect_call_topn_profiler.
13462         (gimple_gen_ic_profiler): Generate the correct profiler call.
13463         (gimple_gen_ic_func_profiler): Fix format.
13464         * value-prof.c (params.h): New include.
13465         (dump_histogram_value): Hanlde indirect_call_topn counters.
13466         (stream_in_histogram_value): Ditto.
13467         (gimple_indirect_call_to_profile): Use indirect_call_topn
13468         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
13469         (gimple_find_values_to_profile): Hanlde indirect_call_topn
13470         counters.
13471         * value-prof.h (enum hist_type): Histrogram type for
13472         indirect_call_topn counters.
13473         * profile.c (instrument_values): Instrument
13474         indirect_call_topn counters.
13476 2014-10-06  Rong Xu  <xur@google.com>
13478         * Makefile.in: Fix dependence.
13479         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
13480         indirect call topn profiler.
13481         * gcov-io.h: Ditto.
13483 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
13485         * calls.c (expand_call): Do not use the target as the return slot if
13486         it is not sufficiently aligned.
13488 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13490         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
13491         discussion of permutes and why we don't handle them.
13493 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
13495         * config/sparc/predicates.md (int_register_operand): Delete.
13497 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
13499         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
13501 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
13503         * ubsan.h (ubsan_get_source_location): New prototype.
13504         * ubsan.c (ubsan_source_location_type): New variable.
13505         Function renamed to ...
13506         (ubsan_get_source_location_type): ... this.  Cache
13507         return value in ubsan_source_location_type variable.
13508         (ubsan_source_location, ubsan_create_data): Use
13509         ubsan_get_source_location_type instead of
13510         ubsan_source_location_type.
13511         * asan.c (asan_protect_global): Don't protect globals
13512         with ubsan_get_source_location_type () type.
13513         (asan_add_global): Provide global decl location info
13514         if possible.
13516 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
13518         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
13519         sanity check.
13521 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
13523         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
13524         on size.
13525         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
13526         into vptr pointer.
13527         (ipa_polymorphic_call_context::dump): Fix formating.
13528         (walk_ssa_copies): Add logic avoiding loops; update uses.
13529         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
13531 2014-10-02  Mark Wielaard  <mjw@redhat.com>
13533         PR debug/63239
13534         * dwarf2out.c (gen_subprogram_die): When a member function is
13535         explicitly deleted then add a DW_AT_GNU_deleted attribute.
13536         * langhooks.h (struct lang_hooks_for_decls): Add
13537         function_decl_deleted_p langhook.
13538         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
13539         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
13541 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
13543         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
13544         NULL pointer checks.
13545         (ipa_polymorphic_call_context::get_dynamic_type): Return true
13546         if type doesn't change.
13547         * cgraph.h (cgraph_indirect_call_info): New flag.
13548         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
13549         (cgraph_node::dump): Dump it.
13550         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
13551         of context.get_dynamic_type.
13552         (ipa_make_edge_direct_to_target): Do not speculate
13553         edge that is already speuclative.
13554         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
13555         speculate to __builtin_unreachable
13556         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
13557         vptr_changed.
13558         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
13560 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
13562         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
13563         get_dynamic_type; drop TODO.
13564         * ipa-polymorphic-call.c
13565         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
13566         for otr_type to be unknown.
13568 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
13570         * common/config/score/score-common.c: Remove.
13571         * config.gcc: Remove support for score-*.
13572         * config/score/constraints.md: Remove.
13573         * config/score/elf.h: Remove.
13574         * config/score/predicates.md: Remove.
13575         * config/score/score-conv.h: Remove.
13576         * config/score/score-generic.md: Remove.
13577         * config/score/score-modes.def: Remove.
13578         * config/score/score-protos.h: Remove.
13579         * config/score/score.c: Remove.
13580         * config/score/score.h: Remove.
13581         * config/score/score.md: Remove.
13582         * config/score/score.opt: Remove.
13583         * doc/md.texi: Don't document score-*.
13585 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
13587         PR pch/63429
13588         * genconditions.c: Directly include ggc.h before rtl.h.
13590 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
13592         * ipa-polymorphic-call.c
13593         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
13594         code determining speculative type.
13595         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
13597 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13599         * altivec.md (altivec_lvsl): New define_expand.
13600         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
13601         (altivec_lvsr): New define_expand.
13602         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
13603         * rs6000.c (rs6000_expand_builtin): Change to use
13604         altivec_lvs[lr]_direct; remove commented-out code.
13606 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13608         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13609         Issue a warning message when vec_lvsl or vec_lvsr is used with a
13610         little endian target.
13612 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13614         * tree-pretty-print.c (dump_location): Make it extern. Dump also
13615         the column.
13616         * tree-pretty-print.h (dump_location): Declare.
13617         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
13618         (pp_gimple_stmt_1): Likewise.
13619         (dump_implicit_edges): Likewise.
13620         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
13621         LOCATION_LINE.
13624 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
13626         * gcc.c (driver::global_initializations): Remove "const" so
13627         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
13628         and decoded_options_count.
13630 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
13632         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
13633         macro.
13634         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
13635         TARGET_E500_DOUBLE case here.
13637 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
13639         PR c++/54427
13640         PR c++/57198
13641         PR c++/58845
13642         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
13644 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
13646         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
13647         * lto-cgraph.c (lto_output_edge, input_edge): Stream
13648         in_polymorphic_cdtor
13649         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
13650         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
13651         * cgraphclones.c (cgraph_edge::clone): Likewise.
13652         * ipa-prop.c (update_jump_functions_after_inlining,
13653         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
13654         to possible_dynamic_type_change.
13655         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
13656         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
13657         IN_POLY_CDOTR argument.
13659         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
13660         for BASE and OUTER_TYPE being NULL.
13661         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
13662         in_poly_cdtor parameter.
13664 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
13666         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
13667         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
13668         TARGET_AVX512F.
13669         (expand_vec_perm_1): Likewise.
13671 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
13672             Uros Bizjak  <ubizjak@gmail.com>
13674         PR tree-optimization/61403
13675         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
13676         error in comment.  Also optimize 256-bit vectors for AVX2
13677         or AVX (floating vectors only), provided the first permutation
13678         can be performed in one insn.
13680 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
13682         * gcc.c (class driver): New class.
13683         (main): Reimplement in terms of driver::main, moving most of the
13684         locals to be locals within individual methods of class driver.
13685         The remaining locals "explicit_link_files", "decoded_options" and
13686         "decoded_options_count" are used by multiple driver:: methods, and
13687         so become member data.  Doing so isolates the argc/argv reads and
13688         writes.  Replace "goto out" with a special exit code from
13689         new method driver::prepare_infiles.  Split out the old
13690         implementation of main into the following...
13691         (driver::main): New function, corresponding to the old "main"
13692         implementation.
13693         (driver::set_progname): New function, taken from the old
13694         "main" implementation.
13695         (driver::expand_at_files): Likewise.
13696         (driver::decode_argv): Likewise.
13697         (driver::global_initializations): Likewise.
13698         (driver::build_multilib_strings): Likewise.
13699         (driver::set_up_specs): Likewise.
13700         (driver::putenv_COLLECT_GCC): Likewise.
13701         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
13702         (driver::handle_unrecognized_options): Likewise.
13703         (driver::maybe_print_and_exit): Likewise.
13704         (driver::prepare_infiles): Likewise.
13705         (driver::do_spec_on_infiles): Likewise.
13706         (driver::maybe_run_linker): Likewise.
13707         (driver::final_actions): Likewise.
13708         (driver::get_exit_code): Likewise.
13710 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
13712         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
13713         don't emit empty ctors.
13715 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
13717         * convert.c (convert_to_integer): Do not introduce useless conversions
13718         between integral types.
13720 2014-10-03  David Sherwood  <david.sherwood@arm.com>
13722         * ira-int.h (ira_allocno): Mark hard_regno as signed.
13724 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
13726         * lra-constraints.c (inherit_in_ebb): Handle calls with
13727         multiple return values.
13728         * caller-save.c (save_call_clobbered_regs): Likewise.
13730 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
13732         * tree-vect-data-refs.c (vect_permute_load_chain,
13733         vect_shift_permute_load_chain): Fix a typo in temporary var names,
13734         suffle3 to shuffle3.
13736         PR libgomp/61200
13737         * omp-low.c (taskreg_contexts): New variable.
13738         (scan_omp_parallel): Push newly created context into taskreg_contexts
13739         vector and move record layout code to finish_taskreg_scan.
13740         (scan_omp_task): Likewise.
13741         (finish_taskreg_scan): New function.
13742         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
13743         vector elements and release it.
13745         PR target/62128
13746         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
13747         of palignr arguments can't be used due to min 0 or max - min
13748         too high, try also op0, op1 order of palignr arguments.
13750 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
13752         * cgraph.h (ipa_polymorphic_call_context):
13753         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
13754         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
13755         * ipa-polymorphic-call.c
13756         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
13757         past end of dynamic types.
13758         (ipa_polymorphic_call_context::stream_out,
13759         speculative_outer_type): Stream dynamic flag.
13760         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
13761         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
13762         Clear DYNAMIC.
13763         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
13764         set it.
13765         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
13766         * ipa-prop.c (update_jump_functions_after_inlining,
13767         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
13769 2014-10-02  Teresa Johnson  <tejohnson@google.com>
13771         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
13772         up when synthesizing counts to avoid rounding errors.
13774 2014-10-02  Teresa Johnson  <tejohnson@google.com>
13776         PR middle-end/63422
13777         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
13778         asserts to handle incoming insanities.
13780 2014-10-02  Martin Jambor  <mjambor@suse.cz>
13782         PR tree-optimization/63375
13783         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
13784         references.
13786 2014-10-02  Olivier Hainque  <hainque@adacore.com>
13788         * Makefile.in (CROSS): Define, to @CROSS.
13790 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
13792         PR target/62128
13793         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
13794         if it expands to a single insn only.
13795         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
13796         fail unless in_order is true.  Add forward declaration.
13797         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
13798         is useful for one_operand_p.
13799         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
13801 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
13803         * cgraphclones.c (build_function_type_skip_args): Do not make new
13804         type variant of old.
13806 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
13808         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
13809         when speculation is added.
13810         (ipa_edge_args): Add polymorphic_call_contexts.
13811         (ipa_get_ith_polymorhic_call_context): New accesor.
13812         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
13813         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
13814         (ipa_compute_jump_functions_for_edge): Compute contexts.
13815         (update_jump_functions_after_inlining): Update contexts.
13816         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
13817         update dumping; add speculative edge creation.
13818         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
13819         context updating.
13820         (update_indirect_edges_after_inlining): Pass down context.
13821         (ipa_edge_duplication_hook): Duplicate contexts.
13822         (ipa_write_node_info): Stream out contexts.
13823         (ipa_read_node_info): Stream in contexts.
13824         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
13825         types.
13826         (try_speculative_devirtualization): New function.
13827         * ipa-utils.h (try_speculative_devirtualization): Declare.
13829 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
13831         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
13832         dumping during WPA.
13834 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
13836         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
13837         type variants.
13839 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
13841         * ipa-polymorphic-call.c
13842         (ipa_polymorphic_call_context::restrict_to_inner_class):
13843         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
13844         use speculation_consistent_p to do so; Add CONSDER_BASES
13845         and CONSIDER_PLACEMENT_NEW parameters.
13846         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
13847         short circuit obvious cases.
13848         (ipa_polymorphic_call_context::dump): Improve formatting.
13849         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
13850         combine_speculation_with to record speculations; Do not ICE when
13851         object is located in pointer type decl; do not ICE for methods
13852         of UNION_TYPE; do not record nonpolymorphic types.
13853         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
13854         (ipa_polymorphic_call_context::combine_speculation_with): New method.
13855         (ipa_polymorphic_call_context::combine_with): New method.
13856         (ipa_polymorphic_call_context::make_speculative): Move here; use
13857         combine speculation.
13858         * cgraph.h (ipa_polymorphic_call_context): Update
13859         restrict_to_inner_class prototype; add offset_by, make_speculative,
13860         combine_with, useless_p, combine_speculation_with and
13861         speculation_consistent_p methods.
13862         (ipa_polymorphic_call_context::offset_by): New method.
13863         (ipa_polymorphic_call_context::useless_p): New method.
13865 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13867         PR rtl-optimization/62151
13868         * combine.c (can_combine_p): Allow the destination register of INSN
13869         to be clobbered in I3.
13870         (subst): Do not substitute into clobbers of registers.
13872 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
13874         PR debug/63342
13875         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
13876         offset, TARGET_MEM_REF and SSA_NAME.
13878         * config/i386/i386.c (expand_vec_perm_palignr): Handle
13879         256-bit vectors for TARGET_AVX2.
13881         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
13882         dfirst permutation.
13884         PR target/63428
13885         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
13886         argument to avx2_permv2ti.
13888 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13890         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
13892 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
13894         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
13895         (fmod<mode>3): Ditto.
13896         (fpremxf4_i387): Ditto.
13897         (reminderxf3): Ditto.
13898         (reminder<mode>3): Ditto.
13899         (fprem1xf4_i387): Ditto.
13901 2014-09-30  Teresa Johnson  <tejohnson@google.com>
13903         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
13904         duplicate_blocks bitmap.
13905         (remove_ctrl_stmt_and_useless_edges): Ditto.
13906         (create_block_for_threading): Ditto.
13907         (compute_path_counts): New function.
13908         (update_profile): Ditto.
13909         (recompute_probabilities): Ditto.
13910         (update_joiner_offpath_counts): Ditto.
13911         (freqs_to_counts_path): Ditto.
13912         (clear_counts_path): Ditto.
13913         (ssa_fix_duplicate_block_edges): Update profile info.
13914         (ssa_create_duplicates): Pass new parameter.
13915         (ssa_redirect_edges): Remove old profile update.
13916         (thread_block_1): New duplicate_blocks bitmap,
13917         remove old profile update.
13918         (thread_single_edge): Pass new parameter.
13920 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
13922         PR middle-end/62120
13923         * varasm.c (decode_reg_name_and_count): Check availability for
13924         registers from ADDITIONAL_REGISTER_NAMES.
13926 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
13928         PR plugins/63410
13929         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
13930         (PLUGIN_HEADERS): Add pass-instances.def.
13932 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
13934         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
13935         iterator.
13936         * config/aarch64/aarch64-simd.md
13937         (aarch64_sqdmull_laneq<mode>): Expand iterator.
13938         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
13939         (vqdmulls_lane_s32): Fix return type.
13940         (vqdmulls_laneq_s32): New.
13942 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
13944         PR inline-asm/63282
13945         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
13946         or invert_jump_1 if jump isn't any_condjump_p.
13948 2014-09-30  Terry Guo  <terry.guo@arm.com>
13950         * config/arm/arm-cores.def (cortex-m7): New core name.
13951         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
13952         (fpv5-d16): Ditto.
13953         * config/arm/arm-tables.opt: Regenerated.
13954         * config/arm/arm-tune.md: Regenerated.
13955         * config/arm/arm.h (TARGET_VFP5): New macro.
13956         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
13957         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
13958         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
13959         * doc/invoke.texi: Document new cpu and fpu names.
13961 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
13963         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
13964         before sinking insn.
13966 2014-09-30  David Sherwood  <david.sherwood@arm.com>
13968         * ira-int.h (ira_allocno): Add "wmode" field.
13969         * ira-build.c (create_insn_allocnos): Add new "parent" function
13970         parameter.
13971         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
13972         that cannot be accessed in wmode.
13974 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
13976         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
13977         integer overflow.
13979 2014-09-29  Andi Kleen  <ak@linux.intel.com>
13981         * opts.c (print_filtered_help): Print --param min/max/default
13982         with -Q.
13984 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13986         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
13988 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
13990         * tree-vrp.c (get_single_symbol): New function.
13991         (build_symbolic_expr): Likewise.
13992         (symbolic_range_based_on_p): New predicate.
13993         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
13994         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
13995         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
13996         operand is symbolic and based on the other operand.
13998 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
14000         * config/microblaze/microblaze.md (call_internal1): Use VOID
14001         instead of SI to fix "((void (*)(void)) 0)()" issue
14003 2014-09-29  Nick Clifton  <nickc@redhat.com>
14005         * config/msp430/msp430.c (msp430_expand_prologue): Return a
14006         CLOBBER rtx for naked functions.
14007         (msp430_expand_epilogue): Likewise.
14008         (msp430_use_f5_series_hwmult): Cache result.
14009         (use_32bit_hwmult): Cache result.
14010         (msp430_no_hwmult): New function.
14011         (msp430_output_labelref): Use it.
14013 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
14015         PR middle-end/63247
14016         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
14017         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
14018         use the alignment of avar rather than ovar.
14020 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
14022         * config/pa/pa.c (pa_output_function_epilogue): Only update
14023         last_address when a nonnote insn is found.
14025 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
14027         PR ipa/60665
14028         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
14030 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
14032         PR ipa/62121
14033         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
14034         fix pasto in checking array size.
14036 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
14038         PR middle-end/35545
14039         * passes.def (pass_tracer): Move before last dominator pass.
14041 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
14043         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
14044         users.
14045         (run_attempt): Handle errors of "pex_run" invocation.
14047 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
14049         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
14050         (CC1_SPEC): Define.
14051         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
14052         (TARGET_ASAN_SHADOW_OFFSET): Define.
14054 2014-09-26  Martin Liska  <mliska@suse.cz>
14056         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
14057         introduced.
14058         * cgraph.h: Likewise.
14059         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
14060         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
14061         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
14062         * tree-ssa-alias.h: Likewise.
14064 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
14065             Max Ostapenko  <m.ostapenko@partner.samsung.com>
14067         * common.opt: New option.
14068         * doc/invoke.texi: Describe new option.
14069         * gcc.c (execute): Don't free first string early, but at the end
14070         of the function.  Call retry_ice if compiler exited with
14071         ICE_EXIT_CODE.
14072         (main): Factor out common code.
14073         (print_configuration): New function.
14074         (files_equal_p): Likewise.
14075         (check_repro): Likewise.
14076         (run_attempt): Likewise.
14077         (do_report_bug): Likewise.
14078         (append_text): Likewise.
14079         (try_generate_repro): Likewise
14081 2014-09-25  Andi Kleen  <ak@linux.intel.com>
14083         * config/i386/i386.c (x86_print_call_or_nop): New function.
14084         (x86_function_profiler): Support -mnop-mcount and
14085         -mrecord-mcount.
14086         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
14087         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
14089 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
14091         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
14092         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
14093         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
14094         Remove.
14096 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
14098         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
14099         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
14100         types_odr_comparable): Declare.
14101         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
14102         * ipa-polymorphic-call.c: New file.
14103         (contains_polymorphic_type_p, possible_placement_new,
14104         ipa_polymorphic_call_context::restrict_to_inner_class,
14105         contains_type_p, decl_maybe_in_construction_p,
14106         ipa_polymorphic_call_context::stream_out,
14107         ipa_polymorphic_call_context::debug,
14108         ipa_polymorphic_call_context::stream_in,
14109         ipa_polymorphic_call_context::set_by_decl,
14110         ipa_polymorphic_call_context::set_by_invariant,
14111         walk_ssa_copies,
14112         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
14113         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
14114         extr_type_from_vtbl_ptr_store, record_known_type
14115         check_stmt_for_type_change,
14116         ipa_polymorphic_call_context::get_dynamic_type): Move here from
14117         ipa-devirt.c
14118         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
14119         and streamer-hooks.h
14120         (contains_polymorphic_type_p, possible_placement_new,
14121         ipa_polymorphic_call_context::restrict_to_inner_class,
14122         contains_type_p, decl_maybe_in_construction_p,
14123         ipa_polymorphic_call_context::stream_out,
14124         ipa_polymorphic_call_context::debug,
14125         ipa_polymorphic_call_context::stream_in,
14126         ipa_polymorphic_call_context::set_by_decl,
14127         ipa_polymorphic_call_context::set_by_invariant,
14128         walk_ssa_copies,
14129         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
14130         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
14131         extr_type_from_vtbl_ptr_store, record_known_type
14132         check_stmt_for_type_change,
14133         ipa_polymorphic_call_context::get_dynamic_type): Move to
14134         ipa-polymorphic-call.c
14135         (type_all_derivations_known_p, types_odr_comparable,
14136         types_must_be_same_for_odr): Export.
14137         (type_known_to_have_no_deriavations_p): New function.
14138         * Makefile.in: Add ipa-polymorphic-call.c
14140 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
14142         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
14143         for better storage.
14144         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
14145         (possible_polymorphic_call_targets): Instead of computing both
14146         speculative and non-speculative answers, do just one at a time.
14147         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
14148         (dump_targets): Break out from ...
14149         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
14150         and non-speculative lists.
14151         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
14152         * ipa-utils.h (possible_polymorphic_call_targets): Update.
14154 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
14156         PR rtl-optimization/63348
14157         * emit-rtl.c (try_split): Do not emit extra barrier.
14159 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
14161         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
14162         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
14163         new predicates.
14164         (aarch64_<sur>shll2_n<mode>): Likewise.
14165         (aarch64_<sur>shr_n<mode>): Likewise.
14166         (aarch64_<sur>sra_n<mode>: Likewise.
14167         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
14168         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
14169         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
14170         * config/aarch64/iterators.md (ve_mode): New.
14171         (offsetlr): Remap to infix text for use in new predicates.
14172         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
14173         (aarch64_simd_shift_imm_hi): Likewise.
14174         (aarch64_simd_shift_imm_si): Likewise.
14175         (aarch64_simd_shift_imm_di): Likewise.
14176         (aarch64_simd_shift_imm_offset_qi): Likewise.
14177         (aarch64_simd_shift_imm_offset_hi): Likewise.
14178         (aarch64_simd_shift_imm_offset_si): Likewise.
14179         (aarch64_simd_shift_imm_offset_di): Likewise.
14180         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
14181         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
14182         (aarch64_simd_shift_imm_bitsize_si): Likewise.
14183         (aarch64_simd_shift_imm_bitsize_di): Likewise.
14185 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
14187         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
14188         new created BB as the intersection of live-in from "old_dest" and
14189         live-out from "bb".
14191 2014-09-25  Felix Yang  <felix.yang@huawei.com>
14193         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
14194         * genautomata.c (merge_states): Ditto.
14196 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
14198         PR target/62218
14199         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
14200         in instruction sequence.
14202 2014-09-25  Nick Clifton  <nickc@redhat.com>
14204         PR target/62218
14205         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
14206         in instruction sequence.
14208 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14210         PR target/63335
14211         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
14212         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
14214 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14215             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14216             Anna Tikhonova  <anna.tikhonova@intel.com>
14217             Ilya Tocar  <ilya.tocar@intel.com>
14218             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14219             Ilya Verbin  <ilya.verbin@intel.com>
14220             Kirill Yukhin  <kirill.yukhin@intel.com>
14221             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14223         * config/i386/sse.md
14224         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
14225         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
14226         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
14227         (define_expand "<avx512>_perm<mode>_mask"): ... this.
14228         Use VI8F_256_512 mode iterator.
14229         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
14230         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
14232 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14233             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14234             Anna Tikhonova  <anna.tikhonova@intel.com>
14235             Ilya Tocar  <ilya.tocar@intel.com>
14236             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14237             Ilya Verbin  <ilya.verbin@intel.com>
14238             Kirill Yukhin  <kirill.yukhin@intel.com>
14239             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14241         * config/i386/sse.md
14242         (define_insn "avx_movshdup256<mask_name>"): Add masking.
14243         (define_insn "sse3_movshdup<mask_name>"): Ditto.
14244         (define_insn "avx_movsldup256<mask_name>"): Ditto.
14245         (define_insn "sse3_movsldup<mask_name>"): Ditto.
14246         (define_insn "vec_dupv2df<mask_name>"): Ditto.
14247         (define_insn "*vec_concatv2df"): Add EVEX version.
14249 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14250             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14251             Anna Tikhonova  <anna.tikhonova@intel.com>
14252             Ilya Tocar  <ilya.tocar@intel.com>
14253             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14254             Ilya Verbin  <ilya.verbin@intel.com>
14255             Kirill Yukhin  <kirill.yukhin@intel.com>
14256             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14258         * config/i386/sse.md
14259         (define_insn "vec_set<mode>_0"): Add EVEX version.
14261 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14262             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14263             Anna Tikhonova  <anna.tikhonova@intel.com>
14264             Ilya Tocar  <ilya.tocar@intel.com>
14265             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14266             Ilya Verbin  <ilya.verbin@intel.com>
14267             Kirill Yukhin  <kirill.yukhin@intel.com>
14268             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14270         * config/i386/sse.md
14271         (define_insn
14272         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
14273         New.
14274         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
14275         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
14276         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
14277         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
14278         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
14279         (define_expand "sse2_cvtpd2ps_mask): New.
14280         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
14281         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
14283 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14284             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14285             Anna Tikhonova  <anna.tikhonova@intel.com>
14286             Ilya Tocar  <ilya.tocar@intel.com>
14287             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14288             Ilya Verbin  <ilya.verbin@intel.com>
14289             Kirill Yukhin  <kirill.yukhin@intel.com>
14290             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14292         * config/i386/i386.c
14293         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
14294         (ufix_notruncv8dfv8si2_mask_round): ... this.
14295         * config/i386/sse.md
14296         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
14297         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
14298         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
14299         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
14300         (define_expand "sse2_cvtpd2dq"): Delete.
14301         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
14302         make 2nd operand const0 vector.
14303         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
14304         Delete.
14305         (define_mode_attr pd2udqsuff): New.
14306         (define_insn
14307         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
14308         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
14309         (define_insn "*avx_cvttpd2dq256_2"): Delete.
14310         (define_expand "sse2_cvttpd2dq"): Ditto.
14311         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
14312         make 2nd operand const0 vector.
14314 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
14316         PR tree-optimization/63341
14317         * tree-vectorizer.h (vect_create_data_ref_ptr,
14318         vect_create_addr_base_for_vector_ref): Add another tree argument
14319         defaulting to NULL_TREE.
14320         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
14321         argument, pass it down to vect_create_addr_base_for_vector_ref.
14322         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
14323         add that to base_offset too if non-NULL.
14324         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
14325         for dr_explicit_realign_optimized set it to vector byte size
14326         - 1 instead of setting offset, pass byte_offset down to
14327         vect_create_data_ref_ptr.
14329 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
14331         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
14332         forgotten debug output; canonicalize querries more wtih LTO.
14334 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
14336         * cgraph.h (class ipa_polymorphic_call_context): Move here from
14337         ipa-utils.h; add stream_int and stream_out methods.
14338         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
14339         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
14340         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
14341         add CONTEXT.
14342         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
14343         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
14344         ipa_polymorphic_call_context::clear_speculation,
14345         ipa_polymorphic_call_context::clear_outer_type): Move here from
14346         ipa-utils.h
14347         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
14348         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
14349         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
14350         ipa_polymorphic_call_context::clear_speculation,
14351         ipa_polymorphic_call_context::clear_outer_type): Likewise.
14352         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
14353         streamer-hooks.h
14354         (ipa_polymorphic_call_context::stream_out): New method.
14355         (ipa_polymorphic_call_context::stream_in): New method.
14356         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
14357         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
14358         OUTER_TYPE.
14359         (ipa_analyze_call_uses): Simplify.
14360         (update_indirect_edges_after_inlining): Do not care about outer_type.
14361         (ipa_write_indirect_edge_info): Update.
14362         (ipa_write_indirect_edge_info): Likewise.
14363         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
14364         (dump_edge_flags): Break out from ...
14365         (cgraph_node::dump): ... here; dump indirect edges.
14367 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
14369         * ipa-utils.h (polymorphic_call_context): Add
14370         metdhos dump, debug and clear_outer_type.
14371         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
14372         (ipa_polymorphic_call_context::clear_outer_type): New method.
14373         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
14374         * ipa-devirt.c (types_odr_comparable): New function.
14375         (types_must_be_same_for_odr): New function.
14376         (odr_subtypes_equivalent_p): Simplify.
14377         (possible_placement_new): Break out from ...
14378         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
14379         be more cuatious about returning false in cases the context may be
14380         valid in derived type or via placement new.
14381         (contains_type_p): Clear maybe_derived_type
14382         (ipa_polymorphic_call_context::dump): New method.
14383         (ipa_polymorphic_call_context::debug): New method.
14384         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
14385         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
14386         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
14387         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
14388         to suceed on all valid cases; remove confused sanity check.
14389         (dump_possible_polymorphic_call_targets): Simplify.
14391 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
14393         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
14394         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
14395         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
14396         varpool.c: Rename all instances of DECL_ABSTRACT to
14397         DECL_ABSTRACT_P.
14399 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14401         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
14402         special handling for stores whose SET_SRC is an UNSPEC (such as
14403         UNSPEC_STVE).
14405 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
14407         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
14408         !REG_P (src) to release more instruction sink opportunities.
14410 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
14412         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
14413         move costs for 128-bit types.
14415 2014-09-24  Martin Jambor  <mjambor@suse.cz>
14417         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
14418         when duplicating a PASS_THROUGH jump function when creating a
14419         speculative edge.
14421 2014-09-24  Marek Polacek  <polacek@redhat.com>
14423         PR c/61405
14424         PR c/53874
14425         * asan.c (maybe_instrument_call): Add default case.
14426         * ipa-pure-const.c (special_builtin_state): Likewise.
14427         * predict.c (expr_expected_value_1): Likewise.
14428         * lto-streamer-out.c (write_symbol): Initialize variable.
14430 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14432         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
14433         the lane.
14434         (vmuld_laneq_f64): Likewise.
14435         (vmuls_lane_f32): Likewise.
14436         (vmuls_laneq_f32): Likewise.
14438 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
14440         PR bootstrap/63235
14441         * varpool.c (varpool_node::add): Pass decl attributes
14442         to lookup_attribute.
14444 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
14446         PR sanitizer/63316
14447         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
14449 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14451         PR tree-optimization/63266
14452         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
14453         marker for unknown byte value.
14454         (MARKER_MASK): New macro.
14455         (MARKER_BYTE_UNKNOWN): New macro.
14456         (HEAD_MARKER): New macro.
14457         (do_shift_rotate): Mark bytes with unknown values due to sign
14458         extension when doing an arithmetic right shift. Replace hardcoded
14459         mask for marker by new MARKER_MASK macro.
14460         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
14461         numbers accordingly.
14463 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14464             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14465             Anna Tikhonova  <anna.tikhonova@intel.com>
14466             Ilya Tocar  <ilya.tocar@intel.com>
14467             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14468             Ilya Verbin  <ilya.verbin@intel.com>
14469             Kirill Yukhin  <kirill.yukhin@intel.com>
14470             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14472         * config/i386/sse.md
14473         (define_insn
14474         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
14475         Add masking.
14476         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
14477         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
14479 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14480             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14481             Anna Tikhonova  <anna.tikhonova@intel.com>
14482             Ilya Tocar  <ilya.tocar@intel.com>
14483             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14484             Ilya Verbin  <ilya.verbin@intel.com>
14485             Kirill Yukhin  <kirill.yukhin@intel.com>
14486             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14488         * config/i386/sse.md
14489         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
14490         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
14491         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
14492         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
14493         (define_expand "avx512vl_pshuflw_mask"): New.
14494         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
14495         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
14496         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
14497         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
14498         (define_expand "avx512vl_pshufhw_mask"): New.
14499         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
14501 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14502             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14503             Anna Tikhonova  <anna.tikhonova@intel.com>
14504             Ilya Tocar  <ilya.tocar@intel.com>
14505             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14506             Ilya Verbin  <ilya.verbin@intel.com>
14507             Kirill Yukhin  <kirill.yukhin@intel.com>
14508             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14510         * config/i386/i386.c
14511         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
14512         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
14513         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
14514         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
14515         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
14516         * config/i386/sse.md
14517         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
14518         (define_insn
14519         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
14520         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
14521         (define_insn
14522         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
14523         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
14524         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
14525         (define_expand "avx512vl_pshufd_mask"): New.
14526         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
14528 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14529             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14530             Anna Tikhonova  <anna.tikhonova@intel.com>
14531             Ilya Tocar  <ilya.tocar@intel.com>
14532             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14533             Ilya Verbin  <ilya.verbin@intel.com>
14534             Kirill Yukhin  <kirill.yukhin@intel.com>
14535             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14537         * config/i386/i386.c
14538         (CODE_FOR_avx2_extracti128): Rename to ...
14539         (CODE_FOR_avx_vextractf128v4di): this.
14540         (CODE_FOR_avx2_inserti128): Rename to ...
14541         (CODE_FOR_avx_vinsertf128v4di): this.
14542         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
14543         CODE_FOR_avx_vextractf128v4di.
14544         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
14545         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
14546         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
14547         CODE_FOR_avx512vl_vinsertv8si.
14548         * config/i386/sse.md
14549         (define_expand
14550         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
14551         AVX512_VEC mode iterator.
14552         (define_insn
14553         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
14554         Ditto.
14555         (define_expand
14556         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
14557         AVX512_VEC_2 mode iterator.
14558         (define_insn "vec_set_lo_<mode><mask_name>"): New.
14559         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
14560         (define_expand "avx512vl_vinsert<mode>"): Ditto.
14561         (define_insn "avx2_vec_set_lo_v4di"): Delete.
14562         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
14563         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
14564         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
14565         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
14566         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
14567         (define_expand "avx2_extracti128"): Delete.
14568         (define_expand "avx2_inserti128"): Ditto.
14570 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14571             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14572             Anna Tikhonova  <anna.tikhonova@intel.com>
14573             Ilya Tocar  <ilya.tocar@intel.com>
14574             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14575             Ilya Verbin  <ilya.verbin@intel.com>
14576             Kirill Yukhin  <kirill.yukhin@intel.com>
14577             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14579         * config/i386/sse.md
14580         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
14581         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
14582         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
14583         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
14584         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
14585         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
14586         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
14587         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
14588         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
14589         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
14590         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
14591         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
14592         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
14594 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14596         PR rtl-optimization/63210
14597         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
14598         HARD_REGNO is not available for CONFLICT_A.
14600 2014-09-23  Andi Kleen  <ak@linux.intel.com>
14602         * cgraph.h (symtab_node): Add no_reorder attribute.
14603         (symbol_table::output_asm_statements): Remove.
14604         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
14605         (cgraph_node::create_version_clone): Dito.
14606         (symbol_table::output_asm_statements): Remove.
14607         * trans-mem.c (ipa_tm_create_version_alias): Dito.
14608         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
14609         (output_in_order): Add no_reorder flag. Only handle no_reorder
14610         nodes when set.
14611         (symbol_table::compile): Add separate pass for no_reorder nodes.
14612         (process_common_attributes): Set no_reorder flag in symtab node.
14613         Add node argument.
14614         (process_function_and_variable_attributes): Pass symtab nodes to
14615         process_common_attributes.
14616         * doc/extend.texi (no_reorder): Document no_reorder attribute.
14617         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
14618         (lto_output_varpool_node): Dito.
14619         (input_overwrite_node): Dito.
14620         (input_varpool_node): Dito.
14621         * varpool.c (varpool_node::add): Set no_reorder attribute.
14622         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
14623         (symbol_table::output_variables): Dito.
14624         * symtab.c (symtab_node::dump_base): Print no_reorder.
14626 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
14628         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
14629         be INVALID_REGNUM.
14631 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
14633         * configure: Regenerate.
14635 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
14637         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
14638         when result_mode == shift_mode.
14640 2014-09-23  Kostya Serebryany  <kcc@google.com>
14642         Update to match the changed asan API.
14643         * asan.c (asan_global_struct): Update the __asan_global definition
14644         to match the new API.
14645         (asan_add_global): Ditto.
14646         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
14647         to __asan_init_v4.
14649 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14651         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
14652         refine the constraints used on 32/64-bit floating point moves.
14653         (f32_av): Likewise.
14654         (f64_vsx): Likewise.
14655         (f64_dm): Likewise.
14656         (f64_av): Likewise.
14657         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
14658         (BOOL_REGS_OP1): Likewise.
14659         (BOOL_REGS_OP2): Likewise.
14660         (BOOL_REGS_UNARY): Likewise.
14661         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
14662         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
14663         for moves involving VSX registers.  Do not use constraints that
14664         target VSX registers for decimal types.
14665         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
14666         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
14668 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
14670         * tree.h (int_bit_position): Turn into inline function;
14671         implement using wide int.
14672         * tree.c (int_bit_position): Remove.
14674 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
14676         PR bootstrap/63280
14677         * target-globals.c (target_globals::~target_globals): Fix location
14678         of ira_int destruction.
14680 2014-09-23  Renlin Li  <renlin.li@arm.com>
14682         * config/aarch64/aarch64.md (return): New.
14683         (simple_return): Likewise.
14684         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
14685         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
14687 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
14689         * common/config/aarch64/aarch64-common.c:
14690         (default_options aarch_option_optimization_table):
14691         Default to -fsched-pressure.
14693 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
14695         * cfgcleanup.c (try_optimize_cfg): Do not remove label
14696         with LABEL_PRESERVE_P flag set.
14698 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14699             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14700             Anna Tikhonova  <anna.tikhonova@intel.com>
14701             Ilya Tocar  <ilya.tocar@intel.com>
14702             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14703             Ilya Verbin  <ilya.verbin@intel.com>
14704             Kirill Yukhin  <kirill.yukhin@intel.com>
14705             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14707         * config/i386/sse.md
14708         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
14709         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
14710         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
14711         (define_insn "sse2_shufpd_v2df_mask"): New.
14713 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14714             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14715             Anna Tikhonova  <anna.tikhonova@intel.com>
14716             Ilya Tocar  <ilya.tocar@intel.com>
14717             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14718             Ilya Verbin  <ilya.verbin@intel.com>
14719             Kirill Yukhin  <kirill.yukhin@intel.com>
14720             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14722         * config/i386/sse.md
14723         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
14724         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
14725         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
14726         (define_insn "sse_shufps_v4sf_mask"): New.
14728 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14729             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14730             Anna Tikhonova  <anna.tikhonova@intel.com>
14731             Ilya Tocar  <ilya.tocar@intel.com>
14732             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14733             Ilya Verbin  <ilya.verbin@intel.com>
14734             Kirill Yukhin  <kirill.yukhin@intel.com>
14735             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14737         * config/i386/sse.md
14738         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
14739         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
14740         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
14741         (define_insn "unpcklps128_mask"): New.
14743 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14744             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14745             Anna Tikhonova  <anna.tikhonova@intel.com>
14746             Ilya Tocar  <ilya.tocar@intel.com>
14747             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14748             Ilya Verbin  <ilya.verbin@intel.com>
14749             Kirill Yukhin  <kirill.yukhin@intel.com>
14750             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14752         * config/i386/sse.md
14753         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
14754         (define_insn "avx512vl_unpckhpd128_mask"): New.
14755         (define_expand "avx_movddup256<mask_name>"): Add masking.
14756         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
14757         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
14758         (define_insn "avx512vl_unpcklpd128_mask"): New.
14760 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
14762         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14763         * doc/tm.texi: Regenerate.
14764         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
14765         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14766         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
14767         Remove.
14768         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14769         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14770         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14771         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14772         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
14773         Remove.
14774         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14775         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14776         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14777         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14778         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14779         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14780         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14781         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14782         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14783         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14784         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
14785         Remove.
14787 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
14789         * tree-ssa-ccp.c (prop_value_d): Rename to ...
14790         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
14791         * ipa-prop.c (struct type_change_info): Rename to ...
14792         (prop_type_change_info): ... this; update uses.
14793         * ggc-page.c (globals): Rename to ...
14794         (static struct ggc_globals): ... this; update uses.
14795         * tree-ssa-loop-im.c (mem_ref): Rename to ...
14796         (im_mem_ref): ... this; update uses.
14797         * ggc-common.c (loc_descriptor): Rename to ...
14798         (ggc_loc_descriptor): ... this; update uses.
14799         * lra-eliminations.c (elim_table): Rename to ...
14800         (lra_elim_table): ... this; update uses.
14801         * bitmap.c (output_info): Rename to ...
14802         (bitmap_output_info): ... this; update uses.
14803         * gcse.c (expr): Rename to ...
14804         (gcse_expr) ... this; update uses.
14805         (occr): Rename to ...
14806         (gcse_occr): .. this; update uses.
14807         * tree-ssa-copy.c (prop_value_d): Rename to ...
14808         (prop_value_t): ... this.
14809         * predict.c (block_info_def): Rename to ...
14810         (block_info): ... this; update uses.
14811         (edge_info_def): Rename to ...
14812         (edge_info): ... this; update uses.
14813         * profile.c (bb_info): Rename to ...
14814         (bb_profile_info): ... this; update uses.
14815         * alloc-pool.c (output_info): Rename to ...
14816         (pool_output_info): ... this; update uses.
14817         * ipa-cp.c (topo_info): Rename to ..
14818         (ipa_topo_info): ... this; update uses.
14819         * tree-nrv.c (nrv_data): Rename to ...
14820         (nrv_data_t): ... this; update uses.
14821         * ipa-split.c (bb_info): Rename to ...
14822         (split_bb_info): ... this one.
14823         * profile.h (edge_info): Rename to ...
14824         (edge_profile_info): ... this one; update uses.
14825         * dse.c (bb_info): Rename to ...
14826         (dse_bb_info): ... this one; update uses.
14827         * cprop.c (occr): Rename to ...
14828         (cprop_occr): ... this one; update uses.
14829         (expr): Rename to ...
14830         (cprop_expr): ... this one; update uses.
14832 2014-09-22  Jason Merrill  <jason@redhat.com>
14834         * Makefile.in (check-parallel-%): Add @.
14836 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
14838         * config/aarch64/geniterators.sh: New.
14839         * config/aarch64/iterators.md (VDQF_DF): New.
14840         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
14841         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
14843 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
14845         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
14846         -lnosys when -msim absent.
14848 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
14850         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
14852 2014-09-22  Richard Biener  <rguenther@suse.de>
14854         * gimplify.c (gimplify_init_constructor): Do not leave
14855         non-GIMPLE vector constructors around.
14856         * tree-cfg.c (verify_gimple_assign_single): Verify that
14857         CONSTRUCTORs have gimple elements.
14859 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
14861         PR debug/63328
14862         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
14863         insert a debug source bind stmt setting DEBUG_EXPR_DECL
14864         instead of a normal gimple assignment stmt.
14866 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
14868         * config/bfin/bfin.md: Fix use of constraints in define_split.
14870 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
14872         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
14873         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
14875 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
14877         * hard-reg-set.h: Include hash-table.h.
14878         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
14879         field.
14880         * target-globals.c (target_globals::~target_globals): Call
14881         hard_regs->finalize.
14882         * rtl.h (subreg_shape): New structure.
14883         (shape_of_subreg): New function.
14884         (simplifiable_subregs): Declare.
14885         * reginfo.c (simplifiable_subreg): New structure.
14886         (simplifiable_subregs_hasher): Likewise.
14887         (simplifiable_subregs): New function.
14888         (invalid_mode_changes): Delete.
14889         (alid_mode_changes, valid_mode_changes_obstack): New variables.
14890         (record_subregs_of_mode): Remove subregs_of_mode parameter.
14891         Record valid mode changes in valid_mode_changes.
14892         (find_subregs_of_mode): Remove subregs_of_mode parameter.
14893         Update calls to record_subregs_of_mode.
14894         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
14895         handling.  Initialize new variables.  Update call to
14896         find_subregs_of_mode.
14897         (invalid_mode_change_p): Check new variables instead of
14898         invalid_mode_changes.
14899         (finish_subregs_of_mode): Finalize new variables instead of
14900         invalid_mode_changes.
14901         (target_hard_regs::finalize): New function.
14902         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
14903         even when CLASS_CANNOT_CHANGE_MODE is undefined.
14905 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
14907         * combine.c (subst): Use simplify_subreg_regno rather than
14908         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
14910 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
14912         * rtl.h (subreg_info): Expand commentary
14913         * rtlanal.c (subreg_get_info): Likewise.
14915 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
14917         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14918         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14919         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
14921 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14923         * config/arm/arm.c: #include "tm-constrs.h"
14924         (thumb1_size_rtx_costs): Adjust rtx costs.
14926 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
14928         * configure.ac (target_header_dir): Move block defining
14929         this to before the block setting inhibit_libc.
14930         (inhibit_libc): When considering $with_headers, just
14931         check it it's explicitly "no".  If not, also check if
14932         $target_header_dir/stdio.h is present.  If not, set
14933         inhibit_libc=true.
14934         * configure: Regenerate.
14936 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
14938         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
14940 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
14942         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
14943         insn for divides by integer powers of two.
14944         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
14945         (mod<mode>3): Fix formatting.
14946         (three anonymous define_insn and two define_split): Delete.
14948 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
14950         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
14951         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
14952         (floatdisf2_internal2): Ditto.
14953         (ashrdi3_no_power): Ditto.  Fix formatting.
14955 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
14957         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
14958         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
14959         Tidy.
14961 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
14963         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
14964         constant, use addsi3 directly.
14965         (three anonymous define_insn, two define_split): Delete.
14966         (sub<mode>3): Move.  Do not allow constant second operand.
14967         Generate different insn for constant first operand.
14968         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
14969         (subf<mode>3_imm): New.
14970         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
14971         (*plus_ltu<mode>): Only handle registers.
14972         (*plus_ltu<mode>_1): New.  Handle integer third operand.
14973         (*plus_gtu<mode>): Only handle registers.
14974         (*plus_gtu<mode>_1): New.  Handle integer third operand.
14976 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
14978         * config/rs6000/rs6000.md (iorxor): New code_iterator.
14979         (iorxor): New code_attr.
14980         (IORXOR): New code_attr.
14981         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
14982         (ior<mode>3, xor<mode>3): Delete.
14983         (<iorxor><mode>3): New.
14984         (splitter for "big" integer ior, xor): New.
14985         (*bool<mode>3): Move.  Also handle AND.
14986         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
14987         (splitter for "big" integer ior, xor): Delete.
14989 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
14991         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
14992         (two anonymous define_insn and two define_split): Delete.
14993         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
14995 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
14997         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
14998         (two anonymous define_insn and two define_split): Delete.
14999         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
15001 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15003         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
15005 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15007         * config/rs6000/predicates.md (ca_operand): Allow subregs.
15008         (input_operand): Do not allow ca_operand.
15009         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
15010         carry bit, allow SImode and Pmode.
15011         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
15013 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
15015         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
15016         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
15017         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
15018         (*call_rex64_ms_sysv): Remove.
15019         (*call_value_rex64_ms_sysv): Ditto.
15020         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
15022 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
15024         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
15025         operand 3 to "CnL".
15027 2014-09-20  Andreas Schwab  <schwab@suse.de>
15029         * config/ia64/ia64.md: Remove constraints from define_split
15030         patterns.
15032 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15034         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15035         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15036         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15037         (get_dynamic_type): Remove.
15038         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15039         (clear_speculation): Bring to ipa-deivrt.h
15040         (get_class_context): Rename to ...
15041         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15042         (contains_type_p): Update.
15043         (get_dynamic_type): Rename to ...
15044         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15045         (possible_polymorphic_call_targets): UPdate.
15046         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15047         * ipa-prop.c (ipa_analyze_call_uses): Update.
15049 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15051         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
15052         privatize dynamic TLS variables.
15054 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15056         * diagnostic.c (warning_n): New function.
15057         * diagnostic-core.h (warning_n): Declare.
15058         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
15059         output dynamic counts when available.
15061 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15063         PR tree-optimization/63255
15064         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
15065         issue in setting body_removed flag.
15067 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15069         PR c++/61825
15070         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
15071         that visibility change is possible
15072         (handle_weakref_attribute): Likewise.
15073         * cgraph.h (symtab_node): Add method get_create and
15074         field refuse_visibility_changes.
15075         (symtab_node::get_create): New method.
15076         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
15077         * varasm.c (mark_weak): Verify that visibility change is
15078         possible.
15080 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15082         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
15083         for base_reg_operand to be common between LO_SUM and PLUS.
15084         (fusion_gpr_mem_combo): New predicate to match a fused address
15085         that combines the addis and memory offset address.
15087         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
15088         calling signature.
15089         (emit_fusion_gpr_load): Likewise.
15091         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
15092         signature to pass each argument separately, rather than
15093         using an operands array.  Rewrite the insns found by peephole2 to
15094         be a single insn, rather than hoping the insns will still be
15095         together when the peephole pass is done.  Drop being called via a
15096         normal peephole.
15097         (emit_fusion_gpr_load): Change calling signature to be called from
15098         the fusion_gpr_load_<mode> insns with a combined memory address
15099         instead of the peephole pass passing the addis and offset
15100         separately.
15102         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
15103         fusion.
15104         (power8 fusion peephole): Drop support for doing power8 via a
15105         normal peephole that was created by the peephole2 pass.
15106         (power8 fusion peephole2): Create a new insn with the fused
15107         address, so that the fused operation is kept together after
15108         register allocation is done.
15109         (fusion_gpr_load_<mode>): Likewise.
15111 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15113         PR lto/63286
15114         * tree.c (need_assembler_name_p): Do not mangle variadic types.
15116 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
15118         * recog.c (scratch_operand): Do not simply allow all hard registers:
15119         only allow those that are allocatable.
15121 2014-09-19  Felix Yang  <felix.yang@huawei.com>
15123         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
15124         comments and fix spacing to conform to coding style.
15126 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
15128         * genrecog.c (validate_pattern): Allow empty constraints in
15129         a match_scratch.
15131 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
15133         * dwarf2out.c (decl_ultimate_origin): Update comment.
15134         * tree.c (block_ultimate_origin): Same.
15136 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15138         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
15139         Update GCC version name to GCC 5.
15140         (rs6000_function_arg_boundary): Likewise.
15141         (rs6000_function_arg): Likewise.
15143 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
15145         * config/sh/sh.md: Fix use of constraints in define_split.
15147 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
15149         PR ipa/61998
15150         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
15152 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
15154         * doc/md.texi (Modifiers): Consistently use "read/write"
15155         nomenclature rather than "input/output".
15156         * genrecog.c (constraints_supported_in_insn_p): New.
15157         (validate_pattern): If needed, also check constraints on
15158         MATCH_SCRATCH operands.
15159         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
15160         operands with no '=' or '+' modifier.
15162 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
15164         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
15165         scratch register as written.
15167 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15169         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
15170         assignment.
15172 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15174         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
15175         expanders.
15177 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15179         PR target/62662
15180         * config/s390/s390.c (s390_emit_epilogue): When doing the return
15181         address load optimization force s390_optimize_prologue to leave it
15182         that way.  Only do the optimization if we already decided to push
15183         r14 into a stack slot.
15185 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
15187         * asan.c (build_check_stmt): Alignment arg was added.
15188         (asan_expand_check_ifn): Optimization for alignment >= 8.
15190 2014-09-19  Olivier Hainque  <hainque@adacore.com>
15192         * config/i386/vxworksae.h: Remove obsolete definitions.
15193         (STACK_CHECK_PROTECT): Define.
15194         * config/i386/vx-common.h: Remove.  Merge contents within
15195         config/i386/vxworks.h.
15196         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
15197         i386/vx-common.h.
15199 2014-09-19  Olivier Hainque  <hainque@adacore.com>
15201         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
15202         * config/rs6000/t-vxworksmils: New file.
15203         * config/rs6000/vxworksmils.h: New file.
15205 2014-09-19  Olivier Hainque  <hainque@adacore.com>
15207         * varasm.c (default_section_type_flags): Flag .persistent.bss
15208         sections as SECTION_BSS.
15210 2014-09-19  Nick Clifton  <nickc@redhat.com>
15212         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
15213         pop'ed registers so that DCE does not eliminate them.
15215 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
15217         PR lto/63298
15218         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
15220 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
15222         * system.h (LIBGCC2_TF_CEXT): Poison.
15223         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
15224         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
15225         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
15226         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
15227         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
15228         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
15229         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
15230         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
15231         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
15233 2014-09-19  Kito Cheng  <kito@0xlab.org>
15235         * except.h: Fix header guard.
15236         * addresses.h: Add missing header guard.
15237         * cfghooks.h: Likewise.
15238         * collect-utils.h: Likewise.
15239         * collect2-aix.h: Likewise.
15240         * conditions.h: Likewise.
15241         * cselib.h: Likewise.
15242         * dwarf2asm.h: Likewise.
15243         * graphds.h: Likewise.
15244         * graphite-scop-detection.h: Likewise.
15245         * gsyms.h: Likewise.
15246         * hw-doloop.h: Likewise.
15247         * incpath.h: Likewise.
15248         * ipa-inline.h: Likewise.
15249         * ipa-ref.h: Likewise.
15250         * ira-int.h: Likewise.
15251         * ira.h: Likewise.
15252         * lra-int.h: Likewise.
15253         * lra.h: Likewise.
15254         * lto-section-names.h: Likewise.
15255         * read-md.h: Likewise.
15256         * reload.h: Likewise.
15257         * rtl-error.h: Likewise.
15258         * sdbout.h: Likewise.
15259         * targhooks.h: Likewise.
15260         * tree-affine.h: Likewise.
15261         * xcoff.h: Likewise.
15262         * xcoffout.h: Likewise.
15264 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
15266         PR debug/63285
15267         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
15268         if advance != 0.
15270 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
15272         PR target/61360
15273         * lra.c (lra): Call recog_init.
15275 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
15277         PR c++/62017
15278         * asan.c (transform_statements): Don't instrument clobber statements.
15280 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15282         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
15283         to neon_load1_1reg<q>.
15285 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
15287         PR debug/63284
15288         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
15289         if there are only debug stmts after the noreturn call, instead
15290         remove the debug stmts.
15292 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
15294         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
15295         (odr_types_equivalent_p): Use pair hash.
15296         (odr_subtypes_equivalent_p): Likewise, do structural compare
15297         on ODR types that may be mismatched.
15298         (warn_odr): Support warning when only one field is given.
15299         (odr_types_equivalent_p): Strenghten comparsions made;
15300         support VOIDtype.
15301         (add_type_duplicate): Update VISITED hash set.
15303 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15305         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
15306         Enable selection of 'posix' or no thread model.
15308 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
15310         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
15311         when architecture is older than ARMv7.
15313 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
15315         PR target/61853
15316         * config/pa/pa.c (pa_function_value): Directly handle aggregates
15317         that fit exactly in a word or double word.
15319 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
15321         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
15322         zmm/k regs support.
15324 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15325             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15326             Anna Tikhonova  <anna.tikhonova@intel.com>
15327             Ilya Tocar  <ilya.tocar@intel.com>
15328             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15329             Ilya Verbin  <ilya.verbin@intel.com>
15330             Kirill Yukhin  <kirill.yukhin@intel.com>
15331             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15333         * config/i386/i386.c
15334         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
15335         * config/i386/sse.md
15336         (define_mode_iterator VI48F_256): New.
15337         (define_mode_attr extract_type): Ditto.
15338         (define_mode_attr extract_suf): Ditto.
15339         (define_mode_iterator AVX512_VEC): Ditto.
15340         (define_expand
15341         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
15342         AVX512_VEC.
15343         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
15344         (define_insn
15345         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
15346         Ditto.
15347         (define_mode_attr extract_type_2): Ditto.
15348         (define_mode_attr extract_suf_2): Ditto.
15349         (define_mode_iterator AVX512_VEC_2): Ditto.
15350         (define_expand
15351         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
15352         AVX512_VEC_2 mode iterator.
15353         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
15354         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
15355         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
15356         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
15357         (define_split for V16FI mode): Ditto.
15358         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
15359         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
15360         (define_split for VI8F_256 mode): Ditto.
15361         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
15362         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
15363         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
15364         (define_split for VI4F_256 mode): Ditto.
15365         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
15366         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
15367         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
15368         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
15369         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
15370         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
15371         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
15372         Update `type' attribute, remove explicit `memory' attribute calculation.
15374 2014-09-16  Kito Cheng  <kito@0xlab.org>
15376         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
15377         ira_spilled_reg_stack_slots_num if using lra.
15378         (do_reload): Remove release ira_spilled_reg_stack_slots part.
15379         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
15380         make sure not using lra.
15381         (ira_reuse_stack_slot): Likewise.
15382         (ira_mark_new_stack_slot): Likewise.
15384 2014-09-15  Andi Kleen  <ak@linux.intel.com>
15386         * function.c (allocate_struct_function): Force
15387         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
15388         profiling is disabled.
15390 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
15392         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
15393         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
15394         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
15395         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
15396         macro with statically checked member functions.
15397         * rtl.h (rtx_insn::deleted): New method.
15398         (rtx_insn::set_deleted): Likewise.
15399         (rtx_insn::set_undeleted): Likewise.
15400         (INSN_DELETED_P): Remove.
15402 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
15404         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
15405         result of emit_jump_insn_before to a new variable.
15406         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
15407         (mark_jump_label_1): Likewise.
15408         (mark_jump_label_asm): Likewise.
15409         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
15410         * rtl.h (mark_jump_label): Adjust.
15412 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
15414         * Makefile.in (dg_target_exps): Remove.
15415         (check_gcc_parallelize): Change to just an upper bound number.
15416         (check-%-subtargets): Always print the non-parallelized goals.
15417         (check_p_vars, check_p_comma, check_p_subwork): Remove.
15418         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
15419         check_p_numbers3, check_p_numbers4, check_p_numbers5,
15420         check_p_numbers6): New variables.
15421         (check_p_numbers): Set to sequence from 1 to 9999.
15422         (check_p_subdirs): Set to sequence from 1 to minimum of
15423         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
15424         or 128.
15425         (check-%, check-parallel-%): Rewritten so that for parallelized
15426         testing each job runs all the *.exp files, with
15427         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
15429 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
15431         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
15432         rtx to rtx_insn *.
15433         (arc_sets_cc_p): Likewise.
15434         * config/arc/arc.c (arc_print_operand): Use methods of
15435         "final_sequence" for clarity, and to enable strengthening of
15436         locals "jump" and "delay" from rtx to rtx_insn *.
15437         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
15438         rtx_insn *; use method of rtx_sequence for typesafety.
15439         (arc_get_insn_variants): Use insn method of rtx_sequence for
15440         typesafety.
15441         (arc_pad_return): Likewise.
15442         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
15443         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
15444         dyn_cast to rtx_sequence *, using insn method for typesafety.
15445         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
15446         rtx_sequence * and use insn method when invoking get_attr_length.
15447         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
15448         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
15449         rtx_sequence *, introducing a local "seq", using its insn method
15450         from typesafety and clarity.
15451         (add_sched_insns_for_speculation): Strengthen local "next" from
15452         rtx to rtx_insn *.
15453         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
15454         (predicate_insn): Likewise.
15455         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
15456         second param.
15457         * config/cris/cris.c (cris_notice_update_cc): Likewise.
15458         * config/epiphany/epiphany-protos.h
15459         (extern void epiphany_insert_mode_switch_use): Likewise for param
15460         "insn".
15461         (get_attr_sched_use_fpu): Likewise for param.
15462         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
15463         Likewise for param "insn".
15464         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
15465         param "insn" of "target_insert_mode_switch_use" callback.
15466         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
15467         (frv_issues_to_branch_unit_p): Likewise.
15468         (frv_pack_insn_p): Likewise.
15469         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
15470         const rtx * (i.e. mutable rtx_def * const *) to
15471         rtx_insn * const *.
15472         * config/i386/i386-protos.h (standard_sse_constant_opcode):
15473         Strengthen first param from rtx to rtx_insn *.
15474         (output_fix_trunc): Likewise.
15475         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
15476         (output_fix_trunc): Likewise.
15477         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
15478         local "insn".
15479         (min_insn_size): Likewise for param "insn".
15480         (get_mem_group): Likewise.
15481         (is_cmp): Likewise.
15482         (get_insn_path): Likewise.
15483         (get_insn_group): Likewise.
15484         (count_num_restricted): Likewise.
15485         (fits_dispatch_window): Likewise.
15486         (add_insn_window): Likewise.
15487         (add_to_dispatch_window): Likewise.
15488         (debug_insn_dispatch_info_file): Likewise.
15489         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
15490         first param.
15491         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
15492         "cmp" and local "prev".
15493         (m32c_output_compare): Likewise for param "insn".
15494         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
15495         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
15496         (define_predicate "large_insn_p"): Likewise.
15497         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
15498         param from rtx to rtx_insn *.
15499         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
15500         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
15501         (m68k_sched_attr_size): Likewise.
15502         (sched_get_opxy_mem_type): Likewise for param "insn".
15503         (m68k_sched_attr_op_mem): Likewise.
15504         (sched_mem_operand_p): Likewise.
15505         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
15506         * config/mep/mep.c (mep_multi_slot): Likewise.
15507         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
15508         first param.
15509         (mips_sync_loop_insns): Likewise.
15510         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
15511         method of "final_sequence" for typesafety.
15512         (mips_process_sync_loop): Strengthen param "insn" from rtx to
15513         rtx_insn *.
15514         (mips_output_sync_loop): Likewise.
15515         (mips_sync_loop_insns): Likewise.
15516         (mips_74k_agen_init): Likewise.
15517         (mips_sched_init): Use NULL rather than NULL_RTX when working with
15518         insns.
15519         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
15520         Strengthen param "insn" from rtx to rtx_insn *.
15521         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
15522         local "insn".
15523         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
15524         param.
15525         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
15526         "insn".  Use method of rtx_sequence for typesafety.
15527         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
15528         rtx_insn *.
15529         (branch_needs_nop_p): Likewise.
15530         (use_skip_p): Likewise.
15531         (pa_insn_refs_are_delayed): Likewise.
15532         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
15533         for locals "insn", "ninsn".
15534         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
15535         "insn".
15536         (is_cracked_insn): Likewise.
15537         (is_branch_slot_insn): Likewise.
15538         (is_nonpipeline_insn): Likewise.
15539         (insn_terminates_group_p): Likewise.
15540         (insn_must_be_first_in_group): Likewise.
15541         (insn_must_be_last_in_group): Likewise.
15542         (force_new_group): Likewise for param "next_insn".
15543         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
15544         "insn".
15545         (s390_sched_score): Likewise.
15546         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
15547         (rtx sfunc_uses_reg): Likewise for sole param.
15548         * config/sh/sh.c (sh_print_operand): Use insn method of
15549         final_sequence for typesafety.
15550         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
15551         Use insn method of final_sequence for typesafety.
15552         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
15553         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
15554         for param.
15555         (eligible_for_return_delay): Likewise.
15556         (eligible_for_sibcall_delay): Likewise.
15557         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
15558         (eligible_for_return_delay): Likewise.
15559         (eligible_for_sibcall_delay): Likewise.
15560         * config/stormy16/stormy16-protos.h
15561         (xstormy16_output_cbranch_hi): Likewise for final param.
15562         (xstormy16_output_cbranch_si): Likewise.
15563         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
15564         (xstormy16_output_cbranch_si): Likewise.
15565         * config/v850/v850-protos.h (notice_update_cc): Likewise.
15566         * config/v850/v850.c (notice_update_cc): Likewise.
15568         * final.c (get_attr_length_1): Strengthen param "insn" and param
15569         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
15570         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
15571         (get_attr_min_length): Likewise.
15572         (shorten_branches): Likewise for signature of locals "length_fun"
15573         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
15574         from a checked cast and use its methods for clarity and to enable
15575         strengthening local "inner_insn" from rtx to rtx_insn *.
15576         * genattr.c (gen_attr): When writing out the prototypes of the
15577         various generated "get_attr_" functions, strengthen the params of
15578         the non-const functions from rtx to rtx_insn *.
15579         Similarly, strengthen the params of insn_default_length,
15580         insn_min_length, insn_variable_length_p, insn_current_length.
15581         (main): Similarly, strengthen the param of num_delay_slots,
15582         internal_dfa_insn_code, insn_default_latency, bypass_p,
15583         insn_latency, min_issue_delay, print_reservation,
15584         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
15585         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
15586         to hook_int_rtx_insn_unreachable.
15587         * genattrtab.c (write_attr_get): When writing out the generated
15588         "get_attr_" functions, strengthen the param "insn" from rtx to
15589         rtx_insn *, eliminating a checked cast.
15590         (make_automaton_attrs): When writing out prototypes of
15591         "internal_dfa_insn_code_", "insn_default_latency_" functions
15592         and the "internal_dfa_insn_code" and "insn_default_latency"
15593         callbacks, strengthen their params from rtx to rtx_insn *
15594         * genautomata.c (output_internal_insn_code_evaluation): When
15595         writing out code, add a checked cast from rtx to rtx_insn * when
15596         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
15597         (output_dfa_insn_code_func): Strengthen param of generated
15598         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
15599         (output_trans_func): Likewise for generated function
15600         "state_transition".
15601         (output_internal_insn_latency_func): When writing out generated
15602         function "internal_insn_latency", rename params from "insn" and
15603         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
15604         locals "insn" and "insn2" as rtx_insn * with checked casts once
15605         we've proven that we're not dealing with const0_rtx.
15606         (output_insn_latency_func):  Strengthen param of generated
15607         function "insn_latency" from rtx to rtx_insn *.
15608         (output_print_reservation_func): Likewise for generated function
15609         "print_reservation".
15610         (output_insn_has_dfa_reservation_p): Likewise for generated
15611         function "insn_has_dfa_reservation_p".
15612         * hooks.c (hook_int_rtx_unreachable): Rename to...
15613         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
15614         from rtx to rtx_insn *.
15615         * hooks.h (hook_int_rtx_unreachable): Likewise.
15616         (extern int hook_int_rtx_insn_unreachable): Likewise.
15617         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
15618         (get_attr_min_length): Likewise.
15619         * recog.c (get_enabled_alternatives): Likewise.
15620         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
15621         * reorg.c (find_end_label): Introduce local rtx "pat" and
15622         strengthen local "insn" from rtx to rtx_insn *.
15623         (redundant_insn): Use insn method of "seq" rather than element for
15624         typesafety; strengthen local "control" from rtx to rtx_insn *.
15625         * resource.c (mark_referenced_resources): Add checked cast to
15626         rtx_insn * within INSN/JUMP_INSN case.
15627         (mark_set_resources): Likewise.
15628         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
15629         rtx to rtx_insn *.
15631 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
15633         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
15634         param "label" from rtx to rtx_insn *.
15635         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
15636         and local "op".
15637         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
15638         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
15639         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
15640         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
15641         * final.c (default_label_align_after_barrier_max_skip): Strengthen
15642         param from rtx to rtx_insn *.
15643         (default_loop_align_max_skip): Likewise.
15644         (default_label_align_max_skip): Likewise.
15645         (default_jump_align_max_skip): Likewise.
15646         * target.def (label_align_after_barrier_max_skip): Likewise.
15647         (loop_align_max_skip): Likewise.
15648         (label_align_max_skip): Likewise.
15649         (jump_align_max_skip): Likewise.
15650         * targhooks.h (default_label_align_after_barrier_max_skip):
15651         Likewise.
15652         (default_loop_align_max_skip): Likewise.
15653         (default_label_align_max_skip): Likewise.
15654         (default_jump_align_max_skip): Likewise.
15656 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
15658         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
15659         from const_rtx to const rtx_insn *.  Update union members from rtx
15660         to rtx_insn *.
15661         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
15662         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
15663         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
15664         strengthen both params from const_rtx to const rtx_insn *.
15665         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
15666         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
15667         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
15668         rtx_insn *.
15669         * target.def (can_follow_jump): Strengthen both params from
15670         const_rtx to const rtx_insn *, and update default implementation
15671         from hook_bool_const_rtx_const_rtx_true to
15672         hook_bool_const_rtx_insn_const_rtx_insn_true.
15674 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
15676         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
15677         "insn" from rtx to rtx_insn *.
15678         * sched-int.h (deps_start_bb): Likewise for 2nd param.
15680 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15681             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15682             Anna Tikhonova  <anna.tikhonova@intel.com>
15683             Ilya Tocar  <ilya.tocar@intel.com>
15684             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15685             Ilya Verbin  <ilya.verbin@intel.com>
15686             Kirill Yukhin  <kirill.yukhin@intel.com>
15687             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15689         * config/i386/sse.md
15690         (define_insn "vcvtph2ps<mask_name>"): Add masking.
15691         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
15692         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
15693         (define_expand "vcvtps2ph_mask"): New.
15694         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
15695         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
15696         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
15698 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15699             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15700             Anna Tikhonova  <anna.tikhonova@intel.com>
15701             Ilya Tocar  <ilya.tocar@intel.com>
15702             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15703             Ilya Verbin  <ilya.verbin@intel.com>
15704             Kirill Yukhin  <kirill.yukhin@intel.com>
15705             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15707         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
15708         New.
15709         (define_mode_iterator VI24_AVX512BW_1): Ditto.
15710         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
15711         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
15712         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
15713         also for TARGET_AVX512VL.
15714         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
15716 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
15718         * doc/install.texi (Options specification): add
15719         --disable-libsanitizer item.
15721 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
15722             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15724         PR target/61407
15725         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
15726         and above.
15727         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
15728         kernel version check to avoid incrementing it after every major OS X
15729         release.
15730         (darwin_default_min_version): Avoid static memory buffer.
15732 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
15734         * tree.c (need_assembler_name_p): Store C++ type mangling only
15735         for aggregates.
15737 2014-09-13  Marek Polacek  <polacek@redhat.com>
15739         * tree.c (protected_set_expr_location): Don't check whether T is
15740         non-null here.
15742 2014-09-12  DJ Delorie  <dj@redhat.com>
15744         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
15745         (extend_and_shift1_hipsi2): Likewise.
15746         (extend_and_shift2_hipsi2): Likewise.
15748 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
15750         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
15751         with NULL when dealing with an insn.
15752         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
15753         from rtx to rtx_insn *.
15754         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
15755         const_rtx to const rtx_insn *.
15756         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
15758 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
15760         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
15761         assert.
15763 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
15765         * target.def (libgcc_floating_mode_supported_p): New hook.
15766         * targhooks.c (default_libgcc_floating_mode_supported_p): New
15767         function.
15768         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
15769         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
15770         (LIBGCC2_HAS_TF_MODE): Remove.
15771         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
15772         * doc/tm.texi: Regenerate.
15773         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
15774         machine mode.
15775         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
15776         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
15777         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
15778         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
15779         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15780         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
15781         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
15782         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
15783         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
15784         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
15785         function.
15786         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
15787         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15788         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15789         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15790         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15791         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15792         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15793         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
15794         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
15795         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
15796         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15797         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
15798         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
15799         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
15800         Remove.
15801         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
15802         New macro.
15803         (ia64_libgcc_floating_mode_supported_p): New function.
15804         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
15805         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
15806         (IA64_NO_LIBGCC_TFMODE): Define.
15807         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
15808         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
15809         macro.
15810         (pdp11_scalar_mode_supported_p): New function.
15811         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
15812         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
15814 2014-09-12  Richard Biener  <rguenther@suse.de>
15816         PR middle-end/63237
15817         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
15819 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
15821         * tree.c (integer_each_onep): New function.
15822         * tree.h (integer_each_onep): Declare it.
15823         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
15824         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
15825         (X & 1) == 0 for vector and complex.
15827 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
15829         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
15830         for A57.
15831         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
15832         cost to spilling from integer to FP registers.
15834 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
15836         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
15837         move handling.
15838         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
15839         are now handled correctly.
15841 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
15843         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
15844         handling of CALLER_SAVE_REGS and POINTER_REGS.
15846 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
15848         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
15849         the number of hard registers.
15851 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15852             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15853             Anna Tikhonova  <anna.tikhonova@intel.com>
15854             Ilya Tocar  <ilya.tocar@intel.com>
15855             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15856             Ilya Verbin  <ilya.verbin@intel.com>
15857             Kirill Yukhin  <kirill.yukhin@intel.com>
15858             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15860         * config/i386/sse.md
15861         (define_mode_iterator VI48_AVX512VL): New.
15862         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
15863         "avx512f_vternlog<mode>_maskz" and update mode iterator.
15864         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
15865         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
15866         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
15867         "avx512f_vternlog<mode>_mask" and update mode iterator.
15868         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
15869         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
15870         iterator.
15871         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
15872         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
15873         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
15874         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
15875         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
15876         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
15878 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15879             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15880             Anna Tikhonova  <anna.tikhonova@intel.com>
15881             Ilya Tocar  <ilya.tocar@intel.com>
15882             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15883             Ilya Verbin  <ilya.verbin@intel.com>
15884             Kirill Yukhin  <kirill.yukhin@intel.com>
15885             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15887         * config/i386/sse.md (VI128_256): Delete.
15888         (define_mode_iterator VI124_256): New.
15889         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
15890         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
15891         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
15892         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
15893         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
15894         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
15895         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
15896         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
15897         iterator.
15898         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
15899         in presence of AVX-512.
15901 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15902             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15903             Anna Tikhonova  <anna.tikhonova@intel.com>
15904             Ilya Tocar  <ilya.tocar@intel.com>
15905             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15906             Ilya Verbin  <ilya.verbin@intel.com>
15907             Kirill Yukhin  <kirill.yukhin@intel.com>
15908             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15910         * config/i386/sse.md
15911         (define_expand "<avx512>_gathersi<mode>"): Rename from
15912         "avx512f_gathersi<mode>".
15913         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
15914         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
15915         (define_expand "<avx512>_gatherdi<mode>"): Rename from
15916         "avx512f_gatherdi<mode>".
15917         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
15918         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
15919         wide versions.
15920         (define_expand "<avx512>_scattersi<mode>"): Rename from
15921         "avx512f_scattersi<mode>".
15922         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
15923         (define_expand "<avx512>_scatterdi<mode>"): Rename from
15924         "avx512f_scatterdi<mode>".
15925         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
15927 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
15929         * ira.h (ira_finish_once): Delete.
15930         * ira-int.h (target_ira_int::~target_ira_int): Declare.
15931         (target_ira_int::free_ira_costs): Likewise.
15932         (target_ira_int::free_register_move_costs): Likewise.
15933         (ira_finish_costs_once): Delete.
15934         * ira.c (free_register_move_costs): Replace with...
15935         (target_ira_int::free_register_move_costs): ...this new function.
15936         (target_ira_int::~target_ira_int): Define.
15937         (ira_init): Call free_register_move_costs as a member function rather
15938         than a global function.
15939         (ira_finish_once): Delete.
15940         * ira-costs.c (free_ira_costs): Replace with...
15941         (target_ira_int::free_ira_costs): ...this new function.
15942         (ira_init_costs): Call free_ira_costs as a member function rather
15943         than a global function.
15944         (ira_finish_costs_once): Delete.
15945         * target-globals.c (target_globals::~target_globals): Call the
15946         target_ira_int destructor.
15947         * toplev.c: Include lra.h.
15948         (finalize): Call lra_finish_once rather than ira_finish_once.
15950 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
15952         * common.opt (flto-odr-type-merging): New flag.
15953         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
15954         (types_same_for_odr): Likewise.
15955         (odr_subtypes_equivalent_p): Likewise.
15956         (add_type_duplicate): Do not walk type variants.
15957         (register_odr_type): New function.
15958         * ipa-utils.h (register_odr_type): Declare.
15959         (odr_type_p): New function.
15960         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
15961         TYPE_DECLs
15962         * doc/invoke.texi (-flto-odr-type-merging): Document.
15963         * tree.c (need_assembler_name_p): Compute ODR names when asked
15964         for it.
15965         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
15967 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
15969         PR target/63228
15970         * config/i386/i386.c (ix86_option_override_internal): Also turn
15971         off OPTION_MASK_ABI_X32 for -m16.
15973 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
15975         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
15976         GPR instead of P.
15978 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
15980         PR target/58757
15981         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
15982         Directly forward to __*_DENORM_MIN__.
15984 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
15986         * rtl.h (LABEL_REF_LABEL): New macro.
15988         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
15989         of XEXP (, 0), where we know that we have a LABEL_REF.
15990         * cfgbuild.c (make_edges): Likewise.
15991         (purge_dead_tablejump_edges): Likewise.
15992         * cfgexpand.c (convert_debug_memory_address): Likewise.
15993         * cfgrtl.c (patch_jump_insn): Likewise.
15994         * combine.c (distribute_notes): Likewise.
15995         * cse.c (hash_rtx_cb): Likewise.
15996         (exp_equiv_p): Likewise.
15997         (fold_rtx): Likewise.
15998         (check_for_label_ref): Likewise.
15999         * cselib.c (rtx_equal_for_cselib_1): Likewise.
16000         (cselib_hash_rtx): Likewise.
16001         * emit-rtl.c (mark_label_nuses): Likewise.
16002         * explow.c (convert_memory_address_addr_space): Likewise.
16003         * final.c (output_asm_label): Likewise.
16004         (output_addr_const): Likewise.
16005         * gcse.c (add_label_notes): Likewise.
16006         * genconfig.c (walk_insn_part): Likewise.
16007         * genrecog.c (validate_pattern): Likewise.
16008         * ifcvt.c (cond_exec_get_condition): Likewise.
16009         (noce_emit_store_flag): Likewise.
16010         (noce_get_alt_condition): Likewise.
16011         (noce_get_condition): Likewise.
16012         * jump.c (maybe_propagate_label_ref): Likewise.
16013         (mark_jump_label_1): Likewise.
16014         (redirect_exp_1): Likewise.
16015         (rtx_renumbered_equal_p): Likewise.
16016         * lra-constraints.c (operands_match_p): Likewise.
16017         * reload.c (operands_match_p): Likewise.
16018         (find_reloads): Likewise.
16019         * reload1.c (set_label_offsets): Likewise.
16020         * reorg.c (get_branch_condition): Likewise.
16021         * rtl.c (rtx_equal_p_cb): Likewise.
16022         (rtx_equal_p): Likewise.
16023         * rtlanal.c (reg_mentioned_p): Likewise.
16024         (rtx_referenced_p): Likewise.
16025         (get_condition): Likewise.
16026         * sched-vis.c (print_value): Likewise.
16027         * varasm.c (const_hash_1): Likewise.
16028         (compare_constant): Likewise.
16029         (const_rtx_hash_1): Likewise.
16030         (output_constant_pool_1): Likewise.
16032 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
16034         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
16035         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
16036         instead of minus.
16037         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
16038         cr6_test_for_lt_reverse): Ditto.
16040 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
16042         PR c++/61489
16043         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
16045 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
16047         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
16048         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
16049         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
16050         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
16051         Delete.
16053         (aarch64_fold_builtin): Remove all reinterpret cases.
16055         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
16057         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
16059         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
16060         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
16061         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
16062         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
16063         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
16064         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
16065         aarch64_reinterpretv2df<mode>): Delete.
16067         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
16069         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
16070         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
16071         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
16072         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
16073         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
16074         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
16075         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
16076         vreinterpret_u32_f64): Use cast.
16078         * config/aarch64/iterators.md (VD_RE): Delete.
16080 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
16082         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
16083         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
16084         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
16085         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
16086         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
16087         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
16088         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
16089         Replace inline assembler with __aarch64_vset_lane_any.
16091 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
16093         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
16094         types.
16095         (vmull_high_lane_s32): Likewise.
16096         (vmull_high_lane_u16): Likewise.
16097         (vmull_high_lane_u32): Likewise.
16099 2014-09-11  Jason Merrill  <jason@redhat.com>
16101         PR c++/58678
16102         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
16104 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
16106         PR target/63223
16107         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
16108         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
16109         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
16111 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16112             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16113             Anna Tikhonova  <anna.tikhonova@intel.com>
16114             Ilya Tocar  <ilya.tocar@intel.com>
16115             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16116             Ilya Verbin  <ilya.verbin@intel.com>
16117             Kirill Yukhin  <kirill.yukhin@intel.com>
16118             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16120         * config/i386/sse.md
16121         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
16122         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
16123         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
16124         New.
16125         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
16126         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
16127         iterator.
16128         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
16129         New.
16130         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
16131         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
16132         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
16133         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
16134         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
16135         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
16136         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
16137         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
16138         iterator.
16139         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
16140         New.
16141         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
16142         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
16143         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
16145 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
16147         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
16148         to access removed nodes.
16150 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
16152         PR tree-optimization/63186
16153         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
16154         (mark_nonssa_use): Likewise.
16155         (verify_non_ssa_vars): Verify all header blocks for label
16156         definitions.
16158 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16159             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16160             Anna Tikhonova  <anna.tikhonova@intel.com>
16161             Ilya Tocar  <ilya.tocar@intel.com>
16162             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16163             Ilya Verbin  <ilya.verbin@intel.com>
16164             Kirill Yukhin  <kirill.yukhin@intel.com>
16165             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16167         * config/i386/sse.md
16168         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
16169         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
16170         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
16171         "<avx2_avx512f>_permvar<mode><mask_name>".
16172         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
16173         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
16174         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
16175         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
16176         Ditto.
16177         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
16178         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
16179         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
16180         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
16182 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
16184         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
16185         V2DF, V4SF, DF, and DI modes.
16186         (vsx_fmav2df2): Likewise.
16187         (vsx_float_fix_<mode>2): Likewise.
16188         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
16190 2014-09-10  Xinliang David Li  <davidxl@google.com>
16192         PR target/63209
16193         * config/arm/arm.md (movcond_addsi): Handle case where source
16194         and target operands are the same.
16196 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
16198         * final.c (this_is_asm_operands): Strengthen this variable from
16199         rtx to const rtx_insn *.
16200         * output.h (this_is_asm_operands): Likewise.
16201         * rtl-error.c (location_for_asm): Strengthen param "insn" from
16202         const_rtx to const rtx_insn *.
16203         (diagnostic_for_asm): Likewise.
16204         * rtl-error.h (error_for_asm): Likewise.
16205         (warning_for_asm): Likewise.
16207 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
16209         * genextract.c (print_header): When writing out insn_extract to
16210         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
16211         * recog.h (insn_extract): Strengthen the param from rtx to
16212         rtx_insn *.
16214 2014-09-10  Mike Stump  <mikestump@comcast.net>
16216         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
16217         8.6.1.
16219 2014-09-10  Martin Jambor  <mjambor@suse.cz>
16221         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
16222         (analyze): Do not set analyze flag if expand_thunk returns false;.
16223         (create_wrapper): Likewise.
16224         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
16226 2014-09-10  Martin Jambor  <mjambor@suse.cz>
16228         PR ipa/61654
16229         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
16230         new decl properly.  Analyze the new thunk if it is expanded.
16232 2014-09-10  Andreas Schwab  <schwab@suse.de>
16234         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
16235         [USED_FOR_TARGET]: Define.
16237 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
16239         * config/mips/mips.c (mips_secondary_reload_class): Handle
16240         regno < 0 case.
16242 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
16244         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
16245         assignment.
16247 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
16249         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
16250         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
16251         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
16252         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
16253         flag_delete_null_pointer_checks for them.
16254         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16255         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
16256         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
16257         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
16258         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
16259         stmt's iterator.
16260         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
16261         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
16262         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
16263         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
16264         * doc/invoke.texi (-fsanitize=nonnull-attribute,
16265         -fsanitize=returns-nonnull-attribute): Document.
16267         * ubsan.h (struct ubsan_mismatch_data): Removed.
16268         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
16269         * ubsan.c (ubsan_source_location): For unknown locations,
16270         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
16271         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
16272         Allow more than one location and arbitrary extra arguments passed
16273         in ... instead of through MISMATCH pointer.
16274         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
16275         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
16276         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
16277         callers.
16279 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16280             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16281             Anna Tikhonova  <anna.tikhonova@intel.com>
16282             Ilya Tocar  <ilya.tocar@intel.com>
16283             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16284             Ilya Verbin  <ilya.verbin@intel.com>
16285             Kirill Yukhin  <kirill.yukhin@intel.com>
16286             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16288         * config/i386/sse.md
16289         (define_mode_iterator VI48F): New.
16290         (define_insn "<avx512>_compress<mode>_mask"): Rename from
16291         "avx512f_compress<mode>_mask" and update mode iterator.
16292         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
16293         "avx512f_compressstore<mode>_mask" and update mode iterator.
16294         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
16295         "avx512f_expand<mode>_maskz" and update mode iterator.
16296         (define_insn "<avx512>_expand<mode>_mask"): Rename from
16297         "avx512f_expand<mode>_mask" and update mode iterator.
16299 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16300             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16301             Anna Tikhonova  <anna.tikhonova@intel.com>
16302             Ilya Tocar  <ilya.tocar@intel.com>
16303             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16304             Ilya Verbin  <ilya.verbin@intel.com>
16305             Kirill Yukhin  <kirill.yukhin@intel.com>
16306             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16308         * config/i386/i386.c
16309         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
16310         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
16311         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
16312         avx512dq_rangepv4sf_mask.
16313         * config/i386/sse.md
16314         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
16315         UNSPEC_RANGE.
16316         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
16317         (define_insn "reduces<mode>"): Ditto.
16318         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
16319         Ditto.
16320         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
16321         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
16322         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
16324 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16325             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16326             Anna Tikhonova  <anna.tikhonova@intel.com>
16327             Ilya Tocar  <ilya.tocar@intel.com>
16328             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16329             Ilya Verbin  <ilya.verbin@intel.com>
16330             Kirill Yukhin  <kirill.yukhin@intel.com>
16331             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16333         * config/i386/i386.c
16334         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
16335         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
16336         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
16337         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
16338         avx512vl_getmantv2df_mask.
16339         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
16340         avx512f_vgetmantv4sf_round.
16341         * config/i386/sse.md
16342         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
16343         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
16344         mode iterator.
16345         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
16346         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
16347         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
16348         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
16349         iterator..
16350         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
16351         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
16352         update mode iterator.
16353         (define_expand
16354         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
16355         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
16356         mode iterator.
16357         (define_insn
16358         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
16359         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
16360         update mode iterator.
16361         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
16362         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
16363         iterator..
16364         (define_insn
16365         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
16366         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
16367         mode iterator..
16368         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
16369         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
16370         update mode iterator.
16371         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
16372         "avx512f_getmant<mode><round_saeonly_name>".
16374 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
16376         PR ipa/63166
16377         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
16379 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16380             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16381             Anna Tikhonova  <anna.tikhonova@intel.com>
16382             Ilya Tocar  <ilya.tocar@intel.com>
16383             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16384             Ilya Verbin  <ilya.verbin@intel.com>
16385             Kirill Yukhin  <kirill.yukhin@intel.com>
16386             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16388         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
16389         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
16390         (define_mode_iterator FMAMODE_AVX512): New.
16391         (define_mode_iterator FMAMODE): Remove conditions.
16392         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
16393         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
16394         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
16395         mode iterator.
16396         (define_mode_iterator FMAMODE_NOVF512): Remove.
16397         (define_insn "*fma_fmadd_<mode>"): Rename from
16398         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
16399         FMAMODE mode iterator.
16400         (define_mode_iterator VF_SF_AVX512VL): New.
16401         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
16402         Use VF_SF_AVX512VL mode iterator.
16403         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
16404         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
16405         iterator.
16406         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
16407         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
16408         iterator.
16409         (define_insn "*fma_fmsub_<mode>"): Rename from
16410         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
16411         FMAMODE mode iterator.
16412         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
16413         Use VF_SF_AVX512VL mode iterator.
16414         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
16415         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
16416         iterator.
16417         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
16418         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
16419         iterator.
16420         (define_insn "*fma_fnmadd_<mode>"): Rename from
16421         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
16422         use FMAMODE mode iterator.
16423         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
16424         Use VF_SF_AVX512VL mode iterator.
16425         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
16426         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
16427         iterator.
16428         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
16429         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
16430         iterator.
16431         (define_insn "*fma_fnmsub_<mode>"): Rename from
16432         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
16433         FMAMODE mode iterator.
16434         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
16435         Use VF_SF_AVX512VL mode iterator.
16436         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
16437         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
16438         iterator.
16439         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
16440         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
16441         iterator.
16442         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
16443         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
16444         use VF_AVX512VL mode iterator.
16445         (define_insn "*fma_fmaddsub_<mode>"): Rename from
16446         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
16447         remove subst usage.
16448         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
16449         Use VF_SF_AVX512VL mode iterator.
16450         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
16451         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
16452         iterator.
16453         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
16454         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
16455         iterator.
16456         (define_insn "*fma_fmsubadd_<mode>"): Rename from
16457         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
16458         remove usage of subst.
16459         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
16460         Use VF_SF_AVX512VL mode iterator.
16461         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
16462         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
16463         iterator.
16464         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
16465         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
16466         iterator.
16468 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
16470         Revert r213751:
16471         * calls.c (precompute_arguments): Check
16472          promoted_for_signed_and_unsigned_p and set the promoted mode.
16473         (promoted_for_signed_and_unsigned_p): New function.
16474         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16475         and set the promoted mode.
16476         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16477         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16478         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16480 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16482         * opth-gen.awk: Generate mapping from cpp message reasons to the
16483         options that enable them.
16484         * doc/options.texi (CppReason): Document.
16486 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16488         * doc/invoke.texi (Wnormalized=): Update.
16490 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
16492         PR target/63195
16493         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
16494         operands.  Split off the constant operand alternative to ...
16495         (*bool<mode>3_imm): New.
16497 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
16499         * rtl.h (single_set_2): Strengthen first param from const_rtx to
16500         const rtx_insn *, and move prototype to above...
16501         (single_set): ...this.  Convert this from a macro to an inline
16502         function, enforcing the requirement that the param is a const
16503         rtx_insn *.
16504         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
16506         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16507         Strengthen both params from rtx to rtx_insn *.
16508         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
16509         Likewise; introduce locals "producer_set", "consumer_set", using
16510         them in place of "producer" and "consumer" when dealing with SET
16511         rather than insn.
16512         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
16513         when invoking single_set in region guarded by INSN_P.
16514         (avr_out_bitop): Likewise.
16515         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
16516         region guarded by GET_CODE check, using methods to strengthen
16517         local "this_insn" from rtx to rtx_insn *, and for clarity.
16518         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
16519         Strengthen local "insn" from rtx to rtx_insn *.
16520         (define_insn_and_split "xload<mode>_A"): Likewise.
16521         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
16522         "insn".
16523         (find_load): Likewise for return type.
16524         (workaround_speculation): Likewise for both locals named
16525         "load_insn".
16526         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
16527         local "cc0_user".
16528         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
16529         for local "prev".
16530         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
16531         param 2.
16532         * config/h8300/h8300.c (notice_update_cc): Likewise.
16533         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
16534         "insn" and "dep_insn".
16535         (exact_store_load_dependency): Likewise for both params.
16536         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
16537         since this now clashes with inline function.  Instead, delay
16538         calling single_set until the point where its needed, and then
16539         assign the result to "compare_set" and rework the conditional that
16540         follows.
16541         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
16542         local "last" from rtx to rtx_insn *.
16543         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
16544         second param.
16545         (mips_store_data_bypass_p): Likewise for both params.
16546         * config/mips/mips.c (mips_load_store_insns): Likewise for second
16547         param.
16548         (mips_store_data_bypass_p): Likewise for both params.
16549         (mips_orphaned_high_part_p): Likewise for param "insn".
16550         * config/mn10300/mn10300.c (extract_bundle): Likewise.
16551         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
16552         Introduce local rtx "insn2_pat".
16553         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
16554         "ninsn".
16555         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
16556         Introduce local rtx "set", using it in place of "insn" for the
16557         result of single_set.  This appears to fix a bug, since the call
16558         to find_regno_note on a SET does nothing.
16559         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
16560         params from rtx to rtx_insn *.
16561         (set_to_load_agen): Likewise.
16562         * config/s390/s390.c (s390_label_align): Likewise for local
16563         "prev_insn".  Introduce new rtx locals "set" and "src", using
16564         them in place of "prev_insn" for the results of single_set
16565         and SET_SRC respectively.
16566         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
16567         Introduce new rtx local "set" using in place of "jump" for the
16568         result of single_set.  Use SET_SRC (set) rather than plain
16569         XEXP (set, 1).
16570         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
16571         rtx to rtx_insn *.
16572         (noncall_uses_reg): Likewise.
16573         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
16574         guarded by GET_CODE check, using its methods for clarity, and to
16575         enable strengthening local "this_insn" from rtx to rtx_insn *.
16576         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
16577         "insn" from rtx to rtx_insn *.
16578         (define_expand "umulhisi3"): Likewise.
16579         (define_expand "smulsi3_highpart"): Likewise.
16580         (define_expand "umulsi3_highpart"): Likewise.
16581         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
16582         local "after".  Replace GET_CODE check with a dyn_cast,
16583         introducing new local rtx_sequence * "seq", using insn method for
16584         typesafety.
16586         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
16587         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
16588         place of "insn" once we're dealing with patterns rather than the
16589         input insn.
16590         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
16591         (scan_trace): Likewise for local "elt", updating lookups within
16592         sequence to use insn method rather than element method.
16593         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
16594         to rtx_insn *.
16595         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
16596         * ifcvt.c (noce_try_abs): Likewise for local "insn".
16597         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
16598         invoking single_set.
16599         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
16600         "insn" from rtx to rtx_insn *.
16601         (skip_usage_debug_insns): Likewise for return type, adding a
16602         checked cast.
16603         (check_secondary_memory_needed_p): Likewise for local "insn".
16604         (inherit_reload_reg): Likewise.
16605         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
16606         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
16607         checked casts.
16608         (store_data_bypass_p): Likewise for both params.
16609         (if_test_bypass_p): Likewise.
16610         * recog.h (store_data_bypass_p): Likewise for both params.
16611         (if_test_bypass_p): Likewise.
16612         * reload.c (find_equiv_reg): Likewise for local "where".
16613         * reorg.c (delete_jump): Likewise for param "insn".
16614         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
16615         to const rtx_insn *.
16616         * store-motion.c (replace_store_insn): Likewise for param "del".
16617         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
16618         and use its methods for clarity, and to strengthen local "del"
16619         from rtx to rtx_insn *.
16620         (build_store_vectors): Use insn method of "st" when calling
16621         replace_store_insn for typesafety and clarity.
16623 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16625         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
16626         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
16627         on how to make it legal in future.
16629 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
16631         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
16632         to rtx_insn *.
16633         (restinsn): Likewise.
16634         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
16635         Likewise for param.
16636         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
16637         Likewise.
16638         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
16639         first param.
16640         (arc_hazard): Likewise for both params.
16641         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
16642         checked casts to rtx_sequence * and uses of the insn method for
16643         type-safety.
16644         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
16645         (arc_adjust_insn_length): Likewise for param "insn".
16646         (struct insn_length_parameters_s): Likewise for first param of
16647         "get_variants" callback field.
16648         (arc_get_insn_variants): Likewise for first param and local
16649         "inner".  Replace a check of GET_CODE with a dyn_cast to
16650         rtx_sequence *, using methods for type-safety and clarity.
16651         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
16652         rtx_sequence * and uses of the insn method for type-safety when
16653         invoking arc_adjust_insn_length.
16654         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
16655         for param.
16656         (arm_address_offset_is_imm): Likewise.
16657         (struct tune_params): Likewise for params 1 and 3 of the
16658         "sched_adjust_cost" callback field.
16659         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
16660         params 1 and 3 ("insn" and "dep").
16661         (xscale_sched_adjust_cost): Likewise.
16662         (fa726te_sched_adjust_cost): Likewise.
16663         (cortexa7_older_only): Likewise for param "insn".
16664         (cortexa7_younger): Likewise.
16665         (arm_attr_length_move_neon): Likewise.
16666         (arm_address_offset_is_imm): Likewise.
16667         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
16668         * config/avr/avr.c (avr_notice_update_cc): Likewise.
16669         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
16670         (workaround_speculation): Likewise for local "last_condjump".
16671         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
16672         (shadow_or_blockage_p): Likewise.
16673         (get_unit_reqs): Likewise.
16674         (get_unit_operand_masks): Likewise.
16675         (c6x_registers_update): Likewise.
16676         (returning_call_p): Likewise.
16677         (can_use_callp): Likewise.
16678         (convert_to_callp): Likewise.
16679         (find_last_same_clock): Likwise for local "t".
16680         (reorg_split_calls): Likewise for local "shadow".
16681         (hwloop_pattern_reg): Likewise for param "insn".
16682         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
16683         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
16684         (frv_extract_membar): Likewise.
16685         (frv_optimize_membar_local): Strengthen param "last_membar" from
16686         rtx * to rtx_insn **.
16687         (frv_optimize_membar_global): Strengthen param "membar" from rtx
16688         to rtx_insn *.
16689         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
16690         to rtx_insn **.
16691         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
16692         both params from rtx to rtx_insn *.
16693         (ia64_ld_address_bypass_p): Likewise.
16694         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
16695         "insn".
16696         (ia64_safe_type): Likewise.
16697         (group_barrier_needed): Likewise.
16698         (safe_group_barrier_needed): Likewise.
16699         (ia64_single_set): Likewise.
16700         (is_load_p): Likewise.
16701         (record_memory_reference): Likewise.
16702         (get_mode_no_for_insn): Likewise.
16703         (important_for_bundling_p): Likewise.
16704         (unknown_for_bundling_p): Likewise.
16705         (ia64_st_address_bypass_p): Likewise for both params.
16706         (ia64_ld_address_bypass_p): Likewise.
16707         (expand_vselect): Introduce new local rtx_insn * "insn", using it
16708         in place of rtx "x" after the emit_insn call.
16709         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
16710         Strengthen param from rtx to rtx_insn *.
16711         (ix86_agi_dependent): Likewise for both params.
16712         (ix86_attr_length_immediate_default): Likewise for param 1.
16713         (ix86_attr_length_address_default): Likewise for param.
16714         (ix86_attr_length_vex_default): Likewise for param 1.
16715         * config/i386/i386.c (ix86_attr_length_immediate_default):
16716         Likewise for param "insn".
16717         (ix86_attr_length_address_default): Likewise.
16718         (ix86_attr_length_vex_default): Likewise.
16719         (ix86_agi_dependent): Likewise for both params.
16720         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
16721         (vselect_insn): Likewise for this variable.
16722         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
16723         for param 1.
16724         (m68k_sched_attr_opy_type): Likewise.
16725         * config/m68k/m68k.c (sched_get_operand): Likewise.
16726         (sched_attr_op_type): Likewise.
16727         (m68k_sched_attr_opx_type): Likewise.
16728         (m68k_sched_attr_opy_type): Likewise.
16729         (sched_get_reg_operand): Likewise.
16730         (sched_get_mem_operand): Likewise.
16731         (m68k_sched_address_bypass_p): Likewise for both params.
16732         (sched_get_indexed_address_scale): Likewise.
16733         (m68k_sched_indexed_address_bypass_p): Likewise.
16734         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
16735         (m68k_sched_indexed_address_bypass_p): Likewise.
16736         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
16737         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
16738         removing another.
16739         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
16740         params from rtx to rtx_insn *.
16741         (mips_fmadd_bypass): Likewise.
16742         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
16743         (mips_linked_madd_p): Likewise.
16744         (mips_macc_chains_last_hilo): Likewise for this variable.
16745         (mips_macc_chains_record): Likewise for param.
16746         (vr4130_last_insn): Likewise for this variable.
16747         (vr4130_swap_insns_p): Likewise for both params.
16748         (mips_ls2_variable_issue): Likewise for param.
16749         (mips_need_noat_wrapper_p): Likewise for param "insn".
16750         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
16751         in place of "x" after the emit_insn.
16752         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
16753         params from rtx to rtx_insn *.
16754         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
16755         (pa_combine_instructions): Introduce local "par" for result of
16756         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
16757         to make_insn_raw.
16758         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
16759         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
16760         (rl78_alloc_physical_registers_op1): Likewise.
16761         (rl78_alloc_physical_registers_op2): Likewise.
16762         (rl78_alloc_physical_registers_ro1): Likewise.
16763         (rl78_alloc_physical_registers_cmp): Likewise.
16764         (rl78_alloc_physical_registers_umul): Likewise.
16765         (rl78_alloc_address_registers_macax): Likewise.
16766         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
16767         * config/s390/predicates.md (execute_operation): Likewise for
16768         local "insn".
16769         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
16770         params.
16771         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
16772         (addr_generation_dependency_p): Likewise for param "insn".
16773         (s390_agen_dep_p): Likewise for both params.
16774         (s390_fpload_toreg): Likewise for param "insn".
16775         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
16776         * config/sh/sh.c (sh_loop_align): Likewise for param and local
16777         "next".
16778         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
16779         * config/sh/sh_treg_combine.cc
16780         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
16781         and local "i".
16782         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
16783         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
16784         "and_insn", "load", "shift".
16785         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
16786         "insn".
16787         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
16788         for XEXP (note, 0) of the REG_CC_SETTER note.
16789         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
16790         rtx_insn *, eliminating a checked cast made redundant by this.
16791         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
16792         to rtx_insn *.
16793         * genattr.c (main): When writing out the prototype to
16794         const_num_delay_slots, strengthen the param from rtx to
16795         rtx_insn *.
16796         * genattrtab.c (write_const_num_delay_slots): Likewise when
16797         writing out the implementation of const_num_delay_slots.
16798         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
16799         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
16800         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
16801         favor of new rtx locals "src" and "set" and new local rtx_insn *
16802         "insn" and "seq".
16803         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
16804         to rtx_insn *.
16805         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
16806         locals "cond", "if_then_else", "set" and new rtx_insn * locals
16807         "insn" and "seq".
16808         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
16809         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
16810         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
16811         the top-level scope, replacing with new more tightly-scoped rtx
16812         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
16813         "new_insn", "copy_of_insn_b", and make local rtx "set" more
16814         tightly-scoped.
16815         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
16816         rtx_insn *.
16817         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
16818         "move_insn".
16819         (ira_setup_alts): Likewise for param "insn".
16820         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
16821         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
16822         and an rtx_insn *.
16823         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
16824         new more-tightly scoped rtx locals "add3_insn", "insn",
16825         "add2_insn" and rtx_insn * "move_insn".
16826         * postreload-gcse.c (eliminate_partially_redundant_load): Add
16827         checked cast on result of gen_move_insn when invoking
16828         extract_insn.
16829         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
16830         rtx_insn *.
16831         (verify_changes): Add a checked cast on "object" when invoking
16832         insn_invalid_p.
16833         (extract_insn_cached): Strengthen param "insn" from rtx to
16834         rtx_insn *.
16835         (extract_constrain_insn_cached): Likewise.
16836         (extract_insn): Likewise.
16837         * recog.h (insn_invalid_p): Likewise for param 1.
16838         (recog_memoized): Likewise for param.
16839         (extract_insn): Likewise.
16840         (extract_constrain_insn_cached): Likewise.
16841         (extract_insn_cached): Likewise.
16842         * reload.c (can_reload_into): Likewise for local "test_insn".
16843         * reload.h (cleanup_subreg_operands): Likewise for param.
16844         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
16845         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
16846         result of emit_insn.  Remove a checked cast made redundant by this
16847         change.
16848         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
16849         rtx to rtx_insn *.
16850         * sel-sched.c (get_reg_class): Likewise.
16852 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16853             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16855         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
16856         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
16857         Define.
16858         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
16860 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
16862         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
16863         const rtx_insn *, and from rtx to rtx_insn * for the other
16864         overloaded variant.
16865         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
16866         INSN_LOCATION, since we know INSN_P holds.
16867         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
16868         (insn_file): Likewise.
16869         (insn_scope): Likewise.
16870         (insn_location): Likewise.
16872         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
16873         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
16874         for the result of gen_load_const_gp.
16875         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
16876         param from rtx to rtx_insn *.
16877         * config/rs6000/rs6000.c (output_call): Likewise.
16878         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
16879         introducing a checked cast to rtx_sequence * and use of the insn
16880         method.
16881         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
16882         from rtx to rtx_insn *.
16883         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
16884         (insn_line): Likewise.
16885         (insn_file): Likewise.
16886         (insn_location): Likewise.
16887         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
16888         from rtx to rtx_insn *.
16889         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
16890         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
16891         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
16892         via a checked cast.
16893         * reorg.c (relax_delay_slots): Strengthen locals named "after"
16894         from rtx to rtx_insn *; use methods of "pat" for type-safety.
16896 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
16898         * combine.c (try_combine): Eliminate checked cast on result of
16899         gen_rtx_INSN.
16900         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
16901         autogenerated one by strengthening the return type and params 2 and 3
16902         from rtx to rtx_insn *, and by naming the params.
16903         * gengenrtl.c (special_rtx): Add INSN to those that are
16904         special-cased.
16905         * rtl.h (gen_rtx_INSN): New prototype.
16907 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
16909         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
16910         than NULL_RTX.
16911         (no_equiv): Likewise.
16912         (update_equiv_regs): Likewise.
16913         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
16914         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
16915         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
16916         clarity.
16917         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
16918         from rtx to rtx_insn_list *.
16919         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
16920         rtx_insn_list * and use methods for clarity and typesafety.
16921         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
16922         "list".
16923         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
16924         redundant check on INSN_P (insns): this cannot hold, as "insns" is
16925         an INSN_LIST, not an insn.
16926         (reverse_equiv_p): Strengthen local "insns" from rtx to
16927         rtx_insn_list * and use methods for clarity and typesafety.
16928         (contains_reloaded_insn_p): Likewise for local "list".
16930 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
16932         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
16933         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
16934         (arm_builtin_vectorized_function): Likewise.
16935         * config/arm/arm_neon_builtins.def: New macro for copysignf.
16936         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
16938 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
16940         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
16941         * builtins.h (default_target_builtins): Likewise.
16942         * gcse.h (default_target_gcse): Likewise.
16943         * target-globals.h (target_globals): Add a destructor.  Convert
16944         void-pointer fields back to their real type and change from
16945         GTY((atomic)) to GTY((skip)).
16946         (restore_target_globals): Remove casts accordingly.
16947         * target-globals.c (save_target_globals): Use XCNEW rather than
16948         ggc_internal_cleared_alloc to allocate non-GC structures.
16949         Use ggc_cleared_alloc to allocate the target_globals structure
16950         itself.
16951         (target_globals::~target_globals): Define.
16953 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16955         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
16956         mnemonic instead of fldmfdd.
16957         * config/arm/arm.c (vfp_output_fstmd): Rename to...
16958         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
16959         Output vpush when address register is SP.
16960         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
16961         (vfp_output_vstmd): ... This.
16962         * config/arm/vfp.md (push_multi_vfp): Update call to
16963         vfp_output_vstmd.
16965 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16967         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
16969 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16971         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
16972         (*sqrtdf2_vfp): Likewise.
16973         (*cmpsf_vfp): Likewise.
16974         (*cmpsf_trap_vfp): Likewise.
16975         (*cmpdf_vfp): Likewise.
16976         (*cmpdf_trap_vfp): Likewise.
16978 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16980         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
16981         (*truncdfsf2_vfp): Likewise.
16982         (*truncsisf2_vfp): Likewise.
16983         (*truncsidf2_vfp): Likewise.
16984         (fixuns_truncsfsi2): Likewise.
16985         (fixuns_truncdfsi2): Likewise.
16986         (*floatsisf2_vfp): Likewise.
16987         (*floatsidf2_vfp): Likewise.
16988         (floatunssisf2): Likewise.
16989         (floatunssidf2): Likewise.
16991 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16993         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
16994         (*muldf3_vfp): Likewise.
16995         (*mulsf3negsf_vfp): Likewise.
16996         (*muldf3negdf_vfp): Likewise.
16997         (*mulsf3addsf_vfp): Likewise.
16998         (*muldf3adddf_vfp): Likewise.
16999         (*mulsf3subsf_vfp): Likewise.
17000         (*muldf3subdf_vfp): Likewise.
17001         (*mulsf3negsfaddsf_vfp): Likewise.
17002         (*fmuldf3negdfadddf_vfp): Likewise.
17003         (*mulsf3negsfsubsf_vfp): Likewise.
17004         (*muldf3negdfsubdf_vfp): Likewise.
17006 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17008         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
17009         (*absdf2_vfp): Likewise.
17010         (*negsf2_vfp): Likewise.
17011         (*negdf2_vfp): Likewise.
17012         (*addsf3_vfp): Likewise.
17013         (*adddf3_vfp): Likewise.
17014         (*subsf3_vfp): Likewise.
17015         (*subdf3_vfp): Likewise.
17016         (*divsf3_vfp): Likewise.
17017         (*divdf3_vfp): Likewise.
17019 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17021         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
17022         multiple.
17023         (arm_print_operand): Don't convert real values to decimal
17024         representation in default case.
17025         (fp_immediate_constant): Delete.
17026         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
17027         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
17028         syntax.
17029         (*thumb2_movsi_vfp): Likewise.
17030         (*movdi_vfp): Likewise.
17031         (*movdi_vfp_cortexa8): Likewise.
17032         (*movhf_vfp_neon): Likewise.
17033         (*movhf_vfp): Likewise.
17034         (*movsf_vfp): Likewise.
17035         (*thumb2_movsf_vfp): Likewise.
17036         (*movdf_vfp): Likewise.
17037         (*thumb2_movdf_vfp): Likewise.
17038         (*movsfcc_vfp): Likewise.
17039         (*thumb2_movsfcc_vfp): Likewise.
17040         (*movdfcc_vfp): Likewise.
17041         (*thumb2_movdfcc_vfp): Likewise.
17043 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
17045         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
17046         (-mtune): Likewise.
17047         (-mcpu): Likewise.
17049 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17051         PR target/61749
17052         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
17053         Use qualifier_immediate for last operand.  Rename to...
17054         (aarch64_types_ternop_lane_qualifiers): ... This.
17055         (TYPES_QUADOP): Rename to...
17056         (TYPES_TERNOP_LANE): ... This.
17057         (aarch64_simd_expand_args): Return const0_rtx when encountering user
17058         error.  Change return of 0 to return of NULL_RTX.
17059         (aarch64_crc32_expand_builtin): Likewise.
17060         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
17061         ICE when expanding unknown builtin.
17062         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
17063         TERNOP_LANE qualifiers.
17064         (sqdmlsl_lane): Likewise.
17065         (sqdmlal_laneq): Likewise.
17066         (sqdmlsl_laneq): Likewise.
17067         (sqdmlal2_lane): Likewise.
17068         (sqdmlsl2_lane): Likewise.
17069         (sqdmlal2_laneq): Likewise.
17070         (sqdmlsl2_laneq): Likewise.
17072 2014-09-09  Nick Clifton  <nickc@redhat.com>
17074         * doc/invoke.texi (Optimization Options): Add missing @gol to the
17075         end of a line.
17076         (S/390 and zSeries Options): Remove superfluous word from the
17077         description of the -mhotpatch option.
17079 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
17081         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
17082         * ira.c: #include "shrink-wrap.h"
17083         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
17084         * ifcvt.c: #include "shrink-wrap.h"
17085         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
17087 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
17089         * common/config/picochip/picochip-common.c: Remove.
17090         * config.gcc: Remove support for picochip.
17091         * config/picochip/constraints.md: Remove.
17092         * config/picochip/dfa_space.md: Remove.
17093         * config/picochip/dfa_speed.md: Remove.
17094         * config/picochip/picochip-protos.h: Remove.
17095         * config/picochip/picochip.c: Remove.
17096         * config/picochip/picochip.h: Remove.
17097         * config/picochip/picochip.md: Remove.
17098         * config/picochip/picochip.opt: Remove.
17099         * config/picochip/predicates.md: Remove.
17100         * config/picochip/t-picochip: Remove.
17101         * doc/md.texi: Don't document picochi.
17103 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
17105         * basic-block.h (control_flow_insn_p): Strengthen param from
17106         const_rtx to const rtx_insn *.
17107         * cfgbuild.c (control_flow_insn_p): Likewise.
17109 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
17111         * gcse.c (modify_mem_list): Strengthen this variable from
17112         vec<rtx> * to vec<rtx_insn *> *.
17113         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
17114         vec<rtx_insn *>.
17115         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
17116         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
17117         (record_last_mem_set_info): Strengthen param "insn" from rtx to
17118         rtx_insn *.
17119         (record_last_set_info): Likewise for local "last_set_insn".
17121 2014-09-08  DJ Delorie  <dj@redhat.com>
17123         * doc/invoke.texi (MSP430 Options): Add -minrt.
17125 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17127         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
17128         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
17129         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
17130         handling SH_SPLAT.
17131         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
17132         of extracted lane.
17133         (adjust_splat): New function.
17134         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
17135         (dump_swap_insn_table): Add case for SH_SPLAT.
17137 2014-09-08  Richard Biener  <rguenther@suse.de>
17139         PR ipa/63196
17140         * tree-inline.c (copy_loops): The source loop header should
17141         always be non-NULL.
17142         (tree_function_versioning): If loops need fixup after removing
17143         unreachable blocks fix them.
17144         * omp-low.c (simd_clone_adjust): Do not add incr block to
17145         loop under construction.
17147 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
17149         * config/aarch64/aarch64-builtins.c
17150         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
17152 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
17154         * config/i386/cygming.h (TF_SIZE): Remove.
17155         * config/i386/darwin.h (TF_SIZE): Remove.
17156         * config/i386/dragonfly.h (TF_SIZE): Remove.
17157         * config/i386/freebsd.h (TF_SIZE): Remove.
17158         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
17159         * config/i386/openbsdelf.h (TF_SIZE): Remove.
17160         * config/i386/sol2.h (TF_SIZE): Remove.
17161         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
17162         * config/ia64/linux.h (TF_SIZE): Remove.
17163         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
17164         * doc/tm.texi: Regenerate.
17165         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
17167 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
17169         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
17170         Remove.
17171         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
17172         Remove.
17173         * doc/tm.texi: Regenerate.
17174         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
17175         Poison.
17176         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
17177         * config/cris/cris.h (__make_dp): Remove.
17179 2014-09-08  Richard Biener  <rguenther@suse.de>
17181         PR bootstrap/63204
17182         * cfgloop.c (mark_loop_for_removal): Track former header
17183         unconditionally.
17184         * cfgloop.h (struct loop): Add former_header member unconditionally.
17185         * loop-init.c (fix_loop_structure): Enable bogus loop removal
17186         diagnostic unconditionally.
17188 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
17190         PR target/63190
17191         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
17192         constraint for operand0 and remove write only modifier from operand3.
17194 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
17196         PR rtl-optimization/62208
17197         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
17198         rather than const0_rtx in eq/ne-xor simplifications.
17200 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
17202         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
17203         (arc_output_mi_thunk): Likewise.
17205         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
17206         arguments to silence bogus warning.
17208 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
17210         PR middle-end/63171
17211         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
17213 2014-09-06  Tom de Vries  <tom@codesourcery.com>
17215         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
17216         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
17217         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17219 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
17221         PR target/63188
17222         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
17223         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
17225 2014-09-05  Easwaran Raman  <eraman@google.com>
17227         PR rtl-optimization/62146
17228         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
17229         hoisted instruction unconditional.
17231 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
17233         PR target/63187
17234         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
17235         Do not allow any_mask_operand for operands[2].
17236         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
17238 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17240         * config/arc/arc.c (arc_print_operand): Use insn method of
17241         final_sequence for type-safety.
17242         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
17243         "insn" from rtx to rtx_insn *.
17244         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
17245         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
17246         Likewise for locals "branch", "label".
17247         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
17248         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
17249         (same_cmp_following_p): Likewise for locals "i2", "i3".
17250         * config/sh/sh_optimize_sett_clrt.cc
17251         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
17252         param "cbranch_insn".
17253         * function.c (convert_jumps_to_returns): Likewis for local "jump".
17254         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
17255         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
17256         const rtx_insn *.
17257         (condjump_p): Likewise.
17258         (condjump_in_parallel_p): Likewise.
17259         (pc_set): Likewise.
17260         (any_uncondjump_p): Likewise.
17261         (any_condjump_p): Likewise.
17262         (condjump_label): Likewise.
17263         (returnjump_p): Strengthen param "insn" from rtx to
17264         const rtx_insn *.
17265         (onlyjump_p): Strengthen param "insn" from const_rtx to
17266         const rtx_insn *.
17267         (jump_to_label_p): Likewise.
17268         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
17269         (invert_jump): Likewise.
17270         * reorg.c (simplejump_or_return_p): Add checked cast when calling
17271         simplejump_p.
17272         (get_jump_flags): Strengthen param "insn" from rtx to
17273         const rtx_insn *.
17274         (get_branch_condition): Likewise.
17275         (condition_dominates_p): Likewise.
17276         (make_return_insns): Move declaration of local "pat" earlier, to
17277         after we've handled NONJUMP_INSN_P and non-sequences, using its
17278         methods to simplify the code and for type-safety.
17279         * rtl.h (find_constant_src): Strengthen param from const_rtx to
17280         const rtx_insn *.
17281         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
17282         (condjump_p): Strengthen param from const_rtx to
17283         const rtx_insn *.
17284         (any_condjump_p): Likewise.
17285         (any_uncondjump_p): Likewise.
17286         (pc_set): Likewise.
17287         (condjump_label): Likewise.
17288         (simplejump_p): Likewise.
17289         (returnjump_p): Likewise.
17290         (onlyjump_p): Likewise.
17291         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
17292         (invert_jump): Likewise.
17293         (condjump_in_parallel_p): Strengthen param from const_rtx to
17294         const rtx_insn *.
17295         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
17296         to const rtx_insn *.
17297         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
17298         to const rtx_insn *.
17299         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
17301 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17303         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
17304         above the conditional, and convert the check on GET_CODE to a
17305         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
17306         the conditional.  Simplify the conditional by using methods of
17307         "trial_seq".
17309 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17311         * haifa-sched.c (check_clobbered_conditions): Strengthen local
17312         "link" from rtx to rtx_insn_list *, and use its methods for
17313         clarity and type-safety.
17314         (toggle_cancelled_flags): Likewise.
17315         (restore_last_backtrack_point): Likewise.
17316         (queue_to_ready): Use insn method of "link" in one place.
17317         (schedule_block): Strengthen local "link" from rtx to
17318         rtx_insn_list *, and use its methods for clarity and type-safety.
17320 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17322         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
17323         param "insn" from const_rtx to const rtx_insn *.
17324         (sched_get_reverse_condition_uncached): Likewise.
17325         (sched_get_condition_with_rev): Likewise.
17326         (sched_has_condition_p): Likewise.
17327         (sched_insns_conditions_mutex_p): Likewise for both params.
17328         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
17329         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
17330         (setup_insn_reg_uses): Move local "list" to be more tightly
17331         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
17332         its methods for clarity and type-safety.
17333         (sched_analyze_1): Strengthen local "pending" from rtx to
17334         rtx_insn_list *, and local "pending_mem" from rtx to
17335         rtx_expr_list *.  Use methods of each for clarity and type-safety.
17336         (sched_analyze_2): Likewise.
17337         (sched_analyze_insn): Likewise.
17339         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
17340         param from const_rtx to const rtx_insn *.
17341         (sched_insns_conditions_mutex_p): Likewise for both params.
17342         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
17343         param.
17345         * system.h (CONST_CAST_RTX_INSN): New macro.
17347 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17349         * recog.c (peep2_attempt): Strengthen return type from rtx to
17350         rtx_insn *.
17351         (peep2_update_life): Likewise for params "last", "prev", removing
17352         a checked cast made redundant by this.
17353         (peephole2_optimize): Likewise for local "last".
17355 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17357         * basic-block.h (set_block_for_insn): Eliminate this macro in
17358         favor of...
17359         * rtl.h (set_block_for_insn): New inline function, imposing the
17360         requirement that the "insn" param is an rtx_insn *.
17362 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17364         * caller-save.c (setup_save_areas): Strengthen local "insn" from
17365         rtx to rtx_insn *.
17366         * final.c (get_call_reg_set_usage): Likewise for first param,
17367         eliminating a checked cast.
17368         * regs.h (get_call_reg_set_usage): Likewise for first param.
17369         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
17370         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
17371         cast, replacing references to "x" with "call_insn" where
17372         appropriate.
17373         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
17374         rtx_insn *, adding a checked cast.
17376 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17378         * output.h (final_scan_insn): Strengthen first param from rtx to
17379         rtx_insn *.
17381         * final.c (final_scan_insn): Likewise, renaming it back from
17382         "uncast_insn" to "insn", eliminating the checked cast.
17384         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
17385         "vec" with an rtx_sequence * "seq", taking a copy of
17386         "final_sequence", and using methods of "seq" for clarity, and for
17387         type-safety in the calls to final_scan_insn.
17388         * config/mips/mips.c (mips_output_conditional_branch): Use methods
17389         of "final_sequence" for clarity, and for type-safety in the call to
17390         final_scan_insn.
17391         * config/sh/sh.c (print_slot): Strengthen param from rtx to
17392         rtx_sequence * and rename from "insn" to "seq".
17394 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17396         * jump.c (delete_related_insns): Introduce a new local "table" by
17397         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
17398         get_labels method of "table" to simplify access to the labels in
17399         the jump table.
17401 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17403         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
17404         f_minmaxs, f_minmaxd types.
17406 2014-09-05  Richard Biener  <rguenther@suse.de>
17408         * cfgloop.c (mark_loop_for_removal): Record former header
17409         when ENABLE_CHECKING.
17410         * cfgloop.h (strut loop): Add former_header member when
17411         ENABLE_CHECKING.
17412         * loop-init.c (fix_loop_structure): Sanity check loops
17413         marked for removal if they re-appeared.
17415 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
17417         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
17418         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
17420         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
17421         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
17422         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
17423         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
17424         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
17425         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
17426         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
17427         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
17428         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
17429         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
17430         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
17431         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
17432         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
17433         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
17434         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
17435         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
17436         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
17437         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
17438         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
17439         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
17440         with int{32,16,8}_t.
17442 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
17444         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
17445         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
17446         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
17447         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
17448         Remove temporary __asm__ and reimplement.
17450 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
17452         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
17453         handling cmge, cmgt, cmeq, cmtst.
17455         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
17456         cmlt, cmgeu, cmgtu, cmtst): Remove.
17458         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
17459         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
17460         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
17461         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
17463 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
17465         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
17466         TYPES_TST): Define.
17467         (aarch64_fold_builtin): Update pattern for cmtst.
17469         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
17470         Declare.
17472         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
17474         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
17475         Switch operands, separate out more cases, refactor.
17477         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
17479         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
17480         argument; rename old version to...
17481         (aarch64_const_vec_all_same_in_range_p): ...this.
17482         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
17484         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
17486 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
17488         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
17489         Remove qualifier_const_pointer, update comment.
17491 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
17493         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
17495 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
17497         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
17498         varargs with pointer parameter.
17499         (aarch64_simd_expand_builtin): pass pointer into previous.
17501 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17503         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
17504         alus_ext.
17506 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
17508         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
17509         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
17510         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
17511         Replace temporary asm with call to builtin.
17512         (vrbit_p8, vrbitq_p8): New functions.
17514 2014-09-05  Richard Biener  <rguenther@suse.de>
17516         * cfgloop.c (mark_loop_for_removal): New function.
17517         * cfgloop.h (mark_loop_for_removal): Declare.
17518         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
17519         (merge_blocks): Likewise.
17520         (duplicate_block): Likewise.
17521         * except.c (sjlj_emit_dispatch_table): Likewise.
17522         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
17523         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
17524         (thread_through_loop_header): Likewise.
17526 2014-09-05  Richard Biener  <rguenther@suse.de>
17528         PR middle-end/63148
17529         * fold-const.c (try_move_mult_to_index): Remove.
17530         (fold_binary_loc): Do not call it.
17531         * tree-data-ref.c (dr_analyze_indices): Strip conversions
17532         from the base object again.
17534 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
17536         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
17537         DImode.
17539 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
17541         PR target/55701
17542         * config/arm/arm.md (setmem): New pattern.
17543         * config/arm/arm-protos.h (struct tune_params): New fields.
17544         (arm_gen_setmem): New prototype.
17545         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17546         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17547         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17548         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17549         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17550         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17551         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17552         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17553         (arm_const_inline_cost): New function.
17554         (arm_block_set_max_insns): New function.
17555         (arm_block_set_non_vect_profit_p): New function.
17556         (arm_block_set_vect_profit_p): New function.
17557         (arm_block_set_unaligned_vect): New function.
17558         (arm_block_set_aligned_vect): New function.
17559         (arm_block_set_unaligned_non_vect): New function.
17560         (arm_block_set_aligned_non_vect): New function.
17561         (arm_block_set_vect, arm_gen_setmem): New functions.
17563 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
17565         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
17567 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
17569         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17571 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
17573         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
17574         an rtx.
17575         * valtrack.h: Adjust.
17577 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
17579         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
17580         an rtx.
17581         (emit_jump_insn_before_noloc): Likewise.
17582         (emit_call_insn_before_noloc): Likewise.
17583         (emit_label_before): Likewise.
17584         (emit_label_after): Likewise.
17585         (emit_insn_before_setloc): Likewise.
17586         (emit_jump_insn_before_setloc): Likewise.
17587         (emit_call_insn_before_setloc): Likewise.
17588         (emit_call_insn_before): Likewise.
17589         * rtl.h: Adjust.
17591 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17593         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
17594         rtx_insn *, eliminating a checked cast.
17596 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17598         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
17599         const_rtx to const rtx_insn *.
17600         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
17601         cast.
17603 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17605         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
17606         fixup_args_size_notes.
17607         * expr.c (fixup_args_size_notes): Strengthen first two params from
17608         rtx to rtx_insn *, eliminating a checked cast.
17609         * rtl.h (fixup_args_size_notes): Strengthen first two params from
17610         rtx to rtx_insn *.
17612 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17614         * haifa-sched.c (get_ready_element): Strengthen return type from
17615         rtx to rtx_insn *.
17616         * sched-int.h (get_ready_element): Likewise.
17618 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
17620         PR target/63165
17621         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
17622         indexed_or_indirect_operand instead of memory_operand.
17623         (floatsi<mode>2_lfiwzx_mem): Ditto.
17625 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
17627         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
17628         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
17629         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
17631 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
17633         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
17634         rtx.
17635         (get_last_nonnote_insn): Likewise.
17636         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
17637         * resource.c (find_basic_block): Likewise.
17638         * rtl.h: Adjust.
17639         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
17640         const_rtx.
17642 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
17644         * genattr.c (main): Within the prototype of insn_latency written
17645         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
17646         * genautomata.c (output_internal_maximal_insn_latency_func):
17647         Within the implementation of insn_latency written out to
17648         insn-automata.c, strengthen both params from rtx to rtx_insn *,
17649         eliminating a pair of checked casts.
17651 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
17653         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
17654         rtx_insn *.
17656         * rtl.h (eh_returnjump_p): Likewise.
17658 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
17660         * Makefile.in (TAGS): Handle constructs in timevar.def.
17662 2014-09-04  Guozhi Wei  <carrot@google.com>
17664         PR target/62040
17665         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
17666         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
17667         it into two patterns.
17668         (move_lo_quad_internal_be_<mode>): Likewise.
17670 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17672         * doc/options.texi: Document that Var and Init are required if CPP
17673         is given.
17674         * optc-gen.awk: Require Var and Init if CPP is given.
17675         * common.opt (Wpedantic): Use Init.
17677 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17679         * config/rs6000/rs6000.c (special_handling_values): Add
17680         SH_EXTRACT.
17681         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
17682         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
17683         as swappable with special handling SH_EXTRACT.  Remove
17684         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
17685         optimization.
17686         (adjust_extract): New function.
17687         (handle_special_swappables): Add default to case statement; add
17688         case for SH_EXTRACT that calls adjust_extract.
17689         (dump_swap_insn_table): Handle SH_EXTRACT.
17691 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17693         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
17694         selection of 0th memory doubleword, regardless of endianness.
17696 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17698         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
17700 2014-09-04  Alan Modra  <amodra@gmail.com>
17702         PR debug/60655
17703         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
17704         can't be output.
17706 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
17708         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
17709         * targhooks.c (default_dwarf_frame_reg_mode): New function.
17710         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
17711         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
17712         * doc/tm.texi: Regenerate.
17713         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
17714         selection logic to default_dwarf_frame_reg_mode.
17716 2014-09-03  Marek Polacek  <polacek@redhat.com>
17718         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
17719         by -Wall.
17721 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
17723         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
17724         the automodified register.
17726 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
17728         * output.h (get_some_local_dynamic_name): Declare.
17729         * final.c (some_local_dynamic_name): New variable.
17730         (get_some_local_dynamic_name): New function.
17731         (final_end_function): Clear some_local_dynamic_name.
17732         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
17733         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
17734         (print_operand): Report an error if '%&' is used inappropriately.
17735         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
17736         (get_some_local_dynamic_name_1): Delete.
17737         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
17738         (rs6000_get_some_local_dynamic_name): Delete.
17739         (rs6000_get_some_local_dynamic_name_1): Delete.
17740         (print_operand): Report an error if '%&' is used inappropriately.
17741         * config/s390/s390.c (machine_function): Remove some_ld_name.
17742         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
17743         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
17744         * config/sparc/sparc.c: Include rtl-iter.h.
17745         (machine_function): Remove some_ld_name.
17746         (sparc_print_operand): Report an error if '%&' is used inappropriately.
17747         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
17749 2014-09-03  Richard Henderson  <rth@redhat.com>
17751         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
17752         (aarch64_popwb_pair_reg): Remove.
17753         (aarch64_set_frame_expr): Remove.
17754         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
17755         the restore ops performed by the insns generated.
17756         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
17757         insn.  Perform the calls_eh_return addition later; do not attempt to
17758         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
17759         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
17760         special markup at all.  Load cfun->machine->frame.hard_fp_offset
17761         into a local variable.
17762         (aarch64_frame_pointer_required): Don't check calls_alloca.
17764 2014-09-03  Richard Biener  <rguenther@suse.de>
17766         * opts.c (default_options_optimization): Adjust
17767         max-combine-insns to 2 for -Og.
17769 2014-09-03  Martin Jambor  <mjambor@suse.cz>
17771         PR ipa/62015
17772         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
17773         pass-trough jump functions correctly.
17775 2014-09-03  Martin Jambor  <mjambor@suse.cz>
17777         PR ipa/61986
17778         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
17779         created replacements in ascending order of offsets.
17780         (known_aggs_to_agg_replacement_list): Likewise.
17782 2014-09-03  Martin Liska  <mliska@suse.cz>
17784         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
17785         is set to set uninitialized value for vnresult.
17787 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17789         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
17790         for TARGET_MUST_PASS_IN_STACK.
17792 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17794         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
17795         for TARGET_ARG_PARTIAL_BYTES.
17797 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17799         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
17800         instructions for varargs implementation.
17801         (nds32_expand_epilogue): Emit stack adjustment instructions for
17802         varargs implementation.
17804 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17806         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
17807         optimization detection.
17809 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17811         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
17812         arguments.
17813         (nds32_function_arg_advance): Deal with nameless arguments.
17814         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
17815         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
17816         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
17818 2014-09-03  Richard Biener  <rguenther@suse.de>
17820         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
17821         (struct bb_bitmap_sets): Remove deferred member.
17822         (BB_DEFERRED): Remove.
17823         (defer_or_phi_translate_block): Remove.
17824         (compute_antic_aux): Remove deferring of blocks, assert
17825         proper iteration order.
17826         (compute_antic): Do not set BB_DEFERRED.
17827         (eliminate): Allocate el_avail of proper size initially.
17829 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17831         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
17832         according to the value of crtl->args.pretend_args_size.
17834 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17836         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
17837         varargs information.
17839 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17841         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
17842         implementation for TARGET_SETUP_INCOMING_VARARGS.
17843         (nds32_strict_argument_naming): Refine comment.
17844         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
17845         Define for future implementation.
17847 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
17849         * config/i386/adxintrin.h (_subborrow_u32): New.
17850         (_addcarry_u32): Ditto.
17851         (_subborrow_u64): Ditto.
17852         (_addcarry_u64): Ditto.
17853         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
17854         IX86_BUILTIN_SBB64.
17855         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
17856         __builtin_ia32_sbb_u64
17858 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17860         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
17861         GPR-specific stuff.
17862         (nds32_function_arg_advance): Likewise.
17863         (nds32_init_cumulative_args): Likewise.
17864         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
17865         (NDS32_FIRST_GPR_REGNUM): Define.
17866         (NDS32_LAST_GPR_REGNUM): Define.
17867         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
17868         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
17869         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
17870         (machine_function): Use GRP-specific stuff.
17872 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17874         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
17875         (nds32_expand_epilogue): Likewise.
17876         (nds32_expand_prologue_v3push): Likewise.
17877         (nds32_expand_epilogue_v3pop): Likewise.
17879 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17881         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
17882         v3push/v3pop for variadic function.
17883         * config/nds32/nds32.md (prologue, epilogue): Likewise.
17885 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17887         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
17888         Check rtx for varargs implementation.
17889         (nds32_output_stack_pop): Likewise.
17890         * config/nds32/nds32-protos.h: Have a rtx argument for
17891         nds32_output_stack_push and nds32_output_stack_pop.
17892         * config/nds32/nds32.md: Likewise.
17894 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17896         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
17897         to check if FUNC is an interrupt service routine.
17898         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
17900 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17902         * config/nds32/nds32.h (machine_function): Add some fields for variadic
17903         arguments implementation.
17905 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17907         * config/nds32/nds32-predicates.c
17908         (nds32_valid_stack_push_pop): Rename to ...
17909         (nds32_valid_stack_push_pop_p): ... this.
17910         * config/nds32/nds32-protos.h: Likewise.
17911         * config/nds32/predicates.md: Likewise.
17913 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17915         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
17916         (nds32_emit_stack_v3push): ... this.
17917         (nds32_gen_stack_v3pop): Rename to ...
17918         (nds32_emit_stack_v3pop): ... this and consider CFA restore
17919         information.
17921 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17923         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
17924         (nds32_emit_stack_push_multiple): ... this.
17925         (nds32_gen_stack_pop_multiple): Rename to ...
17926         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
17927         information.
17929 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17931         PR target/61078
17932         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
17933         and add a second splitter to handle the remaining cases.
17935 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
17937         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
17939 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
17941         * cfgexpand.c (label_rtx_for_bb): Change type to
17942         hash_map<basic_block, rtx_code_label *> *.
17943         (expand_gimple_basic_block): Adjust.
17944         (pass_expand::execute): Likewise.
17946 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
17948         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
17949         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
17950         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
17951         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
17952         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
17953         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
17954         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
17955         of rtx.
17957 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
17959         * alloc-pool.c: Include coretypes.h.
17960         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
17961         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
17962         hash_set instead of htab.
17963         * ggc-page.c (in_gc): New variable.
17964         (ggc_free): Do nothing if a collection is taking place.
17965         (ggc_collect): Set in_gc appropriately.
17966         * ggc.h (gt_ggc_mx(const char *)): New function.
17967         (gt_pch_nx(const char *)): Likewise.
17968         (gt_ggc_mx(int)): Likewise.
17969         (gt_pch_nx(int)): Likewise.
17970         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
17971         (hash_map::hash_entry::pch_nx): Likewise.
17972         (hash_map::hash_entry::pch_nx_helper): Likewise.
17973 (hash_map::hash_map): Adjust.
17974 (hash_map::create_ggc): New function.
17975 (gt_ggc_mx): Likewise.
17976 (gt_pch_nx): Likewise.
17977         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
17978 (default_hashset_traits::pch_nx): Likewise.
17979 (hash_set::hash_entry::ggc_mx): Likewise.
17980 (hash_set::hash_entry::pch_nx): Likewise.
17981 (hash_set::hash_entry::pch_nx_helper): Likewise.
17982 (hash_set::hash_set): Adjust.
17983 (hash_set::create_ggc): New function.
17984 (hash_set::elements): Likewise.
17985 (gt_ggc_mx): Likewise.
17986 (gt_pch_nx): Likewise.
17987         * hash-table.h (hash_table::hash_table): Adjust.
17988 (hash_table::m_ggc): New member.
17989         (hash_table::~hash_table): Adjust.
17990         (hash_table::expand): Likewise.
17991         (hash_table::empty): Likewise.
17992 (gt_ggc_mx): New function.
17993         (hashtab_entry_note_pointers): Likewise.
17994 (gt_pch_nx): Likewise.
17996 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17998         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
17999         built-in definition.
18000         (XVCVUXDDP_SCALE): Likewise.
18001         (XVCVDPSXDS_SCALE): Likewise.
18002         (XVCVDPUXDS_SCALE): Likewise.
18003         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
18004         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
18005         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
18006         VSX_BUILTIN_XVCVDPUXDS_SCALE.
18007         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
18008         prototype.
18009         * config/rs6000/rs6000.c (real.h): New include.
18010         (rs6000_scale_v2df): New function.
18011         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
18012         (UNSPEC_VSX_XVCVUXDDP): Likewise.
18013         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
18014         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
18015         (vsx_xvcvsxddp_scale): New define_expand.
18016         (vsx_xvcvsxddp): New define_insn.
18017         (vsx_xvcvuxddp_scale): New define_expand.
18018         (vsx_xvcvuxddp): New define_insn.
18019         (vsx_xvcvdpsxds_scale): New define_expand.
18020         (vsx_xvcvdpsxds): New define_insn.
18021         (vsx_xvcvdpuxds_scale): New define_expand.
18022         (vsx_xvcvdpuxds): New define_insn.
18023         * doc/extend.texi (vec_ctf): Add new prototypes.
18024         (vec_cts): Likewise.
18025         (vec_ctu): Likewise.
18026         (vec_splat): Likewise.
18027         (vec_div): Likewise.
18028         (vec_mul): Likewise.
18030 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18032         PR target/62275
18033         * config/arm/neon.md
18034         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
18035         <v_cmp_result>): New pattern.
18036         * config/arm/iterators.md (NEON_VCVT): New int iterator.
18037         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
18038         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
18039         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
18040         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
18041         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
18043 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18045         PR target/62275
18046         * config/arm/iterators.md (FIXUORS): New code iterator.
18047         (VCVT): New int iterator.
18048         (su_optab): New code attribute.
18049         (su): Likewise.
18050         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
18052 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18054         * config/aarch64/predicates.md (aarch64_comparison_operation):
18055         New special predicate.
18056         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
18057         aarch64_comparison_operation instead of matching an operator.
18058         Update operand numbers.
18059         (csinc3<mode>_insn): Likewise.
18060         (*csinv3<mode>_insn): Likewise.
18061         (*csneg3<mode>_insn): Likewise.
18062         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
18063         * config/aarch64/aarch64.c (aarch64_get_condition_code):
18064         Return -1 instead of aborting on invalid condition codes.
18065         (aarch64_print_operand): Update aarch64_get_condition_code callsites
18066         to assert that the returned condition code is valid.
18067         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
18069 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
18071         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
18072         tree.def, and gimple.def
18074 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
18075             Balaji V. Iyer  <balaji.v.iyer@intel.com>
18076             Igor Zamyatin  <igor.zamyatin@intel.com>
18078         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
18079         (__cilkrts_cilk_for_64): Likewise.
18080         * cilk-common.c (declare_cilk_for_builtin): New function.
18081         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
18082         __cilkrts_cilk_for_64 bultins.
18083         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
18084         CILK_TI_F_LOOP_64.
18085         (cilk_for_32_fndecl): New define.
18086         (cilk_for_64_fndecl): Likewise.
18087         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
18088         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
18089         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
18090         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
18091         GF_OMP_FOR_COMBINED_INTO.
18092         * gimplify.c (gimplify_scan_omp_clauses): Added
18093         OMP_CLAUSE__CILK_FOR_COUNT_ case.
18094         (gimplify_adjust_omp_clauses): Ditto.
18095         (gimplify_omp_for): Added CILK_FOR case.
18096         (gimplify_expr): Ditto.
18097         * omp-low.c: Include cilk.h.
18098         (extract_omp_for_data): Set appropriate kind for
18099         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
18100         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
18101         (create_omp_child_function_name): Added second argument to handle
18102         cilk_for case.
18103         (cilk_for_check_loop_diff_type): New function.
18104         (expand_cilk_for_call): Likewise.
18105         (expand_cilk_for): Likewise.
18106         (create_omp_child_function): Set cilk_for_count; handle the cases when
18107         it is true; call create_omp_child_function_name with second argument.
18108         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
18109         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
18110         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
18111         * tree-nested.c (convert_nonlocal_omp_clauses): Added
18112         OMP_CLAUSE__CILK_FOR_COUNT_ case.
18113         (convert_local_omp_clauses): Ditto.
18114         * tree-pretty-print.c (dump_omp_clause): Added
18115         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
18116         (dump_generic_node): Added CILK_FOR case.
18117         * tree.c (omp_clause_num_ops): New element
18118         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
18119         (omp_clause_code_name): New element _Cilk_for_count_.
18120         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
18121         * tree.def: Add tree code for CILK_FOR.
18123 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
18125         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
18126         (ppc403-compare): Add "exts with dot" case.
18127         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
18128         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
18129         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
18130         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
18131         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
18132         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
18133         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
18134         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18135         cell-cmp-microcoded): Similarly.
18136         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
18137         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
18138         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
18139         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
18140         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
18141         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
18142         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
18143         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
18144         (power6-compare): Add "exts with dot" case.
18145         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
18146         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
18147         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
18149         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
18150         if avoiding Cell microcode.
18151         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
18152         (is_cracked_insn): Ditto.
18153         (insn_must_be_first_in_group): Ditto.
18154         * config/rs6000/rs6000.md (dot): Adjust comment.
18155         (cell_micro): Handle exts+dot.
18156         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
18157         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
18158         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
18159         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
18160         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
18161         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
18162         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
18164 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
18166         * config/rs6000/rs6000.md (QHSI): Delete.
18167         (EXTQI, EXTHI, EXTSI): New mode iterators.
18168         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
18169         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18170         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
18171         9 anonymous instructions, and 8 splitters): Delete.
18172         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
18173         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
18174         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
18175         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
18176         *zero_extendsi<mode>2_dot2): New.
18178 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
18180         * config/rs6000/rs6000.md (any_extend): New code iterator.
18181         (u, su): New code attributes.
18182         (dmode, DMODE): New mode attributes.
18183         (<su>mul<mode>3_highpart): New.
18184         (*<su>mul<mode>3_highpart): New.
18185         (<su>mulsi3_highpart_le): New.
18186         (<su>muldi3_highpart_le): New.
18187         (<su>mulsi3_highpart_64): New.
18188         (<u>mul<mode><dmode>3): New.
18189         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
18190         splitters): Delete.
18191         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
18192         splitters): Delete.
18194 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
18196         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
18197         *mulsi3_internal2, and two splitters): Delete.
18198         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
18199         Delete.
18200         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
18202 2014-09-02  Richard Biener  <rguenther@suse.de>
18204         PR tree-optimization/62695
18205         * tree-ssa-structalias.c (find_func_clobbers): Add missing
18206         vector truncate.
18208 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
18210         PR target/62312
18211         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
18213 2014-09-01  Andi Kleen  <ak@linux.intel.com>
18215         * file-find.c (add_prefix_begin): Add.
18216         (do_add_prefix): Rename from add_prefix with first argument.
18217         (add_prefix): Add new wrapper.
18218         * file-find.h (add_prefix_begin): Add.
18219         * gcc-ar.c (main): Support -B option.
18221 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
18223         * genemit.c: Include dumpfile.h.
18224         (gen_split): Print name of splitter function to dump file.
18226 2014-09-01  Richard Biener  <rguenther@suse.de>
18228         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
18229         Use stack auto_vecs for constraint expressions.
18230         (find_func_aliases_for_call): Likewise.
18231         (find_func_aliases): Likewise.
18232         (find_func_clobbers): Likewise.
18234 2014-09-01  Richard Biener  <rguenther@suse.de>
18236         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
18237         operands vector in most cases.  Remove redundant code.
18239 2014-09-01  Olivier Hainque  <hainque@adacore.com>
18241         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
18242         $WIND_BASE instead of designating a harcoded arbitrary home dir.
18243         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
18245 2014-09-01  Richard Biener  <rguenther@suse.de>
18247         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
18248         copy_reference_ops_from_call, vn_nary_op_compute_hash,
18249         vn_reference_compute_hash, vn_reference_insert): Remove.
18250         (vn_reference_lookup_call): New function.
18251         * tree-ssa-sccvn.c (vn_reference_compute_hash,
18252         copy_reference_ops_from_ref, copy_reference_ops_from_call,
18253         vn_reference_insert, vn_nary_op_compute_hash): Make static.
18254         (create_reference_ops_from_call): Remove.
18255         (vn_reference_lookup_3): Properly update shared_lookup_references.
18256         (vn_reference_lookup_pieces): Assert that we updated
18257         shared_lookup_references properly.
18258         (vn_reference_lookup): Likewise.
18259         (vn_reference_lookup_call): New function.
18260         (visit_reference_op_call): Use it.  Avoid re-building the
18261         reference ops.
18262         (visit_reference_op_load): Remove redundant lookup.
18263         (visit_reference_op_store): Perform special tail-merging work
18264         only when possibly doing tail-merging.
18265         (visit_use): Likewise.
18266         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
18268 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
18270         PR target/62025
18271         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
18272         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
18273         (find_inc): Revert 2014-08-13 change.
18275 2014-09-01  Marek Polacek  <polacek@redhat.com>
18277         PR middle-end/61903
18278         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
18279         Change the type of V to unsigned HOST_WIDE_INT.
18281 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18283         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
18284         the size of byte markers.
18285         (do_shift_rotate): Fix confusion between host, target and marker byte
18286         size.
18287         (verify_symbolic_number_p): Likewise.
18288         (find_bswap_or_nop_1): Likewise.
18289         (find_bswap_or_nop): Likewise.
18291 2014-09-01  Olivier Hainque  <hainque@adacore.com>
18293         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
18294         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
18296 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
18298         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
18299         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
18300         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
18302 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
18304         PR sanitizer/61897
18305         PR sanitizer/62140
18306         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
18307         (build_check_stmt): Likewise.
18308         (instrument_strlen_call): Likewise.
18309         (asan_expand_check_ifn): Likewise and fix types.
18310         (maybe_cast_to_ptrmode): New function.
18312 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18314         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
18316 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
18318         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
18320 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
18322         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
18323         prefix to function labels when generating fast indirect calls.
18325 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
18327         PR bootstrap/62304
18329         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
18330         param back from rtx_insn * to rtx.  Rename param from "label" to
18331         "label_or_return", reintroducing "label" as an rtx_insn * after
18332         we've ensured it's not a RETURN.
18333         (first_active_target_insn): Likewise for return type and param;
18334         add a checked cast to rtx_insn * once we've ensured "insn" is not
18335         a RETURN.
18336         (steal_delay_list_from_target): Convert param "pnew_thread" back
18337         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
18338         with JUMP_LABEL.
18339         (own_thread_p): Convert param "thread" back from an rtx_insn * to
18340         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
18341         cast once we've established we're not dealing with a RETURN,
18342         renaming subsequent uses of "thread" to "thread_insn".
18343         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
18344         to JUMP_LABEL.
18345         (follow_jumps): Convert return type and param "label" from
18346         rtx_insn * back to rtx.  Move initialization of "value" to after
18347         the handling for ANY_RETURN_P, adding a checked cast there to
18348         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
18349         rename to "this_label_or_return", reintroducing "this_label" as
18350         an rtx_insn * once we've handled the case where it could be an
18351         ANY_RETURN_P.
18352         (fill_slots_from_thread): Rename param "thread" to
18353         "thread_or_return", converting from an rtx_insn * back to an rtx.
18354         Reintroduce name "thread" as an rtx_insn * local with a checked
18355         cast once we've handled the case of it being an ANY_RETURN_P.
18356         Convert local "new_thread" from an rtx_insn * back to an rtx.
18357         Add a checked cast when assigning to "trial" from "new_thread".
18358         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
18359         checked cast to rtx_insn * from "new_thread" when invoking
18360         get_label_before.
18361         (fill_eager_delay_slots): Convert locals "target_label",
18362         "insn_at_target" from rtx_insn * back to rtx.
18363         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
18364         (relax_delay_slots): Convert locals "trial", "target_label" from
18365         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
18366         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
18367         invoking update_block.
18368         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
18369         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
18371         * resource.h (mark_target_live_regs): Undo erroneous conversion
18372         of second param of r214693, converting it back from rtx_insn * to
18373         rtx, since it could be a RETURN.
18375         * resource.c (find_dead_or_set_registers): Similarly, convert
18376         param "jump_target" back from an rtx_insn ** to an rtx *, as we
18377         could be writing back a RETURN.  Rename local rtx_insn * "next" to
18378         "next_insn", and introduce "lab_or_return" as a local rtx,
18379         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
18380         (mark_target_live_regs): Undo erroneous conversion
18381         of second param of r214693, converting it back from rtx_insn * to
18382         rtx, since it could be a RETURN.  Rename it from "target" to
18383         "target_maybe_return", reintroducing the name "target" as a local
18384         rtx_insn * with a checked cast, after we've handled the case of
18385         ANY_RETURN_P.
18387 2014-08-29  DJ Delorie  <dj@redhat.com>
18389         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
18390         pointer size up to a power of two.
18391         * defaults.h (DWARF2_ADDR_SIZE): Round up.
18392         (POINTER_SIZE_UNITS): New, rounded up value.
18393         * dwarf2asm.c (size_of_encoded_value): Use it.
18394         (dw2_output_indirect_constant_1): Likewise.
18395         * expmed.c (init_expmed_one_conv): We now know the sizes of
18396         partial int modes.
18397         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
18398         * optabs.c (expand_float): Use precision, not size.
18399         (expand_fix): Likewise.
18400         * simplify-rtx (simplify_unary_operation_1): Likewise.
18401         * tree-dfa.c (get_ref_base_and_extent): Likewise.
18402         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
18403         (default_assemble_integer) Likewise.
18404         (dump_tm_clone_pairs): Likewise.
18405         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
18406         * var-tracking.c (adjust_mems): Allow partial-int modes also.
18407         (prepare_call_arguments): Likewise.
18408         * stor-layout.c (finalize_type_size): Preserve precision.
18409         (layout_type): Use precision, not size.
18411         * expr.c (convert_move): If the target has an explicit converter,
18412         use it.
18414 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
18416         * gdbinit.in: Skip various inline functions in rtl.h when
18417         stepping.
18419 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
18421         PR bootstrap/62301
18422         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
18424 2014-08-29  Richard Biener  <rguenther@suse.de>
18426         PR tree-optimization/62291
18427         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
18428         exactly the vector size needed and use quick_push.
18429         (phi_translate_1): Adjust comment.
18430         (valid_in_sets): Remove block argument and remove pointless
18431         checking of NAMEs.
18432         (dependent_clean): Adjust for removal of block argument.
18433         (clean): Likewise.
18434         (compute_antic_aux): Likewise.
18435         (compute_partial_antic_aux): Likewise.
18437 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18439             Anna Tikhonova  <anna.tikhonova@intel.com>
18440             Ilya Tocar  <ilya.tocar@intel.com>
18441             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18442             Ilya Verbin  <ilya.verbin@intel.com>
18443             Kirill Yukhin  <kirill.yukhin@intel.com>
18444             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18446         * config/i386/sse.md
18447         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
18448         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
18449         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
18450         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
18452 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18453             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18454             Anna Tikhonova  <anna.tikhonova@intel.com>
18455             Ilya Tocar  <ilya.tocar@intel.com>
18456             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18457             Ilya Verbin  <ilya.verbin@intel.com>
18458             Kirill Yukhin  <kirill.yukhin@intel.com>
18459             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18461         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
18462         * config/i386/sse.md
18463         (define_mode_iterator VI4_128_8_256): New.
18464         (define_mode_iterator VI2_128_4_256): Ditto.
18465         (define_mode_iterator PMOV_DST_MODE): Rename into
18466         (define_mode_iterator PMOV_DST_MODE_1): this.
18467         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
18468         Use PMOV_DST_MODE_1 mode iterator.
18469         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
18470         Ditto.
18471         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
18472         Ditto.
18473         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
18474         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
18475         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
18476         (define_mode_iterator PMOV_DST_MODE_2): New.
18477         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
18478         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
18479         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
18480         Ditto.
18481         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
18482         (define_mode_attr pmov_dst_3): Ditto.
18483         (define_mode_attr pmov_dst_zeroed_3): Ditto.
18484         (define_mode_attr pmov_suff_3): Ditto.
18485         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
18486         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
18487         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
18488         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
18489         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
18490         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
18491         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
18492         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
18493         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
18494         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
18495         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
18496         (define_mode_attr pmov_dst_4): Ditto.
18497         (define_mode_attr pmov_dst_zeroed_4): Ditto.
18498         (define_mode_attr pmov_suff_4): Ditto.
18499         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
18500         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
18501         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
18502         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
18503         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
18504         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
18505         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
18506         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
18507         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
18508         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
18509         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
18511 2014-08-29  Richard Biener  <rguenther@suse.de>
18513         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
18514         NON_LVALUE_EXPR in gimple.
18516 2014-08-29  Richard Biener  <rguenther@suse.de>
18518         PR middle-end/62292
18519         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
18520         from previous refactoring.
18521         (gimple_fold_builtin_strncpy): Likewise.
18523 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
18525         PR bootstrap/62300
18526         * function.c (assign_parm_setup_reg): Remove erroneous checked
18527         cast to rtx_insn * on result of gen_extend_insn in favor of
18528         introducing a new local rtx "pat".
18530 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18532         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
18533         to silence warning.
18534         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
18536 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18538         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
18539         (next_insn): Likewise.
18540         * emit-rtl.c (next_insn): Likewise.
18541         (previous_insn): Likewise.
18542         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
18543         "insn" and "next" from rtx to rtx_insn *.
18544         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
18545         "insn", "insn1", "vliw_start",  "prologue_end_note",
18546         "last_insn_in_packet".
18548 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18550         * shrink-wrap.h (active_insn_between): Strengthen both params from
18551         rtx to rtx_insn *.
18552         * function.c (active_insn_between): Likewise.
18554 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18556         * genattr.c (main): When writing out insn-attr.h, strengthen param
18557         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
18558         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
18559         writing out the definition of dfa_clear_single_insn_cache to the
18560         generated insn-automata.c
18562 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18564         * resource.h (clear_hashed_info_for_insn): Strengthen param from
18565         rtx to rtx_insn *.
18566         (incr_ticks_for_insn): Likewise.
18567         (init_resource_info): Likewise.
18569         * resource.c (init_resource_info): Likewise.
18570         (clear_hashed_info_for_insn): Likewise.
18571         (incr_ticks_for_insn): Likewise.
18573         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
18574         rtx to rtx_insn *.
18575         (steal_delay_list_from_target): Use methods of "seq".
18576         (try_merge_delay_insns): Use methods of "merged_insns".
18577         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
18578         (reorg_redirect_jump): Likewise for param "jump".
18580 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18582         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
18583         rtx to rtx_insn *.
18584         * config/s390/s390.c (s390_split_branches): Eliminate top-level
18585         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
18586         "set_insn".
18587         (s390_mainpool_finish): In three places, split out a local rtx
18588         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
18589         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
18590         and split another local rtx "insn" out into rtx "pat" and
18591         rtx_insn * "insn".
18592         * config/sh/sh.c (output_branchy_insn): Rather than working
18593         directly on operands[9], introduce local rtx_code_label *
18594         variables named "lab" in two places, working on them, and then
18595         assigning them to operands[9], so that the intervening operations
18596         are known by the type system to be on insns.
18598 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18600         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
18601         const rtx_insn *.
18603         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
18604         in invocation of INSN_HAS_LOCATION.
18606 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18608         * config/rs6000/altivec.h (vec_xl): New #define.
18609         (vec_xst): Likewise.
18610         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
18611         (XXSPLTD_V2DI): Likewise.
18612         (DIV_V2DI): Likewise.
18613         (UDIV_V2DI): Likewise.
18614         (MUL_V2DI): Likewise.
18615         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18616         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
18617         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
18618         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
18619         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
18620         (UNSPEC_VSX_DIVSD): Likewise.
18621         (UNSPEC_VSX_DIVUD): Likewise.
18622         (UNSPEC_VSX_MULSD): Likewise.
18623         (vsx_mul_v2di): New insn-and-split.
18624         (vsx_div_v2di): Likewise.
18625         (vsx_udiv_v2di): Likewise.
18626         (vsx_xxspltd_<mode>): New insn.
18628 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18630         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
18631         NEXT_INSN.
18632         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
18633         (NEXT_INSN): Likewise.
18634         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
18635         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
18636         const rtx_insn *.
18637         (no_labels_between_p): Likewise for both params.
18639         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
18640         cast when using NEXT_INSN on operands[2].
18641         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
18642         "insn" from rtx to rtx_insn *, adding a checked cast.
18643         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
18644         rtx_insn *.
18645         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
18646         for third param.
18647         (arc_text_label): Likewise for param "insn".
18648         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
18649         "insn".
18650         (arc_ccfsm_record_condition): Likewise for param "jump".
18651         (arc_text_label): Likewise for local "label".
18652         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
18653         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
18654         a method for typesafety.  Add a checked cast.
18655         * config/arc/constraints.md (Clb): Add a checked cast when getting
18656         the CODE_LABEL from a LABEL_REF.
18657         * config/arm/arm.c (require_pic_register): Strengthen locals
18658         "seq", "insn" from rtx to rtx_insn *.
18659         (create_fix_barrier): Likewise for locals "selected", "next".
18660         (thumb1_reorg): Likewise for locals "prev", "insn".
18661         (arm_expand_prologue): Likewise for local "last".
18662         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
18663         operands[0].
18664         (thumb2_output_casesi): Likewise for operands[2].
18665         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
18666         strengthen local "insn" from rtx to rtx_insn *.
18667         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
18668         type and param "insn".
18669         (find_prev_insn_start): Likewise.
18670         (hwloop_optimize): Likewise for locals "insn", "last_insn",
18671         "prev".
18672         (gen_one_bundle): Likewise for loal "t".
18673         (find_load): Likewise for param "insn".
18674         (workaround_speculation): Likewise for locals "insn", "next",
18675         "target", "next_tgt".
18676         * config/c6x/c6x.c (assign_reservations): Likewise for both params
18677         and for locals "insn", "within", "last".
18678         (count_unit_reqs): Likewise for params "head", "tail" and local
18679         "insn".
18680         (try_rename_operands): Likewise for params "head", "tail".
18681         (reshuffle_units): Likewise for locals "head", "tail", "insn".
18682         (struct c6x_sched_context): Likewise for fields
18683         "last_scheduled_insn", "last_scheduled_iter0".
18684         (init_sched_state): Replace NULL_RTX with NULL.
18685         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
18686         to rtx_insn *.
18687         (undo_split_delayed_nonbranch): Likewise for param and for local
18688         "prev".
18689         (conditionalize_after_sched): Likewise for local "insn".
18690         (bb_earliest_end_cycle): Likewise.
18691         (filter_insns_above): Likewise for locals "insn", "next".
18692         (hwloop_optimize): Remove redundant checked cast.
18693         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
18694         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
18695         NULL_RTX with NULL.
18696         (cris_simple_epilogue): Likewise.
18697         (cris_expand_prologue): Likewise.
18698         (cris_expand_epilogue): Likewise.
18699         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
18700         local "insn" from rtx to rtx_insn *.
18701         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
18702         (struct frv_packet_group): Likewise for the elements within array
18703         fields "insns", "sorted", and for field "nop".
18704         (frv_packet): Likewise for the elements within array field
18705         "insns".
18706         (frv_add_insn_to_packet): Likewise for param "insn".
18707         (frv_insert_nop_in_packet): Likewise for param "insn" and local
18708         "last".
18709         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
18710         (frv_sort_insn_group_1): Likewise for local "insn".
18711         (frv_optimize_membar_local): Likewise.
18712         (frv_align_label): Likewise for locals "x", "last", "barrier",
18713         "label".
18714         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
18715         local.
18716         (ia64_sched_init): Likewise for local "insn".
18717         (scheduled_good_insn): Likewise for param "last".
18718         (struct _ia64_sched_context): Likewise for field
18719         "last_scheduled_insn".
18720         (ia64_init_sched_context): Replace NULL_RTX with NULL.
18721         (struct bundle_state): Likewise for field "insn".
18722         (issue_nops_and_insn): Likewise for param "insn".
18723         (get_next_important_insn): Likewise for return type and both
18724         params.
18725         (ia64_add_bundle_selector_before): Likewise for param "insn".
18726         (bundling): Likewise for params "prev_head_insn", "tail" and
18727         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
18728         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
18729         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
18730         Strengthen final param from rtx to rtx_insn *.
18731         (iq2000_move_1word): Likewise for second param.
18732         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
18733         param "cur_insn" and local "next_insn".
18734         (iq2000_move_1word): Likewise for param "insn".
18735         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
18736         casts when using NEXT_INSN on operands[1].
18737         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
18738         "insn" from rtx to rtx_insn *.
18739         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
18740         "x", introducing local rtx_insn * "insn" for when working with the
18741         CODE_LABEL of the LABEL_REF.
18742         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
18743         rtx_insn *.
18744         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
18745         param.
18746         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
18747         type.
18748         (conditionalize_block): Likewise for return type and param.
18749         (mcore_is_dead): Likewise for param "first" and local "insn".
18750         (emit_new_cond_insn): Likewise for return type.
18751         (conditionalize_block): Likewise for return type, param, and
18752         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
18753         "newinsn".
18754         (conditionalize_optimization): Likewise for local "insn".
18755         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
18756         using NEXT_INSN.
18757         * config/microblaze/microblaze.md: Add checked casts when using
18758         NEXT_INSN.
18759         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
18760         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
18761         and rtx_insn * "insn".
18762         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
18763         checked cast when using NEXT_INSN on operands[2].
18764         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
18765         local "insn" from rtx to rtx_insn *.
18766         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
18767         Likewise.
18768         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
18769         Add a checked cast when using NEXT_INSN on operands[1].
18770         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
18771         rtx to rtx_insn *.
18772         (pa_output_cbranch): Likewise for final param.
18773         (pa_output_lbranch): Likewise for second param.
18774         (pa_output_bb): Likewise for third param.
18775         (pa_output_bvb): Likewise.
18776         (pa_output_dbra): Likewise for second param.
18777         (pa_output_movb): Likewise.
18778         (pa_output_parallel_movb): Likewise.
18779         (pa_output_parallel_addb): Likewise.
18780         (pa_output_millicode_call): Likewise for first param.
18781         (pa_output_mul_insn): Likewise for second param.
18782         (pa_output_div_insn): Likewise for third param.
18783         (pa_output_mod_insn): Likewise for second param.
18784         (pa_jump_in_call_delay): Likewise for param.
18785         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
18786         (pa_output_div_insn): Likewise.
18787         (pa_output_mod_insn): Likewise.
18788         (pa_output_cbranch): Likewise.
18789         (pa_output_lbranch): Likewise.
18790         (pa_output_bb): Likewise.
18791         (pa_output_bvb): Likewise.
18792         (pa_output_dbra): Likewise.
18793         (pa_output_movb): Likewise.
18794         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
18795         to simplify and for typesafety.
18796         (pa_output_call): Use method of rtx_sequence *.
18797         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
18798         (pa_jump_in_call_delay): Likewise.
18799         (pa_output_parallel_movb): Likewise.
18800         (pa_output_parallel_addb): Likewise.
18801         (pa_following_call): Likewise.
18802         (pa_combine_instructions): Likewise for locals "anchor",
18803         "floater".
18804         (pa_can_combine_p): Likewise for params "anchor", "floater" and
18805         locals "start", "end".
18806         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
18807         param "insn" and local "local_insn".
18808         (picochip_final_prescan_insn): Likewise for local "local_insn".
18809         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
18810         local "insn".
18811         (uses_TOC): Likewise.
18812         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
18813         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
18814         splitting out to more tightly-scoped locals, 3 as rtx and one as
18815         rtx_insn *.
18816         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
18817         to rtx_insn *.
18818         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
18819         where needed.
18820         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
18821         to rtx_insn *.
18822         (fixup_addr_diff_vecs): Likewise.
18823         (reg_unused_after): Likewise for param 2.
18824         (sh_can_redirect_branch): Likewise for both params.
18825         (check_use_sfunc_addr): Likewise for param 1.
18826         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
18827         (find_barrier): Likewise for local "last_got".
18828         (gen_block_redirect): Likewise for return type, param "jump" and
18829         locals "prev", "scan", "next", "insn".
18830         (struct far_branch): Likewise for fields "near_label",
18831         "insert_place", "far_label".
18832         (gen_far_branch): Likewise for local "jump".
18833         (fixup_addr_diff_vecs): Likewise for param "first" and locals
18834         "insn", "prev".
18835         (barrier_align): Likewise for param and for locals "prev", "x".
18836         Introduce local rtx_sequence * "prev_seq" and use insn method for
18837         typesafety and clarity.
18838         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
18839         (get_dest_uid): Likewise for local "dest".
18840         (split_branches): Likewise for locals "next", "beyond", "label",
18841         "block", "far_label".  Add checked casts when assigning to
18842         bp->far_label and "far_label".
18843         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
18844         (sequence_insn_p): Likewise.
18845         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
18846         more loop-scoped rtx "insn" when walking LABEL_REFS.
18847         (sh_can_redirect_branch): Strengthen both params from rtx to
18848         rtx_insn *.
18849         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
18850         new local rtx_sequence * "seq" via a dyn_cast, and use a method
18851         for clarity and typesafety.
18852         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
18853         "insn" from rtx to rtx_insn *.
18854         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
18855         when using NEXT_INSN on the CODE_LABEL in operands[2].
18856         (define_insn "casesi_worker_2"): Likewise.
18857         (define_insn "casesi_shift_media"): Likewise.
18858         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
18859         operands[3].
18860         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
18861         Strengthen field "insn" from rtx to rtx_insn *.
18862         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
18863         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
18864         param "start_insn" and local "start_insn".
18865         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
18866         field "insn".
18867         (find_set_of_reg_bb): Likewise for param "insn".
18868         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
18869         (trace_reg_uses): Likewise for param "start_insn".
18870         (sh_treg_combine::cbranch_trace): Likewise for field
18871         "cbranch_insn".
18872         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
18873         param "insn".
18874         (sh_treg_combine::record_set_of_reg): Likewise for param
18875         "start_insn" and local "i".
18876         (sh_treg_combine::can_remove_cstore): Likewise for local
18877         "prev_insn".
18878         (sh_treg_combine::try_optimize_cbranch): Likewise for param
18879         "insn".
18880         (sh_treg_combine::execute): Likewise for local "i".
18881         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
18882         param.
18883         (sparc_check_64): Likewise for second param.
18884         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
18885         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
18886         dyn_cast, using its insn method for typesafety and clarity.
18887         (empty_delay_slot): Strengthen param "insn" from rtx to
18888         rtx_insn *.
18889         (set_extends): Likewise.
18890         (sparc_check_64): Likewise.
18891         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
18892         for locals "seq", "last_insn".
18893         (combine_bnp): Likewise for param "insn".
18894         (xstormy16_reorg): Likewise for local "insn".
18895         * config/v850/v850.c (substitute_ep_register): Likewise for params
18896         "first_insn", "last_insn" and local "insn".
18897         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
18898         elements of "regs" array, and local "insn".
18899         * except.c (emit_note_eh_region_end): Likewise for param "insn".
18900         * final.c (final_sequence): Strengthen this global from rtx to
18901         rtx_sequence *.
18902         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
18903         rtx_insn *.
18904         (final_scan_insn): Update assignment to "final_sequence" to be
18905         from "seq", the cast version of "body", for type-safety.
18906         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
18907         "insns" from rtx to rtx_insn *.
18908         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
18909         * genattr.c (main): When writing out generated insn-attr.h,
18910         strengthen params 1 and 3 of eligible_for_delay,
18911         eligible_for_annul_true, eligible_for_annul_false from rtx to
18912         rtx_insn *.
18913         * genattrtab.c (write_eligible_delay): Likewise when writing out
18914         generated insn-attrtab.c; also local "insn" the generated
18915         functions.
18916         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
18917         to rtx_insn *.
18918         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
18919         "start_label" from rtx to rtx_insn *.
18920         * ira.c (decrease_live_ranges_number): Likewise for local "p".
18921         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
18922         "insns" and local "insn".
18923         (validate_equiv_mem): Likewise for param "start" and local "insn".
18924         (memref_used_between_p): Likewise for params "start", "end" and
18925         local "insn".
18926         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
18927         final param.
18928         * loop-doloop.c (doloop_optimize): Within region guarded by
18929         INSN_P (doloop_pat), introduce a new local rtx_insn *
18930         "doloop_insn" via a checked cast, and use it for typesafety,
18931         eventually writing the value back into doloop_pat.
18932         * output.h (final_sequence): Strengthen this global from rtx to
18933         rtx_sequence *.
18934         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
18935         reintroducing "insn" as an rtx_insn * via a checked cast.
18936         Strengthen param "attempt" and local "new_insn"from rtx to
18937         rtx_insn *.
18938         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
18939         to rtx_insn *.
18940         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
18941         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
18942         "p" in favor of more tightly-scoped replacements, sometimes rtx
18943         and sometimes rtx_insn *, as appropriate.
18944         (delete_output_reload): Eliminate top-level rtx "i1", splitting
18945         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
18946         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
18947         local "trial" from rtx to rtx_insn *.
18948         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
18949         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
18950         rtx_sequence * and use methods for clarity and typesafety.
18951         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
18952         rtx to rtx_insn *.  Strenghten local "li" from rtx to
18953         rtx_insn_list * and use its methods for clarity and typesafety.
18954         (steal_delay_list_from_target): Strengthen param "insn" from rtx
18955         to rtx_insn *.
18956         (steal_delay_list_from_fallthrough): Likewise.
18957         (try_merge_delay_insns): Likewise for param "thread" and locals
18958         "trial", "next_trial", "delay_insn".
18959         (redundant_insn): Likewise for param "target" and local "trial".
18960         (own_thread_p): Likewise for param "thread" and locals
18961         "active_insn", "insn".
18962         (get_label_before): Likewise for param "insn".
18963         (fill_simple_delay_slots): Likewise for local "new_label"; use
18964         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
18965         (label_before_next_insn): Strengthen return type and local "insn"
18966         from rtx to rtx_insn *.
18967         (relax_delay_slots): Likewise for locals "other", "tmp".
18968         (make_return_insns): Likewise for param "first" and locals "insn",
18969         "jump_insn", "prev".  Move declaration of "pat" to its assignment
18970         and strengthen from rtx to rtx_sequence *.  Use its methods for
18971         clarity and typesafety.
18972         * rtlanal.c (no_labels_between_p): Strengthen params from
18973         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
18974         rtx_insn *.
18975         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
18976         from const_rtx to const rtx_insn *.
18977         (reg_set_between_p): Rename param "from_insn" to
18978         "uncast_from_insn", and reintroduce "from_insn" as a
18979         const rtx_insn * via a checked cast.
18980         (modified_between_p): Likewise for param "start" as "uncast_start".
18981         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
18982         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
18983         "tmp", head" from rtx to rtx_insn *.
18984         (recompute_rev_top_order): Likewise for local "insn".
18985         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
18986         * store-motion.c (build_store_vectors): Likewise for local "insn".
18987         Strengthen local "st" from rtx to rtx_insn_list * and use methods
18988         for clarity and typesafety.
18989         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
18990         rtx to rtx_insn *.
18991         (computation_cost): Likewise for local "seq".
18992         (get_address_cost): Likewise.
18994 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
18996         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
18997         const rtx_insn *.
18998         (label_is_jump_target_p): Likewise for second param.
19000         * rtlanal.c (tablejump_p): Likewise for param "insn".
19001         (label_is_jump_target_p): Likewise for param "jump_insn".
19003 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19005         * rtl.h (find_first_parameter_load): Strengthen return type and
19006         both params from rtx to rtx_insn *.
19007         * rtlanal.c (find_first_parameter_load): Strengthen return type,
19008         both params and locals "before", "first_set" from rtx to
19009         rtx_insn *.  Remove now-redundant cast.
19010         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
19012 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19014         * rtl.h (find_last_value): Delete.
19015         * rtlanal.c (find_last_value): Delete.
19017 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19019         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
19020         from rtx to rtx_insn *.
19021         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
19022         rtx "note" with new local rtx_insn * "new_head" when calculating
19023         head insn of new basic block.
19024         * combine.c (combine_split_insns): Strengthen return type and local
19025         "ret" from rtx to rtx_insn *.
19026         (likely_spilled_retval_p): Likewise for locals "use" and "p".
19027         (try_combine): Eliminate local "m_split", splitting into new
19028         locals "m_split_insn" and "m_split_pat".
19029         (find_split_point): Strengthen local "seq" from rtx into
19030         rtx_insn *.
19031         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
19032         locals "label", "branch".
19033         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
19034         for local "insn".
19035         (define_expand "umulsi3_highpart"): Likewise for local "insn".
19036         * dse.c (note_add_store_info): Likewise for fields "first",
19037         "current".
19038         (note_add_store): Likewise for local "insn".
19039         (emit_inc_dec_insn_before): Likewise for locals "insn",
19040         "new_insn", "cur".
19041         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
19042         (replace_read): Likewise for locals "insns", "this_insn".
19043         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
19044         (notice_eh_throw): Likewise for param "insn".
19045         (before_next_cfi_note): Likewise for return type, param, and local
19046         "prev".
19047         (connect_traces): Likewise for local "note".
19048         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
19049         (verify_rtl_sharing): Likewise.
19050         (unshare_all_rtl_in_chain): Likewise for param "insn".
19051         (get_first_nonnote_insn): Likewise for local "insn".
19052         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
19053         "seq" and use its methods to clarify things.
19054         (next_insn): Strengthen return type from rtx to rtx_insn *.
19055         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
19056         local rtx_insn * using a checked cast, dropping a checked cast
19057         made redundant by this change.  Use a cast to and method of
19058         rtx_sequence to clarify the code.
19059         (previous_insn): Rename param "insn" to "uncast_insn" and
19060         reintroduce "insn" as a local rtx_insn * using a checked cast,
19061         dropping a checked cast made redundant by this change.  Use a cast
19062         to and method of rtx_sequence to clarify the code.
19063         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
19064         reintroduce "insn" as a local rtx_insn * using a checked cast,
19065         dropping a checked cast made redundant by this change.
19066         (next_nonnote_insn_bb): Likewise.
19067         (prev_nonnote_insn): Likewise.
19068         (prev_nonnote_insn_bb): Likewise.
19069         (next_nondebug_insn): Likewise.
19070         (prev_nondebug_insn): Likewise.
19071         (next_nonnote_nondebug_insn): Likewise.
19072         (prev_nonnote_nondebug_insn): Likewise.
19073         (next_real_insn): Likewise.
19074         (prev_real_insn): Likewise.
19075         (next_active_insn): Likewise.
19076         (prev_active_insn): Likewise.
19077         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
19078         clarity.
19079         (prev_cc0_setter): Likewise.
19080         (try_split): Rename param "trial" to "uncast_trial" and
19081         reintroduce "insn" as a local rtx_insn * using a checked cast,
19082         dropping checked casts made redundant by this change.
19083         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
19084         rtx to rtx_insn *.
19085         (remove_insn): Rename param "insn" to "uncast_insn" and
19086         reintroduce "insn" as a local rtx_insn * using a checked cast.
19087         (emit_pattern_after_setloc): Likewise for param "after", as
19088         "uncast_after".
19089         (emit_pattern_after): Likewise.  Strengthen local "prev" from
19090         rtx to rtx_insn *.
19091         (emit_pattern_before_setloc): Rename param "before" to
19092         "uncast_before" and reintroduce "before" as a local rtx_insn *
19093         using a checked cast.  Strengthen locals "first", "last" from
19094         rtx to rtx_insn *.
19095         (emit_pattern_before): Likewise rename/cast param "before" to
19096         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
19097         * except.c (copy_reg_eh_region_note_forward): Strengthen param
19098         "first" and local "insn" from rtx to rtx_insn *.
19099         (copy_reg_eh_region_note_backward): Likewise for param "last"
19100         and local "insn".
19101         * expr.c (fixup_args_size_notes): Rename param "last" to
19102         "uncast_last" and reintroduce "last" as a local rtx_insn *
19103         using a checked cast.  Strengthen local "insn" from rtx to
19104         rtx_insn *.
19105         * function.c (set_insn_locations): Strengthen param "insn" from
19106         rtx to rtx_insn *.
19107         (record_insns): Likewise for param "insns" and local "tmp".
19108         (active_insn_between): Rename param "tail" to
19109         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
19110         using a checked cast.
19111         (thread_prologue_and_epilogue_insns): Split out top-level local
19112         rtx "seq" into three different rtx_insn * locals.  Strengthen
19113         local "prologue_seq" from rtx to rtx_insn *.
19114         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
19115         from rtx to rtx_insn *.
19116         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
19117         (priority): Likewise for locals "prev_first", "twin".
19118         (setup_insn_max_reg_pressure): Likewise for param "after".
19119         (sched_setup_bb_reg_pressure_info): Likewise.
19120         (no_real_insns_p): Strengthen params from const_rtx to
19121         const rtx_insn *.
19122         (schedule_block): Strengthen local "next_tail" from rtx to
19123         rtx_insn *.
19124         * ifcvt.c (find_active_insn_before): Strengthen return type and
19125         param "insn" from rtx to rtx_insn *.
19126         (find_active_insn_after): Likewise.
19127         (cond_exec_process_insns): Likewise for param "start" and local "insn".
19128         (cond_exec_process_if_block): Likewise for locals "then_start",
19129         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
19130         (noce_process_if_block): Likewise for local "jump".
19131         (merge_if_block): Likewise for two locals named "end".
19132         (cond_exec_find_if_block): Likewise for local "last_insn".
19133         * jump.c (delete_related_insns): Rename param "insn" to
19134         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
19135         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
19136         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
19137         NULL.
19138         (split_reg): Likewise.
19139         * lra.c (lra_process_new_insns): Likewise.
19140         * modulo-sched.c (permute_partial_schedule): Strengthen param
19141         "last" from rtx to rtx_insn *.
19142         * optabs.c (add_equal_note): Likewise for param "insns" and local
19143         "last_insn".
19144         (expand_binop_directly): Add checked casts to rtx_insn * within
19145         NEXT_INSN (pat) uses.
19146         (expand_unop_direct): Likewise.
19147         (maybe_emit_unop_insn): Likewise.
19148         * recog.c (peep2_attempt): Strengthen locals "last",
19149         "before_try", "x" from rtx to rtx_insn *.
19150         * reorg.c (optimize_skip): Strengthen return type and local
19151         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
19152         and locals "trial", "next_trial" from rtx to rtx_insn *.
19153         * resource.c (next_insn_no_annul): Strengthen return type and
19154         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
19155         rtx_sequence to clarify the code.
19156         (mark_referenced_resources): Add a checked cast to rtx_insn *
19157         within PREV_INSN (x).
19158         (find_dead_or_set_registers): Strengthen return type, param
19159         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
19160         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
19161         to rtx_insn **.
19162         (mark_target_live_regs): Strengthen params "insns" and "target",
19163         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
19164         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
19165         the code.
19166         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
19167         from rtx to rtx_insn *.
19168         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
19169         from rtx to rtx_insn *.
19170         (copy_reg_eh_region_note_backward): Likewise.
19171         (unshare_all_rtl_in_chain): Likewise for sole param.
19172         (dump_rtl_slim): Strengthen second and third params from const_rtx
19173         to const rtx_insn *.
19174         * sched-deps.c (sched_free_deps): Strengthen params "head" and
19175         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
19176         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
19177         "next_tail" from rtx to rtx_insn *.
19178         (begin_move_insn): Likewise for local "next".
19179         * sched-int.h (sched_free_deps): Likewise for first and second
19180         params.
19181         (no_real_insns_p): Strengthen both params from const_rtx to
19182         const rtx_insn *.
19183         (sched_setup_bb_reg_pressure_info): Strengthen second params from
19184         rtx to rtx_insn *.
19185         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
19186         "next_tail".
19187         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
19188         and locals "insn", "tail" from const_rtx to const rtx_insn *.
19189         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
19190         rtx_insn *.
19191         (debug_rtl_slim): Strengthen params "first" and "last" from
19192         const_rtx to const rtx_insn *.
19193         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
19194         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
19195         (convert_to_simple_return): Likewise for param "returnjump".
19196         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
19197         "prologue_seq".
19198         (convert_to_simple_return): Likewise for param "returnjump".
19199         * valtrack.c (propagate_for_debug): Likewise for params
19200         "insn", "last".
19201         * valtrack.h (propagate_for_debug): Likewise for second param.
19203 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19205         * output.h (insn_current_reference_address): Strengthen param
19206         from rtx to rtx_insn *.
19207         * final.c (insn_current_reference_address): Likewise.
19209 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19211         * basic-block.h (inside_basic_block_p): Strengthen param from
19212         const_rtx to const rtx_insn *.
19213         * cfgbuild.c (inside_basic_block_p): Likewise.
19215 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19217         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
19218         rtx_insn *.
19219         (get_trace_info): Likewise for param "insn".
19220         (save_point_p): Likewise.
19221         (maybe_record_trace_start): Likewise for both params.
19222         (maybe_record_trace_start_abnormal): Likewise.
19223         (create_trace_edges): Likewise for sole param and for three of the
19224         locals named "lab".
19225         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
19226         to rtx_insn *, and update a call to pat->element to pat->insn.
19228 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19230         * function.h (struct expr_status): Convert field "x_forced_labels"
19231         from rtx_expr_list * to rtx_insn_list *.
19233         * cfgbuild.c (make_edges): Convert local "x" from an
19234         rtx_expr_list * to an rtx_insn_list *, replacing use of
19235         "element" method with "insn" method.
19236         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
19237         * except.c (sjlj_emit_dispatch_table): Replace use of
19238         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
19239         forced_labels.
19240         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
19241         rtx_expr_list * to an rtx_insn_list *, replacing use of
19242         "element" method with "insn" method.
19243         * reload1.c (set_initial_label_offsets): Likewise for local "x".
19244         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
19245         rtx_insn *, adding a checked cast.  Replace use of
19246         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
19247         forced_labels.
19248         (expand_label): Likewise for local "label_r".
19250 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19252         * function.h (struct rtl_data): Convert field
19253         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
19254         rtx_insn_list *.
19255         * rtl.h (remove_node_from_insn_list): New prototype.
19257         * builtins.c (expand_builtin): When prepending to
19258         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
19259         gen_rtx_EXPR_LIST.
19260         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
19261         to rtx_insn_list *, and use its "insn" method rather than
19262         "element" method.
19263         * cfgrtl.c (delete_insn): Use new function
19264         remove_node_from_insn_list rather than
19265         remove_node_from_expr_list.
19266         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
19267         to rtx_insn_list *, and use its "insn" method rather than
19268         "element" method.
19269         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
19270         * reload1.c (set_initial_label_offsets): Likewise for local "x".
19271         * rtlanal.c (remove_node_from_insn_list): New function, adapted
19272         from remove_node_from_expr_list.
19273         * stmt.c (expand_label): When prepending to
19274         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
19275         gen_rtx_EXPR_LIST.
19277 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19279         * function.h (struct rtl_data): Strengthen fields "x_return_label"
19280         and "x_naked_return_label" from rtx to rtx_code_label *.
19282 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19284         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
19285         (SET_NEXT_INSN): Likewise.
19286         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
19288         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
19289         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
19290         to split out the SEQUENCE from local "bundle", strengthening the
19291         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
19292         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
19293         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
19294         and the type of the elements of the "slot" array from rtx to
19295         rtx_insn *.
19296         (reorg_split_calls): Likewise for locals "insn" and "next", and
19297         the type of the elements of the "slot" array.
19299         * config/frv/frv.c (frv_nops): Likewise for the elements of this
19300         array.
19301         (frv_function_prologue): Likewise for locals "insn", "next",
19302         "last_call".
19303         (frv_register_nop): Introduce a local "nop_insn" to be the
19304         rtx_insn * containing rtx "nop".
19306         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
19307         used as an insn and sometimes as a pattern, so rename it to
19308         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
19309         using it where dealing with the core insn.
19311         * config/picochip/picochip.c (reorder_var_tracking_notes):
19312         Strengthen locals "insn", "next", "last_insn", "queue",
19313         "next_queue", "prev" from rtx to rtx_insn *.
19315         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
19316         the second param is an rtx_insn ** rather than an rtx **.
19317         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
19318         from rtx to rtx_sequence *, and introduce local named "sequence",
19319         using methods of rtx_sequence to clarify the code.
19320         (remove_insn): Introduce local rtx_sequence * named "sequence" and
19321         use its methods.
19322         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
19323         Rename param "after" to "uncast_after", reintroducing "after" as a
19324         local rtx_insn * with a checked cast.
19325         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
19326         reintroducing "after" as a local rtx_insn * with a checked cast.
19327         Strengthen local "last" from rtx to rtx_insn * and remove the
19328         now-redundant checked casts.
19329         (copy_delay_slot_insn): Strengthen return type and param from rtx
19330         to rtx_insn *.
19332         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
19333         "last" from rtx to rtx_insn *.
19335 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19337         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
19338         param from rtx to rtx_insn *.
19340         * emit-rtl.c (copy_delay_slot_insn): Likewise.
19342         * reorg.c (skip_consecutive_labels): Strengthen return type, param
19343         and local "insn" from rtx to rtx_insn *.
19344         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
19345         (unfilled_slots_next): Likewise.
19346         (function_return_label): Strengthen from rtx to rtx_code_label *.
19347         (function_simple_return_label): Likewise.
19348         (first_active_target_insn): Strengthen return type and param from
19349         rtx to rtx_insn *.
19350         (find_end_label): Strengthen return type from rtx to
19351         rtx_code_label *; strengthen locals as appropriate.
19352         (emit_delay_sequence): Strengthen return type, param "insn" and
19353         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
19354         and local "li" from rtx to rtx_insn_list *, using methods of
19355         rtx_insn_list for clarity and typesafety.
19356         (add_to_delay_list): Strengthen return type and param "insn" from
19357         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
19358         rtx_insn_list * and use methods of rtx_insn_list.
19359         (delete_from_delay_slot): Strengthen return type, param "insn",
19360         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
19361         Strengthen local "seq" from rtx to rtx_sequence *, and local
19362         "delay_list" from rtx to rtx_insn_list *, using methods of
19363         rtx_sequence for clarity and type-safety.
19364         (delete_scheduled_jump): Add checked cast when invoking
19365         delete_from_delay_slot.  Strengthen local "trial" from rtx to
19366         rtx_insn *.
19367         (optimize_skip): Strengthen return type and local "delay_list"
19368         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
19369         rtx_insn *.
19370         (steal_delay_list_from_target): Strengthen return type, param
19371         "delay_list" and local "new_delay_list" from rtx to
19372         rtx_insn_list *.  Strengthen param "seq" from rtx to
19373         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
19374         rtx_insn **.
19375         Split out local "temp" into multiple more-tightly scoped locals:
19376         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
19377         of rtx_insn_list and rtx_sequence for clarity and typesafety.
19378         Strengthen locals named "trial" from rtx to rtx_insn *.
19379         (steal_delay_list_from_fallthrough): Strengthen return type and
19380         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
19381         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
19382         Strengthen local "trial" from rtx to rtx_insn *.
19383         (try_merge_delay_insns): Strength local "merged_insns" from rtx
19384         to rtx_insn_list * and use its methods.  Strengthen local "pat"
19385         from rtx to rtx_sequence * and use its methods.  Strengthen locals
19386         "dtrial" and "new_rtx" from rtx to rtx_insn *.
19387         (get_label_before): Strengthen return type and local "label" from
19388         rtx to rtx_insn *.
19389         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
19390         "next_trial", "next", prev".  Strengthen local "delay_list" from
19391         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
19392         rtx_insn **.
19393         (follow_jumps): Strengthen return type, param "label" and locals
19394         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
19395         (fill_slots_from_thread): Strengthen return type, param
19396         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
19397         "insn", "thread", "opposite_thread" and locals "new_thread",
19398         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
19399         "sequence" from a checked cast to rtx_sequence so that we can call
19400         steal_delay_list_from_target and steal_delay_list_from_fallthrough
19401         with an rtx_sequence *.
19402         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
19403         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
19404         Strengthen local "delay_list" from rtx to rtx_insn_list *.
19405         (relax_delay_slots): Strengthen param "first" and locals "insn",
19406         "next", "trial", "delay_insn", "target_label" from rtx to
19407         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
19408         Introduce a local "trial_seq" for PATTERN (trial) of type
19409         rtx_sequence *, in both cases using methods of rtx_sequence.
19410         (dbr_schedule): Strengthen param "first" and locals "insn",
19411         "next", "epilogue_insn" from rtx to rtx_insn *.
19413 2014-08-28  Richard Biener  <rguenther@suse.de>
19415         PR tree-optimization/62283
19416         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19417         Do not peel loops for alignment where the vector loop likely
19418         doesn't run at least VF times.
19420 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
19422         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
19423         important_candidates.  Consider all important candidates if
19424         IVS doesn't give any result.  Remove check on ivs->upto.
19425         (try_add_cand_for): Call iv_ca_add_use only once.
19427 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19428             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19429             Anna Tikhonova  <anna.tikhonova@intel.com>
19430             Ilya Tocar  <ilya.tocar@intel.com>
19431             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19432             Ilya Verbin  <ilya.verbin@intel.com>
19433             Kirill Yukhin  <kirill.yukhin@intel.com>
19434             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19436         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
19437         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
19438         masking.
19439         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
19440         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
19441         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
19442         (define_insn "*mul<mode>3"): Add EVEX version.
19444 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19445             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19446             Anna Tikhonova  <anna.tikhonova@intel.com>
19447             Ilya Tocar  <ilya.tocar@intel.com>
19448             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19449             Ilya Verbin  <ilya.verbin@intel.com>
19450             Kirill Yukhin  <kirill.yukhin@intel.com>
19451             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19453         * config/i386/sse.md
19454         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
19455         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
19456         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
19457         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
19458         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
19459         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
19460         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
19461         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
19462         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
19463         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
19464         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
19465         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
19466         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
19467         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
19468         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
19469         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
19471 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19472             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19473             Anna Tikhonova  <anna.tikhonova@intel.com>
19474             Ilya Tocar  <ilya.tocar@intel.com>
19475             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19476             Ilya Verbin  <ilya.verbin@intel.com>
19477             Kirill Yukhin  <kirill.yukhin@intel.com>
19478             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19480         * config/i386/sse.md
19481         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
19482         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
19483         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
19485 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19486             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19487             Anna Tikhonova  <anna.tikhonova@intel.com>
19488             Ilya Tocar  <ilya.tocar@intel.com>
19489             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19490             Ilya Verbin  <ilya.verbin@intel.com>
19491             Kirill Yukhin  <kirill.yukhin@intel.com>
19492             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19494         * config/i386/sse.md
19495         (define_mode_iterator VI128_256): New.
19496         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
19498 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19499             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19500             Anna Tikhonova  <anna.tikhonova@intel.com>
19501             Ilya Tocar  <ilya.tocar@intel.com>
19502             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19503             Ilya Verbin  <ilya.verbin@intel.com>
19504             Kirill Yukhin  <kirill.yukhin@intel.com>
19505             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19507         * config/i386/sse.md
19508         (define_mode_iterator VI8_256_512): New.
19509         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
19510         Ditto.
19511         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
19512         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
19513         Ditto.
19514         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
19516 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19518         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
19519         pointer to the cumulative reloc value and return the value for
19520         this reloc instead.
19521         (compute_reloc_for_rtx): Take a const_rtx.  Call
19522         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
19523         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
19524         for_each_rtx for the CONST case.
19526 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19528         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
19529         (mark_constants_in_pattern): ...this new function to iterate over
19530         all the subrtxes.
19531         (mark_constants): Update accordingly.
19533 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19535         * varasm.c: Include rtl-iter.h.
19536         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
19537         Remove the pointer to the cumulative hashval_t and just return
19538         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
19539         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19540         Accumulate the hashval_ts here instead of const_rtx_hash_1.
19542 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19544         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
19545         Give real type of data parameter.  Remove return value.
19546         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
19547         to iterate over subrtxes.
19549 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19551         * var-tracking.c (use_narrower_mode_test): Turn from being a
19552         for_each_rtx callback to being a function that examines each
19553         subrtx itself.
19554         (adjust_mems): Update accordingly.
19556 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19558         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
19559         callback to being a function that examines each subrtx itself.
19560         Remove handling of null rtxes.
19561         (add_uses): Update accordingly.
19563 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19565         * var-tracking.c: Include rtl-iter.h.
19566         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
19567         to being a function that examines each subrtx itself.
19568         (use_type): Update accordingly.
19570 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19572         * store-motion.c: Include rtl-iter.h.
19573         (extract_mentioned_regs_1): Delete.
19574         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
19575         for_each_rtx to iterate over subrtxes.
19577 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19579         * sel-sched.c: Include rtl-iter.h
19580         (count_occurrences_1): Delete.
19581         (count_occurrences_equiv): Turn rtxes into const_rtxes.
19582         Use FOR_EACH_SUBRTX rather than for_each_rtx.
19584 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19586         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
19587         * rtlanal.c (tls_referenced_p_1): Delete.
19588         (tls_referenced_p): Take a const_rtx rather than an rtx.
19589         Use FOR_EACH_SUBRTX rather than for_each_rtx.
19591 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19593         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
19594         (for_each_inc_dec): Take an rtx rather than an rtx *.
19595         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
19596         (cselib_record_sets): Likewise.
19597         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
19598         (check_for_inc_dec): Likewise.
19599         * rtlanal.c (for_each_inc_dec_ops): Delete.
19600         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
19601         rather than a pointer to the memory address.  Replace
19602         for_each_inc_dec_ops argument with separate function and data
19603         arguments.  Abort on non-autoinc addresses.
19604         (for_each_inc_dec_find_mem): Delete.
19605         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
19606         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
19608 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19610         * rtl.h (find_all_hard_regs): Declare.
19611         * rtlanal.c (find_all_hard_regs): New function.
19612         (record_hard_reg_uses_1): Delete.
19613         (record_hard_reg_uses): Use find_all_hard_regs.
19615 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19617         * rtl.h (replace_label_data): Delete.
19618         (replace_label): Take the old label, new label and update-nuses flag
19619         as direct arguments.  Return void.
19620         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
19621         * rtlanal.c (replace_label): Update interface as above.  Handle
19622         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
19623         iterator.  Use FOR_EACH_SUBRTX_PTR.
19625 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19627         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
19628         with const_rtx parameters.
19629         * varasm.c (get_pool_constant): Likewise.
19630         * rtlanal.c (rtx_referenced_p_1): Delete.
19631         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19632         Assert that the rtx we're looking for is nonnull.  Allow searches
19633         for constant pool SYMBOL_REFs.
19635 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19637         * reload1.c: Include rtl-iter.h.
19638         (note_reg_elim_costly): Turn from being a for_each_rtx callback
19639         to being a function that examines each subrtx itself.
19640         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
19642 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19644         * regcprop.c (cprop_find_used_regs_1): Delete.
19645         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19647 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19649         * regcprop.c: Include rtl-iter.h.
19650         (kill_value): Take a const_rtx.
19651         (kill_autoinc_value): Turn from being a for_each_rtx callback
19652         to being a function that examines each subrtx itself.
19653         (copyprop_hardreg_forward_1): Update accordingly.
19655 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19657         * reg-stack.c: Include rtl-iter.h.
19658         (subst_stack_regs_in_debug_insn): Delete.
19659         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
19660         instead of for_each_rtx.
19662 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19664         * lower-subreg.c (find_decomposable_subregs): Turn from being
19665         a for_each_rtx callback to being a function that examines each
19666         subrtx itself.  Remove handling of null rtxes.
19667         (decompose_multiword_subregs): Update accordingly.
19669 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19671         * lower-subreg.c (adjust_decomposed_uses): Delete.
19672         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
19673         Remove handling of null rtxes.
19675 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19677         * lower-subreg.c: Include rtl-iter.h.
19678         (resolve_subreg_use): Turn from being a for_each_rtx callback
19679         to being a function that examines each subrtx itself.  Remove
19680         handling of null rtxes.
19681         (resolve_reg_notes, resolve_simple_move): Update accordingly.
19682         (decompose_multiword_subregs): Likewise.
19684 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19686         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
19687         to being a function that examines each subrtx itself.
19688         (simplify_using_condition, simplify_using_initial_values): Update
19689         accordingly.
19691 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19693         * loop-iv.c: Include rtl-iter.h.
19694         (find_single_def_src): New function.
19695         (replace_single_def_regs): Turn from being a for_each_rtx callback
19696         to being a function that examines each subrtx itself.
19697         (replace_in_expr, simplify_using_initial_values): Update accordingly.
19699 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19701         * jump.c (eh_returnjump_p_1): Delete.
19702         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
19703         Remove handling of null rtxes.
19705 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19707         * jump.c: Include rtl-iter.h.
19708         (returnjump_p_1): Delete.
19709         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
19710         Remove handling of null rtxes.
19712 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19714         * ira.c: Include rtl-iter.h.
19715         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
19716         to being a function that examines each subrtx itself.  Remove
19717         handling of null rtxes.
19718         (update_equiv_regs): Update call accordingly.
19720 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19722         * fwprop.c: Include rtl-iter.h.
19723         (varying_mem_p): Turn from being a for_each_rtx callback to being
19724         a function that examines each subrtx itself.
19725         (propagate_rtx): Update accordingly.
19727 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19729         * function.c: Include rtl-iter.h
19730         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
19731         callback to being a function that examines each subrtx itself.
19732         Return the changed flag.
19733         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
19734         (instantiate_virtual_regs): Update calls accordingly.
19736 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19738         * final.c: Include rtl-iter.h.
19739         (mark_symbol_ref_as_used): Delete.
19740         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
19741         for_each_rtx.
19743 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19745         * emit-rtl.c: Include rtl-iter.h.
19746         (find_auto_inc): Turn from being a for_each_rtx callback to being
19747         a function that examines each subrtx itself.  Assume the first operand
19748         to an RTX_AUTOINC is the automodified register.
19749         (try_split): Update call accordingly.
19751 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19753         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
19754         Return a bool, inverting the result so that 0/false means "not ok".
19755         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
19756         subrtxes of a CONST.
19757         (mem_loc_descriptor, add_const_value_attribute)
19758         (resolve_addr_in_expr): Update calls accordingly.
19760 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19762         * dwarf2out.c: Include rtl-iter.h.
19763         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
19764         Remove unused data parameter.  Return a bool, inverting the result
19765         so that 0/false means "not ok".
19766         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
19767         instead of for_each_rtx.
19769 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19771         * dse.c: Include rtl-iter.h.
19772         (check_mem_read_rtx): Change void * parameter to real type.
19773         Remove return value.
19774         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
19775         for_each_rtx.  Don't handle null rtxes.
19777 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19779         * df-problems.c: Include rtl-iter.h.
19780         (find_memory): Turn from being a for_each_rtx callback to being
19781         a function that examines each subrtx itself.  Continue to look for
19782         volatile references even after a nonvolatile one has been found.
19783         (can_move_insns_across): Update calls accordingly.
19785 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19787         * ddg.c (walk_mems_2, walk_mems_1): Delete.
19788         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
19789         to iterate over subrtxes.  Return a bool rather than an int.
19791 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19793         * ddg.c: Include rtl-iter.h.
19794         (mark_mem_use_1): Rename to...
19795         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
19796         instead of for_each_rtx.
19797         (mem_read_insn_p): Update accordingly.
19799 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19801         * cse.c (change_cc_mode_args): Delete.
19802         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
19803         a function that examines each subrtx itself.  Take the fields of
19804         change_cc_mode_args as argument and return void.
19805         (cse_change_cc_mode_insn): Update calls accordingly.
19807 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19809         * cse.c (is_dead_reg): Change argument to const_rtx.
19810         (dead_debug_insn_data): Delete.
19811         (is_dead_debug_insn): Expand commentary.  Turn from being a
19812         for_each_rtx callback to being a function that examines
19813         each subrtx itself.  Take the fields of dead_debug_insn_data
19814         as argument.
19815         (delete_trivially_dead_insns): Update call accordingly.
19817 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19819         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
19820         being a for_each_rtx callback to being a function that examines
19821         each subrtx itself.
19822         (cse_extended_basic_block): Update call accordingly.
19824 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19826         * cse.c (check_dependence_data): Delete.
19827         (check_dependence): Change from being a for_each_rtx callback to being
19828         a function that examines all subrtxes itself.  Don't handle null rtxes.
19829         (invalidate): Update call accordingly.
19831 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19833         * cse.c: Include rtl-iter.h.
19834         (approx_reg_cost_1): Delete.
19835         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19836         Don't handle null rtxes.
19838 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19840         * cfgcleanup.c: Include rtl-iter.h.
19841         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
19842         to being a function that examines each subrtx itself.
19843         (thread_jump): Update accordingly.
19845 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19847         * combine-stack-adj.c: Include rtl-iter.h.
19848         (record_stack_refs_data): Delete.
19849         (record_stack_refs): Turn from being a for_each_rtx callback
19850         to being a function that examines each subrtx itself.
19851         Take a pointer to the reflist.  Invert sense of return value
19852         so that true means success and false means failure.  Don't
19853         handle null rtxes.
19854         (combine_stack_adjustments_for_block): Update accordingly.
19856 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19858         * combine.c (record_truncated_value): Turn from being a for_each_rtx
19859         callback to a function that takes an rtx and returns a bool
19860         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
19861         for_each_rtx.
19863 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19865         * combine.c: Include rtl-iter.h.
19866         (unmentioned_reg_p_1): Delete.
19867         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
19868         Don't handle null rtxes.
19870 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19872         * calls.c: Include rtl-iter.h.
19873         (internal_arg_pointer_based_exp_1): Delete.
19874         (internal_arg_pointer_based_exp): Take a const_rtx.
19875         Use FOR_EACH_SUBRTX to iterate over subrtxes.
19877 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19879         * caller-save.c: Include rtl-iter.h.
19880         (add_used_regs_1): Delete.
19881         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
19882         to iterate over subrtxes.  Assert that any remaining pseudos
19883         have been spilled.
19885 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19887         * bt-load.c: Include rtl-iter.h.
19888         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
19889         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
19890         to iterate over subrtxes.
19891         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
19892         find_btr_use rather than btr_referenced_p.
19894 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19896         * alias.c: Include rtl-iter.h.
19897         (refs_newer_value_cb): Delete.
19898         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19900 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
19902         * rtl-iter.h: New file.
19903         * rtlanal.c: Include it.
19904         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
19905         (generic_subrtx_iterator <T>::add_single_to_queue)
19906         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
19907         (generic_subrtx_iterator <T>::free_array): New functions.
19908         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
19909         (generic_subrtx_iterator <const_rtx_accessor>)
19910         (generic_subrtx_iterator <rtx_var_accessor>
19911         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
19912         (setup_reg_subrtx_bounds): New function.
19913         (init_rtlanal): Call it.
19915 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
19917         PR target/62261
19918         * config/sh/sh.md (ashlsi3): Handle negative shift count for
19919         TARGET_SHMEDIA.
19920         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
19922 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
19924         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
19926 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19928         * rtl.h (JUMP_LABEL_AS_INSN): New.
19930 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19932         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
19933         rtx_expr_list **.
19934         (alloc_EXPR_LIST): Strengthen return type from rtx to
19935         rtx_expr_list *.
19936         (remove_free_EXPR_LIST_node): Likewise for param.
19937         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
19938         from rtx to rtx_expr_list *.
19939         * sched-int.h (struct deps_desc): Strengthen fields
19940         "pending_read_mems" and "pending_write_mems" from rtx to
19941         rtx_expr_list *.
19943         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
19944         rtx to rtx_expr_list *.
19945         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
19946         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
19947         rtx_expr_list **.
19948         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
19949         from rtx to rtx_expr_list *.
19950         * loop-iv.c (simplify_using_initial_values): Strengthen local
19951         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
19952         "pnote_next" from rtx * to rtx_expr_list **.
19953         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
19954         param "exprp" from rtx * to rtx_expr_list **.
19955         (add_insn_mem_dependence): Strengthen local "mem_list" from
19956         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
19957         to rtx_expr_list *.
19958         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
19959         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
19960         param "old_mems_p" from rtx * to rtx_expr_list **.
19961         * var-tracking.c (struct adjust_mem_data): Strengthen field
19962         "side_effects" from rtx to rtx_expr_list *.
19963         (adjust_insn): Replace NULL_RTX with NULL when assigning to
19964         rtx_expr_list *.
19965         (prepare_call_arguments): Likewise.
19967 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19969         * function.h (struct rtl_data): Strengthen field
19970         "x_stack_slot_list" from rtx to rtx_expr_list *.
19972         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
19973         when assigning to stack_slot_list.
19975 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19977         * function.h (struct rtl_data): Strengthen field
19978         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
19979         * rtl.h (remove_node_from_expr_list): Strengthen second param from
19980         rtx * to rtx_expr_list **.
19982         * cfgbuild.c (make_edges): In loop over
19983         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
19984         rtx_expr_list *, and use methods of the latter class to clarify
19985         the code.
19986         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
19987         rtx_expr_list *, and use methods of the latter class to clarify
19988         the code.
19989         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
19990         * reload1.c (set_initial_label_offsets): Likewise for local "x".
19991         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
19992         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
19993         to rtx_expr_list *.  Use methods of the latter class to clarify
19994         the code.
19996 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
19998         * function.h (struct expr_status): Strengthen field
19999         "x_forced_labels" from rtx to rtx_expr_list *.
20001         * cfgbuild.c (make_edges): Split local "x" into two locals,
20002         strengthening one from rtx to rtx_expr_list *, and using methods
20003         of said class.
20004         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
20005         loop over forced_labels, introduce strengthen it from rtx to
20006         rtx_expr_list *, using methods to clarify the code.
20007         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
20008         to rtx_expr_list *, using methods of said class to clarify the
20009         code.
20010         * reload1.c (set_initial_label_offsets): Split local "x" into two
20011         per-loop variables, strengthening the first from rtx to
20012         rtx_expr_list * and using methods.
20014 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20016         * coretypes.h (class rtx_expr_list): Add forward declaration.
20017         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
20018         * gengenrtl.c (special_rtx): Add EXPR_LIST.
20019         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
20020         invariant: GET_CODE (X) == EXPR_LIST.
20021         (is_a_helper <rtx_expr_list *>::test): New.
20022         (rtx_expr_list::next): New.
20023         (rtx_expr_list::element): New.
20024         (gen_rtx_EXPR_LIST): New.
20026 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20028         * varasm.c (mark_constants): Convert a GET_CODE check into a
20029         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
20030         Use methods of rtx_sequence to clarify the code.
20032 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20034         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
20035         local "seq" via a checked cast, and use methods of rtx_sequence
20036         to simplify the code.
20038 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20040         * resource.c (mark_referenced_resources): Strengthen local
20041         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
20042         using methods of rtx_sequence to clarify the code.
20043         (find_dead_or_set_registers): Within the switch statement, convert
20044         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
20045         the JUMP_P handling, introduce another local "seq", adding a
20046         checked cast to rtx_sequence *.  In both cases, use methods of
20047         rtx_sequence to clarify the code.
20048         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
20049         via a checked cast, and use methods of rtx_sequence to simplify
20050         the code.
20052 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20054         * reorg.c (redundant_insn): In two places in the function, replace
20055         a check of GET_CODE with a dyn_cast, introducing local "seq", and
20056         usings methods of rtx_sequence to clarify the code.
20058 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20060         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
20061         local "seq" with a checked cast, and use methods of rtx_sequence
20062         to clarify the code.
20064 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20066         * function.c (contains): Introduce local "seq" for PATTERN (insn),
20067         with a checked cast, in the region for where we know it's a
20068         SEQUENCE.  Use methods of rtx_sequence.
20070 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20072         * final.c (get_attr_length_1): Replace GET_CODE check with a
20073         dyn_cast, introducing local "seq" and the use of methods of
20074         rtx_sequence.
20075         (shorten_branches): Likewise, introducing local "body_seq".
20076         Strengthen local "inner_insn" from rtx to rtx_insn *.
20077         (reemit_insn_block_notes): Replace GET_CODE check with a
20078         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
20079         Use methods of rtx_sequence.
20080         (final_scan_insn): Likewise, introducing local "seq" for when
20081         "body" is known to be a SEQUENCE, using its methods.
20083 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20085         * except.c (can_throw_external): Strengthen local "seq" from rtx
20086         to rtx_sequence *.  Use methods of rtx_sequence.
20087         (insn_nothrow_p): Likewise.
20089 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20091         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
20092         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
20093         Use methods of rtx_sequence.
20094         (scan_trace): Likewise for local "pat".
20096 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20098         * coretypes.h (class rtx_sequence): Add forward declaration.
20099         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
20100         invariant: GET_CODE (X) == SEQUENCE.
20101         (is_a_helper <rtx_sequence *>::test): New.
20102         (is_a_helper <const rtx_sequence *>::test): New.
20103         (rtx_sequence::len): New.
20104         (rtx_sequence::element): New.
20105         (rtx_sequence::insn): New.
20107 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20109         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
20110         rtx_insn_list **.
20111         (alloc_INSN_LIST): Strengthen return type from rtx to
20112         rtx_insn_list *.
20113         (copy_INSN_LIST): Likewise for return type and param.
20114         (concat_INSN_LIST): Likewise for both params and return type.
20115         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
20116         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
20117         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
20118         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
20120         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
20121         "implicit_sets", "control_uses", "clobbers" from rtx to
20122         rtx_insn_list *.
20123         (struct deps_desc): Likewise for fields "pending_read_insns",
20124         "pending_write_insns", "pending_jump_insns",
20125         "last_pending_memory_flush", "last_function_call",
20126         "last_function_call_may_noreturn", "sched_before_next_call",
20127         "sched_before_next_jump".
20128         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
20129         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
20131         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
20132         from rtx to rtx_insn_list *.
20133         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
20134         rtx_insn_list *.
20136         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
20137         to rtx_insn_list **.
20138         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
20139         rtx_insn_list *.
20140         (queue_insn): Likewise for local "link".
20141         (struct haifa_saved_data): Strengthen field "insn_queue" from
20142         rtx * to rtx_insn_list **.
20143         (save_backtrack_point): Update allocation of save->insn_queue to
20144         reflect the strengthening of elements from rtx to rtx_insn_list *.
20145         (queue_to_ready): Strengthen local "link" from rtx to
20146         rtx_insn_list *; use methods "next" and "insn" when traversing the
20147         list.
20148         (early_queue_to_ready): Likewise for locals "link", "next_link",
20149         "prev_link".
20150         (schedule_block): Update allocation of insn_queue to reflect the
20151         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
20152         local "link" from rtx to rtx_insn_list *, and use methods when
20153         working it.
20154         (add_to_speculative_block): Strengthen locals "twins" and
20155         "next_node" from rtx to rtx_insn_list *, and use methods when
20156         working with them.  Strengthen local "twin" from rtx to
20157         rtx_insn *, eliminating a checked cast.
20158         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
20159         from rtx to rtx_insn_list *, and use methods when working with
20160         them.
20162         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
20163         from rtx to rtx_insn_list *, adding a checked cast.
20164         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
20165         rtx_insn_list **.
20166         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
20167         "newlink" from rtx to rtx_insn_list *.  Strengthen local
20168         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
20169         from rtx to rtx_insn *.
20170         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
20171         from rtx to rtx_insn_list *.  Use methods of the latter class.
20172         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
20173         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
20174         (remove_free_INSN_LIST_node): Strengthen return type and local
20175         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
20176         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
20177         rtx_insn_list *, using "insn" method.
20179         * sched-deps.c (add_dependence_list):  Strengthen param "list"
20180         from rtx to rtx_insn_list *, and use methods when working with it.
20181         (add_dependence_list_and_free):  Strengthen param "listp" from
20182         rtx * to rtx_insn_list **.
20183         (remove_from_dependence_list): Strenghten param "listp" from rtx *
20184         to rtx_insn_list **, and use methods when working with *listp.
20185         (remove_from_both_dependence_lists): Strengthen param "listp" from
20186         rtx * to rtx_insn_list **
20187         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
20188         to rtx_insn_list **.  Eliminate local "link", in favor of two new
20189         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
20190         respectively.
20191         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
20192         by introducing local "cond_deps".
20193         (remove_from_deps): Strengthen param "insn" from rtx to
20194         rtx_insn *.
20196         * sched-rgn.c (concat_insn_mem_list): Strengthen param
20197         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
20198         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
20199         Use methods of rtx_insn_list.
20201         * store-motion.c (struct st_expr): Strengthen fields
20202         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
20203         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
20204         rtx_insn_list *.
20205         (find_moveable_store): Split out "tmp" into multiple more-tightly
20206         scoped locals.  Use methods of rtx_insn_list *.
20207         (compute_store_table): Strengthen local "tmp" from rtx to
20208         rtx_insn *.  Use methods of rtx_insn_list *.
20210 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20212         * coretypes.h (class rtx_insn_list): Add forward declaration.
20213         * rtl.h (class rtx_insn_list): New subclass of rtx_def
20214         (is_a_helper <rtx_insn_list *>::test): New.
20215         (rtx_insn_list::next): New.
20216         (rtx_insn_list::insn): New.
20217         (gen_rtx_INSN_LIST): Add prototype.
20218         * emit-rtl.c (gen_rtx_INSN_LIST): New.
20219         * gengenrtl.c (special_rtx): Add INSN_LIST.
20221 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20223         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
20224         "prev" from rtx to rtx_insn *.
20226 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20228         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
20229         functions.  Require merely an rtx for now, not an rtx_insn *.
20230         (BLOCK_FOR_INSN): Likewise.
20231         (INSN_LOCATION): Likewise.
20232         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
20234 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20236         * rtl.h (PATTERN): Convert this macro into a pair of inline
20237         functions, for now, requiring const_rtx and rtx.
20239 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20241         * target.def (unwind_emit): Strengthen param "insn" from rtx to
20242         rtx_insn *.
20243         (final_postscan_insn): Likewise.
20244         (adjust_cost): Likewise.
20245         (adjust_priority): Likewise.
20246         (variable_issue): Likewise.
20247         (macro_fusion_pair_p): Likewise.
20248         (dfa_post_cycle_insn): Likewise.
20249         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
20250         (first_cycle_multipass_issue): Likewise.
20251         (dfa_new_cycle): Likewise.
20252         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
20253         (speculate_insn): Likewise for param "insn".
20254         (gen_spec_check): Likewise for params "insn" and "label".
20255         (get_insn_spec_ds): Likewise for param "insn".
20256         (get_insn_checked_ds): Likewise.
20257         (dispatch_do): Likewise.
20258         (dispatch): Likewise.
20259         (cannot_copy_insn_p): Likewise.
20260         (invalid_within_doloop): Likewise.
20261         (legitimate_combined_insn): Likewise.
20262         (needed): Likewise.
20263         (after): Likewise.
20265         * doc/tm.texi: Automatically updated to reflect changes to
20266         target.def.
20268         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
20269         working with insn.
20270         (schedule_block): Likewise.
20271         (sched_init): Likewise.
20272         (sched_speculate_insn): Strengthen param "insn" from rtx to
20273         rtx_insn *.
20274         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
20275         working with insn.
20276         * hooks.c (hook_bool_rtx_true): Rename to...
20277         hook_bool_rtx_insn_true): ...this, and strengthen first param from
20278         rtx to rtx_insn *.
20279         (hook_constcharptr_const_rtx_null): Rename to...
20280         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
20281         first param from const_rtx to const rtx_insn *.
20282         (hook_bool_rtx_int_false): Rename to...
20283         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
20284         param from rtx to rtx_insn *.
20285         (hook_void_rtx_int): Rename to...
20286         (hook_void_rtx_insn_int): ...this, and strengthen first param from
20287         rtx to rtx_insn *.
20289         * hooks.h (hook_bool_rtx_true): Rename to...
20290         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
20291         rtx to rtx_insn *.
20292         (hook_bool_rtx_int_false): Rename to...
20293         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
20294         param from rtx to rtx_insn *.
20295         (hook_void_rtx_int): Rename to...
20296         (hook_void_rtx_insn_int): ...this, and strengthen first param from
20297         rtx to rtx_insn *.
20298         (hook_constcharptr_const_rtx_null): Rename to...
20299         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
20300         first param from const_rtx to const rtx_insn *.
20302         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
20303         and local "prev" from rtx to rtx_insn *.
20305         * sched-int.h (sched_speculate_insn): Strengthen first param from
20306         rtx to rtx_insn *.
20308         * sel-sched.c (create_speculation_check): Likewise for local "label".
20309         * targhooks.c (default_invalid_within_doloop): Strengthen param
20310         "insn" from const_rtx to const rtx_insn *.
20311         * targhooks.h (default_invalid_within_doloop): Strengthen param
20312         from const_rtx to const rtx_insn *.
20314         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
20315         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
20317         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
20318         "insn".
20319         (arc_invalid_within_doloop): Likewise, with const.
20321         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
20322         (arm_cannot_copy_insn_p): Likewise for param "insn".
20323         (arm_unwind_emit): Likewise.
20325         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
20326         "dep_insn".
20328         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
20329         (c6x_variable_issue): Likewise.  Removed now-redundant checked
20330         cast.
20331         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
20333         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
20334         Likewise for param "insn".
20335         (epiphany_mode_after): Likewise.
20336         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
20337         params "insn", "dep_insn".
20338         (epiphany_mode_needed): Likewise for param "insn".
20339         (epiphany_mode_after): Likewise.
20341         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
20342         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20343         (ix86_avx_u128_mode_needed): Likewise.
20344         (ix86_i387_mode_needed): Likewise.
20345         (ix86_mode_needed): Likewise.
20346         (ix86_avx_u128_mode_after): Likewise.
20347         (ix86_mode_after): Likewise.
20348         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
20349         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
20350         (ix86_adjust_priority): Likewise for param "insn".
20351         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
20352         (do_dispatch): Likewise.
20353         (has_dispatch): Likewise.
20354         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
20356         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
20357         reflect renaming of default hook implementation from
20358         hook_constcharptr_const_rtx_null to
20359         hook_constcharptr_const_rtx_insn_null.
20360         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
20361         rtx to rtx_insn *.
20362         (ia64_variable_issue): Likewise for param "insn".
20363         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
20364         (ia64_dfa_new_cycle): Likewise.
20365         (ia64_get_insn_spec_ds): Likewise.
20366         (ia64_get_insn_checked_ds): Likewise.
20367         (ia64_speculate_insn): Likewise.
20368         (ia64_gen_spec_check): Likewise for params "insn", "label".
20369         (ia64_asm_unwind_emit): Likewise for param "insn".
20371         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
20373         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
20374         "insn", "def_insn".
20375         (m68k_sched_variable_issue): Likewise for param "insn".
20377         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
20378         "def_insn".
20380         * config/microblaze/microblaze.c (microblaze_adjust_cost):
20381         Likewise for params "insn", "dep".
20383         * config/mips/mips.c (mips_adjust_cost): Likewise.
20384         (mips_variable_issue): Likewise for param "insn".
20385         (mips_final_postscan_insn): Likewise.
20387         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
20388         for params "insn", "dep".
20390         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
20391         "dep_insn".
20392         (pa_adjust_priority): Likewise for param "insn".
20394         * config/picochip/picochip.c (picochip_sched_adjust_cost):
20395         Likewise for params "insn", "dep_insn".
20397         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
20398         param "insn".
20399         (rs6000_variable_issue): Likewise.
20400         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
20401         (rs6000_debug_adjust_cost): Likewise.
20402         (rs6000_adjust_priority): Likewise for param "insn".
20403         (rs6000_use_sched_lookahead_guard): Likewise.
20404         (get_next_active_insn): Likewise for return type and both params.
20405         (redefine_groups): Likewise for params "prev_head_insn", "tail"
20406         and locals "insn", "next_insn".
20407         (pad_groups): Likewise.
20409         * config/s390/s390.c (s390_adjust_priority): Likewise for param
20410         "insn".
20411         (s390_cannot_copy_insn_p): Likewise.
20412         (s390_sched_variable_issue): Likewise for third param, eliminating
20413         checked cast.
20414         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
20415         default hook implementation from hook_constcharptr_const_rtx_null
20416         to hook_constcharptr_const_rtx_insn_null.
20418         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
20419         from rtx to rtx_insn *.
20420         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
20421         (sh_variable_issue): Likewise for param "insn".
20422         (sh_dfa_new_cycle): Likewise.
20423         (sh_mode_needed): Likewise.
20424         (sh_mode_after): Likewise.
20426         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
20427         params "insn", "dep_insn".
20428         (hypersparc_adjust_cost): Likewise.
20429         (sparc_adjust_cost): Likewise.
20431         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
20432         param, eliminated checked cast.
20433         (spu_sched_adjust_cost): Likewise for first and third params.
20435         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
20436         params "insn" and "dep_insn" from rtx to rtx_insn *.
20438         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
20440 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20442         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
20443         (set_is_load_p): ...this, updating to work on a SET pattern rather
20444         than an insn.
20445         (is_store_insn): Rename to...
20446         (set_is_store_p): ...this, updating to work on a SET pattern
20447         rather than an insn.
20448         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
20449         top of function to where it is needed.  Rewrite the bogus
20450         condition that checks for "insn" and "dep" being PARALLEL to
20451         instead use single_set, introducing locals "insn_set" and
20452         "dep_set".  Given that we only ever returned "cost" for a non-pair
20453         of SETs, bail out early if we don't have a pair of SET.
20454         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
20455         use the new locals "insn_set" and "dep_set", and update calls to
20456         is_load_insn and is_store_insn to be calls to set_is_load_p and
20457         set_is_store_p.
20459 2014-08-27  Guozhi Wei  <carrot@google.com>
20461         PR target/62262
20462         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
20463         amount before using it.
20465 2014-08-27  Richard Biener  <rguenther@suse.de>
20467         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
20468         get_maxval_strlen inside a more useful API.
20469         (gimple_fold_builtin_with_strlen): Remove and fold into ...
20470         (gimple_fold_builtin): ... caller.
20471         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
20472         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
20473         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
20474         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
20475         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
20476         gimple_fold_builtin_sprintf): Adjust to compute maxval
20477         themselves.
20479 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
20481         PR other/62248
20482         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
20484 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20485             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20486             Anna Tikhonova  <anna.tikhonova@intel.com>
20487             Ilya Tocar  <ilya.tocar@intel.com>
20488             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20489             Ilya Verbin  <ilya.verbin@intel.com>
20490             Kirill Yukhin  <kirill.yukhin@intel.com>
20491             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20493         * config/i386/sse.md
20494         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
20495         Use `concat_tg_mode' attribute to determine asm register size.
20497 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20498             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20499             Anna Tikhonova  <anna.tikhonova@intel.com>
20500             Ilya Tocar  <ilya.tocar@intel.com>
20501             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20502             Ilya Verbin  <ilya.verbin@intel.com>
20503             Kirill Yukhin  <kirill.yukhin@intel.com>
20504             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20506         * config/i386/sse.md
20507         (define_mode_iterator VI48_AVX512VL): New.
20508         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
20509         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
20510         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
20511         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
20512         with VI1): Change mode iterator.
20513         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
20514         with VI_ULOADSTORE_BW_AVX512VL): New.
20515         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
20516         with VI_ULOADSTORE_F_AVX512VL): Ditto.
20517         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
20518         with VI1): Change mode iterator.
20519         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
20520         with VI_ULOADSTORE_BW_AVX512VL): New.
20521         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
20522         with VI_ULOADSTORE_F_AVX512VL): Ditto.
20523         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
20524         with VI1): Change mode iterator.
20525         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
20526         with VI_ULOADSTORE_BW_AVX512VL): New.
20527         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
20528         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
20529         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
20530         (define_insn "<avx512>_storedqu<mode>_mask" with
20531         VI48_AVX512VL): New.
20532         (define_insn "<avx512>_storedqu<mode>_mask" with
20533         VI12_AVX512VL): Ditto.
20535 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20536             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20537             Anna Tikhonova  <anna.tikhonova@intel.com>
20538             Ilya Tocar  <ilya.tocar@intel.com>
20539             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20540             Ilya Verbin  <ilya.verbin@intel.com>
20541             Kirill Yukhin  <kirill.yukhin@intel.com>
20542             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20544         * config/i386/sse.md
20545         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
20546         (define_mode_iterator VI48_AVX512BW): New.
20547         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
20548         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
20549         with VI48_AVX2_48_AVX512F): New.
20550         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
20551         with VI2_AVX512VL): Ditto.
20553 2014-08-27  Richard Biener  <rguenther@suse.de>
20555         PR middle-end/62239
20556         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
20557         (fold_builtin_3): Do not fold strcat_chk here.
20558         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
20559         from builtins.c.
20560         (gimple_fold_builtin): Fold strcat_chk here.
20562 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
20564         * dwarf2out.h (dwarf2out_decl): Remove prototype.
20565         * dwarf2out.c (dwarf2out_decl): Make static.
20567 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
20569         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
20571 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20573         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
20574         from rtx to rtx_insn *.
20575         (cselib_lookup_from_insn): Likewise for final param.
20576         (cselib_subst_to_values_from_insn): Likewise.
20577         (cselib_add_permanent_equiv): Likewise.
20579         * cselib.c (cselib_current_insn): Likewise for this variable.
20580         (cselib_subst_to_values_from_insn): Likewise for param "insn".
20581         (cselib_lookup_from_insn): Likewise.
20582         (cselib_add_permanent_equiv): Likewise for param "insn" and local
20583         "save_cselib_current_insn".
20584         (cselib_process_insn): Replace use of NULL_RTX with NULL.
20586         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
20587         from rtx to rtx_insn *.
20589 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20591         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
20592         rtx_insn *.
20594 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20596         * df.h (df_dump_insn_problem_function): Strengthen first param of
20597         this callback from const_rtx to const rtx_insn *.
20598         (struct df_insn_info): Strengthen field "insn" from rtx to
20599         rtx_insn *.
20600         (DF_REF_INSN): Eliminate this function, reinstating the older
20601         macro definition.
20602         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
20603         (df_reg_defined): Likewise.
20604         (df_find_use): Likewise.
20605         (df_reg_used): Likewise.
20606         (df_dump_insn_top): Strengthen param 1 from const_rtx to
20607         const rtx_insn *.
20608         (df_dump_insn_bottom): Likewise.
20609         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
20610         (df_insn_debug_regno): Likewise.
20611         (debug_df_insn): Likewise.
20612         (df_rd_simulate_one_insn): Likewise for param 2.
20613         (df_word_lr_simulate_defs): Likewise for param 1.
20614         (df_word_lr_simulate_uses): Likewise.
20615         (df_md_simulate_one_insn): Likewise for param 2.
20616         (df_simulate_find_noclobber_defs): Likewise for param 1.
20617         (df_simulate_find_defs): Likewise.
20618         (df_simulate_defs): Likewise.
20619         (df_simulate_uses): Likewise.
20620         (df_simulate_one_insn_backwards): Likewise for param 2.
20621         (df_simulate_one_insn_forwards): Likewise.
20622         (df_uses_create): Likewise for param 2.
20623         (df_insn_create_insn_record): Likewise for param 1.
20624         (df_insn_delete): Likewise.
20625         (df_insn_rescan): Likewise.
20626         (df_insn_rescan_debug_internal): Likewise.
20627         (df_insn_change_bb): Likewise.
20628         (df_notes_rescan): Likewise.
20629         * rtl.h (remove_death): Likewise for param 2.
20630         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
20631         const rtx_insn *.
20632         * sched-int.h (reemit_notes): Strengthen param from rtx to
20633         rtx_insn *.
20634         * valtrack.h (propagate_for_debug): Likewise for param 1.
20636         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
20637         local "tmp_rtx" from const_rtx to const rtx_insn *.
20638         * combine.c (remove_death): Strengthen param "insn" from rtx to
20639         rtx_insn *.
20640         (move_deaths): Likewise for local "where_dead".
20641         * cse.c (delete_trivially_dead_insns): Introduce local
20642         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
20643         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
20644         rtx_insn *.
20645         (df_reg_defined): Likewise.
20646         (df_find_use): Likewise.
20647         (df_reg_used): Likewise.
20648         (df_dump_insn_problem_data): Strengthen param "insn" from
20649         const_rtx to const rtx_insn *.
20650         (df_dump_insn_top): Likewise.
20651         (df_dump_insn_bottom): Likewise.
20652         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
20653         (df_insn_debug_regno): Likewise.
20654         (debug_df_insn): Likewise.
20655         (DF_REF_INSN): Delete.
20656         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
20657         from rtx to rtx_insn *.
20658         (df_chain_insn_top_dump): Strengthen param "insn" from
20659         const_rtx to const rtx_insn *.
20660         (df_chain_insn_bottom_dump): Likewise.
20661         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
20662         rtx_insn *.
20663         (df_word_lr_simulate_uses): Likewise.
20664         (df_print_note): Likewise.
20665         (df_remove_dead_and_unused_notes): Likewise.
20666         (df_set_unused_notes_for_mw): Likewise.
20667         (df_set_dead_notes_for_mw): Likewise.
20668         (df_create_unused_note): Likewise.
20669         (df_simulate_find_defs): Likewise.
20670         (df_simulate_find_uses): Likewise.
20671         (df_simulate_find_noclobber_defs): Likewise.
20672         (df_simulate_defs): Likewise.
20673         (df_simulate_uses): Likewise.
20674         (df_simulate_one_insn_backwards): Likewise.
20675         (df_simulate_one_insn_forwards): Likewise.
20676         (df_md_simulate_one_insn): Likewise.
20677         * df-scan.c (df_uses_create): Likewise.
20678         (df_insn_create_insn_record): Likewise.
20679         (df_insn_delete): Likewise.
20680         (df_insn_rescan): Likewise.
20681         (df_insn_rescan_debug_internal): Likewise.
20682         (df_insn_change_bb): Likewise.
20683         (df_notes_rescan): Likewise.
20684         (df_refs_add_to_chains): Likewise.
20685         (df_insn_refs_verify): Likewise.
20686         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
20687         when invoking df_insn_delete.
20688         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
20689         (set_unique_reg_note): Add checked cast.
20690         * final.c (cleanup_subreg_operands): Likewise.
20691         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
20692         "insn" from rtx to rtx_insn *.
20693         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
20694         "last" from rtx to rtx_insn *.
20695         * ira-emit.c (change_regs_in_insn): New function.
20696         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
20697         Invoke change_regs_in_insn rather than change_regs.
20698         * ira.c (update_equiv_regs): Strengthen locals "insn",
20699         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
20700         for_each_rtx_in_insn rather than for_each_rtx.
20701         * recog.c (confirm_change_group): Add checked casts.
20702         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
20703         Add checked cast.
20704         (peep2_fill_buffer): Add checked cast.
20705         * rtlanal.c (remove_note): Likewise.
20706         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
20707         locals "next" "end" from rtx to rtx_insn *.
20709 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20711         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
20712         to rtx_insn *.
20713         (struct reg_use_data): Likewise for field "insn".
20714         (insn_cost): Likewise for param.
20715         (real_insn_for_shadow): Likewise for return type and param.
20716         (increase_insn_priority): Likewise for param 1.
20717         (debug_dependencies): Likewise for both params.
20719         * haifa-sched.c (insn_delay): Likewise for param "insn".
20720         (real_insn_for_shadow): Likewise for return type and param "insn".
20721         (update_insn_after_change): Likewise for param "insn".
20722         (recompute_todo_spec): Likewise for param "next" and locals "pro",
20723         "other".
20724         (insn_cost): Likewise for param "insn".
20725         (increase_insn_priority): Likewise.
20726         (calculate_reg_deaths): Likewise.
20727         (setup_insn_reg_pressure_info): Likewise.
20728         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
20729         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
20730         (model_recompute): Likewise.
20731         (must_restore_pattern_p): Likewise for param "next".
20732         (model_excess_cost): Likewise for param "insn".
20733         (queue_remove): Likewise.
20734         (adjust_priority): Likewise for param "prev".
20735         (update_register_pressure): Likewise for param "insn".
20736         (setup_insn_max_reg_pressure): Likewise for local "insn".
20737         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
20738         (model_add_to_schedule): Likewise.
20739         (model_reset_queue_indices): Likewise for local "insn".
20740         (unschedule_insns_until): Strengthen local "recompute_vec" from
20741         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
20742         "con" from rtx to rtx_insn *.
20743         (restore_last_backtrack_point): Likewise for both locals "x". Add
20744         checked casts.
20745         (estimate_insn_tick): Likewise for param "insn".
20746         (commit_schedule): Likewise for params "prev_head", "tail" and
20747         local "x".
20748         (verify_shadows): Likewise for locals "i1", "i2".
20749         (dump_insn_stream): Likewise for params "head", "tail" and locals
20750         "next_tail", "insn".
20751         (schedule_block): Likewise for locals "insn", "x".  Add a checked
20752         cast.
20753         (fix_inter_tick): Likewise for params "head", "tail".
20754         (create_check_block_twin): Likewise for local "jump".
20755         (haifa_change_pattern): Likewise for param "insn".
20756         (haifa_speculate_insn): Likewise.
20757         (dump_new_block_header): Likewise for params "head", "tail".
20758         (fix_jump_move): Likewise for param "jump".
20759         (move_block_after_check): Likewise.
20760         (sched_init_insn_luid): Likewise for param "insn".
20761         (sched_init_luids): Likewise for local "insn".
20762         (insn_luid): Likewise for param "insn".
20763         (init_h_i_d): Likewise.
20764         (haifa_init_h_i_d): Likewise for local "insn".
20765         (haifa_init_insn): Likewise for param "insn".
20766         * sched-deps.c (add_dependence): Likewise for local "real_pro",
20767         "other".
20768         (create_insn_reg_use): Likewise for param "insn".
20769         (setup_insn_reg_uses): Likewise.  Add a checked cast.
20770         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
20771         "tail" from rtx to rtx_insn *.
20772         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
20773         "insn", "next_tail".
20775 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20777         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
20778         from rtx to rtx_insn *.
20779         (model_add_to_schedule): Likewise for locals "start", "end",
20780         "iter".
20782 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20784         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
20785         rtx_insn *.
20786         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
20787         "to" and locals "insn", "next", "copy".  Remove now-redundant
20788         checked cast.
20790 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20792         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
20793         rtx_insn * and param 4 from rtx * to rtx_insn **.
20794         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
20795         param 2 from rtx * to rtx_insn **.
20797         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
20798         rtx_insn * and final param from rtx * to rtx_insn **.
20800         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
20801         from rtx to rtx_insn *.
20802         (try_head_merge_bb): Likewise for both locals named "move_upto".
20803         * df-problems.c (can_move_insns_across): Likewise for params
20804         "from", "to", "across_from", "across_to" and locals "insn",
20805         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
20806         rtx_insn **.
20807         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
20808         from rtx to rtx_insn *.
20809         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
20810         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
20811         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
20812         rtx_insn *.
20813         (noce_try_abs): Likewise.
20814         (noce_get_condition): Likewise for param "jump".  Strengthen param
20815         "earliest" from rtx * to rtx_insn **.
20816         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
20817         rtx_insn *.
20818         (find_cond_trap): Likewise.
20819         (dead_or_predicable): Likewise for local "earliest".
20820         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
20821         checked cast.
20822         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
20823         and local "prev".  Strengthen param "earliest" from rtx * to
20824         rtx_insn **.
20825         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
20826         Strengthen param "earliest" from rtx * to rtx_insn **.
20828 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20830         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
20831         "to" and local "insn" from rtx to rtx_insn *.
20833 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20835         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
20836         from rtx to rtx_insn *.
20837         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
20838         (code_motion_path_driver): Likewise for local "last_insn".
20839         (simplify_changed_insns): Likewise for local "insn".
20841 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20843         * rtl.h (push_to_sequence): Strengthen param from rtx to
20844         rtx_insn *.
20845         (push_to_sequence2): Likewise for both params.
20846         (delete_insns_since): Likewise for param.
20847         (reorder_insns_nobb): Likewise for all three params.
20848         (set_new_first_and_last_insn): Likewise for both params.
20850         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
20851         rtx_insn *.  Remove now-redundant cast.
20852         (set_last_insn): Likewise.
20854         * builtins.c (expand_builtin_return): Strengthen local
20855         "call_fusage" from rtx to rtx_insn *.
20856         * cfgrtl.c (create_basic_block_structure): Likewise for local
20857         "after".
20858         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
20859         "first", "last" and local "insn".
20860         (delete_insns_since): Likewise for param "from".
20861         (reorder_insns_nobb): Likewise for params "from", "to", "after"
20862         and local "x".
20863         (push_to_sequence): Likewise for param "first" and local "last".
20864         (push_to_sequence2): Likewise for params "first" and "last".
20865         * lra.c (emit_add3_insn): Likewise for local "last".
20866         (lra_emit_add): Likewise.
20867         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
20868         "last_insn".
20869         (process_address_1): Likewise for locals "insn", last".
20870         * modulo-sched.c (ps_first_note): Likewise for return type.
20871         * optabs.c (expand_binop_directly): Likewise for param "last".
20873 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20875         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
20876         to rtx_insn*.
20877         * emit-rtl.c (get_last_insn_anywhere): Likewise.
20879 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20881         * function.h (struct sequence_stack): Strengthen fields "first"
20882         and "last" from rtx to rtx_insn *.
20883         (struct emit_status): Likewise for fields "x_first_insn" and
20884         "x_last_insn".
20886         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
20887         (set_first_insn): Add checked cast.
20888         (get_last_insn): Remove now-redundant checked cast.
20889         (set_last_insn): Add checked cast.
20891         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
20892         "saved_first" and "saved_last" from rtx to rtx_insn *.
20894 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20896         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
20897         (unlink_insn_chain): Strengthen both params from rtx to
20898         rtx_insn *.
20900         * cfgrtl.c (cfg_layout_function_header): Likewise for this
20901         variable.
20902         (unlink_insn_chain): Likewise for params "first" and "last".
20903         Remove now-redundant checked cast.
20904         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
20905         (fixup_reorder_chain): Strengthen local "insn" from rtx to
20906         rtx_insn *.
20907         * emit-rtl.c (link_insn_into_chain): Likewise for all three
20908         params.
20909         (add_insn): Likewise for param "insn" and local "prev".
20910         (add_insn_after_nobb): Likewise for both params and local "next".
20911         (add_insn_before_nobb): Likewise for both params and local "prev".
20912         (add_insn_after): Rename param "after" to "uncast_after",
20913         introducing local "after" with another checked cast.
20914         (add_insn_before): Rename params "insn" and "before", giving them
20915         "uncast_" prefixes, adding the old names back using checked casts.
20916         (emit_note_after): Likewise for param "after".
20917         (emit_note_before): Likewise for param "before".
20918         (emit_label): Add a checked cast.
20920 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20922         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
20923         "insn" from rtx to rtx_insn *.
20925         * cselib.c (cselib_record_sets_hook): Likewise.
20927         * var-tracking.c (add_with_sets): Likewise, renaming back from
20928         "uncast_insn" to "insn" and eliminating the checked cast from rtx
20929         to rtx_insn *.
20931 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
20933         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
20934         and "header_" from rtx to rtx_insn *.
20935         (struct basic_block_d): Likewise for field "head_" within "x"
20936         field of union basic_block_il_dependent.
20937         (BB_HEAD): Drop function...
20938         (SET_BB_HEAD): ...and this function in favor of...
20939         (BB_HEAD): ...reinstate macro.
20940         (BB_END): Drop function...
20941         (SET_BB_END): ...and this function in favor of...
20942         (BB_END): ...reinstate macro.
20943         (BB_HEADER): Drop function...
20944         (SET_BB_HEADER): ...and this function in favor of...
20945         (BB_HEADER): ...reinstate macro.
20947         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
20948         (fix_crossing_unconditional_branches): Likewise.
20949         * caller-save.c (save_call_clobbered_regs): Likewise.
20950         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
20951         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
20952         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
20953         (merge_blocks_move_successor_nojumps): Likewise.
20954         (outgoing_edges_match): Update use of for_each_rtx to
20955         for_each_rtx_in_insn.
20956         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
20957         (expand_gimple_cond): Likewise.
20958         (expand_gimple_tailcall): Likewise.
20959         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
20960         SET_BB_END.
20961         (construct_exit_block): Drop use of SET_BB_END.
20962         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
20963         rtx_insn *.
20964         (delete_insn): Rename param "insn" to "uncast_insn", introducing
20965         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
20966         SET_BB_HEAD and SET_BB_END.
20967         (create_basic_block_structure): Drop use of SET_BB_HEAD and
20968         SET_BB_END.
20969         (rtl_delete_block): Drop use of SET_BB_HEAD.
20970         (rtl_split_block): Drop use of SET_BB_END.
20971         (emit_nop_for_unique_locus_between): Likewise.
20972         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
20973         (block_label): Drop use of SET_BB_HEAD.
20974         (fixup_abnormal_edges): Drop use of SET_BB_END.
20975         (record_effective_endpoints): Drop use of SET_BB_HEADER.
20976         (relink_block_chain): Likewise.
20977         (fixup_reorder_chain): Drop use of SET_BB_END.
20978         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
20979         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
20980         rtx_insn **.  Drop use of SET_BB_HEADER.
20981         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
20982         SET_BB_HEAD.
20983         (BB_HEAD): Delete this function.
20984         (SET_BB_HEAD): Likewise.
20985         (BB_END): Likewise.
20986         (SET_BB_END): Likewise.
20987         (BB_HEADER): Likewise.
20988         (SET_BB_HEADER): Likewise.
20989         * emit-rtl.c (add_insn_after):  Rename param "insn" to
20990         "uncast_insn", adding a new local "insn" and a checked cast to
20991         rtx_insn *.  Drop use of SET_BB_END.
20992         (remove_insn): Strengthen locals "next" and "prev" from rtx to
20993         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
20994         (reorder_insns): Drop use of SET_BB_END.
20995         (emit_insn_after_1): Strengthen param "first" and locals "last",
20996         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
20997         (emit_pattern_after_noloc): Add checked cast.
20998         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
20999         (restore_other_notes): Likewise.
21000         (move_insn): Likewise.
21001         (sched_extend_bb): Likewise.
21002         (fix_jump_move): Likewise.
21003         * ifcvt.c (noce_process_if_block): Likewise.
21004         (dead_or_predicable): Likewise.
21005         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
21006         * reg-stack.c (change_stack): Drop use of SET_BB_END.
21007         * sel-sched-ir.c (sel_move_insn): Likewise.
21008         * sel-sched.c (move_nop_to_previous_block): Likewise.
21010         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
21011         SET_BB_END.
21012         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
21014 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21016         * basic-block.h (create_basic_block_structure): Strengthen params
21017         1 "head" and 2 "end" from rtx to rtx_insn *.
21018         * cfgrtl.c (create_basic_block_structure): Likewise.
21019         (rtl_create_basic_block): Update casts from void * to rtx to
21020         rtx_insn *, so that we can pass them as rtx_insn * to
21021         create_basic_block_structure.
21022         * sel-sched-ir.c (sel_create_basic_block): Likewise.
21024 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21026         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
21027         rtx_insn **.
21028         (check_for_inc_dec): Strengthen param "insn" from rtx to
21029         rtx_insn *.
21031         * cselib.h (cselib_process_insn): Likewise.
21033         * cselib.c (cselib_record_sets): Likewise.
21034         (cselib_process_insn): Likewise.
21036         * dse.c (struct insn_info): Likewise for field "insn".
21037         (check_for_inc_dec_1): Likewise for local "insn".
21038         (check_for_inc_dec): Likewise for param "insn".
21039         (scan_insn): Likewise.
21040         (dse_step1): Likewise for local "insn".
21042         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
21043         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
21045 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21047         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
21048         from rtx to rtx_insn *.
21049         (DEP_PRO): Delete this function and...
21050         (SET_DEP_PRO): ...this function in favor of...
21051         (DEP_PRO): ...reinstate this macro.
21052         (DEP_CON): Delete this function and...
21053         (SET_DEP_CON): ...this function in favor of...
21054         (DEP_CON): ...reinstate this old macro.
21055         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
21056         (init_dep): Likewise.
21057         (set_priorities): Likewise for both params.
21058         (sd_copy_back_deps): Likewise for params 1 and 2.
21060         * haifa-sched.c (priority): Likewise for param "insn" and local
21061         "next".
21062         (set_priorities): Likewise for params "head" and "tail" and local
21063         "insn".
21064         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
21065         local "consumer".
21066         (add_to_speculative_block): Add a checked cast.
21067         (create_check_block_twin): Drop use of SET_DEP_CON.
21068         (add_jump_dependencies): Strengthen params "insn" and "jump" from
21069         rtx to rtx_insn *.
21071         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
21072         Drop use of SET_DEP_PRO
21073         (init_dep): Strengthen params "pro" and "con" from rtx to
21074         rtx_insn *.
21075         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
21076         use of SET_DEP_CON.
21077         (DEP_PRO): Delete.
21078         (DEP_CON): Delete.
21079         (SET_DEP_PRO): Delete.
21080         (SET_DEP_CON): Delete.
21082 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21084         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
21085         from rtx to rtx_insn *.
21086         (VINSN_INSN_RTX): Eliminate rvalue function and...
21087         (SET_VINSN_INSN): ...lvalue function in favor of...
21088         (VINSN_INSN_RTX): reinstate this old macro.
21090         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
21091         in favor of VINSN_INSN_RTX.
21092         (VINSN_INSN_RTX): Delete this function.
21093         (SET_VINSN_INSN_RTX): Likewise.
21095 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21097         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
21098         (BND_TO): Delete this function and...
21099         (SET_BND_TO): ...this functions in favor of...
21100         (BND_TO): ...reinstating this macro.
21101         (struct _fence): Strengthen field "executing_insns" from
21102         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
21103         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
21104         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
21105         and param "insn" from rtx to insn_t.
21106         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
21107         rtx_insn *.
21109         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
21110         vec<rtx_insn *> .
21111         (rtx_vec_t): Likewise.
21112         (struct sched_deps_info_def): Strengthen param of "start_insn"
21113         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
21114         "note_mem_dep" callback and first param of "note_dep" callback.
21116         * haifa-sched.c (add_to_speculative_block): Strengthen param
21117         "insn" from rtx to rtx_insn *.
21118         (clear_priorities): Likewise.
21119         (calc_priorities): Likewise for local "insn".
21121         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
21122         Remove redundant checked cast.
21123         (haifa_note_mem_dep): Likewise for param "pending_insn".
21124         (haifa_note_dep): Likewise for param "elem".
21125         (note_mem_dep): Likewise for param "e".
21126         (sched_analyze_1): Add checked casts.
21127         (sched_analyze_2): Likewise.
21129         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
21130         from rtx to rtx_insn *.
21131         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
21132         from vec<rtx> * to vec<rtx_insn *> *.
21134         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
21135         scaffolding.
21136         (flist_add): Strengthen param "executing_insns" from
21137         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
21138         (advance_deps_context): Remove now-redundant checked cast.
21139         (init_fences): Replace uses of NULL_RTX with NULL.
21140         (merge_fences): Strengthen params "last_scheduled_insn" and
21141         "sched_next" from rtx to rtx_insn * and "executing_insns" from
21142         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
21143         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
21144         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
21145         an instruction, rather than doing double-duty as a pattern.
21146         (return_nop_to_pool): Update for change of insn_t.
21147         (deps_init_id): Remove now-redundant checked cast.
21148         (struct sched_scan_info_def): Strengthen param of "init_insn"
21149         callback from rtx to insn_t.
21150         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
21151         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
21152         NULL.
21153         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
21154         "end" from rtx to rtx_insn *.
21155         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
21156         (rtx insn_rtx, bool force_unique_p)
21157         (BND_TO): Delete function.
21158         (SET_BND_TO): Delete function.
21160         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
21161         rtx to rtx_insn *.
21162         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
21163         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
21164         rtx to rtx_insn *.
21165         (undo_transformations): Likewise for param "insn".
21166         (update_liveness_on_insn): Likewise.
21167         (compute_live_below_insn): Likewise for param "insn" and local
21168         "succ".
21169         (update_data_sets): Likewise for param "insn".
21170         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
21171         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
21172         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
21173         rtx_insn *.
21174         (move_cond_jump): Likewise for param "insn".
21175         (move_cond_jump): Drop use of SET_BND_TO.
21176         (compute_av_set_on_boundaries): Likewise.
21177         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
21178         (update_and_record_unavailable_insns): Strengthen local "bb_end"
21179         from rtx to rtx_insn *.
21180         (maybe_emit_renaming_copy): Likewise for param "insn".
21181         (maybe_emit_speculative_check): Likewise.
21182         (handle_emitting_transformations): Likewise.
21183         (remove_insn_from_stream): Likewise.
21184         (code_motion_process_successors): Strengthen local "succ" from rtx
21185         to insn_t.
21187 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21189         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
21190         ilist_t, not _xlist_t;
21191         (ILIST_INSN): Define in terms of new union field "insn".
21192         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
21193         _XLIST_NEXT.
21194         (struct _list_node): Add new field "insn" to the union, of type
21195         insn_t.
21196         (ilist_add): Replace macro with an inline function, requiring an
21197         insn_t.
21198         (ilist_remove): Define this macro directly in terms of
21199         _list_remove, rather than indirectly via _xlist_remove.
21200         (ilist_clear): Likewise, in terms of _list_clear rather than
21201         _xlist_clear.
21202         (ilist_is_in_p): Replace macro with an inline function, requiring
21203         an insn_t.
21204         (_list_iter_cond_insn): New function.
21205         (ilist_iter_remove): Define this macro directly in terms of
21206         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
21207         (ilist_iterator): Define directly in terms of _list_iterator
21208         rather than indirectly through _xlist_iterator.
21209         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
21210         than in terms of _FOR_EACH_X.
21211         (FOR_EACH_INSN_1): Likewise.
21213 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
21215         PR target/60606
21216         PR target/61330
21217         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
21218         DECL_HARD_REGISTER and return for invalid register specifications.
21219         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
21220         DECL_HARD_REGISTER, call expand_one_error_var.
21221         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
21222         CC_REGNUM with non-MODE_CC modes.
21223         (arm_regno_class): Return NO_REGS for PC_REGNUM.
21225 2014-08-26  Marek Polacek  <polacek@redhat.com>
21227         PR c/61271
21228         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
21230 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
21232         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
21233         qi cost; add di cost.
21234         (cortexa57_addrcost_table): Likewise.
21236 2014-08-26  Marek Polacek  <polacek@redhat.com>
21238         PR c/61271
21239         * expr.c (is_aligning_offset): Remove logical not.
21241 2014-08-26  Marek Polacek  <polacek@redhat.com>
21243         PR c/61271
21244         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
21245         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
21247 2014-08-26  Richard Biener  <rguenther@suse.de>
21249         PR tree-optimization/62175
21250         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
21251         expand possibly trapping operations.
21253 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21255         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
21256         "insn" from rtx to rtx_insn *.
21257         (permute_load): Likewise for param "insn".
21258         (permute_store): Likewise.
21259         (handle_special_swappables): Likewise for local "insn".
21260         (replace_swap_with_copy): Likewise for locals "insn" and
21261         "new_insn".
21262         (rs6000_analyze_swaps): Likewise for local "insn".
21264 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21266         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
21267         to rtx_insn *.
21269 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21271         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
21272         "note_list" from rtx to rtx_insn *.
21273         (BB_NOTE_LIST): Replace this function and...
21274         (SET_BB_NOTE_LIST): ...this function with...
21275         (BB_NOTE_LIST): ...the former macro implementation.
21277         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
21278         local "from_start" from rtx to rtx_insn *.  Strengthen param
21279         "to_endp" from rtx * to rtx_insn **.
21281         * haifa-sched.c (concat_note_lists): Likewise.
21282         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
21283         BB_NOTE_LIST.
21284         (sel_restore_notes): Likewise.
21285         (move_bb_info): Likewise.
21286         (BB_NOTE_LIST): Delete this function.
21287         (SET_BB_NOTE_LIST): Delete this function.
21288         * sel-sched.c (create_block_for_bookkeeping): Eliminate
21289         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
21291 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21293         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
21294         from rtx * to rtx_insn **.
21295         (reorder2): Likewise.
21296         (dependencies_evaluation_hook): Strengthen params "head", "tail"
21297         from rtx to rtx_insn *.
21299         * doc/tm.texi: Update mechanically for above change to target.def.
21301         * sched-int.h (note_list): Strengthen this variable from rtx to
21302         rtx_insn *.
21303         (remove_notes): Likewise for both params.
21304         (restore_other_notes): Likewise for return type and first param.
21305         (struct ready_list): Strengthen field "vec" from rtx * to
21306         rtx_insn **.
21307         (struct dep_replacement): Strenghten field "insn" from rtx to
21308         rtx_insn *.
21309         (struct deps_desc): Likewise for fields "last_debug_insn",
21310         "last_args_size".
21311         (struct haifa_sched_info): Likewise for callback field
21312         "can_schedule_ready_p"'s param, for first param of "new_ready"
21313         callback field, for both params of "rank" callback field, for
21314         first field of "print_insn" callback field (with a const), for
21315         both params of "contributes_to_priority" callback, for param
21316         of "insn_finishes_block_p" callback, for fields "prev_head",
21317         "next_tail", "head", "tail", for first param of "add_remove_insn"
21318         callback, for first param of "begin_schedule_ready" callback, for
21319         both params of "begin_move_insn" callback, and for second param
21320         of "advance_target_bb" callback.
21321         (add_dependence): Likewise for params 1 and 2.
21322         (sched_analyze): Likewise for params 2 and 3.
21323         (deps_analyze_insn): Likewise for param 2.
21324         (ready_element): Likewise for return type.
21325         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
21326         (try_ready): Strenghten param from rtx to rtx_insn *.
21327         (sched_emit_insn): Likewise for return type.
21328         (record_delay_slot_pair): Likewise for params 1 and 2.
21329         (add_delay_dependencies): Likewise for param.
21330         (contributes_to_priority): Likewise for both params.
21331         (find_modifiable_mems): Likewise.
21333         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
21334         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
21335         "first_older_only_insn" from rtx to rtx_insn *.
21336         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
21337         rtx_insn **.
21339         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
21340         "last_scheduled_iter0" from rtx to rtx_insn *.
21341         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
21342         (c6x_sched_reorder_1): Strengthen param "ready" and locals
21343         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
21344         "insn" from rtx to rtx_insn *.
21345         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
21346         rtx_insn **.
21347         (c6x_sched_reorder2): Strengthen param "ready" and locals
21348         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
21349         "insn" from rtx to rtx_insn *.
21350         (c6x_variable_issue):  Add a checked cast when assigning from insn
21351         to ss.last_scheduled_iter0.
21352         (split_delayed_branch): Strengthen param "insn" and local "i1"
21353         from rtx to rtx_insn *.
21354         (split_delayed_nonbranch): Likewise.
21355         (undo_split_delayed_nonbranch): Likewise for local "insn".
21356         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
21357         "entry_after", "end_packet", "head_insn", "tail_insn",
21358         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
21359         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
21360         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
21361         but add a checked cast on loop->start_label.  Consolidate calls to
21362         avoid assigning result of gen_spkernel to "insn", now an
21363         rtx_insn *.
21365         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
21366         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
21367         rtx to rtx_insn *.
21368         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
21369         rtx_insn **.  Strengthen locals "top", "next" from rtx to
21370         rtx_insn *.
21371         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
21372         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
21373         (add_parameter_dependencies): Strengthen params "call", "head" and
21374         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
21375         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
21376         (add_dependee_for_func_arg): Likewise for param "arg" and local
21377         "insn".
21378         (ix86_dependencies_evaluation_hook): Likewise for params "head",
21379         "tail" and locals "insn", "first_arg".
21381         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
21382         for params "head", "tail" and locals "insn", "next", "next_tail".
21383         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
21384         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
21385         "insn", "lowest", "highest" from rtx to rtx_insn *.
21386         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
21387         rtx_insn **.
21388         (ia64_sched_reorder2): Likewise.
21390         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
21391         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
21392         from rtx * to rtx_insn **.
21393         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
21394         rtx_insn **.
21395         (mep_print_sched_insn): Strengthen param "insn" from rtx to
21396         rtx_insn *.
21397         (mep_sched_reorder): Strengthen param "ready" from rtx * to
21398         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
21399         to rtx_insn *.
21401         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
21402         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
21403         to rtx_insn *.
21404         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
21405         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
21406         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
21407         rtx_insn **.
21408         (vr4130_reorder): Likewise.
21409         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
21410         rtx to rtx_insn *.
21411         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
21412         rtx_insn **.
21413         (mips_sched_reorder): Likewise.
21414         (mips_sched_reorder2): Likewise.
21416         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
21418         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
21419         Strengthen local "tmp" from rtx to rtx_insn *.
21420         (rs6000_sched_reorder2): Likewise.
21422         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
21423         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
21424         (s390_sched_reorder): Strengthen param "ready" from rtx * to
21425         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
21427         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
21428         "tmp2" from rtx to rtx_insn *.
21429         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
21430         Strengthen local "insn" from rtx to rtx_insn *.
21431         (ready_reorder): Strengthen param "ready" from rtx * to
21432         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
21433         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
21434         (sh_reorder2): Likewise.
21436         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
21437         local "insn" from rtx to rtx_insn *.
21439         * haifa-sched.c (note_list): Strengthen this variable from rtx to
21440         rtx_insn *.
21441         (scheduled_insns): Strengthen this variable from vec<rtx> to
21442         vec<rtx_insn *>.
21443         (set_modulo_params): Likewise for locals "i1", "i2".
21444         (record_delay_slot_pair): Likewise for params "i1", "i2".
21445         (add_delay_dependencies): Likewise for param "insn".
21446         (cond_clobbered_p): Likewise.
21447         (recompute_todo_spec): Likewise for local "prev".
21448         (last_scheduled_insn): Likewise for this variable.
21449         (nonscheduled_insns_begin): Likewise.
21450         (model_set_excess_costs): Strengthen param "insns" from rtx * to
21451         rtx_insn **.
21452         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
21453         rtx_insn *.
21454         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
21455         Strengthen local "insn" from rtx to rtx_insn *.
21456         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
21457         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
21458         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
21459         (ready_remove_first): Likewise for return type and local "t".
21460         (ready_element): Likewise for return type.
21461         (ready_remove): Likewise for return type and local "t".
21462         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
21463         (check_clobbered_conditions): Strengthen local "x" from rtx to
21464         rtx_insn *, adding a checked cast.
21465         (schedule_insn): Likewise for param "insn".
21466         (remove_notes): Likewise for params "head", "tail" and locals
21467         "next_tail", "insn", "next".
21468         (struct haifa_saved_data): Likewise for fields
21469         "last_scheduled_insn", "nonscheduled_insns_begin".
21470         (save_backtrack_point): Update for change to field "vec" of
21471         struct ready_list.
21472         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
21473         rtx_insn **.
21474         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
21475         from rtx to rtx_insn *
21476         (resolve_dependencies): Strengthen param "insn" from rtx to
21477         rtx_insn *
21478         (restore_other_notes): Likewise for return type, for param "head"
21479         and local "note_head".
21480         (undo_all_replacements): Likewise for local "insn".
21481         (first_nonscheduled_insn): Likewise for return type and local "insn".
21482         (queue_to_ready): Likewise for local "insn", adding checked casts.
21483         (early_queue_to_ready): Likewise for local "insn".
21484         (debug_ready_list_1): Strengthen local "p" from rtx * to
21485         rtx_insn **.
21486         (move_insn): Strengthen param "insn" and local "note" from rtx to
21487         rtx_insn *
21488         (insn_finishes_cycle_p): Likewise for param "insn".
21489         (max_issue): Likewise for local "insn".
21490         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
21491         to rtx_insn **.
21492         (commit_schedule): Strengthen param "prev_head" and local "insn"
21493         from rtx to rtx_insn *
21494         (prune_ready_list): Likewise for local "insn".
21495         (schedule_block): Likewise for locals "prev_head", "head", "tail",
21496         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
21497         (set_priorities): Likewise for local "prev_head".
21498         (try_ready): Likewise for param "next".
21499         (fix_tick_ready): Likewise.
21500         (change_queue_index): Likewise.
21501         (sched_extend_ready_list): Update for change to field "vec" of
21502         struct ready_list.
21503         (generate_recovery_code): Strengthen param "insn" from rtx to
21504         rtx_insn *.
21505         (begin_speculative_block): Likewise.
21506         (create_check_block_twin): Likewise for param "insn" and locals
21507         "label", "check", "twin".  Introduce local "check_pat" to avoid
21508         "check" being used as a plain rtx before being used as an insn.
21509         (fix_recovery_deps): Add a checked cast to rtx_insn * when
21510         extracting elements from ready_list.
21511         (sched_remove_insn): Strengthen param "insn" from rtx to
21512         rtx_insn *.
21513         (sched_emit_insn): Likewise for return type.
21514         (ready_remove_first_dispatch): Likewise for return type and local
21515         "insn".
21517         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
21519         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
21520         const rtx_insn *.
21522         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
21523         from rtx to rtx_insn *.
21524         (add_dependence_list): Likewise for param "insn".  Add a checked
21525         cast.
21526         (add_dependence_list_and_free): Strengthen param "insn" from rtx
21527         to rtx_insn *.  Strengthen param "list_p" from rtx * to
21528         rtx_insn **.
21529         (chain_to_prev_insn): Strengthen param "insn" and locals
21530         "prec_nonnote", "i" from rtx to rtx_insn *.
21531         (flush_pending_lists): Likewise for param "insn".
21532         (cur_insn): Likewise for this variable.
21533         (haifa_start_insn): Add a checked cast.
21534         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
21535         (sched_analyze_reg): Likewise for param "insn".
21536         (sched_analyze_1): Likewise.
21537         (sched_analyze_2): Likewise.  Add checked casts.
21538         (sched_analyze_insn): Likewise.  Also for local "prev".
21539         (deps_analyze_insn): Likewise for param "insn".
21540         (sched_analyze): Likewise for params "head", "tail" and local "insn".
21541         (add_dependence_1): Likewise for params "insn", "elem".
21542         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
21543         (parse_add_or_inc): Likewise for param "insn".
21544         (find_inc): Likewise for local "inc_cand".
21545         (find_modifiable_mems): Likewise for params "head", "tail" and
21546         locals "insn", "next_tail".
21548         * sched-ebb.c (init_ready_list): Likewise for local "insn".
21549         (begin_schedule_ready): Likewise for param "insn".
21550         (begin_move_insn): Likewise for params "insn" and "last".
21551         (ebb_print_insn): Strengthen param "insn" from const_rtx to
21552         const rtx_insn *.
21553         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
21554         (ebb_contributes_to_priority): Likewise for params "next", "insn".
21555         (ebb_add_remove_insn): Likewise for param "insn".
21556         (advance_target_bb): Likewise.
21558         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
21559         "insn".
21560         (check_live): Likewise for param "insn".
21561         (init_ready_list): Likewise for local "insn".
21562         (can_schedule_ready_p): Likewise for param "insn".
21563         (begin_schedule_ready): Likewise.
21564         (new_ready): Likewise for param "next".
21565         (rgn_print_insn): Likewise for param "insn".
21566         (rgn_rank): Likewise for params "insn1", "insn2".
21567         (contributes_to_priority): Likewise for params "next", "insn".
21568         (rgn_insn_finishes_block_p): Likewise for param "insn".
21569         (add_branch_dependences): Likewise for params "head", "tail" and
21570         locals "insn", "last".
21571         (rgn_add_remove_insn): Likewise for param "insn".
21572         (advance_target_bb): Likewise.
21574         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
21575         const_rtx to const rtx_insn *.
21577         * sel-sched-dump.h (sel_print_insn): Likewise.
21579         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
21580         (deps_init_id): Likewise.
21582         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
21583         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
21584         rtx_insn **.
21586 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21588         * output.h (final_start_function): Strengthen param 1 from rtx to
21589         rtx_insn *.
21591         * final.c (final_start_function): Likewise, renaming back from
21592         "uncast_first" to "first", and dropping the checked cast from rtx
21593         to rtx_insn *.
21595 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21597         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
21598         * final.c (final): Likewise.  Rename param back from
21599         "uncast_first" to "first" and eliminate the checked cast from rtx
21600         to rtx_insn *.
21602 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21604         * output.h (shorten_branches): Strengthen param from rtx to
21605         rtx_insn *.
21607         * final.c (shorten_branches): Likewise, renaming param back from
21608         "uncast_first" to "first", and dropping the checked cast from rtx
21609         to rtx_insn *.
21611         * genattr.c (gen_attr): Likewise when writing out the prototype of
21612         shorten_branches.
21614 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21616         * sched-int.h (struct haifa_sched_info): Strengthen fields
21617         "prev_head" and "next_tail" from rtx to rtx_insn *.
21619 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21621         * rtl.h (rtx_jump_table_data::get_labels): New method.
21622         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
21623         with use of the new rtx_jump_table_data::get_labels method.
21624         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
21625         to rtx_jump_table_data *.  Simplify by using get_labels method.
21626         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
21627         a dyn_cast, introducing local "table", using it to replace
21628         label-lookup logic with a get_labels method call.
21629         (patch_jump_insn): Simplify using get_labels method.
21630         * dwarf2cfi.c (create_trace_edges): Likewise.
21631         * rtlanal.c (label_is_jump_target_p): Likewise.
21633 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21635         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
21636         to rtx_insn *.
21638         * emit-rtl.c (unshare_all_rtl_1): Likewise.
21639         (unshare_all_rtl_again): Likewise, also for local "p".
21641 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21643         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
21644         to rtx_insn *.
21645         * cfgrtl.c (delete_insn_and_edges): Likewise.
21647 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21649         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
21650         from rtx to rtx_insn *.
21652         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
21654 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21656         * function.c (thread_prologue_and_epilogue_insns): Likewise for
21657         locals "returnjump", "epilogue_end", "insn", "next".
21659         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
21660         "returnjump" from rtx * to rtx_insn **.
21661         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
21663 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21665         * basic-block.h (struct edge_def). Strengthen "r" within
21666         union edge_def_insns from rtx to rtx_insn *.
21668         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
21669         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
21670         rtx_insn *.
21671         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
21672         from rtx to rtx_insn *.
21673         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
21674         rtx_insn *.
21675         * postreload-gcse.c (reg_killed_on_edge): Likewise.
21676         (reg_used_on_edge): Likewise.
21677         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
21678         (gt_pch_nx): New overload for rtx_insn *&.
21679         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
21680         from rtx to rtx_insn *.
21682 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21684         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
21685         from rtx to rtx_insn *.
21686         (BB_FOOTER): Replace function with access macro.
21687         (SET_BB_FOOTER): Delete.
21689         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
21690         with BB_FOOTER.
21691         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21692         (emit_barrier_after_bb): Likewise.
21693         (record_effective_endpoints): Likewise.
21694         (relink_block_chain): Likewise.
21695         (fixup_fallthru_exit_predecessor): Likewise.
21696         (cfg_layout_duplicate_bb): Likewise.
21697         (cfg_layout_split_block): Likewise.
21698         (cfg_layout_delete_block): Likewise.
21699         (cfg_layout_merge_blocks): Likewise.
21700         (BB_FOOTER): Delete function.
21701         (SET_BB_FOOTER): Delete function.
21702         * combine.c (update_cfg_for_uncondjump): Replace uses of
21703         SET_BB_FOOTER with BB_FOOTER.
21705 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21707         * except.h (struct eh_landing_pad_d): Strengthen field
21708         "landing_pad" from rtx to rtx_code_label *.
21710         * except.c (sjlj_emit_dispatch_table): Likewise for param
21711         "dispatch_label"
21712         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
21714 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21716         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
21717         first param from rtx to rtx_insn *.
21718         * config/xtensa/xtensa.c (struct machine_function): Likewise for
21719         field "set_frame_ptr_insn".
21720         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
21721         "csend" from rtx to rtx_code_label *.
21722         (xtensa_expand_atomic): Likewise for local "csloop".
21723         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
21724         rtx_insn *.
21725         (xtensa_call_tls_desc): Likewise for return type and locals
21726         "call_insn", "insns".
21727         (xtensa_legitimize_tls_address): Likewise for local "insns".
21728         (xtensa_expand_prologue): Likewise for locals "insn", "first".
21730 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21732         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
21733         first param from rtx to rtx_insn *.
21734         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
21735         "insn".
21737 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21739         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
21740         Strengthen param 1 from rtx to rtx_insn *.
21741         (tilepro_output_cbranch): Likewise.
21742         (tilepro_adjust_insn_length): Likewise.
21743         (tilepro_final_prescan_insn): Likewise for sole param.
21745         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
21746         Likewise for local "last".
21747         (cbranch_predicted_p): Likewise for param "insn".
21748         (tilepro_output_simple_cbranch_with_opcode): Likewise.
21749         (tilepro_output_cbranch_with_opcode): Likewise.
21750         (tilepro_output_cbranch): Likewise.
21751         (frame_emit_load): Likewise for return type and locals "seq",
21752         "insn".
21753         (emit_sp_adjust): Likewise for return type and local "insn".
21754         (tilepro_expand_epilogue): Likewise for locals "last_insn",
21755         "insn".
21756         (tilepro_adjust_insn_length): Likewise for param "insn".
21757         (next_insn_to_bundle): Likewise for return type and params
21758         "r", "end".
21759         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
21760         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
21761         local "new_insns".
21762         (match_addli_pcrel): Likewise for param "insn".
21763         (replace_addli_pcrel): Likewise.
21764         (match_auli_pcrel): Likewise.
21765         (replace_auli_pcrel): Likewise.
21766         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
21767         "next_insn".
21768         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
21769         "queue", "next_queue", "prev".
21770         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
21771         (tilepro_final_prescan_insn): Likewise for param "insn".
21773 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21775         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
21776         Strengthen param 1 from rtx to rtx_insn *.
21777         (tilegx_output_cbranch): Likewise.
21778         (tilegx_adjust_insn_length): Likewise.
21779         (tilegx_final_prescan_insn): Likewise for sole param.
21781         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
21782         or local "last".
21783         (cbranch_predicted_p): Likewise for param "insn".
21784         (tilegx_output_simple_cbranch_with_opcode): Likewise.
21785         (tilegx_output_cbranch_with_opcode): Likewise.
21786         (tilegx_output_cbranch): Likewise.
21787         (frame_emit_load): Likewise for return type.
21788         (set_frame_related_p): Likewise for locals "seq", "insn".
21789         (emit_sp_adjust): Likewise for return type, and for local "insn".
21790         Introduce local "pat" for use in place of "insn" where the latter
21791         isn't an instruction.
21792         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
21793         from rtx to rtx_insn *.
21794         (tilegx_adjust_insn_length): Likewise for param "insn".
21795         (next_insn_to_bundle): Likewise for return type and params "r" and
21796         "end".
21797         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
21798         "end".
21799         (replace_insns): Likewise for params "old_insn", "new_insns".
21800         (replace_mov_pcrel_step1): Likewise for param "insn" and local
21801         "new_insns".
21802         (replace_mov_pcrel_step2): Likewise.
21803         (replace_mov_pcrel_step3): Likewise.
21804         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
21805         "next_insn".
21806         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
21807         "queue", "next_queue", "prev".
21808         (tilegx_output_mi_thunk): Likewise for local "insn".
21809         (tilegx_final_prescan_insn): Likewise for param "insn".
21811 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21813         * config/spu/spu.c (frame_emit_store): Strengthen return type from
21814         rtx to rtx_insn *.
21815         (frame_emit_load): Likewise.
21816         (frame_emit_add_imm): Likewise, also for local "insn".
21817         (spu_expand_prologue): Likewise for local "insn".
21818         (struct spu_bb_info): Likewise for field "prop_jump".
21819         (emit_nop_for_insn): Likewise for param "insn" and local
21820         "new_insn".
21821         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
21822         "hbr_insn".
21823         (spu_emit_branch_hint): Likewise for params "before", "branch" and
21824         locals "hint", "insn".
21825         (get_branch_target): Likewise for param "branch".
21826         (insn_clobbers_hbr): Likewise for param "insn".
21827         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
21828         locals "insn", "before_4", "before_16".
21829         (insert_hbrp): Likewise for local "insn".
21830         (spu_machine_dependent_reorg): Likewise for locals "branch",
21831         "insn", "next", "bbend".
21832         (uses_ls_unit): Likewise for param "insn".
21833         (get_pipe): Likewise.
21834         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
21835         introducing a checked cast.
21836         (spu_sched_adjust_cost): Likewise for params "insn" and
21837         "dep_insn".
21838         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
21839         (spu_sms_res_mii): Likewise.
21841 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21843         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
21844         from rtx to rtx_insn *.
21845         (output_cbranch): Likewise for param 6.
21846         (output_return): Likewise for param 1.
21847         (output_sibcall): Likewise.
21848         (output_v8plus_shift): Likewise.
21849         (output_v8plus_mult): Likewise.
21850         (output_v9branch): Likewise for param 7.
21851         (output_cbcond):  Likewise for param 3.
21853         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
21854         for local "insn".
21855         (sparc_legitimize_pic_address): Likewise.
21856         (sparc_emit_call_insn): Likewise.
21857         (emit_save_or_restore_regs): Likewise.
21858         (emit_window_save): Likewise for return type and local "insn".
21859         (sparc_expand_prologue): Likewise for local "insn".
21860         (sparc_flat_expand_prologue): Likewise.
21861         (output_return): Likewise for param "insn".
21862         (output_sibcall): Likewise for param "insn" and local "delay".
21863         (output_ubranch): Likewise for param "insn".
21864         (output_cbranch): Likewise.
21865         (output_cbcond): Likewise.
21866         (output_v9branch): Likewise.
21867         (output_v8plus_shift): Likewise.
21868         (sparc_output_mi_thunk): Likewise for local "insn".
21869         (get_some_local_dynamic_name): Likewise.
21870         (output_v8plus_mult): Likewise for param "insn".
21872 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21874         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
21875         from rtx to rtx_insn *.
21876         (output_branchy_insn): Likewise for param 3.
21877         (output_far_jump): Likewise for param 1.
21878         (final_prescan_insn): Likewise.
21879         (sh_insn_length_adjustment): Likewise for sole param.
21881         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
21882         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
21883         rtx_code_label *.
21884         (sh_emit_compare_and_set): Likewise for local "lab".
21885         (output_far_jump): Strengthen param "insn" and local "prev" from
21886         rtx to rtx_insn *.
21887         (output_branchy_insn): Likewise for param "insn" and local
21888         "next_insn".
21889         (output_ieee_ccmpeq): Likewise for param "insn".
21890         (struct label_ref_list_d): Strengthen field "label" from rtx to
21891         rtx_code_label *.
21892         (pool_node): Likewise.
21893         (pool_window_label): Likewise for this global.
21894         (add_constant): Likewise for return type and locals "lab", "new_rtx".
21895         (dump_table): Strengthen params "start", "barrier" and local
21896         "scan" from rtx to rtx_insn *.
21897         (broken_move): Likewise for param "insn".
21898         (untangle_mova): Likewise for params "first_mova" and "new_mova".
21899         Strengthen param "first_mova" from rtx * to rtx_insn **.
21900         (mova_p): Likewise for param "insn".
21901         (fixup_mova): Likewise for param "mova".
21902         (find_barrier): Likewise for return type, params "mova" and
21903         "from", and locals "barrier_before_mova", "found_barrier",
21904         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
21905         "label" from rtx to rtx_code_label *.
21906         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
21907         rtx to rtx_insn *.
21908         (sh_reorg): Likewise for locals "link", "scan", "barrier".
21909         (split_branches): Likewise for param "first" and local "insn".
21910         (final_prescan_insn): Likewise for param "insn".
21911         (sequence_insn_p): Likewise for locals "prev", "next".
21912         (sh_insn_length_adjustment): Likewise for param "insn".
21913         (sh_can_redirect_branch): Likewise for local "insn".
21914         (find_r0_life_regions): Likewise for locals "end", "insn".
21915         (sh_output_mi_thunk): Likewise for local "insns".
21917 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21919         * config/score/score.c (score_output_mi_thunk): Strengthen local
21920         "insn" from rtx to rtx_insn *.
21921         (score_prologue): Likewise.
21923 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21925         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
21926         1 from rtx to rtx_insn *.
21927         (s390_emit_jump): Likewise for return type.
21928         (s390_emit_call): Likewise.
21929         (s390_load_got): Likewise.
21931         * config/s390/s390.c (last_scheduled_insn): Likewise for this
21932         variable.
21933         (s390_match_ccmode): Likewise for param "insn".
21934         (s390_emit_jump): Likewise for return type.
21935         (s390_split_branches): Likewise for local "label".
21936         (struct constant): Strengthen field "label" from rtx to
21937         rtx_code_label *.
21938         (struct constant_pool): Likewise for field "label".  Strengthen
21939         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
21940         rtx_insn *.
21941         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
21942         insns.
21943         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
21944         (s390_end_pool): Likewise.
21945         (s390_dump_pool): Likewise for local "insn".
21946         (s390_mainpool_start): Likewise.
21947         (s390_chunkify_start): Likewise.
21948         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
21949         with insns.  Strengthen locals "label", "jump", "barrier", "next",
21950         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
21951         (s390_chunkify_finish): Strengthen local "insn" from rtx to
21952         rtx_insn *.
21953         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
21954         "jump", "label", "next_insn".
21955         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
21956         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
21957         "tbegin_insn".
21958         (s390_load_got): Likewise for return type and local "insns".
21959         (s390_save_gprs_to_fprs): Likewise for local "insn".
21960         (s390_restore_gprs_from_fprs): Likewise.
21961         (pass_s390_early_mach::execute): Likewise.
21962         (s390_emit_prologue): Likewise for local "insns".
21963         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
21964         rtx_code_label *.
21965         (s390_emit_call): Strengthen return type and local "insn" from
21966         rtx to rtx_insn *.
21967         (s390_emit_tpf_eh_return): Likewise for local "insn".
21968         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
21969         "next_insn", introducing locals "s_pat", "rpat" to allow this.
21970         (s390_fix_long_loop_prediction): Likewise for param "insn" and
21971         local "cur_insn".
21972         (s390_non_addr_reg_read_p): Likewise for param "insn".
21973         (find_cond_jump): Likewise for return type and param "insn".
21974         (s390_swap_cmp): Likewise for param "insn".
21975         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
21976         "prev_insn", "next_insn".
21977         (s390_reorg): Likewise for locals "insn", "target".
21978         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
21979         (s390_sched_variable_issue): For now, rename param "insn" to
21980         "uncast_insn", introducing a checked cast.
21981         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
21982         insn.
21983         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
21984         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
21986 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21988         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
21989         param from rtx to rtx_insn *.
21990         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
21992 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
21994         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
21995         4 from rtx to rtx_insn *.
21996         (rs6000_final_prescan_insn): Likewise for first param.
21997         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
21998         local "insn".
21999         (rs6000_get_some_local_dynamic_name): Likewise.
22000         (output_cbranch): Likewise for param "insn".
22001         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
22002         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
22003         (rs6000_emit_allocate_stack): Likewise for local "insn".
22004         (load_cr_save): Likewise.
22005         (restore_saved_cr): Likewise.
22006         (restore_saved_lr): Likewise.
22007         (emit_cfa_restores): Likewise.
22008         (rs6000_output_function_epilogue): Likewise for locals "insn" and
22009         "deleted_debug_label".
22010         (rs6000_output_mi_thunk): Likewise for local "insn".
22011         (rs6000_final_prescan_insn): Likewise for param "insn".
22013 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22015         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
22016         Strengthen param "insn" from rtx to rtx_insn *.
22017         * config/picochip/picochip.c (picochip_current_prescan_insn):
22018         Likewise for this variable.
22019         (picochip_final_prescan_insn): Likewise for param "insn".
22021 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22023         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
22024         from rtx to rtx_insn *.
22025         (pa_output_indirect_call): Likewise.
22026         (pa_adjust_insn_length): Likewise.
22027         (pa_attr_length_millicode_call): Likewise.
22028         (pa_attr_length_call): Likewise.
22029         (pa_attr_length_indirect_call): Likewise.
22031         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
22032         "insn".
22033         (pa_attr_length_millicode_call): Likewise.
22034         (pa_attr_length_call): Likewise.
22035         (pa_output_call): Likewise.
22036         (pa_attr_length_indirect_call): Likewise.
22037         (pa_output_indirect_call): Likewise.
22039 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22041         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
22042         Strengthen first param from rtx to rtx_insn *.
22043         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
22044         param "insn".
22046 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22048         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
22049         type from rtx to rtx_insn *.
22050         (mips_expand_call): Likewise.
22051         (mips_adjust_insn_length): Likewise for first param.
22052         (mips_output_conditional_branch): Likewise.
22053         (mips_output_order_conditional_branch): Likewise.
22054         (mips_final_prescan_insn): Likewise.
22056         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
22057         rtx_insn * for the SEQUENCE case.
22058         (SEQ_END): Likewise.
22059         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
22060         (mips_emit_call_insn): Likewise, also for local "insn".
22061         (mips16_gp_pseudo_reg): Likewise for local "scan".
22062         (mips16_build_call_stub): Likewise for return type and for local
22063         "insn".  Introduce a new local "pattern" so that "insn" can indeed
22064         be an insn.
22065         (mips_expand_call): Strengthen return type and local "insn" from
22066         rtx to rtx_insn *.
22067         (mips_block_move_loop): Strengthen local "label" from rtx to
22068         rtx_code_label *.
22069         (mips_expand_synci_loop): Likewise for locals "label",
22070         "end_label".
22071         (mips_set_frame_expr): Strengthen local "insn" from rtx to
22072         rtx_insn *.
22073         (mips16e_collect_argument_saves): Likewise for locals "insn",
22074         "next".
22075         (mips_find_gp_ref): Likewise for param of callback for "pred"
22076         param, and for local "insn".
22077         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
22078         (mips_insn_has_flexible_gp_ref_p): Likewise.
22079         (mips_epilogue_emit_cfa_restores): Likewise for return type and
22080         local "insn".
22081         (mips_epilogue_set_cfa): Likewise for local "insn".
22082         (mips_expand_epilogue): Likewise.
22083         (mips_adjust_insn_length): Likewise for param "insn".
22084         (mips_output_conditional_branch): Likewise.
22085         (mips_output_order_conditional_branch): Likewise.
22086         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
22087         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
22088         "falu2_turn_enabled_insn".
22089         (mips_builtin_branch_and_move): Strengthen locals "true_label",
22090         "done_label" from rtx to rtx_code_label *.
22091         (struct mips16_constant): Likewise for field "label".
22092         (mips16_add_constant): Likewise for return type.
22093         (mips16_emit_constants_1): Strengthen return type and param "insn"
22094         from rtx to rtx_insn *.
22095         (mips16_emit_constants): Likewise for param "insn".
22096         (mips16_insn_length): Likewise.
22097         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
22098         to rtx_code_label *.
22099         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
22100         from rtx to rtx_insn *.
22101         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
22102         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
22103         (r10k_simplify_address): Strengthen param "insn" and local
22104         "def_insn" from rtx to rtx_insn *.
22105         (r10k_safe_address_p): Strengthen param "insn" from rtx to
22106         rtx_insn *.
22107         (r10k_needs_protection_p_1): Update target type of cast of data
22108         from to rtx to rtx_insn *.
22109         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
22110         rtx * to rtx_insn **.
22111         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
22112         rtx_insn *.
22113         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
22114         (mips_call_expr_from_insn): Likewise for param "insn".
22115         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
22116         (mips_find_pic_call_symbol): Likewise for param "insn".
22117         (mips_annotate_pic_calls): Likewise for local "insn".
22118         (mips_sim_insn): Likewise for this variable.
22119         (struct mips_sim): Likewise for field "insn" within elements of
22120         last_set array.
22121         (mips_sim_wait_reg): Likewise for param "insn".
22122         (mips_sim_wait_regs): Likewise.
22123         (mips_sim_wait_units): Likewise.
22124         (mips_sim_wait_insn): Likewise.
22125         (mips_sim_issue_insn): Likewise.
22126         (mips_sim_finish_insn): Likewise.
22127         (mips_seq_time): Likewise for param "seq" and local "insn".
22128         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
22129         locals "first", "second".
22130         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
22131         "last", "last2", "next".
22132         (mips_avoid_hazard): Likewise for params "after", "insn".
22133         (mips_reorg_process_insns): Likewise for locals "insn",
22134         "last_insn", "subinsn", "next_insn".
22135         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
22136         (mips16_split_long_branches): Likewise for locals "insn" "jump",
22137         "jump_sequence".
22138         (mips_output_mi_thunk): Likewise for local "insn".
22139         (mips_final_prescan_insn): Likewise for param "insn".
22141 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22143         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
22144         Strengthen return type and local "insns" from rtx to rtx_insn *.
22145         (microblaze_legitimize_tls_address): Likewise for local "insns".
22146         (microblaze_block_move_loop): Strengthen local "label" from rtx
22147         to rtx_code_label *.
22148         (microblaze_expand_prologue): Strengthen two locals named "insn"
22149         from rtx to rtx_insn *.
22150         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
22151         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
22152         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
22153         to rtx_code_label *.
22155 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22157         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
22158         param from rtx to rtx_insn *.
22159         (mep_reuse_lo): Likewise for third param.
22160         (mep_use_post_modify_p): Likewise for first param.
22161         (mep_core_address_length): Likewise.
22162         (mep_cop_address_length): Likewise.
22163         (mep_final_prescan_insn): Likewise.
22164         (mep_store_data_bypass_p): Likewise for both params.
22165         (mep_mul_hilo_bypass_p): Likewise.
22166         (mep_ipipe_ldc_p): Likewise for param.
22168         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
22169         (mep_rewrite_mult): Likewise.
22170         (mep_rewrite_mulsi3): Likewise.
22171         (mep_rewrite_maddsi3): Likewise.
22172         (mep_reuse_lo_p_1): Likewise.
22173         (mep_reuse_lo_p): Likewise.
22174         (mep_frame_expr): Likewise.
22175         (mep_make_parallel): Likewise for both params.
22176         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
22177         local "insn".
22178         (mep_use_post_modify_p): Likewise for param "insn".
22179         (mep_core_address_length): Likewise.
22180         (mep_cop_address_length): Likewise.
22181         (mep_reg_set_in_function): Likewise for local "insn".
22182         (mep_asm_without_operands_p): Likewise.
22183         (F): Likewise for return type and param "x".
22184         (add_constant): Likewise for local "insn".
22185         (maybe_dead_move): Likewise for return type and local "insn".
22186         (mep_expand_prologue): Likewise for local "insn".
22187         (mep_final_prescan_insn): Likewise for param "insn".
22188         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
22189         "next", "follow", "x".
22190         (mep_insert_repeat_label_last): Likewise for return type, param
22191         "last_insn", and locals "next", "prev".  Strengthen param "label"
22192         from rtx to rtx_code_label *.
22193         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
22194         rtx_insn *.
22195         (struct mep_doloop_end): Likewise for fields "insn" and
22196         "fallthrough".
22197         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
22198         Strengthen local "repeat_label" from rtx to rtx_code_label *.
22199         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
22200         rtx_insn *.
22201         (mep_invert_branch): Likewise for params "insn" and "after".
22202         (mep_reorg_erepeat): Likewise for param "insns" and locals
22203         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
22204         "l" from rtx to rtx_code_label *.
22205         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
22206         from rtx to rtx_insn *.
22207         (mep_reorg_addcombine): Likewise for param "insns" and locals
22208         "i", "n".
22209         (add_sp_insn_p): Likewise for param "insn".
22210         (mep_reorg_noframe): Likewise for param "insns" and locals
22211         "start_frame_insn", "end_frame_insn", "next".
22212         (mep_reorg): Likewise for local "insns".
22213         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
22214         cast.
22215         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
22216         (mep_mul_hilo_bypass_p): Likewise.
22217         (mep_ipipe_ldc_p): Likewise for param "insn".
22218         (mep_make_bundle): Likewise for return type, param "cop" and local
22219         "insn", splitting out the latter into a new local "seq" for when it
22220         is a SEQUENCE rather than an insn.
22221         (core_insn_p): Likewise for param "insn".
22222         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
22223         "last", "first", "note", "prev", "core_insn".
22225 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22227         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
22228         rtx to rtx_insn *.
22229         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
22230         (m68k_final_prescan_insn): Likewise for first param.
22232         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
22233         (m68k_set_frame_related): Likewise for param "insn".
22234         (output_btst): Likewise for param "insn".
22235         (m68k_final_prescan_insn): Likewise.
22236         (m68k_move_to_reg): Likewise for local "insn".
22237         (m68k_call_tls_get_addr): Likewise for local "insns".
22238         (m68k_call_m68k_read_tp): Likewise.
22239         (strict_low_part_peephole_ok): Likewise for param "first_insn".
22240         (m68k_output_mi_thunk): Likewise for local "insn".
22242 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22244         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
22245         first param from rtx to rtx_insn *.
22246         (iq2000_adjust_insn_length): Likewise.
22247         (iq2000_output_conditional_branch): Likewise.
22248         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
22249         "insn" and local "nop_insn".
22250         (iq2000_annotate_frame_insn): Likewise for param "insn".
22251         (iq2000_expand_prologue): Likewise for both locals "insn".
22252         (iq2000_adjust_insn_length): Likewise for param "insn".
22253         (iq2000_output_conditional_branch): Likewise.
22255 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22257         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
22258         "insns" from rtx to rtx_insn *.
22259         (ia64_emit_cond_move): Likewise for locals "insn", "first".
22260         (struct spill_fill_data): Likewise for field "init_after" and for
22261         elements of array field "prev_insn".
22262         (spill_restore_mem): Likewise for locals "insn", "first".
22263         (do_spill): Likewise for local "insn".
22264         (do_restore): Likewise.
22265         (ia64_expand_prologue): Likewise.
22266         (ia64_expand_epilogue): Likewise.
22267         (emit_insn_group_barriers): Likewise for locals "insn",
22268         "last_label".
22269         (emit_all_insn_group_barriers): Likewise for locals "insn",
22270         "last".
22271         (dfa_stop_insn): Likewise for this global.
22272         (dfa_pre_cycle_insn): Likewise.
22273         (ia64_nop): Likewise.
22274         (final_emit_insn_group_barriers): Likewise for locals "insn",
22275         "last".
22276         (emit_predicate_relation_info): Likewise for locals "head", "n",
22277         "insn", "b", "a".
22278         (ia64_reorg): Likewise for local "insn".
22279         (ia64_output_mi_thunk): Likewise.
22280         (expand_vec_perm_interleave_2): Likewise for local "seq".
22282 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22284         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
22285         param 1 "insn" from rtx to rtx_insn *.
22286         (ix86_use_lea_for_mov): Likewise.
22287         (ix86_avoid_lea_for_addr): Likewise.
22288         (ix86_split_lea_for_addr): Likewise.
22289         (ix86_lea_for_add_ok): Likewise.
22290         (ix86_output_call_insn): Likewise.
22292         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
22293         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
22294         (ix86_output_function_epilogue): Likewise for locals "insn",
22295         "deleted_debug_label".
22296         (legitimize_tls_address): Likewise for local "insn".
22297         (get_some_local_dynamic_name): Likewise.
22298         (increase_distance): Likewise for params "prev", "next".
22299         (distance_non_agu_define_in_bb): Likewise for params "insn",
22300         "start" and locals "prev", "next".
22301         (distance_non_agu_define): Likewise for param "insn".
22302         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
22303         locals "next", "prev".
22304         (distance_agu_use): Likewise for param "insn".
22305         (ix86_lea_outperforms): Likewise.
22306         (ix86_ok_to_clobber_flags): Likewise.
22307         (ix86_avoid_lea_for_add): Likewise.
22308         (ix86_use_lea_for_mov): Likewise.
22309         (ix86_avoid_lea_for_addr): Likewise.
22310         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
22311         (ix86_split_lea_for_addr): Likewise for param "insn".
22312         (ix86_lea_for_add_ok): Likewise for param "insn".
22313         (ix86_expand_carry_flag_compare): Likewise for local
22314         "compare_seq".
22315         (ix86_expand_int_movcc): Likewise.
22316         (ix86_output_call_insn): Likewise for param "insn".
22317         (ix86_output_call_insn): Likewise for local "i".
22318         (x86_output_mi_thunk): Introduce local "insn", using it in place
22319         of "tmp" when dealing with insns.
22320         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
22321         "start".
22322         (ix86_pad_returns): Likewise for locals "ret", "prev".
22323         (ix86_count_insn_bb): Likewise for local "insn".
22324         (ix86_pad_short_function): Likewise for locals "ret", "insn".
22325         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
22326         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
22327         (expand_vec_perm_interleave2): Likewise for local "seq".
22328         (expand_vec_perm_vperm2f128_vblend): Likewise.
22329         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
22330         call to for_each_rtx with for_each_rtx_in_insn.
22332 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22334         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
22335         "label" from rtx to rtx_code_label *.
22336         (ix86_expand_prologue): Likewise.
22337         (ix86_expand_split_stack_prologue): Likewise for locals "label",
22338         "varargs_label".
22339         (ix86_split_idivmod): Likewise for locals "end_label" and
22340         "qimode_label".
22341         (ix86_expand_branch): Likewise for local "label2".
22342         (ix86_expand_aligntest): Likewise for return type and local "label".
22343         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
22344         "top_label".
22345         (expand_movmem_epilogue): Likewise for the various locals named
22346         "label".
22347         (expand_setmem_epilogue): Likewise.
22348         (expand_small_movmem_or_setmem): Likewise for local "label".
22349         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
22350         Strengthen param "done_label" from rtx * to rtx_code_label **.
22351         Strengthen locals "loop_label" and "label" from rtx to
22352         rtx_code_label *.
22353         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
22354         Likewise for locals "loop_label", "label".
22355         (ix86_expand_set_or_movmem): Likewise for locals "label",
22356         "jump_around_label", "hot_label".
22357         (ix86_expand_strlensi_unroll_1): Likewise for locals
22358         "align_2_label", align_3_label", "align_4_label", "end_0_label",
22359         "end_2_label".
22360         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
22361         (void ix86_emit_i387_log1p): Likewise for locals "label1",
22362         "label2", "jump_label".
22363         (ix86_expand_sse_compare_and_jump): Likewise for return type and
22364         local "label".
22365         (ix86_expand_lfloorceil): Likewise for local "label".
22366         (ix86_expand_rint): Likewise.
22367         (ix86_expand_floorceildf_32): Likewise.
22368         (ix86_expand_floorceil): Likewise.
22369         (ix86_expand_rounddf_32): Likewise.
22370         (ix86_expand_trunc): Likewise.
22371         (ix86_expand_truncdf_32): Likewise.
22372         (ix86_expand_round): Likewise.
22374 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22376         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
22377         first param from rtx to rtx_insn *.
22378         (h8300_insn_length_from_table): Likewise.
22379         * config/h8300/h8300.c (F): Likewise for return type and param
22380         "x".
22381         (Fpa): Add a checked cast to rtx_insn *.
22382         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
22383         rtx_insn *.
22384         (final_prescan_insn): Likewise for param "insn".
22385         (h8300_binary_length): Likewise.
22386         (h8300_insn_length_from_table): Likewise.
22388 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22390         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
22391         Strengthen first param "insn" from rtx to rtx_insn *.
22393         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
22394         Likewise.
22395         (frame_insn): Likewise for return type.  Introduce local "insn"
22396         for use in place of local "x" for use as an rtx_insn *.
22397         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
22398         (epiphany_expand_prologue): Likewise for local "insn".
22399         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
22400         * config/epiphany/resolve-sw-modes.c
22401         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
22402         "seq".
22404 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22406         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
22407         param from rtx to rtx_insn *.
22408         (c6x_final_prescan_insn): Likewise for first param.
22410         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
22411         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
22412         (c6x_expand_compare): Strengthen local "insns" from rtx to
22413         rtx_insn *.
22414         (c6x_get_unit_specifier): Likewise for param "insn".
22415         (c6x_print_unit_specifier_field): Likewise.
22416         (c6x_final_prescan_insn): Likewise.
22417         (emit_add_sp_const): Likewise for local "insn".
22418         (c6x_expand_prologue): Likewise.
22420 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22422         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
22423         param 1 from rtx to rtx_insn *.
22424         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
22425         the various locals named "insn".
22426         (expand_epilogue_reg_restore): Likewise.
22427         (frame_related_constant_load): Likewise.
22428         (add_to_reg): Likewise.
22429         (emit_link_insn): Likewise.
22430         (do_link): Likewise.
22431         (expand_interrupt_handler_prologue): Likewise.
22432         (branch_dest): Likewise for param "branch".
22433         (asm_conditional_branch): Likewise for param "insn".
22434         (gen_one_bundle): Likewise for elements of param "slot" and local
22435         "t".
22436         (bfin_gen_bundles): Likewise for locals "insn", "next" and
22437         elements of local "slot".
22438         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
22439         "queue", "next_queue", "prev".
22440         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
22441         (add_sched_insns_for_speculation): Likewise for local "insn".
22443 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22445         * config/avr/avr-protos.h (output_movqi): Strengthen first param
22446         from rtx to rtx_insn *.
22447         (output_movhi): Likewise.
22448         (output_movsisf): Likewise.
22449         (avr_out_tstsi): Likewise.
22450         (avr_out_tsthi): Likewise.
22451         (avr_out_tstpsi): Likewise.
22452         (avr_out_compare): Likewise.
22453         (avr_out_compare64): Likewise.
22454         (avr_out_movpsi): Likewise.
22455         (ashlqi3_out): Likewise.
22456         (ashlhi3_out): Likewise.
22457         (ashlsi3_out): Likewise.
22458         (ashrqi3_out): Likewise.
22459         (ashrhi3_out): Likewise.
22460         (ashrsi3_out): Likewise.
22461         (lshrqi3_out): Likewise.
22462         (lshrhi3_out): Likewise.
22463         (lshrsi3_out): Likewise.
22464         (avr_out_ashlpsi3): Likewise.
22465         (avr_out_ashrpsi3): Likewise.
22466         (avr_out_lshrpsi3): Likewise.
22467         (avr_out_fract): Likewise.
22468         (avr_out_sbxx_branch): Likewise.
22469         (avr_out_round): Likewise.
22470         (avr_out_xload): Likewise.
22471         (avr_out_movmem): Likewise.
22472         (adjust_insn_length): Likewise.
22473         (avr_out_lpm): Likewise.
22474         (reg_unused_after): Likewise.
22475         (_reg_unused_after): Likewise.
22476         (avr_jump_mode): Likewise for second param.
22477         (jump_over_one_insn): Likewise for first param.
22478         (avr_final_prescan_insn): Likewise.
22479         (out_shift_with_cnt): Likewise for second param.
22481         * config/avr/avr.c (get_sequence_length): Likewise for param
22482         "insns" and local "insn".
22483         (emit_push_byte): Likewise for local "insn".
22484         (emit_push_sfr): Likewise.
22485         (avr_prologue_setup_frame): Likewise for locals "insn",
22486         "fp_plus_insns", "sp_plus_insns".
22487         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
22488         "sp_plus_insns".
22489         (avr_jump_mode): Likewise for param "insn".
22490         (avr_final_prescan_insn): Likewise.
22491         (avr_find_unused_d_reg): Likewise.
22492         (avr_out_lpm_no_lpmx): Likewise.
22493         (avr_out_lpm): Likewise.
22494         (avr_out_xload): Likewise.
22495         (output_movqi): Likewise.
22496         (output_movhi): Likewise.
22497         (out_movqi_r_mr): Likewise.
22498         (out_movhi_r_mr): Likewise.
22499         (out_movsi_r_mr): Likewise.
22500         (out_movsi_mr_r): Likewise.
22501         (output_movsisf): Likewise.
22502         (avr_out_load_psi): Likewise.
22503         (avr_out_store_psi): Likewise.
22504         (avr_out_movpsi): Likewise.
22505         (out_movqi_mr_r): Likewise.
22506         (avr_out_movhi_mr_r_xmega): Likewise.
22507         (out_movhi_mr_r): Likewise.
22508         (compare_condition): Likewise for param "insn" and local "next".
22509         (compare_sign_p): Likewise for param "insn".
22510         (compare_diff_p): Likewise.
22511         (compare_eq_p): Likewise.
22512         (avr_out_compare): Likewise.
22513         (avr_out_compare64): Likewise.
22514         (avr_out_tsthi): Likewise.
22515         (avr_out_tstpsi): Likewise.
22516         (avr_out_tstsi): Likewise.
22517         (out_shift_with_cnt): Likewise.
22518         (ashlqi3_out): Likewise.
22519         (ashlhi3_out): Likewise.
22520         (avr_out_ashlpsi3): Likewise.
22521         (ashlsi3_out): Likewise.
22522         (ashrqi3_out): Likewise.
22523         (ashrhi3_out): Likewise.
22524         (avr_out_ashrpsi3): Likewise.
22525         (ashrsi3_out): Likewise.
22526         (lshrqi3_out): Likewise.
22527         (lshrhi3_out): Likewise.
22528         (avr_out_lshrpsi3): Likewise.
22529         (lshrsi3_out): Likewise.
22530         (avr_out_fract): Likewise.
22531         (avr_out_round): Likewise.
22532         (avr_adjust_insn_length): Likewise.
22533         (reg_unused_after): Likewise.
22534         (_reg_unused_after): Likewise.
22535         (avr_compare_pattern): Likewise.
22536         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
22537         and locals "branch1", "branch2", "insn2", "jump".
22538         (avr_reorg): Likewise for local "insn".
22539         (avr_2word_insn_p): Likewise for param "insn".
22540         (jump_over_one_insn_p): Likewise.
22541         (avr_out_sbxx_branch): Likewise.
22542         (avr_out_movmem): Likewise.
22544 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22546         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
22547         param from rtx to rtx_insn *.
22548         (thumb1_final_prescan_insn): Likewise.
22549         (thumb2_final_prescan_insn): Likewise.
22551         * config/arm/arm.c (emit_set_insn): Strengthen return type from
22552         rtx to rtx_insn *.
22553         (struct minipool_node): Likewise for field "insn".
22554         (dump_minipool): Likewise for param "scan".
22555         (create_fix_barrier): Likewise for local "from".  Strengthen local
22556         "label" from rtx to rtx_code_label *.
22557         (push_minipool_barrier): Strengthen param "insn" from rtx to
22558         rtx_insn *.
22559         (push_minipool_fix): Likewise.
22560         (note_invalid_constants): Likewise.
22561         (thumb2_reorg): Likewise for local "insn".
22562         (arm_reorg): Likewise.
22563         (thumb2_final_prescan_insn): Likewise for param
22564         "insn" and local "first_insn".
22565         (arm_final_prescan_insn): Likewise for param "insn" and locals
22566         "start_insn", "this_insn".
22567         (arm_debugger_arg_offset): Likewise for param "insn".
22568         (thumb1_emit_multi_reg_push): Likewise for return type and local
22569         "insn".
22570         (thumb1_final_prescan_insn): Likewise for param "insn".
22571         (thumb_far_jump_used_p): Likewise for local "insn".
22572         (thumb1_expand_prologue): Likewise.
22573         (arm_expand_epilogue_apcs_frame): Likewise.
22574         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
22575         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
22576         from rtx to rtx_code_label *.
22577         (arm_split_atomic_op): Likewise for local "label".
22578         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
22580 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22582         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
22583         first param from rtx to rtx_insn *.
22584         (arc_verify_short): Likewise.
22585         (arc_short_long): Likewise.
22586         (arc_need_delay): Likewise.
22588         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
22589         "target_insn".
22590         (arc_ccfsm_advance): Likewise for param "insn" and locals
22591         "start_insn", "this_insn".
22592         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
22593         (arc_ccfsm_post_advance): Likewise for param "insn".
22594         (arc_next_active_insn): Likewise for return type and param "insn".
22595         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
22596         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
22597         (output_short_suffix): Likewise for local "insn".
22598         (arc_final_prescan_insn): Likewise for param "insn".  Remove
22599         now-redundant checked cast.
22600         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
22601         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
22602         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
22603         for use where lc_set became an insn.
22604         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
22605         rtx to rtx_insn *.
22606         (arc_get_insn_variants): Likewise for local "prev".
22607         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
22608         "next".
22609         (arc_predicate_delay_insns): Likewise for local "insn".
22610         (arc_pad_return): Likewise for local "prev".  For now, add a
22611         checked cast when extracting the insn from "final_sequence".
22612         (arc_short_long): Likewise for param "insn".
22613         (arc_need_delay): Likewise for param "insn" and local "next".
22614         (arc_label_align): Likewise for locals "prev", "next".
22616 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22618         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
22619         "insn" from rtx to rtx_insn *.
22620         (alpha_gp_save_rtx): Likewise for local "seq".
22621         (alpha_instantiate_decls): Likewise for local "top".
22622         (get_some_local_dynamic_name): Likewise for local "insn".
22623         (alpha_does_function_need_gp): Likewise.
22624         (set_frame_related_p): Likewise for return type and for locals
22625         "seq" and "insn".
22626         (emit_frame_store_1): Likewise for local "insn".
22627         (alpha_expand_prologue): Likewise for locals "insn", "seq".
22628         (alpha_end_function): Likewise for local "insn".
22629         (alpha_output_mi_thunk_osf): Likewise.
22630         (alphaev4_insn_pipe): Likewise for param "insn".
22631         (alphaev5_insn_pipe): Likewise.
22632         (alphaev4_next_group): Likewise for return type and param 1
22633         "insn".
22634         (alphaev5_next_group): Likewise.
22635         (alpha_align_insns_1): Likewise for return type and param 1 of
22636         callback param "next_group", and for locals "i", "next", "prev",
22637         "where", "where2", "insn".
22639 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
22641         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
22642         rather than modifying the stmt.
22644 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22646         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
22647         cgraph_state conversion.
22649 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22651         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22652         Strengthen local "insns" from rtx to rtx_insn *.
22653         (aarch64_set_frame_expr): Likewise for local "insn".
22654         (aarch64_save_or_restore_fprs): Likewise.
22655         (aarch64_save_or_restore_callee_save_registers): Likewise.
22656         (aarch64_expand_prologue): Likewise.
22657         (aarch64_expand_epilogue): Likewise.
22658         (aarch64_output_mi_thunk): Likewise.
22659         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
22660         "label2" from rtx to rtx_code_label *.
22661         (aarch64_split_atomic_op): Likewise for local "label".
22663 2014-08-25  Martin Liska  <mliska@suse.cz>
22665         * cgraph.h (symtab_node):
22666         (bool needed_p (void)): created from decide_is_symbol_needed
22667         (bool referred_to_p (void)): created from referred_to_p
22668         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
22669         * cgraph.h (cgraph_node):
22670         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
22671         (void expand (void)): created from expand_function
22672         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
22673         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
22674         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
22675         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
22676         * cgraph.h (varpool_node):
22677         (static void add (tree decl): created from varpool_add_new_variable
22678         * cgraph.h (cgraph_edge):
22679         void remove (void);
22680         (void remove_caller (void)): created from cgraph_edge_remove_caller
22681         (void remove_callee (void)): created from cgraph_edge_remove_callee
22682         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
22683           created from cgraph_set_call_stmt
22684         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
22685         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
22686         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
22687           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
22688         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
22689           created from cgraph_speculative_call_info
22690         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
22691           int freq_scale, bool update_original)): created from cgraph_clone_edge
22692         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
22693         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
22694         (bool recursive_p (void)): created from cgraph_edge_recursive_p
22695         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
22696         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
22697         (static void rebuild_references (void)): created from cgraph_rebuild_references
22698         * cgraph.h (symbol_table):
22699         (create_reference): renamed from add_reference
22700         (maybe_create_reference): renamed from maybe_add_reference
22701         (void register_symbol (symtab_node *node)): new function
22702         (void clear_asm_symbols (void)): new function
22703         (void unregister (symtab_node *node)): new function
22704         (void release_symbol (cgraph_node *node, int uid)): new function
22705         (cgraph_node * allocate_cgraph_symbol (void)): new function
22706         (void initialize (void)): created from cgraph_init
22707         (symtab_node *first_symbol (void)):new function
22708         (asm_node *first_asm_symbol (void)):new function
22709         (symtab_node *first_defined_symbol (void)):new function
22710         (varpool_node *first_variable (void)):new function
22711         (varpool_node *next_variable (varpool_node *node)):new function
22712         (varpool_node *first_static_initializer (void)):new function
22713         (varpool_node *next_static_initializer (varpool_node *node)):new function
22714         (varpool_node *first_defined_variable (void)):new function
22715         (varpool_node *next_defined_variable (varpool_node *node)):new function
22716         (cgraph_node *first_defined_function (void)):new function
22717         (cgraph_node *next_defined_function (cgraph_node *node)):new function
22718         (cgraph_node *first_function (void)):new function
22719         (cgraph_node *next_function (cgraph_node *node)):new function
22720         (cgraph_node *first_function_with_gimple_body (void)):new function
22721         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
22722         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
22723           created from symtab_remove_unreachable_nodes
22724         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
22725         (void process_new_functions (void)): created from cgraph_process_new_functions
22726         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
22727         (bool output_variables (void)): created from varpool_node::output_variables
22728         (void output_asm_statements (void)): created from output_asm_statements
22729         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
22730         (void compile (void)): created from compile
22731         (void output_weakrefs (void)): created from output_weakrefs
22732         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
22733         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
22734           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
22735         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
22736         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
22737           created from cgraph_next_function_with_gimple_body
22738         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
22739           created from cgraph_remove_edge_removal_hook
22740         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
22741           created from cgraph_add_node_removal_hook
22742         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
22743           created from cgraph_remove_node_removal_hook
22744         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
22745           created from varpool_add_node_removal_hook
22746         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
22747           created from varpool_remove_node_removal_hook
22748         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
22749           created from cgraph_add_function_insertion_hook
22750         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
22751           created from cgraph_remove_function_insertion_hook
22752         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
22753           created from varpool_add_variable_insertion_hook
22754         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
22755           created from varpool_remove_variable_insertion_hook
22756         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
22757           created from cgraph_add_edge_duplication_hook
22758         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
22759           created from cgraph_remove_edge_duplication_hook
22760         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
22761           created from cgraph_add_node_duplication_hook
22762         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
22763           created from cgraph_remove_node_duplication_hook
22764         (void call_edge_removal_hooks (cgraph_edge *e)):
22765           created from cgraph_call_edge_removal_hooks
22766         (void call_cgraph_insertion_hooks (cgraph_node *node)):
22767           created from call_function_insertion_hooks
22768         (void call_cgraph_removal_hooks (cgraph_node *node)):
22769           created from cgraph_call_node_removal_hooks
22770         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
22771           created from cgraph_node::call_duplication_hooks
22772         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
22773           created from cgraph_call_edge_duplication_hooks
22774         (void call_varpool_removal_hooks (varpool_node *node)):
22775           created from varpool_call_node_removal_hooks
22776         (void call_varpool_insertion_hooks (varpool_node *node)):
22777           created from varpool_call_variable_insertion_hooks
22778         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
22779           created from insert_to_assembler_name_hash
22780         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
22781           created from unlink_from_assembler_name_hash
22782         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
22783           created from symtab_prevail_in_asm_name_hash
22784         (void symtab_initialize_asm_name_hash (void)):
22785           created from symtab_initialize_asm_name_hash
22786         (void change_decl_assembler_name (tree decl, tree name)):
22787           created from change_decl_assembler_name
22788         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
22789         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
22790           created from decl_assembler_name_hash
22791         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
22792           created from decl_assembler_name_equal
22793         (static hashval_t hash_node_by_assembler_name (const void *p)):
22794           created from hash_node_by_assembler_name
22795         (static int eq_assembler_name (const void *p1, const void *p2)):
22796           created from eq_assembler_name
22798 2014-08-25  Marek Polacek  <polacek@redhat.com>
22800         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
22802 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
22804         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
22805         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
22806         SWI1248_AVX512BW mode iterator.
22808 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
22810         PR target/62111
22811         * config/sh/predicates.md (general_extend_operand): Disable
22812         TRUNCATE before reload completes.
22814 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
22816         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
22818 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
22820         PR target/61996
22821         * config/sh/sh.opt (musermode): Allow negative form.
22822         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
22823         targets that don't support it.
22824         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
22825         Document -mno-usermode option.
22827 2014-08-24  Kito Cheng  <kito@0xlab.org>
22829         * system.h (CALLER_SAVE_PROFITABLE): Poison.
22830         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
22831         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
22832         * doc/tm.texi: Regenerate.
22834 2014-08-24  Kito Cheng  <kito@0xlab.org>
22836         * ira.c: Fix typo in comment.
22838 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
22840         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
22841         Deprecate c++1y. Change language to reflect greater confidence in C++14.
22843 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
22845         PR target/62038
22846         * config/pa/pa.c (pa_output_function_epilogue): Don't set
22847         last_address when the current function is a thunk.
22848         (pa_asm_output_mi_thunk): When we don't have named sections or they
22849         are not being used, check that thunk can reach the stub table with a
22850         short branch.
22852 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
22854         * web.c (union_match_dups): Strengthen param "insn" from rtx to
22855         rtx_insn *.
22856         (pass_web::execute): Likewise for local "insn".
22858 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
22860         * var-tracking.c (struct micro_operation_def): Strengthen field
22861         "insn" from rtx to rtx_insn *.
22862         (struct emit_note_data_def): Likewise.
22863         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
22864         (vt_stack_adjustments): Likewise for local "insn".
22865         (adjust_insn): Likewise for param "insn".
22866         (val_store): Likewise.
22867         (val_resolve): Likewise.
22868         (struct count_use_info): Likewise for field "insn".
22869         (log_op_type): Likewise for param "insn".
22870         (reverse_op): Likewise.
22871         (prepare_call_arguments): Likewise.
22872         (add_with_sets):  The initial param takes an insn, but we can't
22873         yet strengthen it from rtx to rtx_insn * since it's used as a
22874         cselib_record_sets_hook callback.  For now rename initial param
22875         from "insn" to "uncast_insn", and introduce a local "insn" of
22876         the stronger rtx_insn * type, with a checked cast.
22877         (compute_bb_dataflow): Strengthen local "insn" from rtx to
22878         rtx_insn *.
22879         (emit_note_insn_var_location): Likewise.
22880         (emit_notes_for_changes): Likewise.
22881         (emit_notes_for_differences): Likewise.
22882         (next_non_note_insn_var_location): Likewise for return type and
22883         for param "insn".
22884         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
22885         (vt_initialize): Likewise for local "insn".
22886         (delete_debug_insns): Likewise for locals "insn" and "next".
22888 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
22890         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
22891         rtx_insn *.
22892         (mark_constant_pool): Likewise for local "insn".
22894 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
22896         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
22897         rtx to rtx_insn *.
22898         (dead_debug_promote_uses): Likewise.
22899         (dead_debug_insert_temp): Likewise.
22901 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
22903         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
22904         from const_rtx to const rtx_insn *.
22905         (store_killed_after): Likewise.  Strengthen locals "last", "act"
22906         from rtx to rtx_insn *.
22907         (store_killed_before): Strengthen param "insn" from const_rtx to
22908         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
22909         (find_moveable_store): Strengthen param "insn" from rtx to
22910         rtx_insn *.
22911         (compute_store_table): Likewise for local "insn".
22912         (insert_insn_start_basic_block): Likewise for param "insn" and
22913         locals "prev", "before", "insn".
22914         (insert_store): For now, add a checked cast to rtx_insn * on the
22915         result of gen_move_insn.
22916         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
22917         to rtx_insn *.
22918         (replace_store_insn): Likewise.  For now, add a checked cast to
22919         rtx_insn * on the result of gen_move_insn.
22921 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22923         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
22924         rtx_insn *.
22925         (expand_sjlj_dispatch_table): Likewise.
22927 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22929         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
22930         "insn" from rtx to rtx_insn *.
22932 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22934         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
22935         "insn" from rtx to rtx_insn *.
22936         (dup_block_and_redirect): Likewise for param 3 "before".
22938         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
22939         from rtx to rtx_insn *.
22940         (move_insn_for_shrink_wrap): Likewise.
22941         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
22942         (dup_block_and_redirect): Likewise for param "before" and local
22943         "insn".
22944         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
22945         "end".
22946         (convert_to_simple_return): Likewise for local "start".
22948         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
22949         Strengthen local "insn" from rtx to rtx_insn *, for use when
22950         invoking requires_stack_frame_p.
22952 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22954         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
22955         rtx_insn *.
22956         (speculate_expr): Likewise for locals "orig_insn_rtx",
22957         "spec_insn_rtx".
22958         (eq_transformed_insns): Likewise for locals "i1", "i2".
22959         (check_for_new_jump): Likewise for return type and local "end".
22960         (find_new_jump): Likewise for return type and local "jump".
22961         (sel_split_edge): Likewise for local "jump".
22962         (sel_create_recovery_block): Likewise.
22963         (sel_redirect_edge_and_branch_force): Likewise.
22964         (sel_redirect_edge_and_branch): Likewise.
22966 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22968         * sel-sched.c (substitute_reg_in_expr): Strengthen local
22969         "new_insn" from rtx to rtx_insn *.
22970         (create_insn_rtx_with_rhs): Likewise for return type and for local
22971         "insn_rtx".
22972         (create_insn_rtx_with_lhs): Likewise.
22973         (create_speculation_check): Likewise for local "insn_rtx".
22974         (implicit_clobber_conflict_p): Likewise for local "insn".
22975         (get_expr_cost): Likewise.
22976         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
22977         (move_cond_jump): Likewise for locals "next", "prev", "link",
22978         "head", "from", "to".
22980 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22982         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
22983         "next" from rtx to rtx_insn *.
22984         (find_conditional_protection): Likewise for local "next".
22985         (is_conditionally_protected): Likewise for local "insn1".
22986         (is_pfree): Likewise for locals "insn1", "insn2".
22988 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
22990         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
22991         from rtx to rtx_insn *.
22993         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
22994         locals "insn1", "insn2" from rtx to rtx_insn *.
22995         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
22996         locals "insn", "prev", "last_jump", "next_tail".
22997         (schedule_ebb): Likewise for params "head", "tail".
22998         (schedule_ebbs): Likewise for locals "tail", "head".
23000         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
23001         to rtx_insn on "last_insn" in one of the invocations of
23002         schedule_ebb.
23004 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23006         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
23007         "elem", "insn" from rtx to rtx_insn *.
23008         (change_spec_dep_to_hard): Likewise.
23009         (get_back_and_forw_lists): Likewise for local "con".
23010         (sd_add_dep): Likewise for locals "elem", "insn".
23011         (sd_resolve_dep): Likewise for locals "pro", "con".
23012         (sd_unresolve_dep): Likewise.
23013         (sd_delete_dep): Likewise.
23014         (chain_to_prev_insn): Likewise for local "pro".
23015         (find_inc): Likewise for locals "pro", "con".
23017 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23019         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
23020         to rtx_insn *.
23021         (reg_set_between_p): Strengthen local "insn" from const_rtx to
23022         const rtx_insn *.
23023         (modified_between_p): Strengthen local "insn" from rtx to
23024         rtx_insn *.
23025         (remove_reg_equal_equiv_notes_for_regno): Likewise.
23026         (keep_with_call_p): Strengthen local "i2" from const_rtx to
23027         const rtx_insn *.
23029 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23031         * resource.c (next_insn_no_annul): Strengthen local "next" from
23032         rtx to rtx_insn *.
23033         (mark_referenced_resources): Likewise for local "insn".
23035 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23037         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
23038         to rtx_insn *.
23039         (find_reloads): Likewise for param 1.
23040         (subst_reloads): Likewise for sole param.
23041         (find_equiv_reg): Likwise for param 2.
23042         (regno_clobbered_p): Likwise for param 2.
23043         (reload): Likewise for param 1.
23045         * caller-save.c (save_call_clobbered_regs): Strengthen local
23046         "insn" from rtx to rtx_insn *.
23047         (insert_one_insn): Likewise for local "insn".
23049         * reload.c (this_insn): Likewise for this global.
23050         (find_reloads): Likewise for param "insn".
23051         (find_reloads_toplev): Likewise.
23052         (find_reloads_address): Likewise.
23053         (subst_reg_equivs): Likewise.
23054         (update_auto_inc_notes): Likewise.
23055         (find_reloads_address_1): Likewise.
23056         (find_reloads_subreg_address): Likewise.
23057         (subst_reloads): Likewise.
23058         (find_equiv_reg): Likewise, also for local "p".
23059         (regno_clobbered_p): Likewise for param "insn".
23061         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
23062         array.
23063         (spill_reg_store): Likewise for the elements of this array.
23064         (remove_init_insns): Likewise for local "equiv_insn".
23065         (will_delete_init_insn_p): Likewise for param "insn".
23066         (reload): Likewise for param ""first" and local "insn".
23067         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
23068         rtx_insn *.
23069         (calculate_elim_costs_all_insns): Likewise.
23070         (delete_caller_save_insns): Likewise.
23071         (spill_failure): Likewise for param "insn".
23072         (delete_dead_insn): Likewise.
23073         (set_label_offsets): Likewise.
23074         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
23075         "prev_insn".
23076         (elimination_costs_in_insn): Likewise for param "insn".
23077         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
23078         when referring to an insn.
23079         (set_initial_label_offsets): Likewise.
23080         (set_offsets_for_label): Strengthen param "insn" from rtx to
23081         rtx_insn *.
23082         (init_eliminable_invariants): Likewise for param "first" and local
23083         "insn".
23084         (fixup_eh_region_note): Likewise for param "insn".
23085         (reload_as_needed): Likewise for locals "prev", "insn",
23086         "old_next", "old_prev", "next".
23087         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
23088         "last".
23089         (reload_inheritance_insn): Strengthen elements of this array from
23090         rtx to rtx_insn *.
23091         (failed_reload): Likewise for param "insn".
23092         (choose_reload_regs): Likewise for local "insn".  Replace use of
23093         NULL_RTX with NULL when referring to an insn.
23094         (input_reload_insns): Strengthen elements of this array from rtx
23095         to rtx_insn *.
23096         (other_input_address_reload_insns): Likewise for this global.
23097         (other_input_reload_insns): Likewise for this global.
23098         (input_address_reload_insns): Likwise for the elements of this
23099         array.
23100         (inpaddr_address_reload_insns): Likwise for the elements of this
23101         array.
23102         (output_reload_insns): Likewise for the elements of this array.
23103         (output_address_reload_insns): Likewise for the elements of this
23104         array.
23105         (outaddr_address_reload_insns): Likewise for the elements of this
23106         array.
23107         (operand_reload_insns): Likewise for this global.
23108         (other_operand_reload_insns): Likewise for this global.
23109         (other_output_reload_insns): Likewise for the elements of this
23110         array.
23111         (new_spill_reg_store): Likewise for the elements of this
23112         array.
23113         (emit_input_reload_insns): Likewise for locals "insn", "temp".
23114         Strengthen local "where" from rtx * to rtx_insn **.
23115         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
23116         from rtx to rtx_insn *.
23117         (do_input_reload): Likewise for local "insn".
23118         (do_output_reload): Likewise for local "insn".
23119         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
23120         (emit_insn_if_valid_for_reload): Likewise for return type and local
23121         "last".  Add checked cast to rtx_insn when returning "insn" since
23122         this has been through emit_insn.
23123         (gen_reload): Strengthen return type and locals "last", "insn", "set"
23124         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
23125         returning "insn" since it's been through
23126         emit_insn_if_valid_for_reload at this point.
23127         (delete_output_reload): Strengthen param "insn" and locals
23128         "output_reload_insn", "i2" from rtx to rtx_insn *.
23129         (delete_address_reloads): Likewise for params "dead_insn",
23130         "current_insn" and locals "prev", "next".
23131         (delete_address_reloads_1): Likewise for params "dead_insn",
23132         "current_insn" and locals "prev", "i2".
23133         (inc_for_reload): Likewise for locals "last", "add_insn".
23134         (add_auto_inc_notes): Strengthen param "insn" from rtx to
23135         rtx_insn *.
23137         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
23138         param of this duplicate of the prototype from reload.h
23140 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23142         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
23143         rtx to rtx_insn *.
23144         (regstat_bb_compute_calls_crossed): Likewise.
23146 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23148         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
23149         to rtx_insn *.
23150         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
23151         with an insn.
23152         (regrename_analyze): Strengthen local "insn" from rtx to
23153         rtx_insn *.
23154         (scan_rtx_reg): Likewise for param "insn".
23155         (scan_rtx_address): Likewise.
23156         (scan_rtx): Likewise.
23157         (restore_operands): Likewise.
23158         (record_out_operands): Likewise.
23159         (build_def_use): Likewise for local "insn".  Replace use of
23160         NULL_RTX with NULL when dealing with an insn.
23162 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23164         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
23165         * reginfo.c (reg_scan): Likewise, also for local "insn".
23166         (reg_scan_mark_refs): Likewise for param "insn".
23167         (init_subregs_of_mode): Likewise for local "insn".
23169 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23171         * regcprop.c (struct queued_debug_insn_change): Strengthen field
23172         "insn" from rtx to rtx_insn *.
23173         (replace_oldest_value_reg): Likewise for param "insn".
23174         (replace_oldest_value_addr): Likewise.
23175         (replace_oldest_value_mem): Likewise.
23176         (apply_debug_insn_changes): Likewise for local "last_insn".
23177         (copyprop_hardreg_forward_1): Likewise for local "insn".
23179 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23181         * reg-stack.c (next_flags_user): Strengthen return type and param
23182         "insn" from rtx to rtx_insn *.
23183         (straighten_stack): Likewise for param "insn".
23184         (check_asm_stack_operands): Likewise.
23185         (remove_regno_note): Likewise.
23186         (emit_pop_insn): Likewise for return type, param "insn", local
23187         "pop_insn".
23188         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
23189         "limit" from rtx to rtx_insn *.
23190         (swap_to_top): Likewise for param "insn".
23191         (move_for_stack_reg): Likewise.
23192         (move_nan_for_stack_reg): Likewise.
23193         (swap_rtx_condition): Likewise.
23194         (compare_for_stack_reg): Likewise.
23195         (subst_all_stack_regs_in_debug_insn): Likewise.
23196         (subst_stack_regs_pat): Likewise, and local "insn2".
23197         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
23198         rtx_insn *.
23199         (subst_stack_regs): Likewise.
23200         (change_stack): Likewise.
23201         (convert_regs_1): Likewise for locals "insn", "next".
23203 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23205         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
23206         rtx_insn *.
23207         (combine_set_extension): Likewise for param "curr_insn".
23208         (transform_ifelse): Likewise for param "def_insn".
23209         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
23210         from vec<rtx> * to vec<rtx_insn *> *.
23211         (is_cond_copy_insn): Likewise for param "insn".
23212         (struct ext_state): Strengthen the four vec fields from vec<rtx>
23213         to vec<rtx_insn *>.
23214         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
23215         local "def_insn" from rtx to rtx_insn *.
23216         (get_sub_rtx): Likewise for param "def_insn".
23217         (merge_def_and_ext): Likewise.
23218         (combine_reaching_defs): Likewise.
23219         (add_removable_extension): Likewise for param "insn".
23220         (find_removable_extensions): Likewise for local "insn".
23221         (find_and_remove_re): Likewise for locals "curr_insn" and
23222         "def_insn".  Strengthen locals "reinsn_del_list" and
23223         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
23225 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23227         * recog.c (split_insn): Strengthen param "insn" and locals
23228         "first", "last" from rtx to rtx_insn *.
23229         (split_all_insns): Likewise for locals "insn", "next".
23230         (split_all_insns_noflow): Likewise.
23232 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23234         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
23235         const rtx_insn *.
23236         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
23237         (debug_rtx_find): Likewise for param 1 "x".
23239         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
23240         const_rtx to const rtx_insn *.  Likewise for local "insn".
23241         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
23242         (debug_rtx_find): Likewise for param 1 "x".
23243         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
23244         from const_rtx to const rtx_insn * within the appropriate cases of
23245         the switch statement.
23247         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
23248         Strengthen local "insns" from rtx to rtx_insn * since this is
23249         passed to a call to debug_rtx_list.
23251 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23253         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
23254         to rtx_insn *.
23256         * function.c (stack_protect_epilogue): Add checked cast to
23257         rtx_insn for now when invoking predict_insn_def.
23259         * predict.c (predict_insn): Strengthen param "insn" from rtx to
23260         rtx_insn *.
23261         (predict_insn_def): Likewise.
23262         (rtl_predict_edge): Likewise for local "last_insn".
23263         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
23264         const rtx_insn *.
23265         (combine_predictions_for_insn): Strengthen param "insn" from rtx
23266         to rtx_insn *.
23267         (bb_estimate_probability_locally): Likewise for local "last_insn".
23268         (expensive_function_p): Likewise for local "insn".
23270         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
23271         local "jmp", since this is used when invoking predict_insn_def.
23273 2014-08-22  Marek Polacek  <polacek@redhat.com>
23275         PR c++/62199
23276         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
23278 2014-08-22  Marek Polacek  <polacek@redhat.com>
23280         PR c/61271
23281         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
23282         a comparison in parens.
23283         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
23284         in parens.
23286 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23288         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
23289         rtx_insn *.
23291         * cprop.c (fis_get_condition): Likewise.
23293         * postreload.c (reload_cse_regs): Likewise for param "first".
23294         (reload_cse_simplify): Likewise for param "insn".
23295         (reload_cse_regs_1): Likewise for local "insn".
23296         (reload_cse_simplify_set): Likewise for param "insn".
23297         (reload_cse_simplify_operands): Likewise.
23298         (struct reg_use): Likewise for field "insn".
23299         (reload_combine_purge_insn_uses): Likewise for param "insn".
23300         (fixup_debug_insns): Likewise for params "from", "to" and local
23301         "insn".
23302         (try_replace_in_use): Likewise for local "use_insn".
23303         (reload_combine_recognize_const_pattern): Likewise for param
23304         "insn" and locals "add_moved_after_insn", "use_insn".
23305         (reload_combine_recognize_pattern): Likewise for param "insn" and
23306         local "prev".
23307         (reload_combine): Likewise for locals "insn", "prev".
23308         (reload_combine_note_use): Likewise for param "insn".
23309         (move2add_use_add2_insn): Likewise.
23310         (move2add_use_add3_insn): Likewise.
23311         (reload_cse_move2add): Likewise, also for local "next".
23312         (move2add_note_store): Likewise for local "insn".
23314 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23316         * postreload-gcse.c (struct occr): Strengthen field "insn" from
23317         rtx to rtx_insn *.
23318         (struct unoccr): Likewise.
23319         (struct modifies_mem): Likewise.
23320         (alloc_mem): Likewise for local "insn".
23321         (insert_expr_in_table): Likewise for param "insn".
23322         (dump_expr_hash_table_entry): Likewise for local "insn".
23323         (oprs_unchanged_p): Likewise for param "insn".
23324         (load_killed_in_block_p): Likewise for local "setter".
23325         (record_last_reg_set_info): Likewise for param "insn".
23326         (record_last_reg_set_info_regno): Likewise.
23327         (record_last_mem_set_info): Likewise.
23328         (record_last_set_info): Likewise for local "last_set_insn".
23329         (record_opr_changes): Likewise for param "insn".
23330         (hash_scan_set): Likewise.
23331         (compute_hash_table): Likewise for local "insn".
23332         (get_avail_load_store_reg): Likewise for param "insn".
23333         (eliminate_partially_redundant_load): Likewise, also for locals
23334         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
23335         RTX for insns.
23336         (eliminate_partially_redundant_loads): Likewise for local "insn".
23338 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23340         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
23341         rtx to rtx_insn *.
23342         (expand_binop): Likewise for locals "entry_last", "last", "insns"
23343         (expand_twoval_unop): Likewise for locals entry_last", "last".
23344         (expand_twoval_binop): Likewise.
23345         (expand_twoval_binop_libfunc): Likewise for local "insns".
23346         (widen_leading): Likewise for local "last".
23347         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
23348         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
23349         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
23350         (expand_parity): Likewise for locals "last" and "seq".
23351         (expand_ffs): Likewise for local "seq".  Strengthen local
23352         "nonzero_label" from rtx to rtx_code_label *.
23353         (expand_absneg_bit): Strengthen local "insns" from rtx to
23354         rtx_insn *.
23355         (expand_unop_direct): Likewise for local "last".
23356         (expand_unop): Likewise for locals "last", "insns".
23357         (expand_abs_nojump): Likewise for local "last".
23358         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
23359         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
23360         rtx_insn *.
23361         (expand_copysign_absneg): Strengthen local "label" from rtx to
23362         rtx_code_label *.
23363         (expand_copysign_bit): Strengthen local "insns" from rtx to
23364         rtx_insn *.
23365         (struct no_conflict_data): Likewise for fields "first", "insn".
23366         (emit_libcall_block_1): Likewise for param "insns" and locals
23367         "next", "last", "insn".
23368         (emit_libcall_block): For now, add a checked cast to rtx_insn *
23369         on "insns" when invoking emit_libcall_block_1.  Ultimately we
23370         want to strengthen insns itself.
23371         (prepare_cmp_insn): Strengthen local "last" from rtx to
23372         rtx_insn *.
23373         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
23374         (prepare_float_lib_cmp): Likewise for local "insns".
23375         (emit_conditional_move): Likewise for local "last".
23376         (emit_conditional_add): Likewise.
23377         (have_sub2_insn): Likewise for local "seq".
23378         (expand_float): Likewise for local "insns".  Strengthen locals
23379         "label", "neglabel" from rtx to rtx_code_label *.
23380         (expand_fix): Likewise for locals "last", "insn", "insns" (to
23381         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
23382         (expand_fixed_convert): Likewise for local "insns" (to
23383         rtx_insn *).
23384         (expand_sfix_optab): Likewise for local "last".
23385         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
23386         to rtx_code_label *.
23387         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
23388         from rtx to rtx_insn *.
23389         (expand_atomic_fetch_op): Likewise for local "insn".
23390         (maybe_legitimize_operand_same_code): Likewise for local "last".
23391         (maybe_legitimize_operands): Likewise.
23393 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23395         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
23396         "insn" from rtx to rtx_insn *.
23397         (ps_rtl_insn): Likewise for return type.
23398         (doloop_register_get): Likewise for params "head", "tail" and
23399         locals "insn", "first_insn_not_to_check".
23400         (schedule_reg_move): Likewise for local "this_insn".
23401         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
23402         of gen_move_insn for now.
23403         (reset_sched_times): Strengthen local "insn" from rtx to
23404         rtx_insn *.
23405         (permute_partial_schedule): Likewise.
23406         (duplicate_insns_of_cycles): Likewise for local "u_insn".
23407         (dump_insn_location): Likewise for param "insn".
23408         (loop_canon_p): Likewise for local "insn".
23409         (sms_schedule): Likewise.
23410         (print_partial_schedule): Likewise.
23411         (ps_has_conflicts): Likewise.
23413 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23415         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
23416         "tailp" from rtx * to rtx_insn **.
23418         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
23419         from rtx to rtx_insn *.
23420         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
23421         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
23422         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
23423         rtx to rtx_insn *.
23424         * modulo-sched.c (const_iteration_count): Strengthen return type
23425         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
23426         use of NULL_RTX with NULL when working with insns.
23427         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
23428         to rtx_insn *.
23429         (sms_schedule): Likewise.
23430         * sched-rgn.c (init_ready_list): Likewise, also for locals
23431         "src_head" and "src_next_tail".
23432         (compute_block_dependences): Likewise.
23433         (free_block_dependencies): Likewise.
23434         (debug_rgn_dependencies): Likewise.
23435         (free_rgn_deps): Likewise.
23436         (compute_priorities): Likewise.
23437         (schedule_region): Likewise.
23438         * sel-sched.c (find_ebb_boundaries): Likewise.
23440         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
23441         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
23443 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23445         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
23446         from rtx to rtx_insn *.
23447         (new_seginfo): Likewise for param "insn".
23448         (create_pre_exit): Likewise for locals "last_insn",
23449         "before_return_copy", "return_copy".
23450         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
23451         "mode_set".
23453 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23455         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
23456         from rtx to rtx_insn *.
23457         (lra_push_insn): Likewise for 1st param.
23458         (lra_push_insn_and_update_insn_regno_info): Likewise.
23459         (lra_pop_insn): Likewise for return type.
23460         (lra_invalidate_insn_data): Likewise for 1st param.
23461         (lra_set_insn_deleted): Likewise.
23462         (lra_delete_dead_insn): Likewise.
23463         (lra_process_new_insns): Likewise for first 3 params.
23464         (lra_set_insn_recog_data): Likewise for 1st param.
23465         (lra_update_insn_recog_data): Likewise.
23466         (lra_set_used_insn_alternative): Likewise.
23467         (lra_invalidate_insn_regno_info): Likewise.
23468         (lra_update_insn_regno_info): Likewise.
23469         (lra_former_scratch_operand_p): Likewise.
23470         (lra_eliminate_regs_1): Likewise.
23471         (lra_get_insn_recog_data): Likewise.
23473         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
23474         rtx to rtx_insn *.
23476         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
23477         "mv1" and "mv2".
23478         (substitute_within_insn): New.
23479         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
23480         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
23481         Replace call to "substitute" with call to substitute_within_insn.
23483         * lra-constraints.c (curr_insn): Strengthen from rtx to
23484         rtx_insn *.
23485         (get_equiv_with_elimination): Likewise for param "insn".
23486         (match_reload): Strengthen params "before" and "after" from rtx *
23487         to rtx_insn **.
23488         (emit_spill_move): Likewise for return type.  Add a checked cast
23489         to rtx_insn * on result of gen_move_insn for now.
23490         (check_and_process_move): Likewise for local "before".  Replace
23491         NULL_RTX with NULL when referring to insns.
23492         (process_addr_reg): Strengthen params "before" and "after" from
23493         rtx * to rtx_insn **.
23494         (insert_move_for_subreg): Likewise.
23495         (simplify_operand_subreg): Strengthen locals "before" and "after"
23496         from rtx to rtx_insn *.
23497         (process_address_1): Strengthen params "before" and "after" from
23498         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
23499         rtx to rtx_insn *.
23500         (process_address): Strengthen params "before" and "after" from
23501         rtx * to rtx_insn **.
23502         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
23503         (curr_insn_transform): Strengthen locals "before" and "after"
23504         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
23505         to insns.
23506         (loc_equivalence_callback): Update cast of "data", changing
23507         resulting type from rtx to rtx_insn *.
23508         (substitute_pseudo_within_insn): New.
23509         (inherit_reload_reg): Strengthen param "insn" from rtx to
23510         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
23511         NULL when referring to insns.  Add a checked cast to rtx_insn *
23512         when using usage_insn to invoke lra_update_insn_regno_info.
23513         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
23514         likewise for locals "restore", "save".  Add checked casts to
23515         rtx_insn * when using usage_insn to invoke
23516         lra_update_insn_regno_info and lra_process_new_insns.  Replace
23517         NULL_RTX with NULL when referring to insns.
23518         (split_if_necessary): Strengthen param "insn" from rtx to
23519         rtx_insn *.
23520         (update_ebb_live_info): Likewise for params "head", "tail" and local
23521         "prev_insn".
23522         (get_last_insertion_point): Likewise for return type and local "insn".
23523         (get_live_on_other_edges): Likewise for local "last".
23524         (inherit_in_ebb): Likewise for params "head", "tail" and locals
23525         "prev_insn", "next_insn", "restore".
23526         (remove_inheritance_pseudos): Likewise for local "prev_insn".
23527         (undo_optional_reloads): Likewise for local "insn".
23529         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
23530         "insn".
23531         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
23532         insns.
23533         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
23534         rtx_insn *.
23535         (spill_pseudos): Likewise for local "insn".
23536         (init_elimination): Likewise.
23537         (process_insn_for_elimination): Likewise for param "insn".
23539         * lra-lives.c (curr_insn): Likewise.;
23541         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
23542         (remove_pseudos): Likewise for param "insn".
23543         (spill_pseudos): Likewise for local "insn".
23544         (lra_final_code_change): Likewise for locals "insn", "curr".
23546         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
23547         (lra_set_insn_deleted): Likewise.
23548         (lra_delete_dead_insn): Likewise, and for local "prev".
23549         (new_insn_reg): Likewise for param "insn".
23550         (lra_set_insn_recog_data): Likewise.
23551         (lra_update_insn_recog_data): Likewise.
23552         (lra_set_used_insn_alternative): Likewise.
23553         (get_insn_freq): Likewise.
23554         (invalidate_insn_data_regno_info): Likewise.
23555         (lra_invalidate_insn_regno_info): Likewise.
23556         (lra_update_insn_regno_info): Likewise.
23557         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
23558         vec<rtx_insn *>.
23559         (lra_push_insn_1): Strengthen param "insn" from rtx to
23560         rtx_insn *.
23561         (lra_push_insn): Likewise.
23562         (lra_push_insn_and_update_insn_regno_info): Likewise.
23563         (lra_pop_insn): Likewise for return type and local "insn".
23564         (push_insns): Likewise for params "from", "to", and local "insn".
23565         (setup_sp_offset): Likewise for params "from", "last" and locals
23566         "before", "insn".
23567         (lra_process_new_insns): Likewise for params "insn", "before",
23568         "after" and local "last".
23569         (struct sloc): Likewise for field "insn".
23570         (lra_former_scratch_operand_p): Likewise for param "insn".
23571         (remove_scratches): Likewise for locals "insn", "last".
23572         (check_rtl): Likewise for local "insn".
23573         (add_auto_inc_notes): Likewise for param "insn".
23574         (update_inc_notes): Likewise for local "insn".
23575         (lra): Replace NULL_RTX with NULL when referring to insn.
23577 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23579         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
23580         to rtx_insn *.
23581         (resolve_reg_notes): Likewise.
23582         (resolve_simple_move): Likewise for return type, param "insn", and
23583         locals "insns", "minsn".
23584         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
23585         (resolve_use): Likewise.
23586         (resolve_debug): Likewise.
23587         (find_decomposable_shift_zext): Likewise.
23588         (resolve_shift_zext): Likewise for return type, param "insn", and
23589         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
23590         (decompose_multiword_subregs): Likewise for local "insn",
23591         "orig_insn", "decomposed_shift", "end".
23593 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23595         * basic-block.h (basic_block split_edge_and_insert): Strengthen
23596         param "insns" from rtx to rtx_insn *.
23598         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
23599         rtx to rtx_insn *.
23600         (struct iv_to_split): Likewise.
23601         (loop_exit_at_end_p): Likewise for local "insn".
23602         (split_edge_and_insert): Likewise for param "insns".
23603         (compare_and_jump_seq): Likewise for return type, param "cinsn",
23604         and locals "seq", "jump".
23605         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
23606         "branch_code"; update invocations of compare_and_jump_seq to
23607         eliminate NULL_RTX in favor of NULL.
23608         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
23609         rtx to rtx_insn *.
23610         (reset_debug_uses_in_loop): Likewise.
23611         (analyze_insn_to_expand_var): Likewise for param "insn".
23612         (analyze_iv_to_split_insn): Likewise.
23613         (analyze_insns_in_loop): Likewise for local "insn".
23614         (insert_base_initialization): Likewise for param
23615         "insn" and local "seq".
23616         (split_iv): Likewise for param "insn" and local "seq".
23617         (expand_var_during_unrolling): Likewise for param "insn".
23618         (insert_var_expansion_initialization): Likewise for local "seq".
23619         (combine_var_copies_in_loop_exit): Likewise.
23620         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
23621         "insn".
23622         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
23623         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
23624         "next".
23626 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23628         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
23629         rtx_insn *.
23630         (iv_analyze_result): Likewise.
23631         (iv_analyze_expr): Likewise.
23632         (biv_p): Likewise.
23634         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
23635         local "def_insn" from rtx to rtx_insn *.
23636         (get_biv_step_1): Likewise for local "insn".
23637         (iv_analyze_expr): Likewise for param "insn".
23638         (iv_analyze_def): Likewise for local "insn".
23639         (iv_analyze_op): Likewise for param "insn".
23640         (iv_analyze): Likewise.
23641         (iv_analyze_result): Likewise.
23642         (biv_p): Likewise.
23643         (suitable_set_for_replacement): Likewise.
23644         (simplify_using_initial_values): Likewise for local "insn".
23645         (iv_number_of_iterations): Likewise for param "insn".
23646         (check_simple_exit): Add checked cast to rtx_insn when invoking
23647         iv_number_of_iterations for now (until get_condition is
23648         strengthened).
23650         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
23651         "insn" from rtx to rtx_insn *.
23652         (analyze_insns_in_loop): Likewise for local "insn".
23654 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23656         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
23657         to rtx_insn *.
23658         (struct invariant): Likewise.
23659         (hash_invariant_expr_1): Likewise for param "insn".
23660         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
23661         (find_exits): Likewise for local "insn".
23662         (create_new_invariant): Likewise for param "insn".
23663         (check_dependencies): Likewise.
23664         (find_invariant_insn): Likewise.
23665         (record_uses): Likewise.
23666         (find_invariants_insn): Likewise.
23667         (find_invariants_bb): Likewise for local "insn".
23668         (get_pressure_class_and_nregs): Likewise for param "insn".
23669         (calculate_loop_reg_pressure): Likewise for local "insn".
23671 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23673         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
23674         to rtx_insn *.
23675         (add_test): Likewise for locals "seq", "jump".
23676         (doloop_modify): Likewise for locals "sequence", "jump_insn".
23678 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23680         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
23681         rtx_insn *.
23682         (rebuild_jump_labels_chain): Likewise for param "chain".
23684         * cfgexpand.c (pass_expand::execute): Add checked cast to
23685         rtx_insn * when calling rebuild_jump_labels_chain in region where
23686         we know e->insns.r is non-NULL.
23688         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
23689         rtx_insn *.
23690         (rebuild_jump_labels): Likewise.
23691         (rebuild_jump_labels_chain): Likewise for param "chain".
23692         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
23693         (init_label_info): Likewise for param "f".
23694         (maybe_propagate_label_ref): Likewise for params "jump_insn",
23695         "prev_nonjump_insn".
23696         (mark_all_labels): Likewise for param "f" and locals "insn",
23697         "prev_nonjump_insn".
23699 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23701         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
23702         from rtx to rtx_insn *insn.
23703         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
23704         (ira_add_allocno_copy): Likewise.
23705         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
23706         rtx to rtx_insn *.
23707         (ira_create_copy): Likewise.
23708         (ira_add_allocno_copy): Likewise.
23709         (create_bb_allocnos): Likewise for local "insn".
23710         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
23711         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
23712         process_regs_for_copy for rtx_insn * param.
23713         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
23714         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
23715         process_regs_for_copy for rtx_insn * param.
23716         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
23717         * ira-costs.c (record_reg_classes): Likewise for param "insn".
23718         (record_operand_costs): Likewise.
23719         (scan_one_insn): Likewise for return type, and for param "insn".
23720         (process_bb_for_costs): Likewise for local "insn".
23721         (process_bb_node_for_hard_reg_moves): Likewise.
23722         * ira-emit.c (struct move): Likewise for field "insn".
23723         (create_move): Eliminate use of NULL_RTX when dealing with an
23724         rtx_insn *.
23725         (emit_move_list): Strengthen return type and locals "result",
23726         "insn" from rtx to rtx_insn *insn.
23727         (emit_moves): Likewise for locals "insns", "tmp".
23728         (ira_emit): Likewise for local "insn".
23729         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
23730         "insn".
23731         (find_call_crossed_cheap_reg): Likewise.
23732         (process_bb_node_lives): Likewise for local "insn".
23733         * ira.c (decrease_live_ranges_number): Likewise.
23734         (compute_regs_asm_clobbered): Likewise.
23735         (build_insn_chain): Likewise.
23736         (find_moveable_pseudos): Likewise, also locals "def_insn",
23737         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
23738         to rtx_insn **.  Add a checked cast when assigning from
23739         "closest_use" into closest_uses array in a region where we know
23740         it's a non-NULL insn.
23741         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
23742         to rtx_insn *.
23743         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
23744         "last_interesting_insn", "uin".
23745         (move_unallocated_pseudos): Likewise for locals "def_insn",
23746         "move_insn", "newinsn".
23748 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23750         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
23751         Strengthen locals "done_label", "do_error" from rtx to
23752         rtx_code_label *.
23753         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
23754         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
23755         rtx_code_label *.
23756         (ubsan_expand_si_overflow_neg_check): Likewise for locals
23757         "done_label", "do_error" to rtx_code_label * and local  "last" to
23758         rtx_insn *.
23759         (ubsan_expand_si_overflow_mul_check): Likewise for locals
23760         "done_label", "do_error", "large_op0", "small_op0_large_op1",
23761         "one_small_one_large", "both_ops_large", "after_hipart_neg",
23762         "after_lopart_neg", "do_overflow", "hipart_different"  to
23763         rtx_code_label * and local  "last" to rtx_insn *.
23765 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23767         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
23768         "insn" and "move_insn" from rtx to rtx_insn *.
23770 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23772         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
23773         rtx_insn *.
23774         (cheap_bb_rtx_cost_p): Likewise.
23775         (first_active_insn): Likewise for return type and local "insn".
23776         (last_active_insn):  Likewise for return type and locals "insn",
23777         "head".
23778         (struct noce_if_info): Likewise for fields "jump", "insn_a",
23779         "insn_b".
23780         (end_ifcvt_sequence): Likewise for return type and locals "insn",
23781         "seq".
23782         (noce_try_move): Likewise for local "seq".
23783         (noce_try_store_flag): Likewise.
23784         (noce_try_store_flag_constants): Likewise.
23785         (noce_try_addcc): Likewise.
23786         (noce_try_store_flag_mask): Likewise.
23787         (noce_try_cmove): Likewise.
23788         (noce_try_minmax): Likewise.
23789         (noce_try_abs): Likewise.
23790         (noce_try_sign_mask): Likewise.
23791         (noce_try_bitop): Likewise.
23792         (noce_can_store_speculate_p): Likewise for local "insn".
23793         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
23794         seq".
23795         (check_cond_move_block): Likewise for local "insn".
23796         (cond_move_convert_if_block): Likewise.
23797         (cond_move_process_if_block): Likewise for locals "seq",
23798         "loc_insn".
23799         (noce_find_if_block): Likewise for local "jump".
23800         (merge_if_block): Likewise for local "last".
23801         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
23802         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
23803         (block_has_only_trap): Likewise for return type and local "trap".
23804         (find_if_case_1): Likewise for local "jump".
23805         (dead_or_predicable): Likewise for locals "head", "end", "jump",
23806         "insn".
23808 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23810         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
23811         "last_insn", "loop_end" from rtx to rtx_insn *.
23813         * hw-doloop.c (scan_loop): Likewise for local "insn".
23814         (discover_loop): Likewise for param "tail_insn".
23815         (discover_loops): Likewise for local "tail".
23817         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
23818         cast to rtx_insn * when assigning from an rtx local to a
23819         hwloop_info's "last_insn" field.
23821 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23823         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
23824         (add_delay_dependencies): Strengthen local "pro" from rtx to
23825         rtx_insn *.
23826         (recompute_todo_spec): Likewise.
23827         (dep_cost_1): Likewise for locals "insn", "used".
23828         (schedule_insn): Likewise for local "dbg".
23829         (schedule_insn): Likewise for locals "pro", "next".
23830         (unschedule_insns_until): Likewise for local "con".
23831         (restore_pattern): Likewise for local "next".
23832         (estimate_insn_tick): Likewise for local "pro".
23833         (resolve_dependencies): Likewise for local "next".
23834         (fix_inter_tick): Likewise.
23835         (fix_tick_ready): Likewise for local "pro".
23836         (add_to_speculative_block): Likewise for locals "check", "twin",
23837         "pro".
23838         (sched_extend_bb): Likewise for locals "end", "insn".
23839         (init_before_recovery): Likewise for local "x".
23840         (sched_create_recovery_block): Likewise for local "barrier".
23841         (create_check_block_twin): Likewise for local "pro".
23842         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
23843         "consumer".
23844         (unlink_bb_notes): Update for change to type of bb_header.
23845         Strengthen locals "prev", "label", "note", "next" from rtx to
23846         rtx_insn *.
23847         (clear_priorities): Likewise for local "pro".
23849 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23851         * gcse.c (struct occr): Strengthen field "insn" from rtx to
23852         rtx_insn *.
23853         (test_insn): Likewise for this global.
23854         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
23855         const rtx_insn *.
23856         (oprs_anticipatable_p): Likewise.
23857         (oprs_available_p): Likewise.
23858         (insert_expr_in_table): Strengthen param "insn" from  rtx to
23859         rtx_insn *.
23860         (hash_scan_set): Likewise.
23861         (hash_scan_clobber): Likewise.
23862         (hash_scan_call): Likewise.
23863         (hash_scan_insn): Likewise.
23864         (compute_hash_table_work): Likewise for local "insn".
23865         (process_insert_insn): Likewise for return type and local "pat".
23866         (insert_insn_end_basic_block): Likewise for locals "new_insn",
23867         "pat", "pat_end", "maybe_cc0_setter".
23868         (pre_edge_insert): Likewise for local "insn".
23869         (pre_insert_copy_insn): Likewise for param "insn".
23870         (pre_insert_copies): Likewise for local "insn".
23871         (struct set_data): Likewise for field "insn".
23872         (single_set_gcse): Likewise for param "insn".
23873         (gcse_emit_move_after): Likewise.
23874         (pre_delete): Likewise for local "insn".
23875         (update_bb_reg_pressure): Likewise for param "from" and local
23876         "insn".
23877         (should_hoist_expr_to_dom): Likewise for param "from".
23878         (hoist_code): Likewise for local "insn".
23879         (get_pressure_class_and_nregs): Likewise for param "insn".
23880         (calculate_bb_reg_pressure): Likewise for local "insn".
23881         (compute_ld_motion_mems): Likewise.
23883 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23885         * genpeep.c (main): Rename param back from "uncast_ins1" to
23886         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
23887         checked cast.
23889         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
23891 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
23893         PR target/62195
23894         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
23895         documentation to state it is only for VSX operations.
23897         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
23898         constraint only active if VSX.
23900         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
23901         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
23902         (lfiwzx): Likewise.
23904 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23906         * fwprop.c (single_def_use_dom_walker::before_dom_children):
23907         Strengthen local "insn" from rtx to rtx_insn *.
23908         (use_killed_between): Likewise for param "target_insn".
23909         (all_uses_available_at): Likewise for param "target_insn" and
23910         local "next".
23911         (update_df_init): Likewise for params "def_insn", "insn".
23912         (update_df): Likewise for param "insn".
23913         (try_fwprop_subst): Likewise for param "def_insn" and local
23914         "insn".
23915         (free_load_extend): Likewise for param "insn".
23916         (forward_propagate_subreg): Likewise for param "def_insn" and
23917         local "use_insn".
23918         (forward_propagate_asm): Likewise for param "def_insn" and local
23919         "use_insn".
23920         (forward_propagate_and_simplify): Likewise for param "def_insn"
23921         and local "use_insn".
23922         (forward_propagate_into): Likewise for locals "def_insn" and
23923         "use_insn".
23925 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23927         * function.c (emit_initial_value_sets): Strengthen local "seq"
23928         from rtx to rtx_insn *.
23929         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
23930         local "seq".
23931         (instantiate_virtual_regs): Likewise for local "insn".
23932         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
23933         (reorder_blocks_1): Likewise for param "insns" and local "insn".
23934         (expand_function_end): Likewise for locals "insn" and "seq".
23935         (epilogue_done): Likewise for local "insn".
23936         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
23937         "last", "trial".
23938         (reposition_prologue_and_epilogue_notes): Likewise for locals
23939         "insn", "last", "note", "first".
23940         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
23941         (pass_match_asm_constraints::execute): Likewise for local "insn".
23943 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23945         * output.h (final_scan_insn): Strengthen return type from rtx to
23946         rtx_insn *.
23947         (final_forward_branch_p): Likewise for param.
23948         (current_output_insn): Likewise for this global.
23950         * final.c (rtx debug_insn): Likewise for this variable.
23951         (current_output_insn): Likewise.
23952         (get_attr_length_1): Rename param "insn" to "uncast_insn",
23953         adding "insn" back in as an rtx_insn * with a checked cast, so
23954         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
23955         first param.
23956         (compute_alignments): Strengthen local "label" from rtx to
23957         rtx_insn *.
23958         (shorten_branches): Rename param from "first" to "uncast_first",
23959         introducing a new local rtx_insn * "first" using a checked cast to
23960         effectively strengthen "first" from rtx to rtx_insn * without
23961         affecting the type signature.  Strengthen locals "insn", "seq",
23962         "next", "label" from rtx to rtx_insn *.
23963         (change_scope): Strengthen param "orig_insn" and local "insn" from
23964         rtx to rtx_insn *.
23965         (final_start_function): Rename param from "first" to "uncast_first",
23966         introducing a new local rtx_insn * "first" using a checked cast to
23967         effectively strengthen "first" from rtx to rtx_insn * without
23968         affecting the type signature.  Strengthen local "insn" from rtx to
23969         rtx_insn *.
23970         (dump_basic_block_info): Strengthen param "insn" from rtx to
23971         rtx_insn *.
23972         (final): Rename param from "first" to "uncast_first",
23973         introducing a new local rtx_insn * "first" using a checked cast to
23974         effectively strengthen "first" from rtx to rtx_insn * without
23975         affecting the type signature.  Strengthen locals "insn", "next"
23976         from rtx to rtx_insn *.
23977         (output_alternate_entry_point): Strengthen param "insn" from rtx to
23978         rtx_insn *.
23979         (call_from_call_insn): Strengthen param "insn" from rtx to
23980         rtx_call_insn *.
23981         (final_scan_insn): Rename param from "insn" to "uncast_insn",
23982         introducing a new local rtx_insn * "insn" using a checked cast to
23983         effectively strengthen "insn" from rtx to rtx_insn * without
23984         affecting the type signature.  Strengthen return type and locals
23985         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
23986         now-redundant checked cast to rtx_insn * from both invocations of
23987         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
23988         introducing a local "call_insn" for use when invoking
23989         call_from_call_insn.
23990         (notice_source_line): Strengthen param "insn" from rtx to
23991         rtx_insn *.
23992         (leaf_function_p): Likewise for local "insn".
23993         (final_forward_branch_p): Likewise.
23994         (leaf_renumber_regs): Likewise for param "first".
23995         (rest_of_clean_state): Likewise for locals "insn" and "next".
23996         (self_recursive_call_p): Likewise for param "insn".
23997         (collect_fn_hard_reg_usage): Likewise for local "insn".
23998         (get_call_fndecl): Likewise for param "insn".
23999         (get_call_cgraph_rtl_info): Likewise.
24000         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
24001         introducing a new local rtx_insn * "insn" using a checked cast to
24002         effectively strengthen "insn" from rtx to rtx_insn * without
24003         affecting the type signature.
24005         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
24006         cast when assigning from param "insn" to current_output_insn.
24007         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
24008         so that we can assign it back to current_output_insn.
24010 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24012         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
24013         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
24014         atmxt540s and atmxt540sreva devices.
24015         * config/avr/avr-tables.opt: Regenerate.
24016         * config/avr/t-multilib: Regenerate.
24017         * doc/avr-mmcu.texi: Regenerate.
24019 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24021         * expr.c (convert_move): Strengthen local "insns" from rtx to
24022         rtx_insn *.
24023         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
24024         "top_label" from rtx to rtx_code_label *.
24025         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
24026         rtx_insn *.
24027         (emit_single_push_insn): Likewise for locals "prev", "last".
24028         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
24029         to rtx_code_label *.
24030         (store_constructor): Likewise for locals "loop_start", "loop_end".
24031         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
24032         rtx_insn *.
24033         (expand_expr_real_2): Likewise.
24034         (expand_expr_real_1): Strengthen local "label" from rtx to
24035         rtx_code_label *.
24037 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24039         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
24040         from rtx to rtx_insn *.
24041         (store_bit_field_1): Likewise.
24042         (extract_bit_field_1): Likewise.
24043         (expand_mult_const): Likewise for local "insns".
24044         (expmed_mult_highpart): Strengthen local "label" from rtx to
24045         rtx_code_label *.
24046         (expand_smod_pow2): Likewise.
24047         (expand_sdiv_pow2): Likewise.
24048         (expand_divmod): Strengthen locals "last", "insn" from rtx to
24049         rtx_insn *.  Strengthen locals "label", "label1", "label2",
24050         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
24051         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
24052         (emit_store_flag): Likewise.
24053         (emit_store_flag_force): Strengthen local "label" from rtx to
24054         rtx_code_label *.
24055         (do_cmp_and_jump): Likewise for param "label".
24057 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24059         * explow.c (force_reg): Strengthen local "insn" from rtx to
24060         rtx_insn *.
24061         (adjust_stack_1): Likewise.
24062         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
24063         "final_label", "available_label", "space_available" from rtx to
24064         rtx_code_label *.
24065         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
24066         (anti_adjust_stack_and_probe): Likewise.
24068 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24070         * except.h (sjlj_emit_function_exit_after): Strengthen param
24071         "after" from rtx to rtx_insn *.  This is only called with
24072         result of get_last_insn (in function.c) so type-change should be
24073         self-contained.
24075         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
24076         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
24077         to rtx_insn *.  These fields are only used from except.c so this
24078         type-change should be self-contained to this patch.
24080         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
24081         local "last" from rtx to rtx_insn *.
24082         (dw2_build_landing_pads): Likewise for local "seq".
24083         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
24084         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
24085         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
24086         rtx to rtx_insn *.
24087         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
24088         to rtx_insn *.
24089         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
24090         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
24091         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
24092         referring to an insn.  Strengthen local "dispatch_label" from
24093         rtx to rtx_code_label *.
24094         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
24095         rtx_insn *.
24096         (expand_eh_return): Strengthen local "around_label" from
24097         rtx to rtx_code_label *.
24098         (convert_to_eh_region_ranges): Strengthen locals "iter",
24099         "last_action_insn", "first_no_action_insn",
24100         "first_no_action_insn_before_switch",
24101         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
24103 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24105         * dwarf2out.c (last_var_location_insn): Strengthen this variable
24106         from rtx to rtx_insn *.
24107         (cached_next_real_insn): Likewise.
24108         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
24109         working with insns.
24110         (dwarf2out_var_location): Strengthen locals "next_real",
24111         "next_note", "expected_next_loc_note", "last_start", "insn" from
24112         rtx to rtx_insn *.
24114 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24116         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
24117         from rtx to rtx_insn *.
24118         (create_pseudo_cfg): Likewise for local "insn".
24120 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24122         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
24123         from rtx to rtx_insn *.
24124         (df_bb_regno_last_def_find): Likewise.
24126         * df-problems.c (df_rd_bb_local_compute): Likewise.
24127         (df_lr_bb_local_compute): Likewise.
24128         (df_live_bb_local_compute): Likewise.
24129         (df_chain_remove_problem): Likewise.
24130         (df_chain_create_bb): Likewise.
24131         (df_word_lr_bb_local_compute): Likewise.
24132         (df_remove_dead_eq_notes): Likewise for param "insn".
24133         (df_note_bb_compute): Likewise for local "insn".
24134         (simulate_backwards_to_point): Likewise.
24135         (df_md_bb_local_compute): Likewise.
24137         * df-scan.c (df_scan_free_bb_info): Likewise.
24138         (df_scan_start_dump): Likewise.
24139         (df_scan_start_block): Likewise.
24140         (df_install_ref_incremental): Likewise for local "insn".
24141         (df_insn_rescan_all): Likewise.
24142         (df_reorganize_refs_by_reg_by_insn): Likewise.
24143         (df_reorganize_refs_by_insn_bb): Likewise.
24144         (df_recompute_luids): Likewise.
24145         (df_bb_refs_record): Likewise.
24146         (df_update_entry_exit_and_calls): Likewise.
24147         (df_bb_verify): Likewise.
24149 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24151         * ddg.h (struct ddg_node): Strengthen fields "insn" and
24152         "first_note" from rtx to rtx_insn *.
24153         (get_node_of_insn): Likewise for param 2 "insn".
24154         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
24156         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
24157         rtx_insn *.
24158         (mem_write_insn_p): Likewise.
24159         (mem_access_insn_p): Likewise.
24160         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
24161         (def_has_ccmode_p): Likewise for param "insn".
24162         (add_cross_iteration_register_deps): Likewise for locals
24163         "def_insn" and "use_insn".
24164         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
24165         (build_intra_loop_deps): Likewise for local "src_insn".
24166         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
24167         to rtx_insn *.
24168         (get_node_of_insn): Likewise for param "insn".
24170 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24172         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
24173         (deletable_insn_p): Strengthen param "insn" from rtx to
24174         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
24175         find_call_stack_args, since this is guarded by CALL_P (insn).
24176         (marked_insn_p): Strengthen param "insn" from rtx to
24177         rtx_insn *.
24178         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
24179         invoking find_call_stack_args, since this is guarded by
24180         CALL_P (insn).
24181         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
24182         rtx_insn *; we know this is an insn since this was called by
24183         mark_nonreg_stores.
24184         (mark_nonreg_stores_2): Likewise.
24185         (mark_nonreg_stores): Strengthen param "insn" from rtx to
24186         rtx_insn *.
24187         (find_call_stack_args): Strengthen param "call_insn" from rtx to
24188         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
24189         to rtx_insn *.
24190         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
24191         from rtx to rtx_insn *.
24192         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
24193         "next", "ref_insn".
24194         (delete_unmarked_insns): Likewise for locals "insn", "next".
24195         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
24196         (mark_reg_dependencies): Likewise for param "insn".
24197         (rest_of_handle_ud_dce): Likewise for local "insn".
24198         (word_dce_process_block): Likewise.
24199         (dce_process_block): Likewise.
24201 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24203         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
24204         from rtx to rtx_insn *.
24205         (struct change_cc_mode_args): Likewise for field "insn".
24206         (this_insn): Strengthen from rtx to rtx_insn *.
24207         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
24208         with insn.
24209         (validate_canon_reg): Strengthen param "insn" from rtx to
24210         rtx_insn *.
24211         (canon_reg): Likewise.
24212         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
24213         dealing with insn.
24214         (record_jump_equiv): Strengthen param "insn" from rtx to
24215         rtx_insn *.
24216         (try_back_substitute_reg): Likewise, also for locals "prev",
24217         "bb_head".
24218         (find_sets_in_insn): Likewise for param "insn".
24219         (canonicalize_insn): Likewise.
24220         (cse_insn): Likewise.  Add a checked cast.
24221         (invalidate_from_clobbers): Likewise for param "insn".
24222         (invalidate_from_sets_and_clobbers): Likewise.
24223         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
24224         dealing with insn.
24225         (cse_prescan_path): Strengthen local "insn" from rtx to
24226         rtx_insn *.
24227         (cse_extended_basic_block): Likewise for locals "insn" and
24228         "prev_insn".
24229         (cse_main): Likewise for param "f".
24230         (check_for_label_ref): Likewise for local "insn".
24231         (set_live_p): Likewise for second param ("insn").
24232         (insn_live_p): Likewise for first param ("insn") and for local
24233         "next".
24234         (cse_change_cc_mode_insn): Likewise for first param "insn".
24235         (cse_change_cc_mode_insns): Likewise for first and second params
24236         "start" and "end".
24237         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
24238         and "end".
24239         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
24240         "cc_src_insn".
24242 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24243             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
24244             Anna Tikhonova  <anna.tikhonova@intel.com>
24245             Ilya Tocar  <ilya.tocar@intel.com>
24246             Andrey Turetskiy  <andrey.turetskiy@intel.com>
24247             Ilya Verbin  <ilya.verbin@intel.com>
24248             Kirill Yukhin  <kirill.yukhin@intel.com>
24249             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24251         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
24252         New.
24253         * config/i386/sse.md
24254         (define_mode_iterator VI248_AVX2): Delete.
24255         (define_mode_iterator VI2_AVX2_AVX512BW): New.
24256         (define_mode_iterator VI48_AVX2): Ditto.
24257         (define_insn <shift_insn><mode>3): Delete.
24258         (define_insn "<shift_insn><mode>3<mask_name>" with
24259         VI2_AVX2_AVX512BW): New.
24260         (define_insn "<shift_insn><mode>3<mask_name>" with
24261         VI48_AVX2): Ditto.
24263 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24264             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
24265             Anna Tikhonova  <anna.tikhonova@intel.com>
24266             Ilya Tocar  <ilya.tocar@intel.com>
24267             Andrey Turetskiy  <andrey.turetskiy@intel.com>
24268             Ilya Verbin  <ilya.verbin@intel.com>
24269             Kirill Yukhin  <kirill.yukhin@intel.com>
24270             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24272         * config/i386/sse.md
24273         (define_mode_iterator VI4F_BRCST32x2): New.
24274         (define_mode_attr 64x2_mode): Ditto.
24275         (define_mode_attr 32x2mode): Ditto.
24276         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
24277         with VI4F_BRCST32x2): Ditto.
24278         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
24279         with V16FI mode iterator): Ditto.
24280         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
24281         with V16FI): Ditto.
24282         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
24283         with VI8F_BRCST64x2): Ditto.
24285 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24286             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
24287             Anna Tikhonova  <anna.tikhonova@intel.com>
24288             Ilya Tocar  <ilya.tocar@intel.com>
24289             Andrey Turetskiy  <andrey.turetskiy@intel.com>
24290             Ilya Verbin  <ilya.verbin@intel.com>
24291             Kirill Yukhin  <kirill.yukhin@intel.com>
24292             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24294         * config/i386/sse.md
24295         (define_mode_iterator VI8_AVX512VL): New.
24296         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
24298 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
24300         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
24301         (define_mode_iterator V48_AVX512VL): New.
24302         (define_mode_iterator V12_AVX512VL): Ditto.
24303         (define_insn <avx512>_load<mode>_mask): Split into two similar
24304         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
24305         Refactor output template.
24306         (define_insn "<avx512>_store<mode>_mask"): Ditto.
24308 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24310         * cprop.c (struct occr): Strengthen field "insn" from rtx to
24311         rtx_insn *.
24312         (reg_available_p): Likewise for param "insn".
24313         (insert_set_in_table): Likewise.
24314         (hash_scan_set): Likewise.
24315         (hash_scan_insn): Likewise.
24316         (make_set_regs_unavailable): Likewise.
24317         (compute_hash_table_work): Likewise for local "insn".
24318         (reg_not_set_p): Strengthen param "insn" from const_rtx to
24319         const rtx_insn *.
24320         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
24321         (try_replace_reg): Likewise.
24322         (find_avail_set): Likewise.
24323         (cprop_jump): Likewise for params "setcc", "jump".
24324         (constprop_register): Likewise for param "insn".
24325         (cprop_insn): Likewise.
24326         (do_local_cprop): Likewise.
24327         (local_cprop_pass): Likewise for local "insn".
24328         (bypass_block): Likewise for params "setcc" and "jump".
24329         (bypass_conditional_jumps): Likewise for locals "setcc" and
24330         "insn".
24331         (one_cprop_pass): Likewise for local "insn".
24333 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24335         * compare-elim.c (struct comparison_use): Strengthen field "insn"
24336         from rtx to rtx_insn *.
24337         (struct comparison): Likewise, also for field "prev_clobber".
24338         (conforming_compare): Likewise for param "insn".
24339         (arithmetic_flags_clobber_p): Likewise.
24340         (find_flags_uses_in_insn): Likewise.
24341         (find_comparison_dom_walker::before_dom_children): Likewise for
24342         locals "insn", "next", "last_clobber".
24343         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
24345 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24347         * combine-stack-adj.c (struct csa_reflist): Strengthen field
24348         "insn" from rtx to rtx_insn *.
24349         (single_set_for_csa): Likewise for param "insn".
24350         (record_one_stack_ref): Likewise.
24351         (try_apply_stack_adjustment): Likewise.
24352         (struct record_stack_refs_data): Likewise for field "insn".
24353         (maybe_move_args_size_note): Likewise for params "last" and "insn".
24354         (prev_active_insn_bb): Likewise for return type and param "insn".
24355         (next_active_insn_bb): Likewise.
24356         (force_move_args_size_note): Likewise for params "prev" and "last"
24357         and locals "test", "next_candidate", "prev_candidate".
24358         (combine_stack_adjustments_for_block): Strengthen locals
24359         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
24360         rtx_insn *.
24362 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24364         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
24365         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
24366         (subst_insn): Likewise for this variable.
24367         (added_links_insn): Likewise.
24368         (struct insn_link): Likewise for field "insn".
24369         (alloc_insn_link): Likewise for param "insn".
24370         (struct undobuf): Likewise for field "other_insn".
24371         (find_single_use): Likewise for param "insn" and local "next".
24372         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
24373         (delete_noop_moves): Likewise for locals "insn", "next".
24374         (create_log_links): Likewise for locals "insn", "use_insn".
24375         Strengthen local "next_use" from rtx * to rtx_insn **.
24376         (insn_a_feeds_b): Likewise for params "a", "b".
24377         (combine_instructions): Likewise for param "f" and locals "insn",
24378         "next", "prev", "first", "last_combined_insn", "link", "link1",
24379         "temp".  Replace use of NULL_RTX with NULL when referring to
24380         insns.
24381         (setup_incoming_promotions): Likewise for param "first"
24382         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
24383         (can_combine_p): Likewise for params "insn", "i3", "pred",
24384         "pred2", "succ", "succ2" and for local "p".
24385         (combinable_i3pat): Likewise for param "i3".
24386         (cant_combine_insn_p): Likewise for param "insn".
24387         (likely_spilled_retval_p): Likewise.
24388         (adjust_for_new_dest): Likewise.
24389         (update_cfg_for_uncondjump): Likewise, also for local "insn".
24390         (try_combine): Likewise for return type and for params "i3", "i2",
24391         "i1", "i0", "last_combined_insn", and for locals "insn",
24392         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
24393         "i0_insn".  Eliminate local "tem" in favor of new locals
24394         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
24395         checked cast for now to rtx_insn * on the return type of
24396         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
24397         insns.
24398         (find_split_point): Strengthen param "insn" from rtx to
24399         rtx_insn *.
24400         (simplify_set): Likewise for local "other_insn".
24401         (recog_for_combine): Likewise for param "insn".
24402         (record_value_for_reg): Likewise.
24403         (record_dead_and_set_regs_1): Likewise for local
24404         "record_dead_insn".
24405         (record_dead_and_set_regs): Likewise for param "insn".
24406         (record_promoted_value): Likewise.
24407         (check_promoted_subreg): Likewise.
24408         (get_last_value_validate): Likewise.
24409         (reg_dead_at_p): Likewise.
24410         (move_deaths): Likewise for param "to_insn".
24411         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
24412         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
24413         in favor of new locals "tem_note" and "tem_insn", the latter being
24414         an rtx_insn *.
24415         (distribute_links): Strengthen locals "place", "insn" from rtx to
24416         rtx_insn *.
24418 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24420         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
24421         than a const_rtx.
24422         (can_delete_label_p): Require a const rtx_code_label * rather than
24423         a const_rtx.
24424         (delete_insn): Add checked cast to rtx_code_label * when we know
24425         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
24426         rtx to rtx_insn *.
24427         (delete_insn_chain): Strengthen locals "prev" and "current" from
24428         rtx to rtx_insn *.  Add a checked cast when assigning from
24429         "finish" (strengthening the params will come later).  Add a
24430         checked cast to rtx_note * in region where we know
24431         NOTE_P (current).
24432         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
24433         rtx_insn *.
24434         (compute_bb_for_insn): Likewise.
24435         (free_bb_for_insn): Likewise for local "insn".
24436         (compute_bb_for_insn): Likewise.
24437         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
24438         local "insn" from rtx to rtx_insn *
24439         (flow_active_insn_p): Require a const rtx_insn * rather than a
24440         const_rtx.
24441         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
24442         rtx_insn *.
24443         (can_fallthru): Likewise for locals "insn" and "insn2".
24444         (bb_note): Likewise for local "note".
24445         (first_insn_after_basic_block_note): Likewise for local "note" and
24446         for return type.
24447         (rtl_split_block): Likewise for locals "insn" and "next".
24448         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
24449         "end".
24450         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
24451         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
24452         "prev", "tmp".
24453         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
24454         them), "kill_from", "barrier", "new_insn".
24455         (patch_jump_insn): Likewise for params "insn", "old_label".
24456         (redirect_branch_edge): Likewise for locals "old_label", "insn".
24457         (force_nonfallthru_and_redirect): Likewise for locals "insn",
24458         "old_label", "new_label".
24459         (rtl_tidy_fallthru_edge): Likewise for local "q".
24460         (rtl_split_edge): Likewise for locals "before", "last".
24461         (commit_one_edge_insertion): Likewise for locals "before",
24462         "after", "insns", "tmp", "last", adding a checked cast where
24463         currently necessary.
24464         (commit_edge_insertions): Likewise.
24465         (rtl_dump_bb): Likewise for locals "insn", "last".
24466         (print_rtl_with_bb): Likewise for local "x".
24467         (rtl_verify_bb_insns): Likewise for local "x".
24468         (rtl_verify_bb_pointers): Likewise for local "insn".
24469         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
24470         "head", "end".
24471         (rtl_verify_fallthru): Likewise for local "insn".
24472         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
24473         (purge_dead_edges): Likewise for local "insn".
24474         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
24475         (skip_insns_after_block): Likewise for return type and for locals
24476         "insn", "last_insn", "next_head", "prev".
24477         (record_effective_endpoints): Likewise for locals "next_insn",
24478         "insn", "end".
24479         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
24480         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
24481         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
24482         (duplicate_insn_chain): For now, add checked cast from rtx to
24483         rtx_insn * when returning insn.
24484         (cfg_layout_duplicate_bb): Likewise for local "insn".
24485         (cfg_layout_delete_block): Likewise for locals "insn", "next",
24486         "prev", "remaints".
24487         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
24488         (rtl_block_empty_p): Likewise.
24489         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
24490         "split_point", "last".
24491         (rtl_block_ends_with_call_p): Likewise for local "insn".
24492         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
24493         const rtx_insn *.
24494         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
24495         "split_at_insn" from rtx to rtx_insn *.
24496         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
24497         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
24498         to const rtx_insn *.
24499         (rtl_account_profile_record): Likewise.
24501 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24503         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
24504         rtx to rtx_insn *.
24505         (average_num_loop_insns): Likewise.
24506         (init_set_costs): Likewise for local "seq".
24507         (seq_cost): Likewise for param "seq", from const_rtx to const
24508         rtx_insn *.
24510 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24512         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
24513         rtx to rtx_insn *.
24515 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24517         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
24518         "f1" and "f2" from rtx * to rtx_insn **.
24519         (flow_find_head_matching_sequence): Likewise.
24521         * cfgcleanup.c (try_simplify_condjump): Strengthen local
24522         "cbranch_insn" from rtx to rtx_insn *.
24523         (thread_jump): Likewise for local "insn".
24524         (try_forward_edges): Likewise for local "last".
24525         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
24526         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
24527         "real_b_end".
24528         (can_replace_by): Likewise for params "i1", "i2".
24529         (old_insns_match_p): Likewise.
24530         (merge_notes): Likewise.
24531         (walk_to_nondebug_insn): Likewise for param "i1".
24532         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
24533         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
24534         "afterlast1", "afterlast2" from rtx to rtx_insn *.
24535         (flow_find_head_matching_sequence): Strengthen params "f1" and
24536         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
24537         "last1", "last2", "beforelast1", "beforelast2" from rtx to
24538         rtx_insn *.
24539         (outgoing_edges_match): Likewise for locals "last1", "last2".
24540         (try_crossjump_to_edge): Likewise for local "insn".
24541         Replace call to for_each_rtx with for_each_rtx_in_insn.
24543         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
24544         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
24545         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
24546         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
24547         (try_optimize_cfg): Strengthen local "last" from rtx to
24548         rtx_insn *.
24549         (delete_dead_jumptables): Likewise for locals "insn", "next",
24550         "label".
24552         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
24553         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
24554         "rtx else_first_tail", to reflect the basic-block.h changes above.
24556 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24558         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
24559         rtx_insn *.
24560         (purge_dead_tablejump_edges): Likewise.
24561         (find_bb_boundaries): Likewise for locals "insn", "end",
24562         "flow_transfer_insn".
24564 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24566         * caller-save.c (save_call_clobbered_regs): Strengthen locals
24567         "ins" and "prev" from rtx to rtx_insn *.
24569 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24571         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
24572         rtx_insn *.
24573         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
24574         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
24575         "scan_start".
24576         (load_register_parameters): Likewise for local "before_arg".
24577         (check_sibcall_argument_overlap): Likewise for param "insn".
24578         (expand_call): Likewise for locals "normal_call_insns",
24579         "tail_call_insns", "insns", "before_call", "after_args",
24580         "before_arg", "last", "prev".  Strengthen one of the "last" from
24581         rtx to rtx_call_insn *.
24582         (fixup_tail_calls): Strengthen local "insn" from rtx to
24583         rtx_insn *.
24584         (emit_library_call_value_1): Likewise for locals "before_call" and
24585         "last".
24587 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24589         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
24590         and "last" from rtx to rtx_insn *.
24591         (expand_builtin_nonlocal_goto): Likewise for local "insn".
24592         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
24593         rtx_call_insn *.
24594         (expand_errno_check): Strengthen local "lab" from rtx to
24595         rtx_code_label *.
24596         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
24597         rtx_insn *.
24598         (expand_builtin_mathfn_2): Likewise.
24599         (expand_builtin_mathfn_ternary): Likewise.
24600         (expand_builtin_mathfn_3): Likewise.
24601         (expand_builtin_interclass_mathfn): Likewise for local "last".
24602         (expand_builtin_int_roundingfn): Likewise for local "insns".
24603         (expand_builtin_int_roundingfn_2): Likewise.
24604         (expand_builtin_strlen): Likewise for local "before_strlen".
24605         (expand_builtin_strncmp): Likewise for local "seq".
24606         (expand_builtin_signbit): Likewise for local "last".
24607         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
24608         from rtx to rtx_code_label *.
24609         (expand_stack_restore):  Strengthen local "prev" from rtx to
24610         rtx_insn *.
24612 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24614         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
24615         to rtx_insn *.
24616         (struct btr_def_s): Likewise.
24617         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
24618         const rtx_insn *.
24619         (add_btr_def): Likewise.
24620         (new_btr_user): Likewise.
24621         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
24622         rtx to rtx_insn *.
24623         (link_btr_uses): Likewise.
24624         (move_btr_def): Likewise for locals "insp", "old_insn",
24625         "new_insn".  Add checked cast to rtx_insn * for now on result of
24626         gen_move_insn.
24627         (can_move_up): Strengthen param "insn" from const_rtx to
24628         const rtx_insn *.
24630 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24632         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
24633         rtx_insn *.
24634         (get_uncond_jump_length): Likewise for locals "label", "jump".
24635         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
24636         "jump", "insn".
24637         (add_labels_and_missing_jumps): Likewise for local "new_jump".
24638         (fix_up_fall_thru_edges): Likewise for local "old_jump".
24639         (find_jump_block): Likewise for local "insn".
24640         (fix_crossing_conditional_branches): Likewise for locals
24641         "old_jump", "new_jump".
24642         (fix_crossing_unconditional_branches): Likewise for locals
24643         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
24644         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
24646 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24648         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
24649         rtx to rtx_insn *.
24650         (struct mem_insn): Likewise for field "insn".
24651         (reg_next_use): Strengthen from rtx * to rtx_insn **.
24652         (reg_next_inc_use): Likewise.
24653         (reg_next_def): Likewise.
24654         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
24655         from rtx to rtx_insn *.
24656         (move_insn_before): Likewise for param "next_insn" and local "insns".
24657         (attempt_change): Likewise for local "mov_insn".
24658         (try_merge): Likewise for param "last_insn".
24659         (get_next_ref): Likewise for return type and local "insn".
24660         Strengthen param "next_array" from rtx * to rtx_insn **.
24661         (parse_add_or_inc): Strengthen param "insn" from rtx to
24662         rtx_insn *.
24663         (find_inc): Likewise for locals "insn" and "other_insn" (three of
24664         the latter).
24665         (merge_in_block): Likewise for locals "insn", "curr",
24666         "other_insn".
24667         (pass_inc_dec::execute): Update allocations of the arrays to
24668         reflect the stronger types.
24670 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24672         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
24673         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
24674         from rtx to rtx_code_label *.
24676 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24678         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
24679         to rtx_insn *.
24681 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24683         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
24684         generated a warning and prevented bootstrapping the compiler.
24686 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24688         * rtl.h (delete_related_insns): Strengthen return type from rtx to
24689         rtx_insn *.
24691         * jump.c (delete_related_insns): Likewise, also for locals "next"
24692         and "prev".
24694 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24696         * genautomata.c (output_internal_insn_latency_func): When writing
24697         the function "internal_insn_latency" to insn-automata.c,
24698         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
24699         allowing the optional guard function of (define_bypass) clauses to
24700         expect a pair of rtx_insn *, rather than a pair of rtx.
24701         (output_insn_latency_func): When writing the function
24702         "insn_latency", add an "uncast_" prefix to params "insn" and
24703         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
24704         using checked casts from the params, thus enabling the above
24705         change to the generated "internal_insn_latency" function.
24707 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
24709         PR tree-optimization/62091
24710         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
24711         handle correctly arrays.
24712         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
24713         inheritance binfos.
24714         (record_known_type): Walk into inner type.
24715         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
24716         condition on no type changes.
24718 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24720         * genattrtab.c (write_attr_get): Within the generated get_attr_
24721         functions, rename param "insn" to "uncast_insn" and reintroduce
24722         "insn" as an local rtx_insn * using a checked cast, so that "insn"
24723         is an rtx_insn * within insn-attrtab.c
24725 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24727         * output.h (peephole): Strengthen return type from rtx to
24728         rtx_insn *.
24729         * rtl.h (delete_for_peephole): Likewise for both params.
24730         * genpeep.c (main): In generated "peephole" function, strengthen
24731         return type and local "insn" from rtx to rtx_insn *.  For now,
24732         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
24733         rtx_insn *, with a checked cast.
24734         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
24735         locals "insn", "next", "prev" from rtx to rtx_insn *.
24737 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
24739         PR tree-optimization/62112
24740         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
24741         * gimple-iterator.h (gsi_replace): Return bool.
24742         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
24743         moved from ref_may_alias_global_p.
24744         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
24745         New overloads.
24746         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
24747         (stmt_kills_ref_p_1): Rename...
24748         (stmt_kills_ref_p): ... to this.
24749         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
24750         stmt_kills_ref_p): Declare.
24751         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
24752         Move the self-assignment case...
24753         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
24755 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24757         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
24759         * emit-rtl.c (try_split): Likewise, also for locals "before" and
24760         "after".  For now, don't strengthen param "trial", which requires
24761         adding checked casts when returning it.
24763 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24765         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
24766         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
24767         "var_location" hook from rtx to rtx_insn *.
24768         (debug_nothing_rtx): Delete in favor of...
24769         (debug_nothing_rtx_code_label): New prototype.
24770         (debug_nothing_rtx_rtx): Delete unused prototype.
24771         (debug_nothing_rtx_insn): New prototype.
24773         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
24774         invoking debug_hooks->var_location (in two places, one in a NOTE
24775         case of a switch statement, the other guarded by a CALL_P
24776         conditional.  Add checked cast to rtx_code_label * when invoking
24777         debug_hooks->label (within CODE_LABEL case of switch statement).
24779         * dbxout.c (dbx_debug_hooks): Update "label" hook from
24780         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
24781         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
24782         (xcoff_debug_hooks): Likewise.
24783         * debug.c (do_nothing_debug_hooks): Likewise.
24784         (debug_nothing_rtx): Delete in favor of...
24785         (debug_nothing_rtx_insn): New function.
24786         (debug_nothing_rtx_rtx): Delete unused function.
24787         (debug_nothing_rtx_code_label): New function.
24788         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
24789         debug_nothing_rtx to debug_nothing_rtx_code_label.
24790         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
24791         to rtx_insn *.
24792         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
24793         debug_nothing_rtx to debug_nothing_rtx_insn.
24794         (sdbout_label): Strengthen param "insn" from rtx to
24795         rtx_code_label *.
24796         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
24797         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
24798         "var_location" hook from debug_nothing_rtx to
24799         debug_nothing_rtx_insn.
24801 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24803         * recog.h (insn_output_fn): Update this function typedef to match
24804         the changes below to the generated output functions, strengthening
24805         the 2nd param from rtx to rtx_insn *.
24807         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
24808         insn when invoking an output function, to match the new signature
24809         of insn_output_fn with a stronger second param.
24811         * genconditions.c (write_header): In the generated code for
24812         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
24813         to match the other changes in this patch.
24815         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
24816         the generated "gen_" functions from rtx to rtx_insn * within their
24817         implementations.
24819         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
24820         the subfunctions within the generated "recog_", "split", "peephole2"
24821         function trees from rtx to rtx_insn *.  For now, the top-level
24822         generated functions ("recog", "split", "peephole2") continue to
24823         take a plain rtx for "insn", to avoid introducing dependencies on
24824         other patches.  Rename this 2nd param from "insn" to
24825         "uncast_insn", and reintroduce "insn" as a local variable of type
24826         rtx_insn *, initialized at the top of the generated function with
24827         a checked cast on "uncast_insn".
24828         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
24829         the generated "gen_" functions from rtx to rtx_insn * within their
24830         prototypes.
24832         * genoutput.c (process_template): Strengthen the 2nd param within
24833         the generated "output_" functions "insn" from rtx to rtx_insn *.
24835 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
24837         * tree-profile.c (tree_profiling): Skip external functions
24838         when doing coverage instrumentation.
24839         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
24841 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24843         * config/rs6000/altivec.h (vec_cpsgn): New #define.
24844         (vec_mergee): Likewise.
24845         (vec_mergeo): Likewise.
24846         (vec_cntlz): Likewise.
24847         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
24848         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
24849         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
24850         VMRGEW, and VMRGOW.
24851         * doc/extend.texi: Document various forms of vec_cpsgn,
24852         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
24853         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
24854         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
24855         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
24856         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
24858 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24860         * config/rs6000/rs6000.c (context.h): New include.
24861         (tree-pass.h): Likewise.
24862         (make_pass_analyze_swaps): New decl.
24863         (rs6000_option_override): Register pass_analyze_swaps.
24864         (swap_web_entry): New subsclass of web_entry_base (df.h).
24865         (special_handling_values): New enum.
24866         (union_defs): New function.
24867         (union_uses): Likewise.
24868         (insn_is_load_p): Likewise.
24869         (insn_is_store_p): Likewise.
24870         (insn_is_swap_p): Likewise.
24871         (rtx_is_swappable_p): Likewise.
24872         (insn_is_swappable_p): Likewise.
24873         (chain_purpose): New enum.
24874         (chain_contains_only_swaps): New function.
24875         (mark_swaps_for_removal): Likewise.
24876         (swap_const_vector_halves): Likewise.
24877         (adjust_subreg_index): Likewise.
24878         (permute_load): Likewise.
24879         (permute_store): Likewise.
24880         (handle_special_swappables): Likewise.
24881         (replace_swap_with_copy): Likewise.
24882         (dump_swap_insn_table): Likewise.
24883         (rs6000_analyze_swaps): Likewise.
24884         (pass_data_analyze_swaps): New pass_data.
24885         (pass_analyze_swaps): New rtl_opt_pass.
24886         (make_pass_analyze_swaps): New function.
24887         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
24889 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24891         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
24892         type from rtx to rtx_insn *.
24893         (create_copy_of_insn_rtx): Likewise.
24894         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
24895         (create_copy_of_insn_rtx): Likewise, also for local "res".
24897 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24899         * rtl.h (find_first_parameter_load): Strengthen return type from
24900         rtx to rtx_insn *.
24901         * rtlanal.c (find_first_parameter_load): Strengthen return type
24902         from rtx to rtx_insn *.  Add checked cast for now, to postpone
24903         strengthening the params.
24905 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24907         PR fortran/44054
24908         * diagnostic.c: Set default caret.
24909         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
24910         line is needed.
24911         * diagnostic.h (struct diagnostic_context):
24913 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24915         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
24916         (sel_bb_head): Strengthen return type insn_t (currently just an
24917         rtx) to rtx_insn *.
24918         (sel_bb_end): Likewise.
24920         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
24921         (sel_bb_head): Strengthen return type and local "head" from
24922         insn_t (currently just an rtx) to rtx_insn *.
24923         (sel_bb_end): Likewise for return type.
24924         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
24925         working with insn.
24927 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
24929         * basic-block.h (get_last_bb_insn): Strengthen return type from
24930         rtx to rtx_insn *.
24931         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
24932         end".
24934 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24936         PR fortran/44054
24937         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
24938         to here ...
24939         (diagnostic_report_diagnostic): ... from here.
24940         * toplev.c (general_init): Move code to c-family.
24942 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24944         * df.h (web_entry_base): Replace existing struct web_entry with a
24945         new class web_entry_base with only the predecessor member.
24946         (unionfind_root): Remove declaration and move to class member.
24947         (unionfind_union): Remove declaration and move to friend
24948         function.
24949         (union_defs): Remove declaration.
24950         * web.c (web_entry_base::unionfind_root): Modify to be member
24951         function and adjust accessors.
24952         (unionfind_union): Modify to be friend function and adjust
24953         accessors.
24954         (web_entry): New subclass of web_entry_base containing the reg
24955         member.
24956         (union_match_dups): Modify for struct -> class changes.
24957         (union_defs): Likewise.
24958         (entry_register): Likewise.
24959         (pass_web::execute): Likewise.
24961 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
24963         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
24964         builtin define __VEC_ELEMENT_REG_ORDER__.
24966 2014-08-20  Martin Jambor  <mjambor@suse.cz>
24967             Wei Mi  <wmi@google.com>
24969         PR ipa/60449
24970         PR middle-end/61776
24971         * tree-ssa-operands.c (update_stmt_operands): Remove
24972         MODIFIED_NORETURN_CALLS.
24973         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
24974         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
24975         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
24976         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
24977         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
24978         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
24979         (gimple_call_set_ctrl_altering): New func.
24980         (gimple_call_ctrl_altering_p): Ditto.
24981         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
24982         (make_blocks): Use gimple_call_initialize_ctrl_altering.
24983         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
24984         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
24985         remove MODIFIED_NORETURN_CALLS.
24987 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
24989         * coverage.c (coverage_compute_profile_id): Return non-0;
24990         also handle symbols with unique name.
24991         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
24993 2014-08-20  Steve Ellcey  <sellcey@mips.com>
24995         PR middle-end/49191
24996         * doc/sourcebuild.texi (non_strict_align): New.
24998 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
25000         * cgraphunit.c (ipa_passes, compile): Reshedule
25001         symtab_remove_unreachable_nodes passes; update comments.
25002         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
25003         TODO_remove_functions before the pass; the functions ought to be
25004         already removed.
25005         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
25006         TODO_remove_functions.
25007         * passes.c (pass_data_early_local_passes): Do not schedule function
25008         removal.
25009         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
25011 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25013         PR c/59304
25014         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
25015         before setting the option.
25016         * diagnostic.c (diagnostic_classify_diagnostic): Record
25017         command-line status.
25019 2014-08-20  Richard Biener  <rguenther@suse.de>
25021         PR lto/62190
25022         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
25023         to build uint{16,32,64}_type_node.
25025 2014-08-20  Terry Guo  <terry.guo@arm.com>
25027         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
25028         with immediate_operand.
25030 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
25032         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
25033         "insn" from an as_a to a safe_as_a, for the case when "insn" is
25034         NULL.
25036 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25038         PR preprocessor/51303
25039         * incpath.c (remove_duplicates): Use cpp_warning.
25041 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25043         PR c/60975
25044         PR c/53063
25045         * doc/options.texi (CPP): Document it.
25046         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
25047         * optc-gen.awk: Handle CPP.
25048         * opth-gen.awk: Likewise.
25050 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25052         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
25053         rtx_insn *.
25054         (duplicate_insn_chain): Likewise.
25055         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
25056         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
25057         checked cast for now (until we can strengthen the params in the
25058         same way).
25059         (duplicate_insn_chain): Likewise.
25061 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25063         * rtl.h (next_cc0_user): Strengthen return type from rtx to
25064         rtx_insn *.
25065         (prev_cc0_setter): Likewise.
25067         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
25068         rtx_insn *, adding checked casts for now as necessary.
25069         (prev_cc0_setter): Likewise.
25071 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25073         * expr.h (emit_move_insn): Strengthen return type from rtx to
25074         rtx_insn *.
25075         (emit_move_insn_1): Likewise.
25076         (emit_move_complex_push): Likewise.
25077         (emit_move_complex_parts): Likewise.
25079         * expr.c (emit_move_via_integer): Strengthen return type from rtx
25080         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
25081         with insns.
25082         (emit_move_complex_push): Strengthen return type from rtx to
25083         rtx_insn *.
25084         (emit_move_complex): Likewise, also for local "ret".
25085         (emit_move_ccmode): Likewise.
25086         (emit_move_multi_word): Likewise for return type and locals
25087         "last_insn", "seq".
25088         (emit_move_insn_1): Likewise for return type and locals "result",
25089         "ret".
25090         (emit_move_insn): Likewise for return type and local "last_insn".
25091         (compress_float_constant): Likewise.
25093 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25095         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
25096         from rtx to rtx_insn *.
25098         * rtl.h (emit_insn_before): Likewise.
25099         (emit_insn_before_noloc): Likewise.
25100         (emit_insn_before_setloc): Likewise.
25101         (emit_jump_insn_before): Likewise.
25102         (emit_jump_insn_before_noloc): Likewise.
25103         (emit_jump_insn_before_setloc): Likewise.
25104         (emit_call_insn_before): Likewise.
25105         (emit_call_insn_before_noloc): Likewise.
25106         (emit_call_insn_before_setloc): Likewise.
25107         (emit_debug_insn_before): Likewise.
25108         (emit_debug_insn_before_noloc): Likewise.
25109         (emit_debug_insn_before_setloc): Likewise.
25110         (emit_label_before): Likewise.
25111         (emit_insn_after): Likewise.
25112         (emit_insn_after_noloc): Likewise.
25113         (emit_insn_after_setloc): Likewise.
25114         (emit_jump_insn_after): Likewise.
25115         (emit_jump_insn_after_noloc): Likewise.
25116         (emit_jump_insn_after_setloc): Likewise.
25117         (emit_call_insn_after): Likewise.
25118         (emit_call_insn_after_noloc): Likewise.
25119         (emit_call_insn_after_setloc): Likewise.
25120         (emit_debug_insn_after): Likewise.
25121         (emit_debug_insn_after_noloc): Likewise.
25122         (emit_debug_insn_after_setloc): Likewise.
25123         (emit_label_after): Likewise.
25124         (emit_insn): Likewise.
25125         (emit_debug_insn): Likewise.
25126         (emit_jump_insn): Likewise.
25127         (emit_call_insn): Likewise.
25128         (emit_label): Likewise.
25129         (gen_clobber): Likewise.
25130         (emit_clobber): Likewise.
25131         (gen_use): Likewise.
25132         (emit_use): Likewise.
25133         (emit): Likewise.
25135         (emit_barrier_before): Strengthen return type from rtx to
25136         rtx_barrier *.
25137         (emit_barrier_after): Likewise.
25138         (emit_barrier): Likewise.
25140         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
25141         from rtx to rtx_insn *.  Add checked casts for now when converting
25142         "last" from rtx to rtx_insn *.
25143         (emit_insn_before_noloc): Likewise for return type.
25144         (emit_jump_insn_before_noloc): Likewise.
25145         (emit_call_insn_before_noloc): Likewise.
25146         (emit_debug_insn_before_noloc): Likewise.
25147         (emit_barrier_before): Strengthen return type and local "insn"
25148         from rtx to rtx_barrier *.
25149         (emit_label_before): Strengthen return type from rtx to
25150         rtx_insn *.  Add checked cast for now when returning param
25151         (emit_pattern_after_noloc): Strengthen return type from rtx to
25152         rtx_insn *.  Add checked casts for now when converting "last" from
25153         rtx to rtx_insn *.
25154         (emit_insn_after_noloc): Strengthen return type from rtx to
25155         rtx_insn *.
25156         (emit_jump_insn_after_noloc): Likewise.
25157         (emit_call_insn_after_noloc): Likewise.
25158         (emit_debug_insn_after_noloc): Likewise.
25159         (emit_barrier_after): Strengthen return type from rtx to
25160         rtx_barrier *.
25161         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
25162         Add checked cast for now when converting "label" from rtx to
25163         rtx_insn *.
25164         (emit_pattern_after_setloc): Strengthen return type from rtx to
25165         rtx_insn *.  Add checked casts for now when converting "last" from
25166         rtx to rtx_insn *.
25167         (emit_pattern_after): Strengthen return type from rtx to
25168         rtx_insn *.
25169         (emit_insn_after_setloc): Likewise.
25170         (emit_insn_after): Likewise.
25171         (emit_jump_insn_after_setloc): Likewise.
25172         (emit_jump_insn_after): Likewise.
25173         (emit_call_insn_after_setloc): Likewise.
25174         (emit_call_insn_after): Likewise.
25175         (emit_debug_insn_after_setloc): Likewise.
25176         (emit_debug_insn_after): Likewise.
25177         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
25178         when converting "last" from rtx to rtx_insn *.
25179         (emit_pattern_before): Strengthen return type from rtx to
25180         rtx_insn *.
25181         (emit_insn_before_setloc): Likewise.
25182         (emit_insn_before): Likewise.
25183         (emit_jump_insn_before_setloc): Likewise.
25184         (emit_jump_insn_before): Likewise.
25185         (emit_call_insn_before_setloc): Likewise.
25186         (emit_call_insn_before): Likewise.
25187         (emit_debug_insn_before_setloc): Likewise.
25188         (emit_debug_insn_before): Likewise.
25189         (emit_insn): Strengthen return type and locals "last", "insn",
25190         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
25191         within cases where we know we have an insn.
25192         (emit_debug_insn): Likewise.
25193         (emit_jump_insn): Likewise.
25194         (emit_call_insn): Strengthen return type and local "insn" from rtx
25195         to rtx_insn *.
25196         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
25197         a checked cast to rtx_insn * for now on "label".
25198         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
25199         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
25200         (emit_use): Likewise.
25201         (gen_use): Likewise, also for local "seq".
25202         (emit): Likewise for return type and local "insn".
25203         (rtx_insn): Likewise for return type and local "new_rtx".
25205         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
25206         from rtx to rtx_barrier *.
25208         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
25209         changed return type from rtx to rtx_insn *, we must update
25210         "emit_fn" type, and this in turn means updating...
25211         (frame_insn): ...this.  Strengthen return type from rtx to
25212         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
25214 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25216         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
25217         rtx to rtx_jump_table_data *.  Also for local.
25218         * rtl.h (emit_jump_table_data): Likewise.
25220 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25222         * basic-block.h (create_basic_block_structure): Strengthen third
25223         param "bb_note" from rtx to rtx_note *.
25224         * rtl.h (emit_note_before): Strengthen return type from rtx to
25225         rtx_note *.
25226         (emit_note_after): Likewise.
25227         (emit_note): Likewise.
25228         (emit_note_copy): Likewise.  Also, strengthen param similarly.
25229         * function.h (struct rtl_data): Strengthen field
25230         "x_stack_check_probe_note" from rtx to rtx_note *.
25232         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
25233         from rtx to rtx_note *.
25234         * cfgrtl.c (create_basic_block_structure): Strengthen third param
25235         "bb_note" from rtx to rtx_note *.
25236         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
25237         when calling emit_note_copy.
25238         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
25239         rtx_note *.
25240         (emit_note_after): Likewise.
25241         (emit_note_before): Likewise.
25242         (emit_note_copy): Likewise.  Also, strengthen param similarly.
25243         (emit_note): Likewise.
25244         * except.c (emit_note_eh_region_end): Likewise for return type.
25245         Strengthen local "next" from rtx to rtx_insn *.
25246         (convert_to_eh_region_ranges): Strengthen local "note"
25247         from rtx to rtx_note *.
25248         * final.c (change_scope): Likewise.
25249         (reemit_insn_block_notes): Likewise, for both locals named "note".
25250         Also, strengthen local "insn" from rtx to rtx_insn *.
25251         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
25252         rtx to rtx_note *.
25253         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
25254         strengthen local "seq" from rtx to rtx_insn *.
25255         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
25256         to rtx_note *.
25257         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
25258         vec<rtx_note *>.
25259         (get_bb_note_from_pool): Strengthen return type from rtx to
25260         rtx_note *.
25261         (sel_create_basic_block): Strengthen local "new_bb_note" from
25262         insn_t to rtx_note *.
25263         * var-tracking.c (emit_note_insn_var_location): Strengthen local
25264         "note" from rtx to rtx_note *.
25265         (emit_notes_in_bb): Likewise.
25267 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25269         * function.h (struct rtl_data): Strengthen field
25270         "x_parm_birth_insn" from rtx to rtx_insn *.
25271         * function.c (struct assign_parm_data_all): Strengthen fields
25272         "first_conversion_insn" and "last_conversion_insn" from rtx to
25273         rtx_insn *.
25275 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25277         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
25278         to rtx_insn *; also for local "var_end_seq".
25279         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
25280         (maybe_cleanup_end_of_block): Likewise for param "last" and local
25281         "insn".
25282         (expand_gimple_cond): Likewise for locals "last2" and "last".
25283         (mark_transaction_restart_calls): Likewise for local "insn".
25284         (expand_gimple_stmt): Likewise for return type and locals "last"
25285         and "insn".
25286         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
25287         (avoid_complex_debug_insns): Likewise for param "insn".
25288         (expand_debug_locations): Likewise for locals "insn", "last",
25289         "prev_insn" and "insn2".
25290         (expand_gimple_basic_block): Likewise for local "last".
25291         (construct_exit_block): Likewise for locals "head", "end",
25292         "orig_end".
25293         (pass_expand::execute): Likewise for locals "var_seq",
25294         "var_ret_seq", "next".
25296 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25298         * asan.h (asan_emit_stack_protection): Strengthen return type from
25299         rtx to rtx_insn *.
25300         * asan.c (asan_emit_stack_protection): Likewise.  Add local
25301         "insns" to hold the return value.
25303 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25305         * basic-block.h (bb_note): Strengthen return type from rtx to
25306         rtx_note *.
25307         * sched-int.h (bb_note): Likewise.
25308         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
25310 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25312         * rtl.h (make_insn_raw): Strengthen return type from rtx to
25313         rtx_insn *.
25315         * emit-rtl.c (make_insn_raw): Strengthen return type and local
25316         "insn" from rtx to rtx_insn *.
25317         (make_debug_insn_raw): Strengthen return type from rtx to
25318         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
25319         (make_jump_insn_raw):  Strengthen return type from rtx to
25320         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
25321         (make_call_insn_raw):  Strengthen return type from rtx to
25322         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
25323         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
25324         callback from rtx to rtx_insn *; likewise for local "insn" and
25325         "next", adding a checked cast to rtx_insn in the relevant cases of
25326         the switch statement.
25327         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
25328         callback from rtx to rtx_insn *.
25329         (emit_pattern_after_setloc): Likewise.
25330         (emit_pattern_after): Likewise.
25331         (emit_pattern_before_setloc): Likewise.
25332         (emit_pattern_before): Likewise.
25334 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25336         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
25337         rtx_call_insn *.
25338         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
25339         accepting an rtx_insn *.
25340         (last_call_insn): Strengthen return type from rtx to
25341         rtx_call_insn *.
25343 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25345         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
25346         "insns" from rtx to rtx_insn *.
25347         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
25348         locals "insn" and "prev".
25350 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25352         * rtl.h (tablejump_p): Strengthen third param from rtx * to
25353         rtx_jump_table_data **.
25355         * cfgbuild.c (make_edges): Introduce local "table", using it in
25356         place of "tmp" for jump table data.
25357         (find_bb_boundaries): Strengthen local "table" from rtx to
25358         rtx_jump_table_data *.
25359         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
25360         (outgoing_edges_match): Likewise for locals "table1" and "table2".
25361         (try_crossjump_to_edge): Likewise.
25362         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
25363         "table".
25364         (patch_jump_insn): Introduce local "table", using it in place of
25365         "tmp" for jump table data.
25366         (force_nonfallthru_and_redirect): Introduce local "table", so that
25367         call to tablejump_p can receive an rtx_jump_table_data **.  Update
25368         logic around the call to overwrite "note" appropriately if
25369         tablejump_p returns non-zero.
25370         (get_last_bb_insn): Introduce local "table", using it in place of
25371         "tmp" for jump table data.
25372         * dwarf2cfi.c (create_trace_edges): Likewise.
25374         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
25375         from rtx to rtx_jump_table_data *.
25376         (create_fix_barrier): Strengthen local "tmp" from rtx to
25377         rtx_jump_table_data *.
25378         (arm_reorg): Likewise for local "table".
25380         * config/s390/s390.c (s390_chunkify_start): Likewise.
25382         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
25384         * jump.c (delete_related_insns): Strengthen local "lab_next" from
25385         rtx to rtx_jump_table_data *.
25387         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
25388         rtx_jump_table_data **.  Add a checked cast when writing through
25389         the pointer: we know there that local "table" is non-NULL and that
25390         JUMP_TABLE_DATA_P (table) holds.
25391         (label_is_jump_target_p): Introduce local "table", using it in
25392         place of "tmp" for jump table data.
25394 2014-08-19  Marek Polacek  <polacek@redhat.com>
25396         PR c++/62153
25397         * doc/invoke.texi: Document -Wbool-compare.
25399 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25401         * rtl.h (entry_of_function): Strengthen return type from rtx to
25402         rtx_insn *.
25403         * cfgrtl.c (entry_of_function): Likewise.
25405 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25407         * emit-rtl.h (get_insns): Strengthen return type from rtx to
25408         rtx_insn *, adding a checked cast for now.
25409         (get_last_insn): Likewise.
25411 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25413         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
25414         rtx_code_label *.
25416         * emit-rtl.c (gen_label_rtx): Likewise.
25418 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25420         * rtl.h (previous_insn): Strengthen return type from rtx to
25421         rtx_insn *.
25422         (next_insn): Likewise.
25423         (prev_nonnote_insn): Likewise.
25424         (prev_nonnote_insn_bb): Likewise.
25425         (next_nonnote_insn): Likewise.
25426         (next_nonnote_insn_bb): Likewise.
25427         (prev_nondebug_insn): Likewise.
25428         (next_nondebug_insn): Likewise.
25429         (prev_nonnote_nondebug_insn): Likewise.
25430         (next_nonnote_nondebug_insn): Likewise.
25431         (prev_real_insn): Likewise.
25432         (next_real_insn): Likewise.
25433         (prev_active_insn): Likewise.
25434         (next_active_insn): Likewise.
25436         * emit-rtl.c (next_insn): Strengthen return type from rtx to
25437         rtx_insn *, adding a checked cast.
25438         (previous_insn): Likewise.
25439         (next_nonnote_insn): Likewise.
25440         (next_nonnote_insn_bb): Likewise.
25441         (prev_nonnote_insn): Likewise.
25442         (prev_nonnote_insn_bb): Likewise.
25443         (next_nondebug_insn): Likewise.
25444         (prev_nondebug_insn): Likewise.
25445         (next_nonnote_nondebug_insn): Likewise.
25446         (prev_nonnote_nondebug_insn): Likewise.
25447         (next_real_insn): Likewise.
25448         (prev_real_insn): Likewise.
25449         (next_active_insn): Likewise.
25450         (prev_active_insn): Likewise.
25452         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
25453         param "stepfunc" so that it returns an rtx_insn * rather than an
25454         rtx, to track the change to prev_nonnote_insn_bb, which is the
25455         only function this is called with.
25456         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
25458 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
25460         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
25461         assert.
25463 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25465         * coretypes.h (class rtx_debug_insn): Add forward declaration.
25466         (class rtx_nonjump_insn): Likewise.
25467         (class rtx_jump_insn): Likewise.
25468         (class rtx_call_insn): Likewise.
25469         (class rtx_jump_table_data): Likewise.
25470         (class rtx_barrier): Likewise.
25471         (class rtx_code_label): Likewise.
25472         (class rtx_note): Likewise.
25474         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
25475         adding the invariant DEBUG_INSN_P (X).
25476         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
25477         the invariant NONJUMP_INSN_P (X).
25478         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
25479         the invariant JUMP_P (X).
25480         (class rtx_call_insn): New, a subclass of rtx_insn, adding
25481         the invariant CALL_P (X).
25482         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
25483         invariant JUMP_TABLE_DATA_P (X).
25484         (class rtx_barrier): New, a subclass of rtx_insn, adding the
25485         invariant BARRIER_P (X).
25486         (class rtx_code_label): New, a subclass of rtx_insn, adding
25487         the invariant LABEL_P (X).
25488         (class rtx_note): New, a subclass of rtx_insn, adding
25489         the invariant NOTE_P(X).
25490         (is_a_helper <rtx_debug_insn *>::test): New.
25491         (is_a_helper <rtx_nonjump_insn *>::test): New.
25492         (is_a_helper <rtx_jump_insn *>::test): New.
25493         (is_a_helper <rtx_call_insn *>::test): New.
25494         (is_a_helper <rtx_jump_table_data *>::test): New functions,
25495         overloaded for both rtx and rtx_insn *.
25496         (is_a_helper <rtx_barrier *>::test): New.
25497         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
25498         for both rtx and rtx_insn *.
25499         (is_a_helper <rtx_note *>::test): New.
25501 2014-08-19  Marek Polacek  <polacek@redhat.com>
25503         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
25504         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
25505         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
25506         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
25508 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25510         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
25511         rtx_insn *.  To help with transition, for now, convert from an
25512         access macro into a pair of functions: BND_TO, returning an
25513         rtx_insn *, and...
25514         (SET_BND_TO): New function, for use where BND_TO is used as an
25515         lvalue.
25517         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
25518         SET_BND_TO.
25519         (BND_TO): New function, adding a checked cast.
25520         (SET_BND_TO): New function.
25522         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
25523         SET_BND_TO.
25524         (compute_av_set_on_boundaries): Likewise.
25526 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
25528         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
25529         destination if it is used in source.
25530         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
25531         (*popcount<mode>2_falsedep_1): Likewise.
25533 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
25535         PR other/62168
25536         * configure.ac: Set install_gold_as_default to no first.
25537         * configure: Regenerated.
25539 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25541         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
25542         "note_list" field will eventually be an rtx_insn *.  To help with
25543         transition, for now, convert from an access macro into a pair of
25544         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
25545         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
25546         used as an lvalue.
25548         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
25549         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
25551         * sel-sched-ir.c (init_bb): Likewise.
25552         (sel_restore_notes): Likewise.
25553         (move_bb_info): Likewise.
25554         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
25555         (SET_BB_NOTE_LIST): New function.
25557 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25559         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
25560         field will eventually be an rtx_insn *.  To help with transition,
25561         for now, convert from an access macro into a pair of functions:
25562         VINSN_INSN_RTX, returning an rtx_insn *, and...
25563         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
25564         is used as an lvalue.
25566         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
25567         SET_VINSN_INSN_RTX where it's used as an lvalue.
25568         (VINSN_INSN_RTX): New function.
25569         (SET_VINSN_INSN_RTX): New function.
25571 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25573         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
25574         eventually be rtx_insn *, but to help with transition, for now,
25575         convert from an access macro into a pair of functions: DEP_PRO
25576         returning an rtx_insn * and...
25577         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
25578         lvalue, returning an rtx&.
25579         (DEP_CON): Analogous changes to DEP_PRO above.
25580         (SET_DEP_CON): Likewise.
25582         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
25583         an lvalue to SET_DEP_CON.
25584         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
25585         (sd_copy_back_deps): Likewise for DEP_CON.
25586         (DEP_PRO): New function, adding a checked cast for now.
25587         (DEP_CON): Likewise.
25588         (SET_DEP_PRO): New function.
25589         (SET_DEP_CON): Likewise.
25591 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
25593         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
25594         (extra_options): Add i386/cygwin.opt.
25595         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
25596         (CPP_SPEC): Accept -pthread.
25597         (LINK_SPEC): Ditto.
25598         (GOMP_SELF_SPECS): Update comment.
25599         * config/i386/cygwin.opt: New file for -pthread flag.
25601 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25603         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
25604         * df.h (DF_REF_INSN): Convert from a macro to a function, so
25605         that we can return an rtx_insn *.
25607 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
25609         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
25610         when building executables, not DLLs.  Add --large-address-aware
25611         under the same conditions.
25612         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
25613         when building executables, not DLLs.  Add --large-address-aware
25614         under the same conditions when using -m32.
25616         * config/i386/cygwin-stdint.h: Throughout, make type
25617         definitions dependent on target architecture, not host.
25619 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25621         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
25622         the return type from rtx to rtx_insn *,  which will enable various
25623         conversions in followup patches.  For now this is is done by a
25624         checked cast.
25625         (NEXT_INSN): Likewise.
25626         (SET_PREV_INSN): Convert to an inline function.  This is intended
25627         for use as an lvalue, and so returns an rtx& to allow in-place
25628         modification.
25629         (SET_NEXT_INSN): Likewise.
25631 2014-07-08  Mark Wielaard  <mjw@redhat.com>
25633         PR debug/59051
25634         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
25636 2014-08-19  Marek Polacek  <polacek@redhat.com>
25638         PR c/61271
25639         * cgraphunit.c (handle_alias_pairs): Fix condition.
25641 2014-08-19  Richard Biener  <rguenther@suse.de>
25643         * gimple-fold.c (fold_gimple_assign): Properly build a
25644         null-pointer constant when devirtualizing addresses.
25646 2014-07-07  Mark Wielaard  <mjw@redhat.com>
25648         * dwarf2out.c (decl_quals): New function.
25649         (modified_type_die): Take one cv_quals argument instead of two,
25650         one for const and one for volatile.
25651         (add_type_attribute): Likewise.
25652         (generic_parameter_die): Call add_type_attribute with one modifier
25653         argument.
25654         (base_type_for_mode): Likewise.
25655         (add_bounds_info): Likewise.
25656         (add_subscript_info): Likewise.
25657         (gen_array_type_die): Likewise.
25658         (gen_descr_array_type_die): Likewise.
25659         (gen_entry_point_die): Likewise.
25660         (gen_enumeration_type_die): Likewise.
25661         (gen_formal_parameter_die): Likewise.
25662         (gen_subprogram_die): Likewise.
25663         (gen_variable_die): Likewise.
25664         (gen_const_die): Likewise.
25665         (gen_field_die): Likewise.
25666         (gen_pointer_type_die): Likewise.
25667         (gen_reference_type_die): Likewise.
25668         (gen_ptr_to_mbr_type_die): Likewise.
25669         (gen_inheritance_die): Likewise.
25670         (gen_subroutine_type_die): Likewise.
25671         (gen_typedef_die): Likewise.
25672         (force_type_die): Likewise.
25674 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25676         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
25677         if unset.
25678         * configure: Regenerate.
25680 2014-08-19  Richard Biener  <rguenther@suse.de>
25682         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
25683         DECL_EXTERNALs in BLOCKs as non-references.
25684         * tree-streamer-out.c (streamer_write_chain): Likewise.
25686 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25687             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25688             Anna Tikhonova  <anna.tikhonova@intel.com>
25689             Ilya Tocar  <ilya.tocar@intel.com>
25690             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25691             Ilya Verbin  <ilya.verbin@intel.com>
25692             Kirill Yukhin  <kirill.yukhin@intel.com>
25693             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25695         * config/i386/sse.md
25696         (define_mode_iterator VI48_AVX512F): Delete.
25697         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
25698         (define_mode_iterator VI2_AVX512VL): Ditto.
25699         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
25700         Delete.
25701         (define_insn
25702         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
25703         New.
25704         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
25705         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
25706         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
25707         with VI48_AVX512F_AVX512VL): New.
25708         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
25709         with VI2_AVX512VL): Ditto.
25711 2014-08-19  Marek Polacek  <polacek@redhat.com>
25713         * doc/invoke.texi: Document -Wc99-c11-compat.
25715 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25717         * rtl.h (PREV_INSN): Split macro in two: the existing one,
25718         for rvalues, and...
25719         (SET_PREV_INSN): New macro, for use as an lvalue.
25720         (NEXT_INSN, SET_NEXT_INSN): Likewise.
25722         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
25723         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
25724         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
25725         (fixup_abnormal_edges): Likewise.
25726         (unlink_insn_chain): Likewise.
25727         (fixup_reorder_chain): Likewise.
25728         (cfg_layout_delete_block): Likewise.
25729         (cfg_layout_merge_blocks): Likewise.
25730         * combine.c (update_cfg_for_uncondjump): Likewise.
25731         * emit-rtl.c (link_insn_into_chain): Likewise.
25732         (remove_insn): Likewise.
25733         (delete_insns_since): Likewise.
25734         (reorder_insns_nobb): Likewise.
25735         (emit_insn_after_1): Likewise.
25736         * final.c (rest_of_clean_state): Likewise.
25737         (final_scan_insn): Likewise.
25738         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
25739         * haifa-sched.c (concat_note_lists): Likewise.
25740         (remove_notes): Likewise.
25741         (restore_other_notes): Likewise.
25742         (move_insn): Likewise.
25743         (unlink_bb_notes): Likewise.
25744         (restore_bb_notes): Likewise.
25745         * jump.c (delete_for_peephole): Likewise.
25746         * optabs.c (emit_libcall_block_1): Likewise.
25747         * reorg.c (emit_delay_sequence): Likewise.
25748         (fill_simple_delay_slots): Likewise.
25749         * sel-sched-ir.c (sel_move_insn): Likewise.
25750         (sel_remove_insn): Likewise.
25751         (get_bb_note_from_pool): Likewise.
25752         * sel-sched.c (move_nop_to_previous_block): Likewise.
25754         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
25755         * config/c6x/c6x.c (gen_one_bundle): Likewise.
25756         (c6x_gen_bundles): Likewise.
25757         (hwloop_optimize): Likewise.
25758         * config/frv/frv.c (frv_function_prologue): Likewise.
25759         (frv_register_nop): Likewise.
25760         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
25761         (ia64_reorg): Likewise.
25762         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
25763         (mep_make_bundle): Likewise.
25764         (mep_bundle_insns): Likewise.
25765         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
25766         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
25767         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
25769 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25771         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
25772         return type from rtx to rtx_insn *.
25773         (BB_END): Likewise.
25774         (BB_HEADER): Likewise.
25775         (BB_FOOTER): Likewise.
25776         (SET_BB_HEAD): Convert to a function.
25777         (SET_BB_END): Likewise.
25778         (SET_BB_HEADER): Likewise.
25779         (SET_BB_FOOTER): Likewise.
25781         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
25782         Strengthen the return type from rtx to rtx_insn *.  For now, this
25783         is done by adding a checked cast, but this will eventually
25784         become a field lookup.
25785         (BB_END): Likewise.
25786         (BB_HEADER): Likewise.
25787         (BB_FOOTER): Likewise.
25788         (SET_BB_HEAD): New function, from macro of same name.  This is
25789         intended for use as an lvalue, and so returns an rtx& to allow
25790         in-place modification.
25791         (SET_BB_END): Likewise.
25792         (SET_BB_HEADER): Likewise.
25793         (SET_BB_FOOTER): Likewise.
25795 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
25797         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
25798         for rvalues, and...
25799         (SET_BB_HEAD): New macro, for use as a lvalue.
25800         (BB_END, SET_BB_END): Likewise.
25801         (BB_HEADER, SET_BB_HEADER): Likewise.
25802         (BB_FOOTER, SET_BB_FOOTER): Likewise.
25804         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
25805         of BB_* macros into SET_BB_* macros.
25806         (fix_crossing_unconditional_branches): Likewise.
25807         * caller-save.c (save_call_clobbered_regs): Likewise.
25808         (insert_one_insn): Likewise.
25809         * cfgbuild.c (find_bb_boundaries): Likewise.
25810         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
25811         (outgoing_edges_match): Likewise.
25812         (try_optimize_cfg): Likewise.
25813         * cfgexpand.c (expand_gimple_cond): Likewise.
25814         (expand_gimple_tailcall): Likewise.
25815         (expand_gimple_basic_block): Likewise.
25816         (construct_exit_block): Likewise.
25817         * cfgrtl.c (delete_insn): Likewise.
25818         (create_basic_block_structure): Likewise.
25819         (rtl_delete_block): Likewise.
25820         (rtl_split_block): Likewise.
25821         (emit_nop_for_unique_locus_between): Likewise.
25822         (rtl_merge_blocks): Likewise.
25823         (block_label): Likewise.
25824         (try_redirect_by_replacing_jump): Likewise.
25825         (emit_barrier_after_bb): Likewise.
25826         (fixup_abnormal_edges): Likewise.
25827         (record_effective_endpoints): Likewise.
25828         (relink_block_chain): Likewise.
25829         (fixup_reorder_chain): Likewise.
25830         (fixup_fallthru_exit_predecessor): Likewise.
25831         (cfg_layout_duplicate_bb): Likewise.
25832         (cfg_layout_split_block): Likewise.
25833         (cfg_layout_delete_block): Likewise.
25834         (cfg_layout_merge_blocks): Likewise.
25835         * combine.c (update_cfg_for_uncondjump): Likewise.
25836         * emit-rtl.c (add_insn_after): Likewise.
25837         (remove_insn): Likewise.
25838         (reorder_insns): Likewise.
25839         (emit_insn_after_1): Likewise.
25840         * haifa-sched.c (get_ebb_head_tail): Likewise.
25841         (restore_other_notes): Likewise.
25842         (move_insn): Likewise.
25843         (sched_extend_bb): Likewise.
25844         (fix_jump_move): Likewise.
25845         * ifcvt.c (noce_process_if_block): Likewise.
25846         (dead_or_predicable): Likewise.
25847         * ira.c (update_equiv_regs): Likewise.
25848         * reg-stack.c (change_stack): Likewise.
25849         * sel-sched-ir.c (sel_move_insn): Likewise.
25850         * sel-sched.c (move_nop_to_previous_block): Likewise.
25852         * config/c6x/c6x.c (hwloop_optimize): Likewise.
25853         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
25855 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
25857         * rtl.h (for_each_rtx_in_insn): New function.
25858         * rtlanal.c (for_each_rtx_in_insn): Likewise.
25860 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
25862         * coretypes.h (class rtx_insn): Add forward declaration.
25864         * rtl.h: Include is-a.h.
25865         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
25866         workaround to ensure gengtype knows inheritance is occurring,
25867         whilst continuing to use the pre-existing special-casing for
25868         rtx_def.
25869         (class rtx_insn): New subclass of rtx_def, adding the
25870         invariant that we're dealing with something we can sanely use
25871         INSN_UID, NEXT_INSN, PREV_INSN on.
25872         (is_a_helper <rtx_insn *>::test): New.
25873         (is_a_helper <const rtx_insn *>::test): New.
25875 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
25877         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
25879 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
25881         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
25882         comdats as extern.
25884 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
25886         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
25887         to BUILT_IN_UNREACHABLE.
25889 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
25891         PR target/62011
25892         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
25893         New tune flag.
25894         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
25895         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
25896         (ffs<mode>2): Do not expand with tzcnt for
25897         TARGET_AVOID_FALSE_DEP_FOR_BMI.
25898         (ffssi2_no_cmove): Ditto.
25899         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
25900         (ctz<mode>2): New expander.
25901         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
25902         (*ctz<mode>2_falsedep): New insn.
25903         (*ctz<mode>2): Rename from ctz<mode>2.
25904         (clz<mode>2_lzcnt): New expander.
25905         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
25906         (*clz<mode>2_lzcnt_falsedep): New insn.
25907         (*clz<mode>2): Rename from ctz<mode>2.
25908         (popcount<mode>2): New expander.
25909         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
25910         (*popcount<mode>2_falsedep): New insn.
25911         (*popcount<mode>2): Rename from ctz<mode>2.
25912         (*popcount<mode>2_cmp): Remove.
25913         (*popcountsi2_cmp_zext): Ditto.
25915 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
25917         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
25918         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
25919         * config/microblaze/microblaze.h
25920         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
25922 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
25924         PR other/62168
25925         * configure.ac: Set install_gold_as_default to no for
25926         --enable-gold=no.
25927         * configure: Regenerated.
25929 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
25931         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
25932         * config.in: Add undef of HAVE_isl.
25933         * configure: Regenerate.
25934         * configure.ac: Add definition of HAVE_isl.
25935         * graphite-blocking.c: Add checking of HAVE_isl.
25936         * graphite-dependences.c: Likewise.
25937         * graphite-interchange.c: Likewise.
25938         * graphite-isl-ast-to-gimple.c: Likewise.
25939         * graphite-optimize-isl.c: Likewise.
25940         * graphite-poly.c: Likewise.
25941         * graphite-scop-detection.c: Likewise.
25942         * graphite-sese-to-poly.c: Likewise.
25943         * graphite.c: Likewise.
25944         * toplev.c: Replace the checking of HAVE_cloog with the checking
25945         of HAVE_isl.
25947 2014-08-18  Richard Biener  <rguenther@suse.de>
25949         PR tree-optimization/62090
25950         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
25951         (fold_builtin_3): Do not fold snprintf.
25952         (fold_builtin_4): Likewise.
25953         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
25954         moved from builtins.c.
25955         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
25956         (gimple_fold_builtin): Do not fold sprintf here.
25958 2014-08-18  Richard Biener  <rguenther@suse.de>
25960         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
25961         code to ...
25962         (maybe_canonicalize_mem_ref_addr): ... this function.
25963         (fold_stmt_1): Apply it here before all simplification.
25965 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
25967         PR ipa/61800
25968         * cgraph.h (cgraph_node::create_indirect_edge): Add
25969         compute_indirect_info param.
25970         * cgraph.c (cgraph_node::create_indirect_edge): Compute
25971         indirect_info only when it is required.
25972         * cgraphclones.c (cgraph_clone_edge): Do not recompute
25973         indirect_info fore cloned indirect edge.
25975 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25976             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25977             Anna Tikhonova  <anna.tikhonova@intel.com>
25978             Ilya Tocar  <ilya.tocar@intel.com>
25979             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25980             Ilya Verbin  <ilya.verbin@intel.com>
25981             Kirill Yukhin  <kirill.yukhin@intel.com>
25982             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25984         * config/i386/sse.md
25985         (define_mode_iterator VI8_AVX2_AVX512BW): New.
25986         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
25988 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25989             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25990             Anna Tikhonova  <anna.tikhonova@intel.com>
25991             Ilya Tocar  <ilya.tocar@intel.com>
25992             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25993             Ilya Verbin  <ilya.verbin@intel.com>
25994             Kirill Yukhin  <kirill.yukhin@intel.com>
25995             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25997         * config/i386/sse.md
25998         (define_mode_iterator VF1_AVX512VL): New.
25999         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
26000         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
26001         New.
26003 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26004             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26005             Anna Tikhonova  <anna.tikhonova@intel.com>
26006             Ilya Tocar  <ilya.tocar@intel.com>
26007             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26008             Ilya Verbin  <ilya.verbin@intel.com>
26009             Kirill Yukhin  <kirill.yukhin@intel.com>
26010             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26012         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
26013         * config/i386/i386.md
26014         (define_code_iterator any_float): New.
26015         (define_code_attr floatsuffix): New.
26016         * config/i386/sse.md
26017         (define_mode_iterator VF1_128_256VL): New.
26018         (define_mode_iterator VF2_512_256VL): New.
26019         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
26020         TARGET check.
26021         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
26022         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
26023         New.
26024         (define_mode_attr qq2pssuff): New.
26025         (define_mode_attr sselongvecmode): New.
26026         (define_mode_attr sselongvecmodelower): New.
26027         (define_mode_attr sseintvecmode3): New.
26028         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
26029         New.
26030         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
26031         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
26032         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
26033         (define_insn "ufloatv2siv2df2<mask_name>"): New.
26035 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26036             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26037             Anna Tikhonova  <anna.tikhonova@intel.com>
26038             Ilya Tocar  <ilya.tocar@intel.com>
26039             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26040             Ilya Verbin  <ilya.verbin@intel.com>
26041             Kirill Yukhin  <kirill.yukhin@intel.com>
26042             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26044         * config/i386/sse.md
26045         (define_mode_iterator VF2_AVX512VL): New.
26046         (define_mode_attr sseintvecmode2): New.
26047         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
26048         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
26049         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
26050         (define_insn
26051         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
26052         Ditto.
26053         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
26054         Ditto.
26055         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
26056         Ditto.
26058 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26059             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26060             Anna Tikhonova  <anna.tikhonova@intel.com>
26061             Ilya Tocar  <ilya.tocar@intel.com>
26062             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26063             Ilya Verbin  <ilya.verbin@intel.com>
26064             Kirill Yukhin  <kirill.yukhin@intel.com>
26065             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26067         * config/i386/i386.md
26068         (define_insn "*movoi_internal_avx"): Add evex version.
26069         (define_insn "*movti_internal"): Ditto.
26071 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26072             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26073             Anna Tikhonova  <anna.tikhonova@intel.com>
26074             Ilya Tocar  <ilya.tocar@intel.com>
26075             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26076             Ilya Verbin  <ilya.verbin@intel.com>
26077             Kirill Yukhin  <kirill.yukhin@intel.com>
26078             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26080         * config/i386/i386.md
26081         (define_attr "isa"): Add avx512dq, noavx512dq.
26082         (define_attr "enabled"): Ditto.
26083         * config/i386/sse.md
26084         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
26086 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26087             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26088             Anna Tikhonova  <anna.tikhonova@intel.com>
26089             Ilya Tocar  <ilya.tocar@intel.com>
26090             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26091             Ilya Verbin  <ilya.verbin@intel.com>
26092             Kirill Yukhin  <kirill.yukhin@intel.com>
26093             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26095         * config/i386/i386.c
26096         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
26097         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
26098         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
26099         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
26100         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
26101         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
26102         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
26103         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
26104         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
26105         * config/i386/sse.md
26106         (define_mode_iterator VMOVE): Allow V4TI mode.
26107         (define_mode_iterator V_AVX512VL): New.
26108         (define_mode_iterator V): New handling for AVX512VL.
26109         (define_insn "avx512f_load<mode>_mask"): Delete.
26110         (define_insn "<avx512>_load<mode>_mask"): New.
26111         (define_insn "avx512f_store<mode>_mask"): Delete.
26112         (define_insn "<avx512>_store<mode>_mask"): New.
26115 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
26117         PR sanitizer/62089
26118         * asan.c (instrument_derefs): Fix bitfield check.
26120 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
26122         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
26123         * config/rs6000/htm.md (ttest): Remove clobber.
26124         * config/rs6000/predicates.md (any_mask_operand): New predicate.
26125         (and_operand): Reformat.
26126         (and_2rld_operand): New predicate.
26127         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
26128         parameter.
26129         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
26130         parameter.  Handle AND directly.
26131         (rs6000_split_logical_di): Remove last parameter.
26132         (rs6000_split_logical): Remove last parameter.  Remove obsolete
26133         comment.
26134         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
26135         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
26136         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
26137         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
26138         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
26139         and 5 anonymous splitters):  Delete.
26140         (and<mode>3): New expander.
26141         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
26142         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
26143         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
26144         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
26145         (floatdisf2_internal1): Remove clobbers.
26146         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
26147         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
26148         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
26149         (and<mode>3 for BOOL_128): Remove clobber.
26150         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
26151         rs6000_split_logical.
26152         (*bool<mode>3_internal for BOOL_128): Adjust call of
26153         rs6000_split_logical.
26154         (*boolc<mode>3_internal1 for BOOL_128,
26155         *boolc<mode>3_internal2 for BOOL_128,
26156         *boolcc<mode>3_internal1 for BOOL_128,
26157         *boolcc<mode>3_internal2 for BOOL_128,
26158         *eqv<mode>3_internal1 for BOOL_128,
26159         *eqv<mode>3_internal2 for BOOL_128,
26160         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
26161         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
26162         clobber.
26163         (*vec_reload_and_reg_<mptrsize>): Delete.
26165 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
26167         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
26168         and split, *boolccsi3_internal3 and split): Delete.
26169         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
26170         *boolccdi3_internal3 and split): Delete.
26171         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
26172         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
26174 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
26176         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
26177         and split, *boolcsi3_internal3 and split): Delete.
26178         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
26179         *boolcdi3_internal3 and split): Delete.
26180         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
26182 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
26184         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
26185         <'u'>: Also support printing the low-order 16 bits.
26186         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
26187         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
26188         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
26189         *booldi3_internal3 and split): Delete.
26190         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
26191         *bool<mode>3_dot2): New.
26192         (two anonymous define_splits for non_logical_cint_operand): Merge.
26194 2014-08-17  Marek Polacek  <polacek@redhat.com>
26195             Manuel López-Ibáñez  <manu@gcc.gnu.org>
26197         PR c/62059
26198         * diagnostic.c (adjust_line): Add gcc_checking_assert.
26199         (diagnostic_show_locus): Don't print caret diagnostic
26200         if a column is larger than the line_width.
26202 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
26204         * common.opt: Make the ISL AST generator to be the main code generator
26205         of Graphite.
26207 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
26209         * wide-int.h (generic_wide_int): Declare as class instead of struct.
26211 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
26213         PR target/61641
26214         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
26215         Declare.
26216         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
26217         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
26218         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
26219         Define.
26220         * config/pa/pa.md (begin_brtab): Delete insn.
26221         (end_brtab): Likewise.
26223 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26225         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
26227 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
26229         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
26230         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
26231         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
26232         (get_dynamic_type): Remove.
26233         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
26234         (clear_speculation): Bring to ipa-deivrt.h
26235         (get_class_context): Rename to ...
26236         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
26237         (contains_type_p): Update.
26238         (get_dynamic_type): Rename to ...
26239         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
26240         (possible_polymorphic_call_targets): UPdate.
26241         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
26242         * ipa-prop.c (ipa_analyze_call_uses): Update.
26244 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
26246         * doc/invoke.texi (SH options): Document missing processor variant
26247         options.  Remove references to Hitachi.  Undocument deprecated mspace
26248         option.
26250 2014-08-15  Jason Merrill  <jason@redhat.com>
26252         * tree.c (type_hash_canon): Uncomment assert.
26254 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26256         * input.h (in_system_header_at): Add comment.
26258 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26260         PR fortran/44054
26261         * diagnostic.c (build_message_string): Make it extern.
26262         * diagnostic.h (build_message_string): Make it extern.
26264 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
26266         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
26267         load/store from/to non-floating class pseudo.
26269 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26271         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
26273 2014-08-15  Richard Biener  <rguenther@suse.de>
26275         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
26276         (get_constraint_for_ssa_var): Remove dead code.
26277         (get_constraint_for_1): Adjust.
26278         (find_what_var_points_to): Likewise.
26279         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
26281 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
26283         PR target/61878
26284         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
26285         (_mm512_mask_cmpge_epu32_mask): Ditto.
26286         (_mm512_cmpge_epu32_mask): Ditto.
26287         (_mm512_mask_cmpge_epi64_mask): Ditto.
26288         (_mm512_cmpge_epi64_mask): Ditto.
26289         (_mm512_mask_cmpge_epu64_mask): Ditto.
26290         (_mm512_cmpge_epu64_mask): Ditto.
26291         (_mm512_mask_cmple_epi32_mask): Ditto.
26292         (_mm512_cmple_epi32_mask): Ditto.
26293         (_mm512_mask_cmple_epu32_mask): Ditto.
26294         (_mm512_cmple_epu32_mask): Ditto.
26295         (_mm512_mask_cmple_epi64_mask): Ditto.
26296         (_mm512_cmple_epi64_mask): Ditto.
26297         (_mm512_mask_cmple_epu64_mask): Ditto.
26298         (_mm512_cmple_epu64_mask): Ditto.
26299         (_mm512_mask_cmplt_epi32_mask): Ditto.
26300         (_mm512_cmplt_epi32_mask): Ditto.
26301         (_mm512_mask_cmplt_epu32_mask): Ditto.
26302         (_mm512_cmplt_epu32_mask): Ditto.
26303         (_mm512_mask_cmplt_epi64_mask): Ditto.
26304         (_mm512_cmplt_epi64_mask): Ditto.
26305         (_mm512_mask_cmplt_epu64_mask): Ditto.
26306         (_mm512_cmplt_epu64_mask): Ditto.
26307         (_mm512_mask_cmpneq_epi32_mask): Ditto.
26308         (_mm512_mask_cmpneq_epu32_mask): Ditto.
26309         (_mm512_cmpneq_epu32_mask): Ditto.
26310         (_mm512_mask_cmpneq_epi64_mask): Ditto.
26311         (_mm512_cmpneq_epi64_mask): Ditto.
26312         (_mm512_mask_cmpneq_epu64_mask): Ditto.
26313         (_mm512_cmpneq_epu64_mask): Ditto.
26314         (_mm512_castpd_ps): Ditto.
26315         (_mm512_castpd_si512): Ditto.
26316         (_mm512_castps_pd): Ditto.
26317         (_mm512_castps_si512): Ditto.
26318         (_mm512_castsi512_ps): Ditto.
26319         (_mm512_castsi512_pd): Ditto.
26320         (_mm512_castpd512_pd128): Ditto.
26321         (_mm512_castps512_ps128): Ditto.
26322         (_mm512_castsi512_si128): Ditto.
26323         (_mm512_castpd512_pd256): Ditto.
26324         (_mm512_castps512_ps256): Ditto.
26325         (_mm512_castsi512_si256): Ditto.
26326         (_mm512_castpd128_pd512): Ditto.
26327         (_mm512_castps128_ps512): Ditto.
26328         (_mm512_castsi128_si512): Ditto.
26329         (_mm512_castpd256_pd512): Ditto.
26330         (_mm512_castps256_ps512): Ditto.
26331         (_mm512_castsi256_si512): Ditto.
26332         (_mm512_cmpeq_epu32_mask): Ditto.
26333         (_mm512_mask_cmpeq_epu32_mask): Ditto.
26334         (_mm512_mask_cmpeq_epu64_mask): Ditto.
26335         (_mm512_cmpeq_epu64_mask): Ditto.
26336         (_mm512_cmpgt_epu32_mask): Ditto.
26337         (_mm512_mask_cmpgt_epu32_mask): Ditto.
26338         (_mm512_mask_cmpgt_epu64_mask): Ditto.
26339         (_mm512_cmpgt_epu64_mask): Ditto.
26340         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
26341         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
26342         * config/i386/i386.c (enum ix86_builtins): Add
26343         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
26344         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
26345         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
26346         (bdesc_args): Add __builtin_ia32_si512_256si,
26347         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
26348         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
26349         __builtin_ia32_pd512_pd.
26350         (ix86_expand_args_builtin): Handle new FTYPEs.
26351         * config/i386/sse.md (castmode): Add 512-bit modes.
26352         (AVX512MODE2P): New.
26353         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
26354         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
26356 2014-08-15  Richard Biener  <rguenther@suse.de>
26358         * fold-const.c (tree_swap_operands_p): Put all constants
26359         last, also strip sign-changing NOPs when considering further
26360         canonicalization.  Canonicalize also when optimizing for size.
26362 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26364         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
26365         one_match > zero_match case to just before simple_sequence.
26367 2014-08-15  Richard Biener  <rguenther@suse.de>
26369         * data-streamer.h (streamer_string_index, string_for_index):
26370         Remove.
26371         * data-streamer-out.c (streamer_string_index): Make static.
26372         * data-streamer-in.c (string_for_index): Likewise.
26373         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
26374         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
26376 2014-08-15  Richard Biener  <rguenther@suse.de>
26378         PR tree-optimization/62031
26379         * tree-data-ref.c (dr_analyze_indices): Do not set
26380         DR_UNCONSTRAINED_BASE.
26381         (dr_may_alias_p): All indirect accesses have to go the
26382         formerly DR_UNCONSTRAINED_BASE path.
26383         * tree-data-ref.h (struct indices): Remove
26384         unconstrained_base member.
26385         (DR_UNCONSTRAINED_BASE): Remove.
26387 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
26389         PR middle-end/62092
26390         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
26391         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
26392         in OMP_CLAUSE_MAP in some outer target region.
26394 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
26396         * tree-ssa-loop-ivopts.c (ivopts_data): New field
26397         name_expansion_cache.
26398         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
26399         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
26400         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
26401         (difference_cannot_overflow_p): New parameter.  Use affine
26402         expansion for equality check.
26403         (iv_elimination_compare_lt): Pass new argument.
26405 2014-08-14  DJ Delorie  <dj@redhat.com>
26407         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
26408         variables to the accumulator.
26410         * config/rl78/predicates.md (rl78_near_mem_operand): New.
26411         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
26412         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
26413         with far-far moves.
26415         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
26416         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
26417         (umulqihi3_virt): Likewise.
26418         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
26419         (umulqihi3_real): Likewise.
26421         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
26423 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
26425         PR tree-optimization/62091
26426         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
26427         function_entry_reached.
26428         (walk_aliased_vdefs): Clear it here.
26429         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
26431 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
26433         * ipa-utils.h (compare_virtual_tables): Declare.
26434         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
26436 2014-08-14  Marek Polacek  <polacek@redhat.com>
26438         DR 458
26439         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
26440         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
26442 2014-08-14  Tom de Vries  <tom@codesourcery.com>
26444         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
26446 2014-08-14  Tom de Vries  <tom@codesourcery.com>
26448         PR rtl-optimization/62004
26449         PR rtl-optimization/62030
26450         * ifcvt.c (rtx_interchangeable_p): New function.
26451         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
26452         * emit-rtl.h (mem_attrs_eq_p): Declare.
26454 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
26456         * graphite-scop-detection.c:
26457         Add inclusion of cp-tree.h.
26458         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
26459         in case they are pointers to object types
26461 2014-08-14  Richard Biener  <rguenther@suse.de>
26463         * BASE-VER: Change to 5.0.0
26465 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26466             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26467             Anna Tikhonova  <anna.tikhonova@intel.com>
26468             Ilya Tocar  <ilya.tocar@intel.com>
26469             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26470             Ilya Verbin  <ilya.verbin@intel.com>
26471             Kirill Yukhin  <kirill.yukhin@intel.com>
26472             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26474         * config/i386/sse.md (define_mode_attr avx512): New.
26475         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
26476         V4DI modes.
26477         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
26478         (define_mode_attr ssse3_avx2): Ditto.
26479         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
26480         (define_mode_attr avx2_avx512bw): New.
26481         (define_mode_attr ssedoublemodelower): New.
26482         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
26483         V32HI, V64QI modes.
26484         (define_mode_attr ssebytemode): Allow V8DI modes.
26485         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
26486         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
26487         (define_mode_attr ssePSmode2): New.
26488         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
26489         V16HI, V32HI modes.
26490         (define_mode_attr dbpsadbwmode): New.
26491         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
26492         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
26493         (vi8_sse4_1_avx2_avx512): New.
26494         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
26495         mode attribute.
26496         (define_mode_attr blendbits): Move before its immediate use.
26498 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26499             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26500             Anna Tikhonova  <anna.tikhonova@intel.com>
26501             Ilya Tocar  <ilya.tocar@intel.com>
26502             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26503             Ilya Verbin  <ilya.verbin@intel.com>
26504             Kirill Yukhin  <kirill.yukhin@intel.com>
26505             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26507         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
26508         * config/i386/subst.md
26509         (define_mode_iterator SUBST_V): Update.
26510         (define_mode_iterator SUBST_A): Ditto.
26511         (define_subst_attr "mask_operand7"): New.
26512         (define_subst_attr "mask_operand10"): New.
26513         (define_subst_attr "mask_operand_arg34") : New.
26514         (define_subst_attr "mask_expand_op3"): New.
26515         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
26516         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
26517         (define_subst_attr "mask_avx512vl_condition"): New.
26518         (define_subst_attr "round_mask_operand4"): Ditto.
26519         (define_subst_attr "round_mask_scalar_op3"): Delete.
26520         (define_subst_attr "round_mask_op4"): New.
26521         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
26522         V16SImode.
26523         (define_subst_attr "round_modev8sf_condition"): New.
26524         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
26525         <MODE>mode.
26526         (define_subst_attr "round_saeonly_mask_operand4"): New.
26527         (define_subst_attr "round_saeonly_mask_op4"): New.
26528         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
26529         V8DImode, V16SImode.
26530         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
26531         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
26532         (define_subst_attr "mask_expand4_args"): New.
26533         (define_subst "mask_expand4"): New.
26535 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26536             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26537             Anna Tikhonova  <anna.tikhonova@intel.com>
26538             Ilya Tocar  <ilya.tocar@intel.com>
26539             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26540             Ilya Verbin  <ilya.verbin@intel.com>
26541             Kirill Yukhin  <kirill.yukhin@intel.com>
26542             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26544         * config/i386/i386.md
26545         (define_attr "isa"): Add avx512bw,noavx512bw.
26546         (define_attr "enabled"): Ditto.
26547         (define_split): Add 32/64-bit mask logic.
26548         (define_insn "*k<logic>qi"): New.
26549         (define_insn "*k<logic>hi"): New.
26550         (define_insn "*anddi_1"): Add mask version.
26551         (define_insn "*andsi_1"): Ditto.
26552         (define_insn "*<code><mode>_1"): Ditto.
26553         (define_insn "*<code>hi_1"): Ditto.
26554         (define_insn "kxnor<mode>"): New.
26555         (define_insn "kunpcksi"): New.
26556         (define_insn "kunpckdi"): New.
26557         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
26558         (define_insn "*one_cmplhi2_1"): Ditto.
26560 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26561             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26562             Anna Tikhonova  <anna.tikhonova@intel.com>
26563             Ilya Tocar  <ilya.tocar@intel.com>
26564             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26565             Ilya Verbin  <ilya.verbin@intel.com>
26566             Kirill Yukhin  <kirill.yukhin@intel.com>
26567             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26569         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
26570         V32HImode.
26572 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26573             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26574             Anna Tikhonova  <anna.tikhonova@intel.com>
26575             Ilya Tocar  <ilya.tocar@intel.com>
26576             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26577             Ilya Verbin  <ilya.verbin@intel.com>
26578             Kirill Yukhin  <kirill.yukhin@intel.com>
26579             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26581         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
26582         registers.
26583         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
26584         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
26585         xmm/ymm16+ when availble.
26586         * config/i386/i386.h
26587         (HARD_REGNO_NREGS): Add mask regs.
26588         (VALID_AVX512F_REG_MODE): Ditto.
26589         (VALID_AVX512F_REG_MODE) : Define.
26590         (VALID_MASK_AVX512BW_MODE): Ditto.
26591         (reg_class) (MASK_REG_P(X)): Define.
26592         * config/i386/i386.md: Do not split long moves with mask register,
26593         use kmovb if avx512bw is availible.
26594         (movdi_internal): Handle mask registers.
26596 2014-08-14  Richard Biener  <rguenther@suse.de>
26598         PR tree-optimization/62081
26599         * tree-ssa-loop.c (pass_fix_loops): New pass.
26600         (pass_tree_loop::gate):  Do not fixup loops here.
26601         * tree-pass.h (make_pass_fix_loops): Declare.
26602         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
26604 2014-08-14  Richard Biener  <rguenther@suse.de>
26606         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
26607         (type_hash_canon): ... this and avoid 2nd lookup for the add.
26609 2014-08-14  Richard Biener  <rguenther@suse.de>
26611         PR tree-optimization/62090
26612         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
26613         (fold_builtin_2): Do not fold sprintf.
26614         (fold_builtin_3): Likewise.
26615         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
26616         moved from builtins.c.
26617         (gimple_fold_builtin): Fold sprintf.
26619 2014-08-14  Richard Biener  <rguenther@suse.de>
26621         PR rtl-optimization/62079
26622         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
26623         run cleanup_cfg.
26625 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
26627         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
26628         current_function_decl.
26630 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
26632         * cgraph.c (cgraph_node::function_symbol): Fix wrong
26633         cgraph_function_node to cgraph_node::function_symbol
26634         refactoring.
26636 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
26638         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
26639         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
26641 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
26643         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
26644         warning.
26646 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
26648         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
26649         generator.
26651 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
26653         PR target/62025
26654         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
26655         any registers that are used in mem_insn.
26657 2014-08-12  Steve Ellcey  <sellcey@mips.com>
26659         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
26661 2014-08-12  Steve Ellcey  <sellcey@mips.com>
26663         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
26664         (MULTILIB_DIRNAMES): Ditto.
26665         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
26666         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
26667         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
26668         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
26669         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
26670         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
26672 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26674         PR target/61413
26675         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
26676         of __ARM_SIZEOF_WCHAR_T.
26678 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26680         PR target/62098
26681         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
26682         Remove unnecessary attributes.
26684 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
26686         * internal-fn.c (init_internal_fns): Fix off-by-one.
26688 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26689             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26690             Anna Tikhonova  <anna.tikhonova@intel.com>
26691             Ilya Tocar  <ilya.tocar@intel.com>
26692             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26693             Ilya Verbin  <ilya.verbin@intel.com>
26694             Kirill Yukhin  <kirill.yukhin@intel.com>
26695             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26697         * config/i386/i386.c (standard_sse_constant_opcode): Use
26698         vpxord/vpternlog if avx512 is availible.
26700 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26702         PR middle-end/62103
26703         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
26704         bitfields, that is when size doesn't match the size of type or the
26705         size of the constructor.
26707 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
26709         * config/rs6000/constraints.md (wh constraint): New constraint,
26710         for FP registers if direct move is available.
26711         (wi constraint): New constraint, for VSX/FP registers that can
26712         handle 64-bit integers.
26713         (wj constraint): New constraint for VSX/FP registers that can
26714         handle 64-bit integers for direct moves.
26715         (wk constraint): New constraint for VSX/FP registers that can
26716         handle 64-bit doubles for direct moves.
26717         (wy constraint): Make documentation match implementation.
26719         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
26720         scalar_in_vmx_p field to simplify tests of whether SFmode or
26721         DFmode can go in the Altivec registers.
26722         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
26723         (rs6000_setup_reg_addr_masks): Likewise.
26724         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
26725         field, and wh/wi/wj/wk constraints.
26726         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
26727         the wh/wi/wj/wk constraints.
26728         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
26729         upper registers, prefer VSX registers unless the operation is a
26730         memory operation with REG+OFFSET addressing.
26732         * config/rs6000/vsx.md (VSr mode attribute): Add support for
26733         DImode.  Change SFmode to use ww constraint instead of d to allow
26734         SF registers in the upper registers.
26735         (VSr2): Likewise.
26736         (VSr3): Likewise.
26737         (VSr5): Fix thinko in comment.
26738         (VSa): New mode attribute that is an alternative to wa, that
26739         returns the VSX register class that a mode can go in, but may not
26740         be the preferred register class.
26741         (VS_64dm): New mode attribute for appropriate register classes for
26742         referencing 64-bit elements of vectors for direct moves and normal
26743         moves.
26744         (VS_64reg): Likewise.
26745         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
26746         register allocator to only registers the data type can handle.
26747         (vsx_le_perm_load_<mode>): Likewise.
26748         (vsx_le_perm_store_<mode>): Likewise.
26749         (vsx_xxpermdi2_le_<mode>): Likewise.
26750         (vsx_xxpermdi4_le_<mode>): Likewise.
26751         (vsx_lxvd2x2_le_<mode>): Likewise.
26752         (vsx_lxvd2x4_le_<mode>): Likewise.
26753         (vsx_stxvd2x2_le_<mode>): Likewise.
26754         (vsx_add<mode>3): Likewise.
26755         (vsx_sub<mode>3): Likewise.
26756         (vsx_mul<mode>3): Likewise.
26757         (vsx_div<mode>3): Likewise.
26758         (vsx_tdiv<mode>3_internal): Likewise.
26759         (vsx_fre<mode>2): Likewise.
26760         (vsx_neg<mode>2): Likewise.
26761         (vsx_abs<mode>2): Likewise.
26762         (vsx_nabs<mode>2): Likewise.
26763         (vsx_smax<mode>3): Likewise.
26764         (vsx_smin<mode>3): Likewise.
26765         (vsx_sqrt<mode>2): Likewise.
26766         (vsx_rsqrte<mode>2): Likewise.
26767         (vsx_tsqrt<mode>2_internal): Likewise.
26768         (vsx_fms<mode>4): Likewise.
26769         (vsx_nfma<mode>4): Likewise.
26770         (vsx_eq<mode>): Likewise.
26771         (vsx_gt<mode>): Likewise.
26772         (vsx_ge<mode>): Likewise.
26773         (vsx_eq<mode>_p): Likewise.
26774         (vsx_gt<mode>_p): Likewise.
26775         (vsx_ge<mode>_p): Likewise.
26776         (vsx_xxsel<mode>): Likewise.
26777         (vsx_xxsel<mode>_uns): Likewise.
26778         (vsx_copysign<mode>3): Likewise.
26779         (vsx_float<VSi><mode>2): Likewise.
26780         (vsx_floatuns<VSi><mode>2): Likewise.
26781         (vsx_fix_trunc<mode><VSi>2): Likewise.
26782         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
26783         (vsx_x<VSv>r<VSs>i): Likewise.
26784         (vsx_x<VSv>r<VSs>ic): Likewise.
26785         (vsx_btrunc<mode>2): Likewise.
26786         (vsx_b2trunc<mode>2): Likewise.
26787         (vsx_floor<mode>2): Likewise.
26788         (vsx_ceil<mode>2): Likewise.
26789         (vsx_<VS_spdp_insn>): Likewise.
26790         (vsx_xscvspdp): Likewise.
26791         (vsx_xvcvspuxds): Likewise.
26792         (vsx_float_fix_<mode>2): Likewise.
26793         (vsx_set_<mode>): Likewise.
26794         (vsx_extract_<mode>_internal1): Likewise.
26795         (vsx_extract_<mode>_internal2): Likewise.
26796         (vsx_extract_<mode>_load): Likewise.
26797         (vsx_extract_<mode>_store): Likewise.
26798         (vsx_splat_<mode>): Likewise.
26799         (vsx_xxspltw_<mode>): Likewise.
26800         (vsx_xxspltw_<mode>_direct): Likewise.
26801         (vsx_xxmrghw_<mode>): Likewise.
26802         (vsx_xxmrglw_<mode>): Likewise.
26803         (vsx_xxsldwi_<mode>): Likewise.
26804         (vsx_xscvdpspn): Tighten constraints to only use register classes
26805         the types use.
26806         (vsx_xscvspdpn): Likewise.
26807         (vsx_xscvdpspn_scalar): Likewise.
26809         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
26810         wj, and wk constraints.
26811         (GPR_REG_CLASS_P): New helper macro for register classes targeting
26812         general purpose registers.
26814         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
26815         direct moves.
26816         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
26817         DImode instead of wm.  Use wk constraint for direct move of DFmode
26818         instead of wm.
26819         (extendsidi2_lfiwax): Likewise.
26820         (lfiwax): Likewise.
26821         (lfiwzx): Likewise.
26822         (movdi_internal64): Likewise.
26824         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
26825         wk constraints. Make the wy constraint documentation match them
26826         implementation.
26828 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
26830         Replacement of isl_int by isl_val
26831         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
26832         (compute_bounds_for_param): use isl_val instead of isl_int
26833         (compute_bounds_for_loop): likewise
26834         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
26835         (build_linearized_memory_access): use isl_val instead of isl_int
26836         (pdr_stride_in_loop): likewise
26837         * graphite-optimize-isl.c:
26838         (getPrevectorMap): use isl_val instead of isl_int
26839         * graphite-poly.c:
26840         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
26841         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
26842         (extern the_isl_ctx): declare
26843         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
26844         (extract_affine_gmp): likewise
26845         (wrap): likewise
26846         (build_loop_iteration_domains): likewise
26847         (add_param_constraints): likewise
26849 2014-08-11  Richard Biener  <rguenther@suse.de>
26851         PR tree-optimization/62075
26852         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
26853         handle uses in patterns.
26855 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26856             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26857             Anna Tikhonova  <anna.tikhonova@intel.com>
26858             Ilya Tocar  <ilya.tocar@intel.com>
26859             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26860             Ilya Verbin  <ilya.verbin@intel.com>
26861             Kirill Yukhin  <kirill.yukhin@intel.com>
26862             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26864         * common/config/i386/i386-common.c
26865         (OPTION_MASK_ISA_AVX512VL_SET): Define.
26866         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
26867         (ix86_handle_option): Handle OPT_mavx512vl.
26868         * config/i386/cpuid.h (bit_AVX512VL): Define.
26869         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
26870         set -mavx512vl accordingly.
26871         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26872         OPTION_MASK_ISA_AVX512VL.
26873         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
26874         (ix86_option_override_internal): Define PTA_AVX512VL, handle
26875         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
26876         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
26877         * config/i386/i386.h (TARGET_AVX512VL): Define.
26878         (TARGET_AVX512VL_P(x)): Ditto.
26879         * config/i386/i386.opt: Add mavx512vl.
26881 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
26883         PR tree-optimization/62073
26884         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
26885         a basic block.
26887 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26888             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26889             Anna Tikhonova  <anna.tikhonova@intel.com>
26890             Ilya Tocar  <ilya.tocar@intel.com>
26891             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26892             Ilya Verbin  <ilya.verbin@intel.com>
26893             Kirill Yukhin  <kirill.yukhin@intel.com>
26894             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26896         * common/config/i386/i386-common.c
26897         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
26898         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
26899         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
26900         (ix86_handle_option): Handle OPT_mavx512bw.
26901         * config/i386/cpuid.h (bit_AVX512BW): Define.
26902         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
26903         set -mavx512bw accordingly.
26904         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26905         OPTION_MASK_ISA_AVX512BW.
26906         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
26907         (ix86_option_override_internal): Define PTA_AVX512BW, handle
26908         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
26909         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
26910         * config/i386/i386.h (TARGET_AVX512BW): Define.
26911         (TARGET_AVX512BW_P(x)): Ditto.
26912         * config/i386/i386.opt: Add mavx512bw.
26914 2014-08-11  Richard Biener  <rguenther@suse.de>
26916         PR tree-optimization/62070
26917         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
26918         Remove SSA checking.
26920 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
26922         * asan.c (asan_check_flags): New enum.
26923         (build_check_stmt_with_calls): Removed function.
26924         (build_check_stmt): Split inlining logic to
26925         asan_expand_check_ifn.
26926         (instrument_derefs): Rename parameter.
26927         (instrument_mem_region_access): Rename parameter.
26928         (instrument_strlen_call): Likewise.
26929         (asan_expand_check_ifn): New function.
26930         (asan_instrument): Remove old code.
26931         (pass_sanopt::execute): Change handling of
26932         asan-instrumentation-with-call-threshold.
26933         (asan_clear_shadow): Fix formatting.
26934         (asan_function_start): Likewise.
26935         (asan_emit_stack_protection): Likewise.
26936         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
26937         Update description.
26938         * internal-fn.c (expand_ASAN_CHECK): New function.
26939         * internal-fn.def (ASAN_CHECK): New internal function.
26940         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
26941         Update description.
26942         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
26943         * tree.c: Small comment fix.
26945 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
26947         * gimple.c (gimple_call_fnspec): Support internal functions.
26948         (gimple_call_return_flags): Use const.
26949         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
26950         * internal-fn.def: Add fnspec information.
26951         * internal-fn.h (internal_fn_fnspec): New function.
26952         (init_internal_fns): Declare new function.
26953         * internal-fn.c (internal_fn_fnspec_array): New global variable.
26954         (init_internal_fns): New function.
26955         * tree-core.h: Update macro call.
26956         * tree.c (build_common_builtin_nodes): Initialize internal fns.
26958 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
26960         * lto-streamer.h (struct output_block::symbol): Change from
26961         struct symtab_node to plain symtab_node.
26962         (referenced_from_this_partition_p): Change first parameter
26963         from struct symtab_node to plain symtab_node.
26965 2014-08-10  Marek Polacek  <polacek@redhat.com>
26967         PR c/51849
26968         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
26970 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
26972         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
26973         DECL correctly; do not give up on types in static storage.
26975 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
26977         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
26979 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
26981         * graphite-isl-ast-to-gimple.c:
26982         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
26984         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
26986 2014-08-08  Guozhi Wei  <carrot@google.com>
26988         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
26990 2014-08-08  Cary Coutant  <ccoutant@google.com>
26992         * dwarf2out.c (get_skeleton_type_unit): Remove.
26993         (output_skeleton_debug_sections): Remove skeleton type units.
26994         (output_comdat_type_unit): Likewise.
26995         (dwarf2out_finish): Likewise.
26997 2014-08-07  Yi Yang  <ahyangyi@google.com>
26999         * predict.c (expr_expected_value_1): Remove the redundant assignment.
27001 2014-08-08  Richard Biener  <rguenther@suse.de>
27003         * lto-streamer.h (struct lto_input_block): Make it a class
27004         with a constructor.
27005         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
27006         (struct lto_function_header, struct lto_simple_header,
27007         struct lto_simple_header_with_strings,
27008         struct lto_decl_header, struct lto_function_header): Make
27009         a simple inheritance hieararchy.  Remove unused fields.
27010         (struct lto_asm_header): Remove.
27011         * lto-streamer-out.c (produce_asm): Adjust.
27012         (lto_output_toplevel_asms): Likewise.
27013         (produce_asm_for_decls): Likewise.
27014         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
27015         * data-streamer-in.c (string_for_index): Likewise.
27016         * ipa-inline-analysis.c (inline_read_section): Likewise.
27017         * ipa-prop.c (ipa_prop_read_section): Likewise.
27018         (read_replacements_section): Likewise.
27019         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
27020         * lto-section-in.c (lto_create_simple_input_block): Likewise.
27021         (lto_destroy_simple_input_block): Likewise.
27022         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
27023         (lto_input_toplevel_asms): Likewise.
27025 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27026             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27027             Anna Tikhonova  <anna.tikhonova@intel.com>
27028             Ilya Tocar  <ilya.tocar@intel.com>
27029             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27030             Ilya Verbin  <ilya.verbin@intel.com>
27031             Kirill Yukhin  <kirill.yukhin@intel.com>
27032             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27034         * common/config/i386/i386-common.c
27035         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
27036         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
27037         (ix86_handle_option): Handle OPT_mavx512dq.
27038         * config/i386/cpuid.h (bit_AVX512DQ): Define.
27039         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
27040         set -mavx512dq accordingly.
27041         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27042         OPTION_MASK_ISA_AVX512DQ.
27043         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
27044         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
27045         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
27046         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
27047         * config/i386/i386.h (TARGET_AVX512DQ): Define.
27048         (TARGET_AVX512DQ_P(x)): Ditto.
27049         * config/i386/i386.opt: Add mavx512dq.
27051 2014-08-08  Richard Biener  <rguenther@suse.de>
27053         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
27054         target_percent, target_percent_s): Export.
27055         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
27056         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
27057         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
27058         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
27059         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
27060         Move to gimple-fold.c.
27061         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
27062         strcat and strcpy.
27063         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
27064         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
27065         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
27066         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
27067         (rewrite_call_expr_array): Remove.
27068         (fold_builtin_sprintf_chk): Likewise.
27069         (fold_builtin_snprintf_chk): Likewise.
27070         (fold_builtin_varargs): Remove handling of sprintf_chk,
27071         vsprintf_chk, snprintf_chk and vsnprintf_chk.
27072         (gimple_fold_builtin_sprintf_chk): Remove.
27073         (gimple_fold_builtin_snprintf_chk): Likewise.
27074         (gimple_fold_builtin_varargs): Likewise.
27075         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
27076         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
27077         * gimple.c (gimple_seq_add_seq_without_update): New function.
27078         * gimple.h (gimple_seq_add_seq_without_update): Declare.
27079         * gimple-fold.c: Include output.h.
27080         (gsi_replace_with_seq_vops): New function, split out from ...
27081         (gimplify_and_update_call_from_tree): ... here.
27082         (replace_call_with_value): New function.
27083         (replace_call_with_call_and_fold): Likewise.
27084         (var_decl_component_p): Moved from builtins.c.
27085         (gimple_fold_builtin_memory_op): Moved from builtins.c
27086         fold_builtin_memory_op and rewritten to GIMPLE.
27087         (gimple_fold_builtin_memset): Likewise.
27088         (gimple_fold_builtin_strcpy): Likewise.
27089         (gimple_fold_builtin_strncpy): Likewise.
27090         (gimple_fold_builtin_strcat): Likewise.
27091         (gimple_fold_builtin_fputs): Likewise.
27092         (gimple_fold_builtin_memory_chk): Likewise.
27093         (gimple_fold_builtin_stxcpy_chk): Likewise.
27094         (gimple_fold_builtin_stxncpy_chk): Likewise.
27095         (gimple_fold_builtin_snprintf_chk): Likewise.
27096         (gimple_fold_builtin_sprintf_chk): Likewise.
27097         (gimple_fold_builtin_strlen): New function.
27098         (gimple_fold_builtin_with_strlen): New function split out from
27099         gimple_fold_builtin.
27100         (gimple_fold_builtin): Change signature and handle
27101         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
27102         here.  Call gimple_fold_builtin_with_strlen.
27103         (gimple_fold_call): Adjust.
27105 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
27107         * calls.c (precompute_arguments): Check
27108         promoted_for_signed_and_unsigned_p and set the promoted mode.
27109         (promoted_for_signed_and_unsigned_p): New function.
27110         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
27111         and set the promoted mode.
27112         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
27113         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
27114         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
27117 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
27119         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
27120         instead of SUBREG_PROMOTED_UNSIGNED_SET.
27121         (expand_call): Likewise.
27122         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
27123         to get promoted mode.
27124         * combine.c (record_promoted_value): Skip > 0 comparison with
27125         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
27126         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
27127         of SUBREG_PROMOTED_UNSIGNED_P.
27128         (convert_modes): Likewise.
27129         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
27130         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
27131         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
27132         SUBREG_PROMOTED_UNSIGNED_SET.
27133         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
27134         instead of SUBREG_PROMOTED_UNSIGNED_SET.
27135         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
27136         SUBREG_PROMOTED_SET.
27137         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
27138         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
27139         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
27140         of SUBREG_PROMOTED_UNSIGNED_P.
27141         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
27142         (SUBREG_PROMOTED_SET): New define.
27143         (SUBREG_PROMOTED_GET): Likewise.
27144         (SUBREG_PROMOTED_SIGN): Likewise.
27145         (SUBREG_PROMOTED_SIGNED_P): Likewise.
27146         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
27147         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
27148         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
27149         instead of SUBREG_PROMOTED_UNSIGNED_GET.
27150         (nonzero_bits1): Skip > 0 comparison with the results as
27151         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
27152         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
27153         of !SUBREG_PROMOTED_UNSIGNED_P.
27154         * simplify-rtx.c (simplify_unary_operation_1): Use new
27155         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
27156         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
27157         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
27158         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
27160 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
27162         * ipa-devirt.c: Include gimple-pretty-print.h
27163         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
27164         further tests.
27165         (decl_maybe_in_construction_p): Fix conditional on cdtor check
27166         (get_polymorphic_call_info): Fix return value
27167         (type_change_info): New sturcture based on ipa-prop
27168         variant.
27169         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
27170         based on ipa-prop variant.
27171         (extr_type_from_vtbl_ptr_store): New function
27172         based on ipa-prop variant.
27173         (record_known_type): New function.
27174         (check_stmt_for_type_change): New function.
27175         (get_dynamic_type): New function.
27176         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
27177         * tree-ssa-pre.c: ipa-utils.h
27178         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
27179         machinery; sanity check with ipa-prop devirtualization.
27180         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
27181         polymorphic flag.
27183 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
27185         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
27186         * alias.c, cfgexpand.c, cgraphbuild.c,
27187         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
27188         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
27189         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
27190         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
27191         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
27192         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
27193         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
27194         dse.c, except.c, gengtype.c, gimple-expr.c,
27195         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
27196         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
27197         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
27198         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
27199         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
27200         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
27201         pointer-set.h.
27202         * pointer-set.c: Remove file.
27203         * pointer-set.h: Remove file.
27205 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27207         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
27208         * config/arm/types.md (f_sels, f_seld): Delete.
27210 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27212         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
27213         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
27214         (aarch64_movdi_<mode>high): Likewise.
27215         (aarch64_mov<mode>high_di): Likewise.
27216         (aarch64_movdi_<mode>low): Likewise.
27217         (aarch64_mov<mode>low_di): Likewise.
27218         (aarch64_movtilow_tilow): Likewise.
27219         Add comment explaining usage of fp,simd attributes and of
27220         TARGET_FLOAT and TARGET_SIMD.
27222 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
27223             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27225         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
27226         Use MOVN when one of the half-words is 0xffff.
27228 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
27230         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
27232 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27234         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
27235         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
27236         (rfs_str): String corresponding to RFS_* constants.
27237         (rank_for_schedule_stats_t): New typedef.
27238         (rank_for_schedule_stats): New static variable.
27239         (rfs_result): New static function.
27240         (rank_for_schedule): Track statistics for deciding heuristics.
27241         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
27242         static functions.
27243         (ready_sort): Use them for debug printouts.
27244         (schedule_block): Init statistics state.  Print statistics on
27245         rank_for_schedule decisions.
27247 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27249         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
27251 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
27253         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
27254         constraint.
27256 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
27258         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
27259         function to not conflict.
27260         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
27261         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
27262         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
27263         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
27264         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
27265         of pointer_map.
27267 2014-08-07  Marek Polacek  <polacek@redhat.com>
27269         * fold-const.c (fold_binary_loc): Add folding of
27270         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
27272 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
27274         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
27275         instead of type size.
27276         (ASM_FINISH_DECLARE_OBJECT): Likewise.
27278 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
27280         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
27281         (*thumb1_movqi_insn): Likewise.
27282         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
27284 2014-08-07  Tom de Vries  <tom@codesourcery.com>
27286         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
27287         (glibc_2_11_or_earlier): Remove effective-target keywords.
27289 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
27291         * config/arm/arm.c (bdesc_2arg): Fix typo.
27292         (arm_atomic_assign_expand_fenv): Remove The default implementation.
27294 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
27296         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
27298 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
27300         PR debug/61923
27301         * haifa-sched.c (advance_one_cycle): Fix dump.
27302         (schedule_block): Don't advance cycle if we are already at the
27303         beginning of the cycle.
27305 2014-08-06  Martin Jambor  <mjambor@suse.cz>
27307         PR ipa/61393
27308         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
27310 2014-08-06  Richard Biener  <rguenther@suse.de>
27312         PR lto/62034
27313         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
27314         SCCs here.
27315         (lto_input_tree): Pop SCCs here.
27317 2014-08-06  Richard Biener  <rguenther@suse.de>
27319         PR tree-optimization/61320
27320         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
27321         handle misaligned loads.
27323 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
27325         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
27326         (aarch64_expand_vec_perm_const): Check for dup before zip.
27328 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27330         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
27331         CONST_INT_P instead of GET_CODE and compare.
27332         (aarch64_select_cc_mode): Likewise.
27333         (aarch64_print_operand): Likewise.
27334         (aarch64_rtx_costs): Likewise.
27335         (aarch64_simd_valid_immediate): Likewise.
27336         (aarch64_simd_check_vect_par_cnst_half): Likewise.
27337         (aarch64_simd_emit_pair_result_insn): Likewise.
27339 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
27341         * gdbhooks.py (find_gcc_source_dir): New helper function.
27342         (class PassNames): New class, locating and parsing passes.def.
27343         (class BreakOnPass): New command "break-on-pass".
27345 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
27347         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
27348         getting olde.
27350 2014-08-05  Richard Biener  <rguenther@suse.de>
27352         PR rtl-optimization/61672
27353         * emit-rtl.h (mem_attrs_eq_p): Declare.
27354         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
27355         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
27356         * cfgcleanup.c (merge_memattrs): Likewise.
27357         Include emit-rtl.h.
27359 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27361         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
27362         rather than singleton vectors.
27363         (vqdmlsls_lane_s32): Likewise.
27365 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27367         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
27368         Use VSDQ_HSI mode iterator.
27369         (aarch64_sqrdmulh_laneq<mode>): Likewise.
27370         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
27371         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
27372         Use BUILTIN_VDQHS macro.
27373         (sqrdmulh_laneq): Likewise.
27374         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
27375         (vqdmlals_laneq_s32): Likewise.
27376         (vqdmlslh_laneq_s16): Likewise.
27377         (vqdmlsls_laneq_s32): Likewise.
27378         (vqdmulhh_laneq_s16): Likewise.
27379         (vqdmulhs_laneq_s32): Likewise.
27380         (vqrdmulhh_laneq_s16): Likewise.
27381         (vqrdmulhs_laneq_s32): Likewise.
27383 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27385         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
27386         (vmuld_laneq_f64): Likewise.
27387         (vmuls_laneq_f32): Likewise.
27388         (vmul_n_f64): Likewise.
27389         (vmuld_lane_f64): Reimplement in C.
27390         (vmuls_lane_f32): Likewise.
27392 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27394         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
27395         to reservation.
27396         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
27398 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27400         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
27401         (rbitsi2): Likewise.
27402         (*arm_rev): Set predicable and predicable_short_it attributes.
27404 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27406         * convert.c (convert_to_integer): Guard transformation to lrint by
27407         -fno-math-errno.
27409 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
27411         * config/aarch64/aarch64-builtins.c
27412         (aarch64_simd_builtin_type_mode): Delete.
27413         (v8qi_UP): Remap to V8QImode.
27414         (v4hi_UP): Remap to V4HImode.
27415         (v2si_UP): Remap to V2SImode.
27416         (v2sf_UP): Remap to V2SFmode.
27417         (v1df_UP): Remap to V1DFmode.
27418         (di_UP): Remap to DImode.
27419         (df_UP): Remap to DFmode.
27420         (v16qi_UP):V16QImode.
27421         (v8hi_UP): Remap to V8HImode.
27422         (v4si_UP): Remap to V4SImode.
27423         (v4sf_UP): Remap to V4SFmode.
27424         (v2di_UP): Remap to V2DImode.
27425         (v2df_UP): Remap to V2DFmode.
27426         (ti_UP): Remap to TImode.
27427         (ei_UP): Remap to EImode.
27428         (oi_UP): Remap to OImode.
27429         (ci_UP): Map to CImode.
27430         (xi_UP): Remap to XImode.
27431         (si_UP): Remap to SImode.
27432         (sf_UP): Remap to SFmode.
27433         (hi_UP): Remap to HImode.
27434         (qi_UP): Remap to QImode.
27435         (aarch64_simd_builtin_datum): Make mode a machine_mode.
27436         (VAR1): Build builtin name.
27437         (aarch64_init_simd_builtins): Remove dead code.
27439 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
27441         * graphite-isl-ast-to-gimple.c:
27442         (set_options): New function.
27443         (scop_to_isl_ast): Add calling of set_options.
27445 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
27447         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
27448         (analyze_iv_to_split_insn): Don't initialize them.
27449         (get_ivts_expr): Removed.
27450         (allocate_basic_variable, insert_base_initialization): Use
27451         SET_SRC instead of *get_ivts_expr.
27452         (split_iv): Use &SET_SRC instead of get_ivts_expr.
27454 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
27456         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
27457         (translate_isl_ast_for_loop): Add checking of the
27458         flag_loop_parallelize_all.
27459         (ast_build_before_for): New function.
27460         (scop_to_isl_ast): Add checking of the
27461         flag_loop_parallelize_all.
27462         * graphite-dependences.c: Move the defenition of the
27463         scop_get_dependences from graphite-optimize-isl.c to this file.
27464         (apply_schedule_on_deps): Add checking of the ux's emptiness.
27465         (carries_deps): Add checking of the x's value.
27466         * graphite-optimize-isl.c: Move the defenition of the
27467         scop_get_dependences to graphite-dependences.c.
27468         * graphite-poly.h: Add declarations of scop_get_dependences
27469         and carries_deps.
27471 2014-08-04  Rohit  <rohitarulraj@freescale.com>
27473         PR target/60102
27474         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
27475         names.
27476         (alt_reg_names): Likewise.
27477         (rs6000_dwarf_register_span): For SPE high registers, replace
27478         dwarf register numbers with GCC hard register numbers.
27479         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
27480         (rs6000_dbx_register_number): For SPE high registers, return dwarf
27481         register number for the corresponding GCC hard register number.
27482         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
27483         newly added GCC hard register numbers for SPE high registers.
27484         (DWARF_FRAME_REGISTERS):  Likewise.
27485         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
27486         (DWARF_FRAME_REGNUM): Likewise.
27487         (FIXED_REGISTERS): Likewise.
27488         (CALL_USED_REGISTERS): Likewise.
27489         (CALL_REALLY_USED_REGISTERS): Likewise.
27490         (REG_ALLOC_ORDER): Likewise.
27491         (enum reg_class): Likewise.
27492         (REG_CLASS_NAMES): Likewise.
27493         (REG_CLASS_CONTENTS): Likewise.
27494         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
27496 2014-08-04  Richard Biener  <rguenther@suse.de>
27498         * gimple-fold.h (gimple_fold_builtin): Remove.
27499         * gimple-fold.c (gimple_fold_builtin): Make static.
27500         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
27501         fold_stmt, not gimple_fold_builtin.
27503 2014-08-04  Martin Liska <mliska@suse.cz>
27505         * cgraph.h (csi_end_p): Removed.
27506         (csi_next): Likewise.
27507         (csi_node): Likewise.
27508         (csi_start): Likewise.
27509         (cgraph_node_in_set_p): Likewise.
27510         (cgraph_node_set_size): Likewise.
27511         (vsi_end_p): Likewise.
27512         (vsi_next): Likewise.
27513         (vsi_node): Likewise.
27514         (vsi_start): Likewise.
27515         (varpool_node_set_size): Likewise.
27516         (cgraph_node_set_nonempty_p): Likewise.
27517         (varpool_node_set_nonempty_p): Likewise.
27518         * cgraphunit.c (cgraph_process_new_functions): vec replaces
27519         cgraph_node_set.
27520         * ipa-inline-transform.c: Likewise.
27521         * ipa-utils.c (cgraph_node_set_new): Removed.
27522         (cgraph_node_set_add): Likewise.
27523         (cgraph_node_set_remove): Likewise.
27524         (cgraph_node_set_find): Likewise.
27525         (dump_cgraph_node_set): Likewise.
27526         (debug_cgraph_node_set): Likewise.
27527         (free_cgraph_node_set): Likewise.
27528         (varpool_node_set_new): Likewise.
27529         (varpool_node_set_add): Likewise.
27530         (varpool_node_set_remove): Likewise.
27531         (varpool_node_set_find): Likewise.
27532         (dump_varpool_node_set): Likewise.
27533         (free_varpool_node_set): Likewise.
27534         (debug_varpool_node_set): Likewise.
27535         * tree-emutls.c (struct tls_var_data):
27536         (emutls_index): Removed.
27537         (emutls_decl): Likewise.
27538         (gen_emutls_addr): Function implementation uses newly added
27539         hash_map<varpool_node *, tls_var_data>.
27540         (clear_access_vars): Likewise.
27541         (create_emultls_var): Likewise.
27542         (ipa_lower_emutls): Likewise.
27543         (reset_access): New function.
27545 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
27547         * config/i386/i386.c (ix86_option_override_internal): Add
27548         PTA_RDRND and PTA_MOVBE for bdver4.
27550 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27551             James Greenhalgh  <james.greenhalgh@arm.com>
27553         * doc/md.texi (clrsb): Document.
27554         (clz): Change reference to x into operand 1.
27555         (ctz): Likewise.
27556         (popcount): Likewise.
27558 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27560         PR target/61713
27561         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
27562         move to subtarget in serial version if result is ignored.
27564 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27565             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27567         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
27568         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
27569         (sched_analyze_insn): Update use of try_group_insn to
27570         sched_macro_fuse_insns.
27571         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
27572         arguments that are not conditional jumps.
27574 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
27576         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
27577         family information. Handle BTVER2 cpu with cpuid family value.
27579 2014-08-04  Tom de Vries  <tom@codesourcery.com>
27581         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
27582         (glibc_2_11_or_earlier): Document effective-target keywords.
27584 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
27586         * ipa-devirt.c (odr_type_warn_count): Add type.
27587         (possible_polymorphic_call_targets): Set it.
27588         (ipa_devirt): Use it.
27590 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
27592         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
27593         Document.
27594         * ipa-devirt.c: Include hash-map.h
27595         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
27596         (clear_speculation): Break out of ...
27597         (get_class_context): ... here; speed up handling obviously useless
27598         speculations.
27599         (odr_type_warn_count, decl_warn_count): New structures.
27600         (final_warning_record): New structure.
27601         (final_warning_records): New static variable.
27602         (possible_polymorphic_call_targets): Cleanup handling of
27603         speculative info; do not build speculation when user do not care;
27604         record info about warnings when asked for.
27605         (add_decl_warning): New function.
27606         (type_warning_cmp): New function.
27607         (decl_warning_cmp): New function.
27608         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
27609         (gate): Enable pass when warnings are requested.
27610         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
27611         options.
27613 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
27615         * hash-map.h (default_hashmap_traits::mark_key_deleted):
27616         Fix cast.
27617         (hash_map::remove): New method.
27618         (hash_map::traverse): New method.
27619         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
27620         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
27621         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
27622         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
27623         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
27624         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
27625         pointer_map.
27627 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
27629         * hash-set.h: new File.
27630         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
27631         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
27632         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
27633         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
27634         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
27635         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
27636         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
27637         varpool.c: Use hash_set instead of pointer_set.
27639 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
27641         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
27643 2014-08-01  Jiong Wang <jiong.wang@arm.com>
27645         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
27646         for frame access when strict_p is false.
27648 2014-08-01  Renlin Li <renlin.li@arm.com>
27649 2014-08-01  Jiong Wang <jiong.wang@arm.com>
27651         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
27652         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
27653         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
27654         Declaration.
27655         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
27656         predicate.
27657         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
27658         aarch64_mem_pair_offset.
27660 2014-08-01  Jiong Wang <jiong.wang@arm.com>
27662         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
27663         offset.
27664         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
27665         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
27667 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
27669         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
27671 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
27673         PR regression/61510
27674         * cgraphunit.c (analyze_functions): Use get_create rather than get
27675         for decls which are clones of abstract functions.
27677 2014-08-01  Martin Liska  <mliska@suse.cz>
27679         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
27680         * ipa-prop.h (count_formal_params): Global function created from static.
27681         * ipa-prop.c (count_formal_params): Likewise.
27682         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
27683         profiles for semantically equivalent functions.
27684         * passes.c (do_per_function): If we load body of a function
27685         during WPA, this condition should behave same.
27686         * varpool.c (ctor_for_folding): More tolerant assert for variable
27687         aliases created during WPA.
27689 2014-08-01  Martin Liska  <mliska@suse.cz>
27691         * doc/invoke.texi (Options That Control Optimization): Documentation
27692         for -foptimize-strlen introduced. Optimization levels default options
27693         fixed.
27695 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
27697         * opts.c (common_handle_option): Handle -fsanitize=alignment.
27698         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
27699         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
27700         type to bool.
27701         * stor-layout.h (min_align_of_type): New prototype.
27702         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
27703         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
27704         check.
27705         * ubsan.c: Include builtins.h.
27706         (ubsan_expand_bounds_ifn): Change return type to bool,
27707         always return true.
27708         (ubsan_expand_null_ifn): Change return type to bool, change
27709         argument to gimple_stmt_iterator *.  Handle both null and alignment
27710         sanitization, take type from ckind argument's type rather than
27711         first argument.
27712         (instrument_member_call): Removed.
27713         (instrument_mem_ref): Remove t argument, add mem and base arguments.
27714         Handle both null and alignment sanitization, don't say whole
27715         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
27716         call instead of 2 argument.
27717         (instrument_null): Adjust instrument_mem_ref caller.  Don't
27718         instrument calls here.
27719         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
27720         like SANITIZE_NULL.
27721         * stor-layout.c (min_align_of_type): New function.
27722         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
27723         Or it into SANITIZE_UNDEFINED.
27724         * doc/invoke.texi (-fsanitize=alignment): Document.
27726 2014-07-31  Andi Kleen  <ak@linux.intel.com>
27728         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
27730 2014-07-31  Andi Kleen  <ak@linux.intel.com>
27732         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
27733         inchash.
27734         (vn_reference_compute_hash): Dito.
27735         (vn_nary_op_compute_hash): Dito.
27736         (vn_phi_compute_hash): Dito.
27737         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
27739 2014-07-31  Andi Kleen  <ak@linux.intel.com>
27741         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
27742         Rename to inchash:add_expr_commutative. Convert to inchash.
27743         (iterative_hash_hashable_expr): Rename to
27744         inchash:add_hashable_expr. Convert to inchash.
27745         (avail_expr_hash): Dito.
27747 2014-07-31  Andi Kleen  <ak@linux.intel.com>
27749         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
27750         Convert to inchash.
27752 2014-07-31  Andi Kleen  <ak@linux.intel.com>
27754         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
27756 2014-07-31  Andi Kleen  <ak@linux.intel.com>
27758         * Makefile.in (OBJS): Add rtlhash.o
27759         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
27760         (loc_checksum): Dito.
27761         (loc_checksum_ordered): Dito.
27762         (hash_loc_operands): Dito.
27763         (hash_locs): Dito.
27764         (hash_loc_list): Dito.
27765         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
27766         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
27767         * rtlhash.c: New file.
27768         * rtlhash.h: New file.
27770 2014-07-31  Andi Kleen  <ak@linux.intel.com>
27772         * inchash.h (inchash): Change inchash class to namespace.
27773         (class hash): ... Rename from inchash.
27774         (add_object): Move from macro to class template.
27775         * lto-streamer-out.c (hash_tree): Change inchash
27776         to inchash::hash.
27777         * tree.c (build_type_attribute_qual_variant): Dito.
27778         (type_hash_list): Dito.
27779         (attribute_hash_list): Dito.
27780         (iterative_hstate_expr): Rename to inchash::add_expr
27781         (build_range_type_1): Change inchash to inchash::hash
27782         and use hash::add_expr.
27783         (build_array_type_1): Dito.
27784         (build_function_type): Dito
27785         (build_method_type_directly): Dito.
27786         (build_offset_type): Dito.
27787         (build_complex_type): Dito.
27788         (make_vector_type): Dito.
27789         * tree.h (iterative_hash_expr): Dito.
27791 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
27793         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
27795 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
27797         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
27798         correct alphabetical position.
27799         (vpaddd_f64): Rewrite using builtins.
27800         (vpaddd_s64): Move to correct alphabetical position.
27801         (vpaddd_u64): New.
27803 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
27805         PR target/61844
27806         * config/sh/sh.c (sh_legitimate_address_p,
27807         sh_legitimize_reload_address): Handle reg+reg address modes when
27808         ALLOW_INDEXED_ADDRESS is false.
27809         * config/sh/predicates.md (general_movsrc_operand,
27810         general_movdst_operand): Likewise.
27812 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
27814         * config/aarch64/aarch64-builtins.c
27815         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
27816         BYTES_BIG_ENDIAN.
27818 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
27820         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
27821         the generated mask based on BYTES_BIG_ENDIAN.
27822         (aarch64_simd_check_vect_par_cnst_half): New.
27823         * config/aarch64/aarch64-protos.h
27824         (aarch64_simd_check_vect_par_cnst_half): New.
27825         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
27826         the check out to aarch64_simd_check_vect_par_cnst_half.
27827         (vect_par_cnst_lo_half): Likewise.
27828         * config/aarch64/aarch64-simd.md
27829         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
27830         (move_hi_quad_<mode>): Always generate a low mask.
27832 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27834         * doc/invoke.texi (AVR Options): Add documentation about
27835         __AVR_DEVICE_NAME__ built-in macro.
27837 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
27839         PR target/61948
27840         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
27841         constraints are satisfied.
27842         (<shift>di3_neon): Likewise.
27844 2014-07-31  Richard Biener  <rguenther@suse.de>
27846         PR tree-optimization/61964
27847         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
27848         by structural equality.
27850 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
27852         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
27853         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
27854         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
27855         New enums.
27856         * gcc.c (sanitize_spec_function): Support new option.
27857         (SANITIZER_SPEC): Remove now redundant check.
27858         * opts.c (common_handle_option): Support new option.
27859         (finish_options): Check for incompatibilities.
27860         * toplev.c (process_options): Split userspace-specific checks.
27862 2014-07-31  Richard Biener  <rguenther@suse.de>
27864         * lto-streamer.h (struct output_block): Remove global.
27865         (struct data_in): Remove labels, num_named_labels and
27866         num_unnamed_labels.
27867         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
27868         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
27870 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
27872         PR c++/60517
27873         * common.opt (-Wreturn-local-addr): Moved from c.opt.
27874         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
27875         (isolate_path): New argument to avoid inserting a trap.
27876         (find_implicit_erroneous_behaviour): Handle returning the address
27877         of a local variable.
27878         (find_explicit_erroneous_behaviour): Likewise.
27880 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
27882         PR lto/61868
27883         * toplev.c (init_random_seed): Move piece of code never called to
27884         set_random_seed.
27885         (set_random_seed): see above.
27887 2014-07-31  Tom de Vries  <tom@codesourcery.com>
27889         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
27891 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
27893         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
27894         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
27896 2014-07-31  Richard Biener  <rguenther@suse.de>
27898         * data-streamer.h (streamer_write_data_stream): Declare here,
27899         renamed from ...
27900         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
27901         * lto-cgraph.c (lto_output_node): Adjust.
27902         (lto_output_varpool_node): Likewise.
27903         * data-streamer-out.c (streamer_string_index): Likewise.
27904         (streamer_write_data_stream, lto_append_block): Move from ...
27905         * lto-section-out.c (lto_output_data_stream,
27906         lto_append_block): ... here.
27908 2014-07-30  Mike Stump  <mikestump@comcast.net>
27910         * configure.ac: Also check for popen.
27911         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
27912         * configure: Regenerate.
27913         * config.in:  Regenerate.
27915 2014-07-30  Martin Jambor  <mjambor@suse.cz>
27917         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
27918         parameter to gimple.
27920 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27922         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
27923         address as second parameter to __tpf_eh_return routine.
27925 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
27927         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
27928         Thumb2.
27930 2014-07-30  Tom Tromey  <tromey@redhat.com>
27932         PR c/59855
27933         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
27934         * doc/extend.texi (Type Attributes): Document designated_init
27935         attribute.
27937 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
27939         * graphite-isl-ast-to-gimple.c:
27940         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
27941         (gcc_expression_from_isl_expression): Pass type to
27942         gcc_expression_from_isl_ast_expr_id.
27944 2014-07-30  Richard Biener  <rguenther@suse.de>
27946         * lto-streamer.h (lto_write_data): New function.
27947         * langhooks.c (lhd_append_data): Do not free block.
27948         * lto-section-out.c (lto_write_data): New function writing
27949         raw data to the current section.
27950         (lto_write_stream): Adjust for langhook semantic change.
27951         (lto_destroy_simple_output_block): Write header directly.
27952         * lto-opts.c (lto_write_options): Write options directly.
27953         * lto-streamer-out.c (produce_asm): Write heaeder directly.
27954         (lto_output_toplevel_asms): Likewise.
27955         (copy_function_or_variable): Copy data directly.
27956         (write_global_references): Output index table directly.
27957         (lto_output_decl_state_refs): Likewise.
27958         (write_symbol): Write data directly.
27959         (produce_symtab): Adjust.
27960         (produce_asm_for_decls): Output header and refs directly.
27962 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
27964         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
27965         to speculative_targets
27966         (get_class_context): Fix handling of contextes without outer type;
27967         avoid matching non-polymorphic types in LTO.
27968         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
27969         parameter to speculative_targetsp; handle speculation.
27970         (dump_possible_polymorphic_call_targets): Update dumping.
27972 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
27974         * common.opt (Wodr): Enable by default.
27976 2014-07-29  Olivier Hainque  <hainque@adacore.com>
27978         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
27980 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
27982         PR bootstrap/61914
27983         * gengtype.c (strtoken): New function.
27984         (create_user_defined_type): Replace strtok with strtoken.
27986 2014-07-29  Nathan Sidwell  <nathan@acm.org>
27988         * gcov-io.c (gcov_var): Make hidden.
27989         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
27990         (gcov_do_dump): Declare.
27991         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
27993 2014-07-29  Martin Jambor  <mjambor@suse.cz>
27995         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
27996         parameter to gimple.
27997         (sra_modify_assign): Likewise.
27999 2014-07-29  Richard Biener  <rguenther@suse.de>
28001         PR middle-end/52478
28002         * expr.c (expand_expr_real_2): Revert last change.
28004 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
28006         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
28007         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
28008         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
28009         call.
28010         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
28011         (contains_type_p): Forward declare.
28012         (polymorphic_call_target_hasher::hash): Hash speculative info.
28013         (polymorphic_call_target_hasher::equal): Compare speculative info.
28014         (get_class_context): Handle speuclation.
28015         (contains_type_p): Update.
28016         (get_polymorphic_call_info_for_decl): Update.
28017         (walk_ssa_copies): Break out from ...
28018         (get_polymorphic_call_info): ... here; set speculative context
28019         before giving up.
28020         * ipa-prop.c (ipa_write_indirect_edge_info,
28021         ipa_read_indirect_edge_info): Stream speculative context.
28022         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
28023         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
28024         SPECULATIVE_MAYBE_DERIVED_TYPE).
28025         (possible_polymorphic_call_targets overriders): Update.
28026         (dump_possible_polymorphic_call_targets overriders): Update.
28027         (dump_possible_polymorphic_call_target_p overriders): Update.
28029 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
28031         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
28032         ipa-devirt path; fix thinko there.
28034 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
28036         * config/i386/i386.c (ix86_return_in_memory): Replace one
28037         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
28039 2014-07-28  Marek Polacek  <polacek@redhat.com>
28041         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
28043 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
28045         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
28046         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
28047         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
28048         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
28049         (USE_LD_AS_NEEDED): Likewise.
28050         (ASM_APP_ON): Likewise.
28051         (ASM_APP_OFF): Likewise.
28052         (TARGET_POSIX_IO): Likewise.
28053         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
28054         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
28055         (USE_LD_AS_NEEDED): Likewise.
28056         (ASM_APP_ON): Likewise.
28057         (ASM_APP_OFF): Likewise.
28058         (TARGET_POSIX_IO): Likewise.
28060 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
28062         PR middle-end/61734
28063         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
28064         operators other than the equality operators.
28066 2014-07-28  Richard Biener  <rguenther@suse.de>
28068         PR middle-end/52478
28069         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
28070         sure to register SImode ones, not only >= word_mode ones.
28071         * expr.c (expand_expr_real_2): When expanding -ftrapv
28072         binops do not use OPTAB_LIB_WIDEN.
28074 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
28076         PR middle-end/61919
28077         * tree-outof-ssa.c (insert_partition_copy_on_edge)
28078         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
28079         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
28080         inserting them in the insn stream.
28082 2014-07-28  Marek Polacek  <polacek@redhat.com>
28084         PR middle-end/61913
28085         * common.opt (Wodr): Add Var.
28087 2014-07-28  Richard Biener  <rguenther@suse.de>
28089         PR tree-optimization/61921
28090         * tree-ssa-structalias.c (create_variable_info_for_1): Check
28091         if there is a varpool node before dereferencing it.
28093 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
28095         * graphite-sese-to-poly.c:
28096         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
28097         id of the pbb), which contains pointer to the pbb1.
28099         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
28101 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
28103         * graphite-isl-ast-to-gimple.c:
28104         (graphite_create_new_guard): New function.
28105         (translate_isl_ast_node_if): New function.
28106         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
28108         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
28110 2014-07-27  Anthony Green  <green@moxielogic.com>
28112         * config.gcc: Add moxie-*-moxiebox* configuration.
28113         * config/moxie/moxiebox.h: New file.
28115 2014-07-26  Andrew Pinski  <apinski@cavium.com>
28117         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
28118         from the read only register.
28120 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
28122         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
28123         as the allocation class if it isn't likely to be spilled.
28125 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
28127         * rtl.h (tls_referenced_p): Declare.
28128         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
28129         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
28130         (mips_cannot_force_const_mem): Use tls_referenced_p.
28131         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
28132         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
28133         instead of pa_tls_referenced_p.
28134         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
28135         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
28136         (pa_legitimate_constant_p): Likewise.
28137         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
28138         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
28139         (rs6000_cannot_force_const_mem, rs6000_emit_move)
28140         (rs6000_address_for_altivec): Use tls_referenced_p instead of
28141         rs6000_tls_referenced_p.
28142         (rs6000_tls_symbol_ref_1): Delete.
28144 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
28146         PR target/44551
28147         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
28148         Optimize inverse of a VEC_CONCAT.
28150 2014-07-25  Xinliang David Li  <davidxl@google.com>
28152         * params.def: New parameter.
28153         * coverage.c (get_coverage_counts): Check new flag.
28154         (coverage_compute_profile_id): Check new flag.
28155         (coverage_begin_function): Check new flag.
28156         (coverage_end_function): Check new flag.
28157         * value-prof.c (coverage_node_map_initialized_p): New function.
28158         (init_node_map): Populate map with all functions.
28159         * doc/invoke.texi: Document new parameter.
28161 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
28162             Richard Biener <rguenther@suse.de>
28164         * lto-streamer-out.c (struct sccs): Turn to ...
28165         (class DFS): ... this one; refactor the DFS walk so it can
28166         be re-done on per-SCC basis.
28167         (DFS::DFS): New constructor.
28168         (DFS::~DFS): New destructor.
28169         (hash_tree): Add new MAP argument holding in-SCC hash values;
28170         remove POINTER_TYPE hashing hack.
28171         (scc_entry_compare): Rename to ...
28172         (DFS::scc_entry_compare): ... this one.
28173         (hash_scc): Rename to ...
28174         (DFS::hash_scc): ... this one; pass output_block instead
28175         of streamer_cache; work harder to get unique and stable SCC
28176         hashes.
28177         (DFS_write_tree): Rename to ...
28178         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
28179         (lto_output_tree): Update.
28181 2014-07-25  Andi Kleen  <ak@linux.intel.com>
28183         * lto-streamer-out.c (hash_tree): Convert to inchash.
28185 2014-07-25  Andi Kleen  <ak@linux.intel.com>
28187         * tree.c (build_type_attribute_qual_variant): Use inchash.
28188         (type_hash_list): Dito.
28189         (attribute_hash_list): Dito
28190         (iterative_hstate_expr): Dito.
28191         (iterative_hash_expr): Dito.
28192         (build_range_type_1): Dito.
28193         (build_array_type_1): Dito.
28194         (build_function_type): Dito.
28195         (build_method_type_directly): Dito.
28196         (build_offset_type): Dito.
28197         (build_complex_type): Dito.
28198         (make_vector_type): Dito.
28199         * tree.h (iterative_hash_expr): Add compat wrapper.
28200         (iterative_hstate_expr): Add.
28202 2014-07-25  Andi Kleen  <ak@linux.intel.com>
28204         * Makefile.in (OBJS): Add inchash.o.
28205         (PLUGIN_HEADERS): Add inchash.h.
28206         * ipa-devirt.c: Include inchash.h.
28207         * lto-streamer-out.c: Dito.
28208         * tree-ssa-dom.c: Dito.
28209         * tree-ssa-pre.c: Dito.
28210         * tree-ssa-sccvn.c: Dito.
28211         * tree-ssa-tail-merge.c: Dito.
28212         * asan.c: Dito.
28213         * tree.c (iterative_hash_hashval_t): Move to ...
28214         (iterative_hash_host_wide_int): Move to ...
28215         * inchash.c: Here. New file.
28216         * tree.h (iterative_hash_hashval_t): Move to ...
28217         (iterative_hash_host_wide_int): Move to ...
28218         * inchash.h: Here. New file.
28220 2014-07-25  Richard Biener  <rguenther@suse.de>
28222         PR middle-end/61762
28223         PR middle-end/61894
28224         * fold-const.c (native_encode_int): Add and handle offset
28225         parameter to do partial encodings of expr.
28226         (native_encode_fixed): Likewise.
28227         (native_encode_real): Likewise.
28228         (native_encode_complex): Likewise.
28229         (native_encode_vector): Likewise.
28230         (native_encode_string): Likewise.
28231         (native_encode_expr): Likewise.
28232         * fold-const.c (native_encode_expr): Add offset parameter
28233         defaulting to -1.
28234         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
28235         (fold_ctor_reference): Handle all reads from tcc_constant
28236         ctors.
28238 2014-07-25  Richard Biener  <rguenther@suse.de>
28240         * tree-inline.c (estimate_move_cost): Mark speed_p argument
28241         as possibly unused.
28243 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28245         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
28247 2014-07-24  Kyle McMartin  <kyle@redhat.com>
28249         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
28251 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28253         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
28254         Add prototype.
28255         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
28256         function.
28257         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
28258         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
28259         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
28261 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28263         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
28264         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
28265         aggregate types.  Instead, *all* aggregate types, except for single-
28266         element or homogeneous float/vector aggregates, are quadword-aligned
28267         if required by their type alignment.  Issue -Wpsabi note when a type
28268         is now treated differently than before.
28270 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28272         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
28273         does not fit fully into floating-point registers, and there is still
28274         space in the register parameter area, use GPRs to pass those parts
28275         of the argument.  Issue -Wpsabi note if any parameter is now treated
28276         differently than before.
28277         (rs6000_arg_partial_bytes): Update.
28279 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
28281         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
28283 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
28285         * rtl.h (target_rtl): Remove lang_dependent_initialized.
28286         * toplev.c (initialize_rtl): Don't use it.  Move previously
28287         "language-dependent" calls to...
28288         (backend_init): ...here.
28289         (lang_dependent_init_target): Don't set lang_dependent_initialized.
28290         Assert that RTL initialization hasn't happend yet.
28292 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
28294         PR rtl-optimization/61629
28295         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
28296         they have already been initialized.
28298 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
28300         PR middle-end/61268
28301         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
28302         DECL_INCOMING_RTL and entry_parm.
28303         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
28304         * calls.c (load_register_parameters): Likewise argument values.
28305         (emit_library_call_value_1, store_one_arg): Likewise argument
28306         save areas.
28307         * config/i386/i386.c (assign_386_stack_local): Likewise the local
28308         stack slot.
28309         * explow.c (validize_mem): Modify the argument in-place.
28311 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
28313         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
28314         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
28316 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
28318         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
28319         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
28321 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
28323         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
28324         (aarch64_save_callee_saves): New parameter "skip_wb".
28325         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
28327 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
28329         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
28330         "wb_candidate2".
28331         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
28333 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
28335         * graphite-isl-ast-to-gimple.c:
28336         (graphite_create_new_loop): Add calling of isl_id_free to properly
28337         decrement reference counts.
28339         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
28341 2014-07-24  Martin Liska  <mliska@suse.cz>
28342         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
28343         function used.
28344         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
28345         (rs6000_code_end): Likewise.
28347 2014-07-24  Martin Liska  <mliska@suse.cz>
28349         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
28350         symtab_node funtion used.
28351         (rs6000_xcoff_declare_object_name): Likewise.
28353 2014-07-24  Martin Liska  <mliska@suse.cz>
28355         * cgraphunit.c (compile): Correct function used.
28357 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
28359         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
28360         as non-indexable.
28362 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
28364         PR lto/61802
28365         * varasm.c (bss_initializer_p): Handle offlined ctors.
28366         (align_variable, get_variable_align): Likewise.
28367         (make_decl_one_only): Likewise.
28368         (default_binds_local_p_1): Likewise.
28369         (decl_binds_to_current_def_p): Likewise.
28370         (get_variable_section): Get constructor if it is offlined.
28371         (assemble_variable_contents): Sanity check that the caller
28372         streamed in the ctor in LTO.
28374 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
28376         * graphite-isl-ast-to-gimple.c:
28377         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
28378         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
28379         isl_ast_op_pdiv_r to the different case.
28381         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
28383 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28385         PR middle-end/61876
28386         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
28387         when flag_errno_math is on.
28389 2014-07-24  Martin Liska  <mliska@suse.cz>
28391         * cgraph.h (varpool_node):
28392         (availability get_availability (void)):
28393         created from cgraph_variable_initializer_availability
28394         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
28395         created from: cgraph_variable_initializer_availability
28396         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
28397         (void finalize_named_section_flags (void)):
28398         created from varpool_finalize_named_section_flags
28399         (bool assemble_decl (void)): created from varpool_assemble_decl
28400         (void analyze (void)): created from varpool_analyze_node
28401         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
28402         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
28403         (void remove_initializer (void)): created from varpool_remove_initializer
28404         (tree get_constructor (void)): created from varpool_get_constructor
28405         (bool externally_visible_p (void)): created from varpool_externally_visible_p
28406         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
28407         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
28408         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
28409         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
28410         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
28411         (static bool output_variables (void)): created from varpool_output_variables
28412         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
28413         created from varpool_extra_name_alias
28414         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
28415         (static void dump_varpool (FILE *f)): created from dump_varpool
28416         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
28417         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
28418         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
28419         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
28420         (void assemble_aliases (void)): created from assemble_aliases
28422 2014-07-24  Martin Liska  <mliska@suse.cz>
28424         * cgraph.h (symtab_node):
28425         (void register_symbol (void)): created from symtab_register_node
28426         (void remove (void)): created from symtab_remove_node
28427         (void dump (FILE *f)): created from dump_symtab_node
28428         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
28429         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
28430         (struct ipa_ref *add_reference (symtab_node *referred_node,
28431         enum ipa_ref_use use_type)): created from add_reference
28432         (struct ipa_ref *add_reference (symtab_node *referred_node,
28433         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
28434         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
28435         gimple stmt)): created from maybe_add_reference
28436         (bool semantically_equivalent_p (symtab_node *target)): created from
28437         symtab_semantically_equivalent_p
28438         (void remove_from_same_comdat_group (void)): created from
28439         remove_from_same_comdat_group
28440         (void add_to_same_comdat_group (symtab_node *old_node)): created from
28441         symtab_add_to_same_comdat_group
28442         (void dissolve_same_comdat_group_list (void)): created from
28443         symtab_dissolve_same_comdat_group_list
28444         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
28445         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
28446         created from symtab_alias_ultimate_target
28447         (inline symtab_node *next_defined_symbol (void)): created from
28448         symtab_next_defined_symbol
28449         (bool resolve_alias (symtab_node *target)): created from
28450         symtab_resolve_alias
28451         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
28452         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
28453         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
28454         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
28455         (void set_section (const char *section)): created from set_section_1
28456         (enum availability get_availability (void)): created from symtab_node_availability
28457         (void make_decl_local (void)): created from symtab_make_decl_local
28458         (bool real_symbol_p (void)): created from symtab_read_node
28459         (can_be_discarded_p (void)): created from symtab_can_be_discarded
28460         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
28461         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
28462         symtab_in_same_comdat_p;
28463         (bool address_taken_from_non_vtable_p (void)): created from
28464         address_taken_from_non_vtable_p
28465         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
28466         (static void dump_table (FILE *)): created from dump_symtab
28467         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
28468         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
28469         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
28470         symtab_used_from_object_file_p
28471         (void dump_base (FILE *)): created from dump_symtab_base
28472         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
28473         (void unregister (void)): created from symtab_unregister_node
28474         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
28475         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
28476         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
28477         symtab_nonoverwritable_alias_1
28478         * cgraph.h (cgraph_node):
28479         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
28480         created from cgraph_remove_node_and_inline_clones
28481         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
28482         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
28483         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
28484         (cgraph_node *function_symbol (enum availability *avail = NULL)):
28485         created from cgraph_function_node
28486         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
28487         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
28488         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
28489         created from cgraph_create_clone
28490         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
28491         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
28492         created from cgraph_create_virtual_clone
28493         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
28494         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
28495         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
28496         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
28497         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
28498         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
28499         created from cgraph_function_version_info
28500         (struct cgraph_function_version_info *insert_new_function_version (void)):
28501         created from insert_new_cgraph_node_version
28502         (struct cgraph_function_version_info *function_version (void)): created from
28503         get_cgraph_node_version
28504         (void analyze (void)): created from analyze_function
28505         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
28506         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
28507         tree real_alias) cgraph_add_thunk
28508         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
28509         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
28510         created from cgraph_function_or_thunk_node
28511         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
28512         created from expand_thunk
28513         (void reset (void)): created from cgraph_reset_node
28514         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
28515         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
28516         (void remove (void)): created from cgraph_remove_node
28517         (void dump (FILE *f)): created from dump_cgraph_node
28518         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
28519         (bool get_body (void)): created from cgraph_get_body
28520         (void release_body (void)): created from cgraph_release_function_body
28521         (void unnest (void)): created from cgraph_unnest_node
28522         (void make_local (void)): created from cgraph_make_node_local
28523         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
28524         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
28525         gcov_type count, int freq)): created from cgraph_create_edge
28526         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
28527         gcov_type count, int freq)): created from cgraph_create_indirect_edge
28528         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
28529         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
28530         created from cgraph_create_edge_including_clones
28531         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
28532         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
28533         (void remove_callers (void)): created from cgraph_node_remove_callers
28534         (void remove_callees (void)): created from cgraph_node_remove_callees
28535         (enum availability get_availability (void)): created from cgraph_function_body_availability
28536         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
28537         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
28538         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
28539         (void call_duplication_hooks (cgraph_node *node2)): created from
28540         cgraph_call_node_duplication_hooks
28541         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
28542         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
28543         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
28544         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
28545         (void call_function_insertion_hooks (void)):
28546         created from cgraph_call_function_insertion_hooks
28547         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
28548         (bool local_p (void)): created from cgraph_local_node
28549         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
28550         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
28551         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
28552         (inline bool only_called_directly_or_aliased_p (void)):
28553         created from cgraph_only_called_directly_or_aliased_p
28554         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
28555         created from cgraph_will_be_removed_from_program_if_no_direct_calls
28556         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
28557         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
28558         (bool can_remove_if_no_direct_calls_p (void)):
28559         created from cgraph_can_remove_if_no_direct_calls_p
28560         (inline bool has_gimple_body_p (void)):
28561         created from cgraph_function_with_gimple_body_p
28562         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
28563         (static void dump_cgraph (FILE *f)): created from dump_cgraph
28564         (static inline void debug_cgraph (void)): created from debug_cgraph
28565         (static void record_function_versions (tree decl1, tree decl2)):
28566         created from record_function_versions
28567         (static void delete_function_version (tree decl)):
28568         created from delete_function_version
28569         (static void add_new_function (tree fndecl, bool lowered)):
28570         created from cgraph_add_new_function
28571         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
28572         (static cgraph_node * create (tree decl)): created from cgraph_create_node
28573         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
28574         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
28575         (static cgraph_node *get_for_asmname (tree asmname)):
28576         created from cgraph_node_for_asm
28577         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
28578         created from cgraph_same_body_alias
28579         (static bool used_from_object_file_p_worker (cgraph_node *node,
28580         void *): new function
28581         (static bool non_local_p (cgraph_node *node, void *)):
28582         created from cgraph_non_local_node_p_1
28583         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
28584         created from verify_cgraph
28585         (static bool make_local (cgraph_node *node, void *)):
28586         created from cgraph_make_node_local
28587         (static cgraph_node *create_alias (tree alias, tree target)):
28588         created from cgraph_create_function_alias
28589         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
28590         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
28591         created from cgraph_create_edge_1
28592         * cgraph.h (varpool_node):
28593         (void remove (void)): created from varpool_remove_node
28594         (void dump (FILE *f)): created from dump_varpool_node
28596 2014-07-24  Richard Biener  <rguenther@suse.de>
28598         PR ipa/61823
28599         * tree-ssa-structalias.c (create_variable_info_for_1):
28600         Use varpool_get_constructor.
28601         (create_variable_info_for): Likewise.
28603 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
28605         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
28606         subtract outgoing area size when restoring stack_pointer_rtx.
28608 2014-07-24  Nick Clifton  <nickc@redhat.com>
28610         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
28611         that operations are taking place in parallel.
28612         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
28614 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
28616         * omp-low.c (extract_omp_for_data): Add missing break statement.
28618 2014-07-24  Richard Biener  <rguenther@suse.de>
28620         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
28621         * tree-inline.c (estimate_move_cost): Add speed_p parameter
28622         and adjust MOVE_RATIO query accordingly.
28623         (estimate_num_insns): Adjust callers.
28624         * ipa-prop.c (ipa_populate_param_decls): Likewise.
28625         * ipa-cp.c (gather_context_independent_values,
28626         estimate_local_effects): Likewise.
28627         * ipa-split.c (consider_split): Likewise.
28629 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
28631         * config/i386/driver-i386.c: Remove names of unused arguments and
28632         unnecessary unused attributes.
28633         * config/i386/host-mingw32.c: Likewise.
28634         * config/i386/i386.c: Likewise.
28635         * config/i386/winnt-stubs.c: Likewise.
28636         * config/i386/winnt.c: Likewise.
28638 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28640         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
28641         (aarch64_gen_loadwb_pair): New helper function.
28642         (aarch64_expand_epilogue): Simplify code using new helper functions.
28643         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
28645 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28647         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
28648         (aarch64_gen_storewb_pair): New helper function.
28649         (aarch64_expand_prologue): Simplify code using new helper functions.
28650         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
28652 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28654         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
28655         Rename to aarch64_save_callee_saves, remove restore code.
28656         (aarch64_restore_callee_saves): New function.
28658 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28660         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
28661         (aarch64_save_callee_saves): New function to handle reg save
28662         for both core and vectore regs.
28664 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28666         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
28667         (aarch64_gen_store_pair): New helper function.
28668         (aarch64_save_or_restore_callee_save_registers)
28669         (aarch64_save_or_restore_fprs): Use new helper functions.
28671 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28673         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
28674         (aarch64_save_or_restore_callee_save_registers)
28675         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
28677 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28679         * config/aarch64/aarch64.c
28680         (aarch64_save_or_restore_callee_save_registers)
28681         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
28683 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28685         * config/aarch64/aarch64.c
28686         (aarch64_save_or_restore_callee_save_registers)
28687         (aarch64_save_or_restore_fprs): Remove 'increment'.
28689 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28691         * config/aarch64/aarch64.c
28692         (aarch64_save_or_restore_callee_save_registers)
28693         (aarch64_save_or_restore_fprs): Use register offset in
28694         cfun->machine->frame.reg_offset.
28696 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28698         * config/aarch64/aarch64.c
28699         (aarch64_save_or_restore_callee_save_registers)
28700         (aarch64_save_or_restore_fprs): Remove base_rtx.
28702 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28704         * config/aarch64/aarch64.c
28705         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
28706         to 'start_offset'.  Remove local variable 'start_offset'.
28708 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28710         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
28711         type to HOST_WIDE_INT.
28713 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28715         * config/aarch64/aarch64.c (aarch64_expand_prologue)
28716         (aarch64_save_or_restore_fprs)
28717         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
28719 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28721         * config/arm/t-rtems-eabi: Add
28722         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
28723         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
28724         mbig-endian/mthumb/march=armv7-r, and
28725         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
28726         multilibs.
28728 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28729             Chris Johns <chrisj@rtems.org>
28730             Joel Sherrill <joel.sherrill@oarcorp.com>
28732         * config.gcc: Add nios2-*-rtems*.
28733         * config/nios2/rtems.h: New file.
28734         * gcc/config/nios2/t-rtems: New file.
28736 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
28738         PR target/61396
28739         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
28740         constant numbers, not general constants.
28741         (rs6000_expand_vector_init): Ditto.
28743 2014-07-23  Nathan Sidwell  <nathan@acm.org>
28745         * gcov-tool.c (gcov_list): Declare here.
28746         (set_gcov_list): Remove.
28747         (gcov_output_files): Set gcov_list directly.
28749 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
28751         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
28753 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
28755         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
28756         callee-saved registers are available for padding purpose
28757         and r3 is not mandatory, then prefer use those callee-saved
28758         instead of r3.
28760 2014-07-23  Richard Biener  <rguenther@suse.de>
28762         * params.def (PARAM_MAX_COMBINE_INSNS): New.
28763         * combine.c: Include statistics.h and params.h.
28764         (combine_instructions): Guard three and four insn combines
28765         with max-combine-insns value.  Record statistics for combines
28766         performed.
28767         * doc/invoke.texi (max-combine-insns): Document new param.
28769 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
28771         * graphite-isl-ast-to-gimple.c:
28772         (translate_isl_ast_node_block): New function.
28773         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
28775         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
28776         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
28778 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
28780         * graphite-isl-ast-to-gimple.c:
28781         (get_max_schedule_dimensions): New function.
28782         (extend_schedule): Likewise.
28783         (generate_isl_schedule): Add calling of extend_schedule and
28784         get_max_schedule_dimensions.
28786 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28788         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
28789         (case UNSPEC): Handle UNSPEC_RBIT.
28791 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28793         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
28794         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
28796 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28798         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
28800 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
28802         * graphite-isl-ast-to-gimple.c:
28803         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
28804         (ivs_params_clear):
28805         (build_iv_mapping): New function.
28806         (translate_isl_ast_node_user): Likewise.
28807         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
28809         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
28810         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
28811         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
28813 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
28815         PR target/55701
28816         * config/arm/arm.md (setmem): New pattern.
28817         * config/arm/arm-protos.h (struct tune_params): New fields.
28818         (arm_gen_setmem): New prototype.
28819         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
28820         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
28821         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
28822         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
28823         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
28824         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
28825         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
28826         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
28827         (arm_const_inline_cost): New function.
28828         (arm_block_set_max_insns): New function.
28829         (arm_block_set_non_vect_profit_p): New function.
28830         (arm_block_set_vect_profit_p): New function.
28831         (arm_block_set_unaligned_vect): New function.
28832         (arm_block_set_aligned_vect): New function.
28833         (arm_block_set_unaligned_non_vect): New function.
28834         (arm_block_set_aligned_non_vect): New function.
28835         (arm_block_set_vect, arm_gen_setmem): New functions.
28837 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
28839         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
28841 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
28843         PR target/61855
28844         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
28845         out of #ifdef __OPTIMIZE__.
28847 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
28849         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
28850         different trapping status if -fnon-call-exceptions is enabled.
28852 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
28854         * expr.c (store_field): Handle VOIDmode for calls that return values
28855         in multiple locations.
28857 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28859         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
28860         (altivec_vsldoi_<mode>): Likewise.
28862 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
28864         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
28865         to the number of characters in the line.
28867 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
28869         * graphite-isl-ast-to-gimple.c: Add using of
28870         build_nonstandard_integer_type instead of int128_integer_type_node.
28872 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
28874         * toplev.c (output_stack_usage): Adjust the location of the warning.
28876 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
28878         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
28879         (*membar_storeload): Disable for LEON3.
28881 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28883         PR rtl-optimization/61461
28884         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
28886 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
28888         PR target/61794
28889         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
28890         Fix instruction constraint.
28891         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
28893 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
28895         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
28897 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
28899         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
28900         GNU coding standards.
28901         (nds32_register_move_cost): Likewise.
28902         (nds32_memory_move_cost): Likewise.
28903         (nds32_address_cost): Likewise.
28905 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
28907         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
28909 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
28911         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
28912         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
28913         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
28914         (HAVE_sync_compare_and_swapqi): Define.
28915         (HAVE_sync_compare_and_swaphi): Likewise.
28916         (HAVE_sync_compare_and_swapsi): Likewise.
28918 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
28920         * config/mips/p5600.md: Add missing cpu tests.
28922 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28924         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
28925         (vmla_f64): Likewise.
28926         (vfms_f64): Likewise.
28927         (vmls_f64): Likewise.
28929 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28931         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
28932         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
28934 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28936         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
28937         (vmlal_high_lane_s32): Likewise.
28938         (vmlal_high_lane_u16): Likewise.
28939         (vmlal_high_lane_u32): Likewise.
28940         (vmlsl_high_lane_s16): Likewise.
28941         (vmlsl_high_lane_s32): Likewise.
28942         (vmlsl_high_lane_u16): Likewise.
28943         (vmlsl_high_lane_u32): Likewise.
28945 2014-07-17  Terry Guo  <terry.guo@arm.com>
28947         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
28948         (alus_reg): Renamed to alus_sreg.
28949         * config/arm/arm-fixed.md: Change type of non-dsp instructions
28950         from alu_reg to alu_sreg.  Change type of dsp instructions from
28951         alu_reg to alu_dsp_reg.
28952         * config/arm/thumb1.md: Likewise.
28953         * config/arm/thumb2.md: Likewise.
28954         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
28955         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
28956         with alu_sreg and alus_sreg.
28957         * config/arm/arm1026ejs.md (alu_op): Likewise.
28958         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
28959         * config/arm/arm926ejs.md (9_alu_op): Likewise.
28960         * config/arm/fa526.md (526_alu_op): Likewise.
28961         * config/arm/fa606te.md (606te_alu_op): Likewise.
28962         * config/arm/fa626te.md (626te_alu_op): Likewise.
28963         * config/arm/fa726te.md (726te_alu_op): Likewise.
28964         * config/arm/fmp626.md (mp626_alu_op): Likewise.
28965         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
28966         alu_sreg, alu_dsp_reg and alus_sreg.
28967         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
28968         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
28969         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
28970         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
28971         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
28972         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
28973         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
28974         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
28975         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
28976         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
28977         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
28978         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
28979         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
28980         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
28981         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
28982         alus_reg to alus_sreg.
28984 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
28986         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
28987         infinity format.
28989 2014-07-17  Richard Biener  <rguenther@suse.de>
28991         PR rtl-optimization/61801
28992         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
28993         don't set reg_pending_barrier if it appears in a debug-insn.
28995 2014-07-16  DJ Delorie  <dj@redhat.com>
28997         * config/rx/rx.c (rx_option_override): Fix alignment values.
28998         (rx_align_for_label): Likewise.
29000 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
29002         PR target/61737.
29003         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
29004         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
29005         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
29006         functions.
29007         (cris_print_index, cris_print_operand, cris_constant_index_p)
29008         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
29009         (cris_address_cost): Ditto last CONSTANT_P.
29010         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
29011         callers changed.  Yield cris_offsettable_symbol for non-PIC
29012         constant symbolic expressions including labels.  Yield cris_unspec
29013         for all unspecs.
29014         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
29015         target to pic_offset_table_rtx for calls that will likely go
29016         through PLT, const0_rtx when they can't.  All callers changed.
29017         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
29018         symbolic expressions to be PICified.  Remove second, redundant,
29019         assert on can_create_pseudo_p returning non-zero.  Use
29020         replace_equiv_address_nv, not replace_equiv_address, for final
29021         operand update.
29022         * config/cris/cris.md ("movsi"): Move variable t to pattern
29023         toplevel. Adjust assert for new cris_symbol_type member.  Use
29024         CONSTANT_P instead of CONSTANT_ADDRESS_P.
29025         ("*movsi_internal") <case 9>: Make check for valid unspec operands
29026         for lapc stricter.
29027         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
29028         ("call", "call_value"): Use second incoming operand as a marker
29029         for pic-offset-table-register being used.
29030         ("*expanded_call_non_v32", "*expanded_call_v32")
29031         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
29032         second incoming operand to CALL, match cris_call_type_marker.
29033         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
29034         ("*expanded_call_side"): Ditto.  Fix typo in comment.
29035         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
29036         CONSTANT_P.
29037         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
29038         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
29039         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
29040         users changed.  Add members cris_offsettable_symbol and cris_unspec.
29041         (cris_symbol_type): Rename from cris_pic_symbol_type.
29042         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
29043         just CONSTANT_P.
29044         * config/cris/cris-protos.h (cris_symbol_type_of,
29045         cris_expand_pic_call_address): Adjust prototypes.
29046         (cris_legitimate_constant_p): New prototype.
29048         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
29049         an existing tmake_file.  Don't add t-slibgcc and t-linux.
29051 2014-07-17  Jason Merrill  <jason@redhat.com>
29053         PR c++/61623
29054         * symtab.c (symtab_remove_from_same_comdat_group): Also
29055         set_comdat_group to NULL_TREE.
29056         (verify_symtab): Fix diagnostic.
29058 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
29060         PR target/61662
29061         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
29063 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
29065         Support location tracking for built-in macro tokens
29066         * input.h (is_location_from_builtin_token): New function declaration.
29067         * input.c (is_location_from_builtin_token): New function definition.
29068         * toplev.c (general_init): Tell libcpp what the pre-defined
29069         spelling location for built-in tokens is.
29071 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
29073         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
29074         on the FUNCTION_DECL.
29076 2014-07-16  Richard Biener  <rguenther@suse.de>
29078         PR other/61782
29079         * doc/extend.texi (always_inline): Clarify.
29081 2014-07-15  Eric Christopher  <echristo@gmail.com>
29083         * doc/invoke.texi (Link Options): Document -z option.
29085 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
29087         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
29088         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
29090 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
29092         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
29094 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
29096         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
29097         varpool_assemble_decl.
29098         * varpool.c (varpool_assemble_decl): Assert that node->definition is
29099         true.
29101 2014-07-15  Michael Matz  <matz@suse.de>
29103         PR rtl-optimization/61772
29104         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
29106 2014-07-15  Richard Biener  <rguenther@suse.de>
29108         * opts.c (default_options_table): Disable bit-ccp at -Og.
29110 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
29112         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
29114 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
29116         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
29117         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
29118         call langhook for unknown declaration.
29119         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
29120         * tree.h (DECL_ARGUMENTS): Update.
29121         * print-tree.c (print_node): Update.
29122         * tree-core.h (tree_decl_non_common): Remove arguments.
29123         (tree_function_decl): Add arguments.
29125 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
29127         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
29129 2014-07-14  Richard Biener  <rguenther@suse.de>
29131         PR tree-optimization/61779
29132         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
29133         simplifying a condition.
29135 2014-07-14  Richard Biener  <rguenther@suse.de>
29137         * builtins.c (c_strlen): Make only_value == 2 really only
29138         affect warning generation.
29140 2014-07-14  Richard Biener  <rguenther@suse.de>
29142         PR tree-optimization/61757
29143         PR tree-optimization/61783
29144         PR tree-optimization/61787
29145         * tree-ssa-dom.c (record_equality): Revert canonicalization
29146         change and add comment.
29147         (propagate_rhs_into_lhs): Revert previous fix, removing
29148         loop depth restriction again.
29150 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29152         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
29153         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
29154         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
29155         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
29156         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
29157         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
29158         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
29160 2014-07-14  Richard Biener  <rguenther@suse.de>
29162         * cgraph.h (decl_in_symtab_p): Make inline.
29164 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
29166         PR middle-end/61294
29167         * doc/invoke.texi (-Wmemset-transposed-args): Document.
29169         PR target/61656
29170         * config/i386/i386.c (classify_argument): Don't merge classes above
29171         number of words.
29173 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
29175         * cgraph.h (symtab_node): Add nonzero_address.
29176         (decl_in_symtab_p): Break out from ...
29177         (symtab_get_node): ... here.
29178         * fold-const.c: Include cgraph.h
29179         (tree_single_nonzero_warnv_p): Use symtab to determine
29180         if symbol is non-zero.
29181         * symtab.c (symtab_node::nonzero_address): New method.
29183 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
29185         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
29186         forgotten in previous commit.
29188 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
29190         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
29191         on builtin types.
29192         * ipa-devirt.c: Include stor-layout.h and intl.h
29193         (odr_subtypes_equivalent_p): New function.
29194         (warn_odr): New function.
29195         (warn_type_mismatch): New function.
29196         (odr_types_equivalent_p): New function.
29197         (add_type_duplicate): Use it.
29198         * common.opt (Wodr): New flag.
29199         * doc/invoke.texi (Wodr): Document new warning.
29201 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
29203         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
29204         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
29205         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
29206         (varpool_get_constructor): Push CTORS_IN timevar.
29207         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
29209 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
29211         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
29212         Remove VOID_FTYPE_PUSHORT.
29213         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
29214         Change code to USHORT_FTYPE_VOID.
29215         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
29216         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
29217         (ix86_atomic_assign_expand_fenv): Update for
29218         __builtin_ia32_fnstsw changes.
29219         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
29220         (fnstsw): Change operand 0 to nonimmediate operand.
29222 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
29224         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
29225         (varpool_get_constructor): New function.
29226         (varpool_ctor_useable_for_folding_p): Break out from ...
29227         (ctor_for_folding): ... here; use varpool_get_constructor.
29228         (varpool_assemble_decl): Likewise.
29229         * lto-streamer.h (struct output_block): Turn cgraph_node
29230         to symbol filed.
29231         (lto_input_variable_constructor): Declare.
29232         * ipa-visibility.c (function_and_variable_visibility): Use
29233         varpool_get_constructor.
29234         * cgraph.h (varpool_get_constructor): Declare.
29235         (varpool_ctor_useable_for_folding_p): New function.
29236         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
29237         parameter; return error_mark_node for non-trivial constructors.
29238         (lto_write_tree_1, DFS_write_tree): Update use of
29239         get_symbol_initial_value.
29240         (output_function): Update initialization of symbol.
29241         (output_constructor): New function.
29242         (copy_function): Rename to ..
29243         (copy_function_or_variable): ... this one; handle vars too.
29244         (lto_output): Output variable sections.
29245         * lto-streamer-in.c (input_constructor): New function.
29246         (lto_read_body): Rename from ...
29247         (lto_read_body_or_constructor): ... this one; handle vars too.
29248         (lto_input_variable_constructor): New function.
29249         * ipa-prop.c (ipa_prop_write_jump_functions,
29250         ipa_prop_write_all_agg_replacement): Update.
29251         * lto-cgraph.c (compute_ltrans_boundary): Use it.
29252         (output_cgraph_opt_summary): Set symbol to NULL.
29254 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
29256         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
29257         non-polymorphic types.
29258         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
29259         * ipa-devirt.c (types_same_for_odr): Do not explode when one
29260         of types is not polymorphic.
29262 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
29264         * lra-constraints.c (remove_inheritance_pseudos): Process
29265         destination pseudo too.
29267 2014-07-11  Rong Xu  <xur@google.com>
29269         * gcov-tool.c (gcov_output_files): Fix build error introduced in
29270         commit r212448.
29272 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
29274         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
29275         * config/avr/avr-devices.c (AVR_MCU): Same.
29276         (avr_mcu_types): add text start value to end of device list.
29277         * config/avr/avr-mcus.def: Add text section start for all devices.
29278         (ata5782): Add new avr5 device.
29279         (ata5831): Same.
29280         * config/avr/avr-tables.opt: Regenerate.
29281         * config/avr/avr.h: Add declaration for text section start handler.
29282         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
29283         SPEC functions.
29284         (LINK_SPEC): Include text section start handler to linker spec.
29285         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
29286         pass -Ttext option to linker if the text section start for the device
29287         is not zero.
29288         * config/avr/t-multilib: Regenerate.
29289         * doc/avr-mmcu.texi: Regenerate.
29291 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
29293         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
29294         * config/rs6000/aix52.h (LINK_SPEC): Same.
29295         * config/rs6000/aix53.h (LINK_SPEC): Same.
29296         * config/rs6000/aix61.h (LINK_SPEC): Same.
29297         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
29299 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
29301         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
29302         (graphite_verify): New function.
29303         (ivs_params_clear): New function.
29304         (gcc_expression_from_isl_ast_expr_id): New function.
29305         (gcc_expression_from_isl_expr_int): New function.
29306         (binary_op_to_tree): New function.
29307         (ternary_op_to_tree): New function.
29308         (unary_op_to_tree): New function.
29309         (nary_op_to_tree): New function.
29310         (gcc_expression_from_isl_expr_op): New function.
29311         (gcc_expression_from_isl_expression): New function.
29312         (graphite_create_new_loop): New function.
29313         (translate_isl_ast_for_loop): New function.
29314         (get_upper_bound): New function.
29315         (graphite_create_new_loop_guard): New function.
29316         (translate_isl_ast_node_for): New function.
29317         (translate_isl_ast): New function.
29318         (add_parameters_to_ivs_params): New function.
29319         (scop_to_isl_ast): New parameter ip.
29320         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
29322 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
29324         * config/xtensa/predicates.md (call expander): Update for
29325         DECL_SECTION_NAME being string.
29327 2014-07-11  Richard Biener  <rguenther@suse.de>
29329         PR middle-end/61473
29330         * builtins.c (fold_builtin_memory_op): Inline memory moves that
29331         can be implemented with a single load followed by a single store.
29332         (c_strlen): Only warn when only_value is not 2.
29334 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
29336         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
29338 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
29340         PR target/61561
29341         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
29342         (*movhi_bytes): Likewise.
29343         (*arm_movqi_insn): Likewise.
29345 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
29347         PR target/56858
29348         * config/alpha/alpha.c: Include tree-pass.h, context.h
29349         and pass_manager.h.
29350         (pass_data_handle_trap_shadows): New pass.
29351         (pass_handle_trap_shadows::gate): New pass gate function.
29352         (make_pass_handle_trap_shadows): New function.
29353         (rest_of_handle_trap_shadows): Ditto.
29355         (alpha_align_insns_1): Rename from alpha_align_insns.
29356         (pass_data_align_insns): New pass.
29357         (pass_align_insns::gate): New pass gate function.
29358         (make_pass_aling_insns): New function.
29359         (rest_of_align_insns): Ditto.
29360         (alpha_align_insns): Ditto.
29362         (alpha_option_override): Declare handle_trap_shadows info
29363         and align_insns_info.  Register handle_trap_shadows and align_insns
29364         passes here.
29365         (alpha_reorg): Do not call alpha_trap_shadows and
29366         alpha_align_insn from here.
29368         (alpha_pad_function_end): Do not skip BARRIERs.
29370 2014-07-10  Rong Xu  <xur@google.com>
29372         Add gcov-tool: an offline gcda profile processing tool support.
29373         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
29374         (gcov_is_error): Ditto.
29375         (gcov_read_string): Ditto.
29376         (gcov_read_sync): Ditto.
29377         * gcov-io.h: Move counter defines to gcov-counter.def.
29378         * gcov-dump.c (tag_counters): Use gcov-counter.def.
29379         * coverage.c: Ditto.
29380         * gcov-tool.c: Offline gcda profile processing tool.
29381         (unlink_gcda_file): Remove one gcda file.
29382         (unlink_profile_dir): Remove gcda files from the profile path.
29383         (gcov_output_files): Output gcda files to an output dir.
29384         (profile_merge): Merge two profiles in directory.
29385         (print_merge_usage_message): Print merge usage.
29386         (merge_usage): Print merge usage and exit.
29387         (do_merge): Driver for profile merge sub-command.
29388         (profile_rewrite): Rewrite profile.
29389         (print_rewrite_usage_message): Print rewrite usage.
29390         (rewrite_usage): Print rewrite usage and exit.
29391         (do_rewrite): Driver for profile rewrite sub-command.
29392         (print_usage): Print gcov-info usage and exit.
29393         (print_version): Print gcov-info version.
29394         (process_args): Process arguments.
29395         (main): Main routine for gcov-tool.
29396         * Makefile.in: Build and install gcov-tool.
29397         * gcov-counter.def: New file split from gcov-io.h.
29398         * doc/gcc.texi: Include gcov-tool.texi.
29399         * doc/gcov-tool.texi: Document for gcov-tool.
29401 2014-07-10  Richard Biener  <rguenther@suse.de>
29403         PR tree-optimization/61757
29404         * tree-ssa-dom.c (loop_depth_of_name): Restore.
29405         (propagate_rhs_into_lhs): Revert part of last change.
29407 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
29409         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
29410         FUNCTION_DECLs.
29412 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
29414         PR middle-end/53590
29415         * function.c (allocate_struct_function): Revert r188667 change.
29417         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
29419 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
29421         * doc/install.texi: Remove links to defunct package providers for
29422         Solaris.
29424 2014-07-09  Tom de Vries  <tom@codesourcery.com>
29426         * final.c (get_call_fndecl): Declare.
29427         (self_recursive_call_p): New function.
29428         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
29430 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
29432         * ipa-devirt.c (record_node): Walk through aliases.
29434 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
29436         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
29438 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
29440         Revert:
29441         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
29443 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
29445         * ipa-visibility.c (function_and_variable_visibility): Remove
29446         temporary hack disabling local aliases on AIX.
29448 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
29450         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
29451         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
29453 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
29455         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
29456         * rs6000/rs6000.c: Inline output of .set instruction.
29457         (declare_alias_data): New struct.
29458         (rs6000_declare_alias): New function.
29459         (rs6000_xcoff_declare_function_name): Use it.
29460         (rs6000_xcoff_declare_object_name): New function.
29461         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
29462         (ASM_OUTPUT_DEF): Turn to empty definition.
29464 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
29466         PR bootstrap/61679
29467         * hash-table.h: use hash_table::value_type instead of
29468         Descriptor::value_type in the return types of several methods.
29470 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
29472         * tree-pass.h (pass_data): Remove has_execute member.
29473         * passes.c (execute_one_pass): Don't check pass->has_execute.
29474         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29475         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29476         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29477         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29478         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29479         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29480         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29481         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29482         gimple-low.c, gimple-ssa-isolate-paths.c,
29483         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29484         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
29485         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
29486         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
29487         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
29488         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29489         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
29490         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
29491         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
29492         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
29493         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
29494         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
29495         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29496         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29497         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29498         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29499         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29500         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29501         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29502         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29503         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29504         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29505         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
29506         web.c: Remove initializer for pass_data::has_execute.
29508 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
29510         * graphite-htab.h: Use hash_map instead of hash_table.
29511         * graphite-clast-to-gimple.c: Adjust.
29512         * passes.c: Use hash_map instead of hash_table.
29513         * sese.c: Likewise.
29514         * sese.h: Remove now unused code.
29516 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
29518         PR target/61599
29519         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
29520         than zero.
29522 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
29524         PR rtl-optimization/61673
29525         * combine.c (simplify_comparison): Test just mode's sign bit
29526         in tmode rather than the sign bit and any bits above it.
29528 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
29530         * graphite-isl-ast-to-gimple.c (generate_isl_context):
29531         Add __isl_give to the declaration.
29532         (generate_isl_schedule): Likewise.
29533         (scop_to_isl_ast): Likewise.
29535 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29537         * config/arm/arm.c (cortexa5_extra_costs): New table.
29538         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
29540 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
29542         PR tree-optimization/61725
29543         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
29544         range, use range_includes_zerop_p instead of integer_zerop on
29545         vr0->min, only use log2 of max if min is not negative.
29547 2014-07-08  Richard Biener  <rguenther@suse.de>
29549         * tree-ssa-dom.h (loop_depth_of_name): Remove.
29550         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
29551         restriction on loop depth difference.
29552         (record_equality): Likewise.
29553         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
29554         (loop_depth_of_name): Remove.
29555         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
29556         restriction on loop depth difference.
29557         (init_copy_prop): Likewise.
29559 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
29561         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
29562         parameter.
29563         (walk_aliased_vdefs): Likewise.
29564         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
29565         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
29566         (detect_type_change_from_memory_writes): Check if entry was reached.
29568 2014-07-08  Richard Biener  <rguenther@suse.de>
29570         PR tree-optimization/61681
29571         * tree-ssa-structalias.c (find_what_var_points_to): Expand
29572         NONLOCAL inside ESCAPED.
29574 2014-07-08  Richard Biener  <rguenther@suse.de>
29576         PR tree-optimization/61680
29577         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29578         Handle properly all read-write dependences with group accesses.
29580 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
29582         PR tree-optimization/61576
29583         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
29584         block containing reduction statement is predecessor of phi basi block.
29586 2014-07-08  Marek Polacek  <polacek@redhat.com>
29588         PR c/60226
29589         * fold-const.c (round_up_loc): Change the parameter type.
29590         Remove assert.
29591         * fold-const.h (round_up_loc): Adjust declaration.
29592         * stor-layout.c (finalize_record_size): Check for too large types.
29594 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
29596         * symtab.c: Include calls.h.
29597         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
29599 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
29601         * config/rs6000/rs6000.c (output_vec_const_move): Handle
29602         little-endian code generation.
29603         * config/rs6000/spe.md (spe_evmergehi): Rename to...
29604         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
29605         (spe_evmergehilo): Rename to...
29606         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
29607         (spe_evmergelo): Rename to...
29608         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
29609         (spe_evmergelohi): Rename to...
29610         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
29611         (spe_evmergehi, spe_evmergehilo): New expanders.
29612         (spe_evmergelo, spe_evmergelohi): Likewise.
29613         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
29614         (*frob_tf_ti): Likewise.
29615         (*frob_<mode>_di_2): Likewise.
29616         (*frob_tf_di_8_2): Likewise.
29617         (*frob_di_<mode>): Likewise.
29618         (*frob_ti_tf): Likewise.
29619         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
29620         (*frob_ti_<mode>_8_2): Likewise.
29621         (*frob_ti_tf_2): Likewise.
29622         (mov_si<mode>_e500_subreg0): Rename to...
29623         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
29624         endianness only.
29625         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
29626         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
29627         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
29628         the big endianness only.
29629         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
29630         (*mov_si<mode>_e500_subreg0_2): Rename to...
29631         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
29632         big big endianness only.
29633         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
29634         (*mov_si<mode>_e500_subreg4): Rename to...
29635         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
29636         endianness only.
29637         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
29638         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
29639         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
29640         the big endianness only.
29641         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
29642         pattern.
29643         (*mov_si<mode>_e500_subreg4_2): Rename to...
29644         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
29645         endianness only.
29646         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
29647         (*mov_sitf_e500_subreg8): Rename to...
29648         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
29649         endianness only.
29650         (*mov_sitf_e500_subreg8_le): New instruction pattern.
29651         (*mov_sitf_e500_subreg8_2): Rename to...
29652         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
29653         endianness only.
29654         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
29655         (*mov_sitf_e500_subreg12): Rename to...
29656         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
29657         endianness only.
29658         (*mov_sitf_e500_subreg12_le): New instruction pattern.
29659         (*mov_sitf_e500_subreg12_2): Rename to...
29660         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
29661         endianness only.
29662         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
29664 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
29666         * asan.c (instrument_strlen_call): Do not instrument first byte
29667         in strlen if already instrumented.
29669 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29671         * config/arm/arm.opt (mwords-little-endian): Delete.
29672         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
29673         of TARGET_LITTLE_WORDS.
29674         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
29675         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
29676         warning.
29677         * doc/invoke.texi: Remove references to -mwords-little-endian.
29679 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
29681         * expmed.c (struct init_expmed_rtl): Change all fields but
29682         pow2 and cint from struct rtx_def to rtx.
29683         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
29684         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
29685         at the end again.
29687 2014-07-06  Marek Polacek  <polacek@redhat.com>
29689         PR c/6940
29690         * doc/invoke.texi: Document -Wsizeof-array-argument.
29692 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
29694         * wide-int.h (wide_int_storage): Change declaration from struct
29695         to class.
29697 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
29699         * cgraph.c (cgraph_create_indirect_edge): Update call of
29700         get_polymorphic_call_info.
29701         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
29702         (possible_polymorphic_call_targets): Add parameter call.
29703         (decl_maybe_in_construction_p): New predicate.
29704         (get_polymorphic_call_info): Add parameter call;
29705         use decl_maybe_in_construction_p.
29706         * gimple-fold.c (fold_gimple_assign): Update use of
29707         possible_polymorphic_call_targets.
29708         (gimple_fold_call): Likewise.
29709         * ipa-prop.c: Inlcude calls.h
29710         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
29711         (param_type_may_change_p): New predicate.
29712         (detect_type_change_from_memory_writes): Break out from ...
29713         (detect_type_change): ... this one; use param_type_may_change_p.
29714         (detect_type_change_ssa): Use param_type_may_change_p.
29715         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
29717 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
29719         PR target/49423
29720         * config/arm/arm-protos.h (arm_legitimate_address_p,
29721         arm_is_constant_pool_ref): Add prototypes.
29722         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
29723         (arm_is_constant_pool_ref) New function.
29724         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
29725         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
29726         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
29727         operand. Remove pool_range and neg_pool_range attributes.
29728         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
29729         pool_range and neg_pool_range attributes.
29730         * config/arm/constraints.md (Uh): New constraint.
29731         (Uq): Don't allow constant pool references.
29733 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
29735         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
29736         (move_lo_quad_internal_be_<mode>): Likewise.
29737         (move_lo_quad_<mode>): Convert to define_expand.
29738         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
29739         (aarch64_simd_move_hi_quad_be_<mode>): New.
29740         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
29741         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
29742         (aarch64_combinez_be<mode>): New.
29743         (aarch64_combine<mode>): Convert to define_expand.
29744         (aarch64_combine_internal<mode>): New.
29745         (aarch64_simd_combine<mode>): Remove bogus RTL description.
29747 2014-07-04  Tom de Vries  <tom@codesourcery.com>
29749         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
29750         combination of earlyclobber and read/write modifiers.
29752 2014-07-04  Tom de Vries  <tom@codesourcery.com>
29754         * config/aarch64/aarch64-simd.md
29755         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
29757 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
29759         PR target/61714
29760         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
29762 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
29764         PR middle-end/61654
29765         * cgraphunit.c (expand_thunk): Call free_dominance_info.
29767         PR tree-optimization/61684
29768         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
29769         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
29771 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
29772             Kito Cheng  <kito@0xlab.org>
29773             Monk Chiang  <sh.chiang04@gmail.com>
29775         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
29776         (nds32_symbol_load_store_p): Move to ...
29777         (nds32_fp_as_gp_check_available): Move to ...
29778         * config/nds32/nds32-fp-as-gp.c: ... here.
29779         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
29780         extern declaration.
29782 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
29783             Kito Cheng  <kito@0xlab.org>
29784             Monk Chiang  <sh.chiang04@gmail.com>
29786         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
29787         (nds32_expand_store_multiple): Move to ...
29788         (nds32_expand_movmemqi): Move to ...
29789         * config/nds32/nds32-memory-manipulation.c: ... here.
29791 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
29792             Kito Cheng  <kito@0xlab.org>
29793             Monk Chiang  <sh.chiang04@gmail.com>
29795         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
29796         (nds32_output_casesi_pc_relative): Move to ...
29797         (nds32_output_casesi): Move to ...
29798         (nds32_mem_format): Move to ...
29799         (nds32_output_16bit_store): Move to ...
29800         (nds32_output_16bit_load): Move to ...
29801         (nds32_output_32bit_store): Move to ...
29802         (nds32_output_32bit_load): Move to ...
29803         (nds32_output_32bit_load_s): Move to ...
29804         (nds32_output_stack_push): Move to ...
29805         (nds32_output_stack_pop): Move to ...
29806         * config/nds32/nds32-md-auxiliary.c: ... here.
29808 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
29809             Ling-Hua Tseng  <uranus@tinlans.org>
29811         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
29812         the purpose of this file.
29814 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
29815             Kito Cheng  <kito@0xlab.org>
29816             Monk Chiang  <sh.chiang04@gmail.com>
29818         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
29819         (nds32_address_cost): Move implementation to ...
29820         * config/nds32/nds32-cost.c: ... here.
29821         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
29822         (nds32_address_cost_impl): Declare.
29824 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
29825             Kito Cheng  <kito@0xlab.org>
29826             Monk Chiang  <sh.chiang04@gmail.com>
29828         * config/nds32/nds32.c
29829         (nds32_consecutive_registers_load_store_p): Move to ...
29830         (nds32_valid_multiple_load_store): Move to ...
29831         (nds32_valid_stack_push_pop): Move to ...
29832         (nds32_can_use_bclr_p): Move to ...
29833         (nds32_can_use_bset_p): Move to ...
29834         (nds32_can_use_btgl_p): Move to ...
29835         (nds32_can_use_bitci_p): Move to ...
29836         * config/nds32/nds32-predicates.c: ... here.
29838 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
29839             Kito Cheng  <kito@0xlab.org>
29840             Monk Chiang  <sh.chiang04@gmail.com>
29842         * config/nds32/nds32.c
29843         (nds32_expand_builtin_null_ftype_reg): Move to ...
29844         (nds32_expand_builtin_reg_ftype_imm): Move to ...
29845         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
29846         (nds32_init_builtins): Move implementation to ...
29847         (nds32_expand_builtin): Move implementation to ...
29848         * config/nds32/nds32-intrinsic.c: ... here.
29849         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
29850         (nds32_expand_builtin_impl): Declare.
29852 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
29853             Kito Cheng  <kito@0xlab.org>
29854             Monk Chiang  <sh.chiang04@gmail.com>
29856         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
29857         (nds32_emit_section_tail_template): Move to ...
29858         (nds32_emit_isr_jmptbl_section): Move to ...
29859         (nds32_emit_isr_vector_section): Move to ...
29860         (nds32_emit_isr_reset_conten): Move to ...
29861         (nds32_check_isr_attrs_conflict): Move to ...
29862         (nds32_construct_isr_vectors_information): Move to ...
29863         (nds32_asm_file_start): Move implementation to ...
29864         (nds32_asm_file_end): Move implementation to ...
29865         * config/nds32/nds32-isr.c: ... here.
29866         * config/nds32/nds32-protos.h
29867         (nds32_check_isr_attrs_conflict): Declare.
29868         (nds32_construct_isr_vectors_information): Declare.
29869         (nds32_asm_file_start_for_isr): Declare.
29870         (nds32_asm_file_end_for_isr): Declare.
29872 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
29873             Kito Cheng  <kito@0xlab.org>
29874             Monk Chiang  <sh.chiang04@gmail.com>
29876         * config.gcc (nds32*): Add new modules to extra_objs.
29877         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
29878         (nds32be-*-*): Likewise.
29879         * config/nds32/nds32-cost.c: New file.
29880         * config/nds32/nds32-fp-as-gp.c: New file.
29881         * config/nds32/nds32-intrinsic.c: New file.
29882         * config/nds32/nds32-isr.c: New file.
29883         * config/nds32/nds32-md-auxiliary.c: New file.
29884         * config/nds32/nds32-memory-manipulation.c: New file.
29885         * config/nds32/nds32-pipelines-auxiliary.c: New file.
29886         * config/nds32/nds32-predicates.c: New file.
29887         * config/nds32/t-nds32: New file.
29889 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
29891         PR tree-optimization/61682
29892         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
29893         using cases and when one of the operands is equal to 1.
29895 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
29897         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
29898         ashr<mode>3): Correct mode of operands[2].
29899         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
29900         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
29901         Correct mode of operands[2].  Fix split condition.
29903 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
29905         * arm.md (arch): Add armv6_or_vfpv3.
29906         (arch_enabled): Add test for the above.
29907         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
29908         on VFP9.
29909         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
29911 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
29913         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
29914         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
29915         HWI 1 and negate the unsigned value.
29916         * expmed.c (expand_sdiv_pow2): For modes wider than word always
29917         use AND instead of shift.
29918         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
29920 2014-07-03  Marek Polacek  <polacek@redhat.com>
29922         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
29923         (-fsanitize=float-divide-by-zero): Move to the table with
29924         -fsanitize=undefined suboptions.
29925         (-fsanitize=float-cast-overflow): Likewise.
29927 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
29929         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
29930         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
29931         endianness.
29933 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29935         * loop-invariant.c (struct invariant): Add a new member: eqno;
29936         (find_identical_invariants): Update eqno;
29937         (create_new_invariant): Init eqno;
29938         (get_inv_cost): Compute comp_cost with eqno;
29940 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
29942         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
29943         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
29944         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
29945         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
29946         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
29948 2014-07-02  Christian Bruel  <christian.bruel@st.com>
29950         PR target/29349
29951         PR target/53513
29952         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
29953         (make_preds_opaque): Delete.
29954         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
29955         (commit_mode_sets): New function.
29956         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
29957         Process all modes at once.
29958         * basic-block.h (pre_edge_lcm_avs): Declare.
29959         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
29960         Call clear_aux_for_edges. Fix comments.
29961         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
29962         (pre_edge_rev_lcm): Idem.
29963         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
29964         parameter.
29965         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
29966         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
29967         Idem.
29968         * config/i386/i386.c (x96_emit_mode_set): Idem.
29969         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
29970         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
29971         (fpscr_toggle) Disallow from delay slot.
29972         * target.def (emit_mode_set): Add prev_mode parameter.
29973         * doc/tm.texi: Regenerate.
29975 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29977         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
29978         variable i.
29980 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
29982         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
29983         vtable_pointer_value_to_vtable): Constify.
29984         (contains_polymorphic_type_p): Declare.
29985         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
29986         vtable_pointer_value_to_vtable): Constify.
29987         (contains_polymorphic_type_p): New predicate.
29988         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
29989         polymorphic types.
29990         (ipa_set_ancestor_jf): Likewise.
29991         (detect_type_change): Return false in easy cases.
29992         (compute_complex_assign_jump_func): Require type to contain
29993         polymorphic type.
29994         (compute_known_type_jump_func): Likewise.
29996 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
29998         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
29999         Remove.
30000         (type_in_anonymous_namespace_p): Constify argument.
30001         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
30002         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
30003         (main_odr_variant): New function.
30004         (hash_type_name): Make static; update assert; do not ICE on
30005         non-records.
30006         (types_same_for_odr): Bring here from tree.c; simplify and remove
30007         old structural comparing code that doesn't work for templates.
30008         (odr_hasher::equal): Update assert.
30009         (add_type_duplicate): Return true when bases should be computed;
30010         replace incomplete loader by complete; do not output duplicated
30011         warnings; do not ICE on non-records; set odr_violated flag.
30012         (get_odr_type): Be ready to replace incomplete type by complete
30013         one; work on ODR variants instead of main variants; reorder item
30014         in array so bases have still smaller indexes.
30015         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
30016         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
30018 2014-07-01  Cary Coutant  <ccoutant@google.com>
30020         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
30021         lookup.
30022         (resolve_addr_in_expr): When replacing the rtx in a location list
30023         entry, get a new address table entry.
30024         (dwarf2out_finish): Call index_location_lists even if there are no
30025         addr_index_table entries yet.
30027 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
30029         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
30030         change for not being obvious.
30032 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
30034         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
30035         unused argument.
30037 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30039         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
30040         (vcagt_f64): Likewise.
30041         (vcale_f64): Likewise.
30042         (vcaled_f64): Likewise.
30043         (vcales_f32): Likewise.
30044         (vcalt_f64): Likewise.
30045         (vcaltd_f64): Likewise.
30046         (vcalts_f32): Likewise.
30048 2014-07-01  Marek Polacek  <polacek@redhat.com>
30050         * doc/invoke.texi: Document -Wint-conversion.
30052 2014-07-01  Marek Polacek  <polacek@redhat.com>
30054         PR c/58286
30055         * doc/invoke.texi: Document -Wincompatible-pointer-types.
30057 2014-07-01  Martin Liska  <mliska@suse.cz>
30059         IPA REF alias refactoring
30060         * cgraph.h (iterate_direct_aliases): New function.
30061         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
30062         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
30063         FOR_EACH_ALIAS added.
30064         (cgraph_for_node_and_aliases): Likewise.
30065         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
30066         * ipa-inline.c (reset_edge_caches): Likewise.
30067         (update_caller_keys): Likewise.
30068         * trans-mem.c (ipa_tm_execute): Likewise.
30069         *varpool.c (varpool_analyze_node): Likewise.
30070         (varpool_for_node_and_aliases): Likewise.
30071         * ipa-ref.h (first_alias): New function.
30072         (last_alias): Likewise.
30073         (has_aliases_p): Likewise.
30074         * ipa-ref.c (ipa_ref::remove_reference): Removal function
30075         is sensitive to IPA_REF_ALIASes.
30076         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
30077         are put at the beginning of the list.
30078         (symtab_node::iterate_direct_aliases): New function.
30080 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30082         Revert:
30083         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
30084         type is complete.
30085         (write_ts_type_common_tree_pointers): Do not stream fields not set
30086         for incomplete types; do not stream duplicated fields for variants;
30087         sanity check that variant and type match.
30088         (write_ts_type_non_common_tree_pointers): Likewise.
30089         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
30090         TYPE_SIZE whether type is complete.
30091         (lto_input_ts_type_common_tree_pointers): Do same changes as in
30092         write_ts_type_common_tree_pointers
30093         (lto_input_ts_type_non_common_tree_pointers): Likewise.
30095 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
30097         * var-tracking.c (add_stores): Return instead of asserting if old
30098         and new values for conditional store are the same.
30100 2014-06-30  Richard Henderson  <rth@redhat.com>
30102         PR rtl-opt/61608
30103         PR target/39284
30104         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
30105         the cfg if there were any changes.
30106         * passes.def: Revert move of peephole2 after reorder_blocks;
30107         move duplicate_computed_gotos before peephole2.
30109 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
30111         * except.c (emit_note_eh_region_end): New helper function.
30112         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
30113         emit EH_REGION_END note.
30114         * jump.c (cleanup_barriers): Do not split a call and its
30115         corresponding CALL_ARG_LOCATION note.
30117 2014-06-30  Jeff Law  <law@redhat.com>
30119         PR tree-optimization/61607
30120         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
30121         deeper into the SSA_NAME_VALUE chain.
30123 2014-06-30  Marek Polacek  <polacek@redhat.com>
30125         * convert.c (convert_to_integer): Don't instrument conversions if the
30126         function has no_sanitize_undefined attribute.
30127         * ubsan.c: Don't run the ubsan pass if the function has
30128         no_sanitize_undefined attribute.
30130 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
30132         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
30133         -fsanitize=undefined suboptions.
30135 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
30137         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
30138         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
30139         against bigendian and adjust indices.
30141 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
30143         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
30145 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30147         PR target/61633
30148         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
30149         Add alternative; make early clobber.  Adjust both split patterns
30150         to use operand 0 as the working register.
30152 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
30154         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
30155         as ira_object_id_map might be NULL, or 1.
30157 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30159         * loop-invariant.c (get_inv_cost): Handle register class.
30160         (gain_for_invariant): Check the register pressure of the inv
30161         and its overlapped register class, other than all.
30163 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
30165         * doc/invoke.texi (Optimize Options): Fix descriptions of
30166         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
30168 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
30170         * doc/extend.texi (Function Attributes): Update 'naked' attribute
30171         documentation.
30173 2014-06-29  Tobias Grosser <tobias@grosser.es>
30175         PR bootstrap/61650
30176         * graphite-isl-ast-to-gimple.c: Add missing guards.
30178 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
30180         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
30181         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
30182         * flag-types.h: Add new enum fgraphite_generator.
30183         * graphite-isl-ast-to-gimple.c: New.
30184         * graphite-isl-ast-to-gimple.h: New.
30185         * graphite.c (graphite_transform_loops): Add choice of Graphite
30186         code generator, which depends on flag_graphite_code_gen.
30188 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
30190         * graphite-dependences.c (subtract_commutative_associative_deps):
30191         Add NULL checking of the following variables: must_raw_no_source,
30192         may_raw_no_source, must_war_no_source, may_war_no_source,
30193         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
30194         must_war, may_war, must_waw, may_waw.
30196 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
30198         * graphite-clast-to-gimple.c: gloog is renamed to
30199         graphite_regenerate_ast_cloog.  gloog_error is renamed to
30200         graphite_regenerate_error.
30201         * graphite-clast-to-gimple.h: The definition of the struct
30202         bb_pbb_def is moved to graphite-htab.h.
30203         Add inclusion of the hash-table.h.
30204         * graphite-htab.h: The declaration of the function gloog is moved
30205         to graphite-clast-to-gimple.h and renamed to
30206         graphite_regenerate_ast_cloog.
30207         * graphite.c (graphite_transform_loops): gloog is renamed
30208         to graphite_regenerate_ast_cloog.
30210 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30212         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
30213         type is complete.
30214         (write_ts_type_common_tree_pointers): Do not stream fields not set
30215         for incomplete types; do not stream duplicated fields for variants;
30216         sanity check that variant and type match.
30217         (write_ts_type_non_common_tree_pointers): Likewise.
30218         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
30219         TYPE_SIZE whether type is complete.
30220         (lto_input_ts_type_common_tree_pointers): Do same changes as in
30221         write_ts_type_common_tree_pointers
30222         (lto_input_ts_type_non_common_tree_pointers): Likewise.
30224 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30226         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
30228 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30230         * tree-inline.c (remap_type_1): Do not duplicate fields
30231         that are shared in between type and its main variant.
30233 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30235         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
30236         of the type.
30237         (ipa_set_ancestor_jf) Likewise.
30238         (check_stmt_for_type_change): Check that we work on main variant.
30239         (detect_type_change): Look into main variant.
30240         (compute_known_type_jump_func): Check that main variant has BINFO.
30242 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30244         * ipa-devirt.c (set_type_binfo): New function.
30245         (add_type_duplicate): Use it.
30246         (get_odr_type): Sanity check that binfos points to main variants.
30247         (get_class_context): Be sure the context's outer_type is main variant.
30248         (contains_type_p): Walk main variant.
30249         (get_polymorphic_call_info_for_decl): Set outer_type to be
30250         main variant.
30251         (get_polymorphic_call_info): Likewise.
30252         (possible_polymorphic_call_targets): Sanity check that we operate
30253         on main variant.
30255 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30257         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
30259 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30261         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
30262         accidental change due to wide-int branch merge.
30264 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30266         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
30267         compressed debug support.
30268         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
30269         * configure: Regenerate.
30270         * config.in: Regenerate.
30271         * common.opt (compressed_debug_sections): New enum.
30272         (gz, gz=): New options.
30273         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
30274         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
30275         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
30276         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
30277         LINK_COMPRESS_DEBUG_SPEC.
30278         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
30279         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
30280         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
30281         (Debugging Options): Document -gz[=type].
30283 2014-06-27  Martin Jambor  <mjambor@suse.cz>
30285         PR ipa/61160
30286         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
30287         args_to_skip, use those from node instead.  Copy args_to_skip and
30288         combined_args_to_skip from node to the new thunk.
30289         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
30290         (cgraph_create_virtual_clone): Moved computation of
30291         combined_args_to_skip...
30292         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
30294 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
30296         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
30297         redundant diagnostic machinary.
30299 2014-06-27  Richard Biener  <rguenther@suse.de>
30301         * tree-ssa-math-opts.c (bswap_replace): Fix
30302         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
30304 2014-06-27  Martin Liska  <mliska@suse.cz>
30306         * gimple.h (gimple_location_safe): New function introduced.
30307         * cgraphunit.c (walk_polymorphic_call_targets): Usage
30308         of gimple_location_safe replaces gimple_location.
30309         (gimple_fold_call): Likewise.
30310         * ipa-devirt.c (ipa_devirt): Likewise.
30311         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30312         * ipa.c (walk_polymorphic_call_targets): Likewise.
30313         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
30315 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
30317         PR tree-optimization/57233
30318         PR tree-optimization/61299
30319         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
30320         functions.
30321         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
30322         would be lowered to scalar shifts, check if corresponding
30323         shifts and vector BIT_IOR_EXPR are supported and don't lower
30324         or lower just to narrower vector type in that case.
30325         * expmed.c (expand_shift_1): Fix up handling of vector
30326         shifts and rotates.
30328 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
30330         PR target/61586
30331         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
30333 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
30335         * doc/invoke.texi (-fsemantic-interposition): Document.
30336         * common.opt (fsemantic-interposition): New flag.
30337         * varasm.c (decl_replaceable_p): Use it.
30339 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30341         PR target/61542
30342         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
30343         extraction other than index 3.
30345 2014-06-26  Teresa Johnson  <tejohnson@google.com>
30347         * doc/invoke.texi: Fix typo.
30348         * dumpfile.c: Add support for documented -fdump-* options
30349         optimized/missed/note/optall.
30351 2014-06-26  Martin Jambor  <mjambor@suse.cz>
30353         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
30354         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
30355         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
30356         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
30357         * opts.c (default_options_optimization): Set
30358         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
30359         * doc/invoke.texi (allow-load-data-races)
30360         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
30361         (allow-store-data-races): Document the new default.
30363 2014-06-26  Martin Jambor  <mjambor@suse.cz>
30365         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
30366         renamed to ipa_impossible_devirt_target.  Fix typo.
30367         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
30368         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
30369         ipa_impossible_devirt_target.
30371 2014-06-26  Richard Biener  <rguenther@suse.de>
30373         PR tree-optimization/61607
30374         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
30375         explaining why we restrict copies on loop depth.
30376         * tree-ssa-dom.c (cprop_operand): Remove restriction on
30377         on loop depth.
30378         (record_equivalences_from_phis): Instead add it here.
30380 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
30382         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
30383         (LTO_WRAPPER_OBJS): New variable.
30384         (lto-wrapper$(exeext)): Use it.
30385         * collect2.c: Include "collect-utils.h".
30386         (verbose, debug): Remove variables.
30387         (at_file_supplied): No longer static.
30388         (tool_name): New variable.
30389         (do_wait, fork_execute, maybe_unlink): Don't declare.
30390         (tool_cleanup): No longer static.
30391         (notice): Remove function.
30392         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
30393         fork_execute calls.
30394         (collect_wait, do_wait, collect_execute): Remove functions.
30395         (maybe_unlink): No longer static.
30396         * collect2.h (verbose, debug): Don't declare.
30397         (at_file_supplied): Declare.
30398         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
30399         changed.
30400         (collect_execute): Replace with implementation from collect2, plus a
30401         new arg use_atfile.  All callers changed.
30402         (collect_wait): Replace with implementation from collect2.
30403         (maybe_unlink_file): Remove function.
30404         (fork_execute): Replace with implementation from collect2, plus a
30405         new arg use_atfile.  All callers changed.
30406         (do_wait): Add call to utils_cleanup to the error path.
30407         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
30408         (tool_cleanup): Adjust declarations.
30409         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
30410         * tlink.c: Include "collect-utils.h".
30411         (tlink_execute): New arg use_atfile.  All callers changed.
30412         (tlink_init, tlink_execute): Remove declarations.
30414         * collect-utils.c (save_temps): New variable.
30415         (do_wait): Use it instead of debug.  Use fatal_error.
30416         * collect-utils.h (save_temps): Declare.
30417         * collect2.c (verbose): Rename from vflag.  All uses changed.
30418         (tool_cleanup): New function, copied from collect_atexit.
30419         (collect_atexit, handler): Just call it.
30420         * collect2.h (verbose): Declaration renamed from vflag.
30421         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
30422         debug.
30424         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
30425         (lto-wrapper$(exeext)): Link with collect-utils.o.
30426         * collect-utils.c: New file.
30427         * collect-utils.h: New file.
30428         * lto-wrapper.c: Include "collect-utils.h".
30429         (args_name): Delete variable.
30430         (tool_name): New variable.
30431         (tool_cleanup): New function.
30432         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
30433         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
30434         (fork_execute): Remove functions.
30436 2014-06-26  Nick Clifton  <nickc@redhat.com>
30438         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
30440         * doc/extend.texi (Function Attributes): Fix typo in description
30441         of RX vector attribute.
30443 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
30445         * config.gcc (supported_defaults): Error when passing either
30446         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
30448 2014-06-26  Richard Biener  <rguenther@suse.de>
30450         * tree-ssa-dom.c (cprop_operand): Remove restriction on
30451         propagating volatile pointers.
30453 2014-06-26  Richard Biener  <rguenther@suse.de>
30455         PR tree-optimization/61607
30456         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
30457         loop if we redirected its latch edge.
30458         (thread_block_1): Do not cancel loops prematurely.
30460 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
30462         * toplev.c (backend_init_target): Move init_emit_regs and
30463         init_regs to...
30464         (backend_init) ... here; skip ira_init_once and backend_init_target.
30465         (target_reinit) ... and here; clear
30466         this_target_rtl->lang_dependent_initialized.
30467         (lang_dependent_init_target): Clear
30468         this_target_rtl->lang_dependent_initialized;
30469         break out rtl initialization to ...
30470         (initialize_rtl): ... here; call also backend_init_target
30471         and ira_init_once.
30472         * toplev.h (initialize_rtl): New function.
30473         * function.c: Include toplev.h
30474         (init_function_start): Call initialize_rtl.
30475         * rtl.h (target_rtl): Add target_specific_initialized,
30476         lang_dependent_initialized.
30478 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
30479             Jakub Jelinek  <jakub@redhat.com>
30481         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
30483 2014-06-25  Tom de Vries  <tom@codesourcery.com>
30485         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
30487 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30489         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
30490         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
30491         Issue a strict overflow warning if appropriate.
30493 2014-06-25  Martin Liska  <mliska@suse.cz>
30495         IPA REF refactoring
30496         * Makefile.in: Removed header file (ipa-ref-inline.h).
30497         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
30498         called.
30499         (cgraph_speculative_call_info): Likewise.
30500         (cgraph_for_node_thunks_and_aliases): Likewise.
30501         (cgraph_for_node_and_aliases): Likewise.
30502         (verify_cgraph_node): Likewise.
30503         * cgraph.h: Batch of IPA REF functions become member functions of
30504         symtab_node: add_reference, maybe_add_reference, clone_references,
30505         clone_referring, clone_reference, find_reference,
30506         remove_stmt_references, remove_all_references,
30507         remove_all_referring, dump_references, dump_referring,
30508         has_alias_p, iterate_reference, iterate_referring.
30509         * cgraphbuild.c (record_reference): New IPA REF function used.
30510         (record_type_list): Likewise.
30511         (record_eh_tables): Likewise.
30512         (mark_address): Likewise.
30513         (mark_load): Likewise.
30514         (mark_store): Likewise.
30515         (pass_build_cgraph_edges): Likewise.
30516         (rebuild_cgraph_edge): Likewise.
30517         (cgraph_rebuild_references): Likewise.
30518         (pass_remove_cgraph_callee_edges): Likewise.
30519         * cgraphclones.c (cgraph_clone_node): Likewise.
30520         (cgraph_create_virtual_clone): Likewise.
30521         (cgraph_materialize_clone): Likewise.
30522         (cgraph_materialize_all_clones): Likewise.
30523         * cgraphunit.c (cgraph_reset_node): Likewise.
30524         (cgraph_reset_node): Likewise.
30525         (analyze_function): Likewise.
30526         (assemble_thunks_and_aliases): Likewise.
30527         (expand_function): Likewise.
30528         * ipa-comdats.c (propagate_comdat_group): Likewise.
30529         (enqueue_references): Likewise.
30530         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
30531         (create_specialized_node): Likewise.
30532         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
30533         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
30534         * ipa-inline.c (reset_edge_caches): Likewise.
30535         (update_caller_keys): Likewise.
30536         (execute): Likewise.
30537         * ipa-prop.c (remove_described_reference): Likewise.
30538         (propagate_controlled_uses): Likewise.
30539         (ipa_edge_duplication_hook): Likewise.
30540         (ipa_modify_call_arguments): Likewise.
30541         * ipa-pure-const.c (propagate_pure_const): Likewise.
30542         * ipa-ref-inline.h: Header file removed, functions moved
30543         to symtab_node class.
30544         * ipa-ref.c (remove_reference): New class member function.
30545         (cannot_lead_to_return): New class member function.
30546         (referring_ref_list): Likewise.
30547         (referred_ref_list): Likewise.
30548         Rest of functions moved to symtab_node class.
30549         * ipa-ref.h: New member functions remove_reference,
30550         cannot_lead_to_return, referring_ref_list, referred_ref_list added
30551         to ipa_ref class.
30552         ipa_ref_list class has new member functions: first_reference,
30553         first_referring, clear, nreferences.
30554         * ipa-reference.c (analyze_function): New IPA REF function used.
30555         (write_node_summary_p): Likewise.
30556         (ipa_reference_write_optimization_summary): Likewise.
30557         * ipa-split.c (split_function): Likewise.
30558         * ipa-utils.c (ipa_reverse_postorder): Likewise.
30559         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
30560         (function_and_variable_visibility): Likewise.
30561         * ipa.c (has_addr_references_p): Likewise.
30562         (process_references): Argument type changed.
30563         (symtab_remove_unreachable_nodes): New IPA REF function used.
30564         (process_references): Likewise.
30565         (set_writeonly_bit): Likewise.
30566         * lto-cgraph.c: Implementation of new symtab_node member functions
30567         that uses new IPA REF functions.
30568         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
30569         function used.
30570         * lto-streamer-out.c (output_symbol_p): Likewise.
30571         * lto-streamer.h (referenced_from_this_partition_p): Argument type
30572         changed.
30573         * symtab.c: Implementation of new IPA REF API.
30574         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
30575         (ipa_tm_create_version): Likewise.
30576         (ipa_tm_execute): Likewise.
30577         * tree-emutls.c (gen_emutls_addr): Likewise.
30578         * tree-inline.c (copy_bb): Likewise.
30579         (delete_unreachable_blocks_update_callgraph): Likewise.
30580         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
30581         (varpool_for_node_and_aliases): Likewise.
30583 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
30585         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
30587 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
30589         PR bootstrap/61598
30590         * fold-const.c (fold_checksum_tree): Use a hash_table of const
30591         tree_node * instead of tree_node *.
30592         (fold): Adjust.
30593         (print_fold_checksum): Likewise.
30594         (fold_check_failed): Likewise.
30595         (debug_fold_checksum): Likewise.
30596         (fold_build1_stat_loc): Likewise.
30597         (fold_build2_stat_loc): Likewise.
30598         (fold_build3_stat_loc): Likewise.
30599         (fold_build_call_array_loc): Likewise.
30601 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
30603         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
30604         implementation with call to...
30605         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
30606         function.
30607         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
30608         Declare.
30610 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
30612         PR tree-optimization/57742
30613         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
30614         after replacing the statement.
30616 2014-06-25  Nick Clifton  <nickc@redhat.com>
30618         * config/v850/v850.c (GHS_default_section_names): Change to const
30619         char * type.
30620         (GHS_current_section_names): Likewise.
30621         (v850_insert_attributes): Do not build strings, just assign the
30622         names directly.  Change the type of 'chosen_section' to const
30623         char*.
30624         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
30625         directly to the array entry.
30626         * config/v850/v850.h (GHS_default_section_names): Change to const
30627         char * type.
30628         (GHS_current_section_names): Likewise.
30630 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
30632         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
30633         (LANG_HOOKS_DECLS): Add it.
30634         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
30635         has correct type.
30636         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
30637         * langhooks.h (struct lang_hooks_for_decls): Add
30638         omp_clause_linear_ctor hook.
30639         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
30640         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
30641         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
30642         combined simd loop use omp_clause_linear_ctor hook.
30644 2014-06-24  Cong Hou  <congh@google.com>
30646         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
30647         pattern recognition.
30648         (type_conversion_p): PROMOTION is true if it's a type promotion
30649         conversion, and false otherwise.  Return true if the given expression
30650         is a type conversion one.
30651         * tree-vectorizer.h: Adjust the number of patterns.
30652         * tree.def: Add SAD_EXPR.
30653         * optabs.def: Add sad_optab.
30654         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
30655         * expr.c (expand_expr_real_2): Likewise.
30656         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
30657         * gimple.c (get_gimple_rhs_num_ops): Likewise.
30658         * optabs.c (optab_for_tree_code): Likewise.
30659         * tree-cfg.c (estimate_operator_cost): Likewise.
30660         * tree-ssa-operands.c (get_expr_operands): Likewise.
30661         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
30662         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
30663         * doc/generic.texi: Add document for SAD_EXPR.
30664         * doc/md.texi: Add document for ssad and usad.
30666 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
30668         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
30669         qualification in cast.
30671 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
30673         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
30674         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
30675         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
30676         (tree_function_decl): ... here.
30677         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
30678         streaming of vindex to ...
30679         (write_ts_function_decl_tree_pointers): ... here.
30680         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
30681         Do not stream DECL_VINDEX.
30682         (lto_input_ts_function_decl_tree_pointers): Stream it here.
30684 2014-06-24  Catherine Moore  <clm@codesourcery.com>
30685             Sandra Loosemore  <sandra@codesourcery.com>
30687         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
30688         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
30689         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
30691 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
30693         * doc/invoke.texi (Warning Options): Remove duplicated
30694         -Wmaybe-uninitialized.
30696 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
30698         PR tree-optimization/57742
30699         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
30700         (handle_builtin_malloc, handle_builtin_memset): New functions.
30701         (strlen_optimize_stmt): Call them.
30702         * passes.def: Move strlen after loop+dom but before vrp.
30704 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
30706         PR target/61570
30707         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
30708         model family 6 CPU with has_longmode never use a CPU without
30709         64-bit support.
30711 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
30713         PR target/61570
30714         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
30715         the last change.
30717 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
30719         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
30720         * dominance.c (iterate_fix_dominators): Use hash_map instead of
30721         pointer_map.
30722         * hash-map.h: New file.
30723         * ipa-comdats.c: Use hash_map instead of pointer_map.
30724         * ipa.c: Likewise.
30725         * lto-section-out.c: Adjust.
30726         * lto-streamer.h: Replace pointer_map with hash_map.
30727         * symtab.c (verify_symtab): Likewise.
30728         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
30729         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
30730         * tree-streamer.h: Likewise.
30731         * tree-streamer.c: Adjust.
30732         * pointer-set.h: Remove pointer_map.
30734 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
30736         * hash-table.h: Add a template arg to choose between storing values
30737         and storing pointers to values, and then provide partial
30738         specializations for both.
30739         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
30740         should store, not the type values should point to.
30741         * tree-into-ssa.c (var_info_hasher): Likewise.
30742         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
30743         * tree-complex.c: Adjust.
30744         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
30745         table instead of int_tree_map *.
30746         * tree-parloops.c: Adjust.
30747         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
30748         type is being stored.
30749         * tree-vectorizer.c: Adjust.
30751 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
30753         * hash-table.h: Remove a layer of indirection from hash_table so that
30754         it contains the hash table's data instead of a pointer to the data.
30755         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
30756         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
30757         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
30758         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
30759         fold-const.c, gcse.c, ggc-common.c,
30760         gimple-ssa-strength-reduction.c, gimplify.c,
30761         graphite-clast-to-gimple.c, graphite-dependences.c,
30762         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
30763         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
30764         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
30765         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
30766         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
30767         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
30768         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
30769         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
30770         tree-ssa-live.c, tree-ssa-loop-im.c,
30771         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
30772         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
30773         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
30774         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
30775         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
30776         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
30777         vtable-verify.c, vtable-verify.h: Adjust.
30779 2014-06-24  Richard Biener  <rguenther@suse.de>
30781         PR tree-optimization/61572
30782         * tree-ssa-sink.c (statement_sink_location): Do not sink
30783         loads from hard registers.
30785 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
30787         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
30788         not mentioned in clauses use private clause if the iterator is
30789         declared in #pragma omp for simd, and when adding lastprivate
30790         instead, add it to the outer #pragma omp for too.  Diagnose
30791         if the variable is private in outer context.  For simd collapse > 1
30792         loops, replace all iterators with temporaries.
30793         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
30794         same even in collapse > 1 loops.
30796         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
30797         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
30798         non-NULL.
30799         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
30800         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
30801         non-NULL.
30802         (gimplify_adjust_omp_clauses): Likewise.
30803         * omp-low.c (lower_rec_simd_input_clauses,
30804         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
30805         safelen the same as safelen(1).
30806         * tree-nested.c (convert_nonlocal_omp_clauses,
30807         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
30808         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
30809         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
30810         Fixup handling of GIMPLE_OMP_TARGET.
30811         (convert_tramp_reference_stmt, convert_gimple_call): Handle
30812         GIMPLE_OMP_TARGET.
30814 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
30816         PR tree-optimization/61554
30817         * tree-ssa-propagate.c: Include "bitmap.h".
30818         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
30819         properly update constructor/destructor.
30820         (substitute_and_fold_dom_walker::before_dom_children):
30821         Remove call to gimple_purge_dead_eh_edges, add bb->index to
30822         need_eh_cleaup instead.
30823         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
30824         need_eh_cleanup.
30826 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
30828         * varpool.c (dump_varpool_node): Dump used_by_single_function.
30829         * tree-pass.h (make_pass_ipa_single_use): New pass.
30830         * cgraph.h (used_by_single_function): New flag.
30831         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
30832         Stream it.
30833         * passes.def (pass_ipa_single_use): Scedule.
30834         * ipa.c (BOTTOM): New macro.
30835         (meet): New function
30836         (propagate_single_user): New function.
30837         (ipa_single_use): New function.
30838         (pass_data_ipa_single_use): New pass.
30839         (pass_ipa_single_use): New pass.
30840         (pass_ipa_single_use::gate): New gate.
30841         (make_pass_ipa_single_use): New function.
30843 2014-06-23  Kai Tietz  <ktietz@redhat.com>
30845         PR target/39284
30846         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
30847         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
30849 2014-06-23  Richard Biener  <rguenther@suse.de>
30851         * tree-ssa-loop.c (gate_loop): New function.
30852         (pass_tree_loop::gate): Call it.
30853         (pass_data_tree_no_loop, pass_tree_no_loop,
30854         make_pass_tree_no_loop): New.
30855         * tree-vectorizer.c: Include tree-scalar-evolution.c
30856         (pass_slp_vectorize::execute): Initialize loops and SCEV if
30857         required.
30858         (pass_slp_vectorize::clone): New method.
30859         * timevar.def (TV_TREE_NOLOOP): New.
30860         * tree-pass.h (make_pass_tree_no_loop): Declare.
30861         * passes.def (pass_tree_no_loop): New pass group with
30862         SLP vectorizer.
30864 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
30866         PR target/61570
30867         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
30868         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
30870 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
30872         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
30873         "yes" where needed.
30875 2014-06-23  Alan Modra  <amodra@gmail.com>
30877         PR bootstrap/61583
30878         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
30879         to zero on debug statements.
30881 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
30883         PR target/60825
30884         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
30885         Ignore third operand if present by marking qualifier_internal.
30887         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
30889         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
30890         vector extension.
30891         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
30892         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
30893         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
30894         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
30895         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
30896         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
30897         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
30898         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
30899         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
30900         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
30901         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
30902         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
30903         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
30904         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
30905         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
30906         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
30907         logic in GCC vector extensions
30909         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
30910         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
30911         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
30912         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
30913         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
30914         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
30915         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
30916         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
30917         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
30918         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
30920         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
30922         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
30923         extensions.
30925         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
30926         (vget_low_s64): Use __GET_LOW macro.
30927         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
30928         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
30929         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
30930         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
30931         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
30933         (vcombine_s64): Use GCC vector extensions; remove cast.
30934         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
30935         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
30936         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
30937         Fix type signature; remove cast.
30939 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
30941         PR target/60825
30942         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
30943         V1DFmode.
30944         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
30945         add V1DFmode
30946         (BUILTIN_VD1): New.
30947         (BUILTIN_VD_RE): Remove.
30948         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
30949         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
30950         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
30951         variant but not df.
30952         (vreinterpretv1df*, vreinterpret*v1df): New.
30953         (vreinterpretdf*, vreinterpret*df): Remove.
30954         * config/aarch64/aarch64-simd.md (aarch64_create,
30955         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
30956         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
30957         (VD1): New.
30958         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
30959         (vcreate_f64): Remove cast, use v1df builtin.
30960         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
30961         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
30962         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
30963         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
30964         vmov_n_f64, vst1_f64): Use gcc vector extensions.
30965         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
30966         add range check using __builtin_aarch64_im_lane_boundsi.
30967         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
30968         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
30969         type signature, use gcc vector extensions.
30970         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
30971         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
30972         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
30973         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
30974         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
30975         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
30976         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
30977         vreinterpret_u64_f64): Use v1df builtin not df.
30979 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
30981         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
30982         vector registers.
30984 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
30986         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
30987         priority directly.
30989 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30991         * loop-invariant.c (pre_check_invariant_p): New function.
30992         (find_invariant_insn): Call pre_check_invariant_p.
30994 2014-06-22  Richard Henderson  <rth@redhat.com>
30996         PR target/61565
30997         * compare-elim.c (struct comparison): Add eh_note.
30998         (find_comparison_dom_walker::before_dom_children): Don't eliminate
30999         a redundant comparison in a different EH region.  Purge EH edges if
31000         necessary.
31002 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31004         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
31005         (var_shift): Use it.
31006         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
31007         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
31008         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
31009         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
31010         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
31011         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
31012         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
31013         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
31014         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
31015         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
31016         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
31017         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
31018         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
31019         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
31020         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
31021         *rotldi3_internal15be): Use the new attribute.  Merge register and
31022         integer alternatives.
31024 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31026         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
31027         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
31028         split, *ashrdi3_internal3 and split): Delete, merge into...
31029         (ashr<mode>3): New expander.
31030         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
31031         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
31033 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31035         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
31036         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
31037         *rotldi3_internal3 and split): Delete, merge into...
31038         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
31039         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
31040         Use "rotlw" extended mnemonic.
31042 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31044         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
31045         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
31046         and split, *ashldi3_internal3 and split): Delete, merge into...
31047         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
31048         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
31050 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31052         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
31053         (lshrsi3, two anonymous define_insns and define_splits,
31054         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
31055         *lshrdi3_internal3 and split): Delete, merge into...
31056         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
31057         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
31059 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31061         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
31062         Remove "O" alternative.
31064 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
31066         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
31067         (mips_move_from_gpr_cost): Likewise.
31068         (mips_register_move_cost): Update accordingly.
31069         (mips_secondary_reload_class): Remove name of in_p.
31071 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
31073         PR target/61503
31074         * config/i386/i386.md (x86_64_shrd, x86_shrd,
31075         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
31077 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31079         * config/nios2/nios2.c: Include "builtins.h".
31081 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
31083         * cgraph.h (tls_model_names): New variable.
31084         * print-tree.c (print_node): Simplify.
31085         * varpool.c (tls_model_names): New variable.
31086         (dump_varpool_node): Output tls model.
31088 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
31090         * ipa-visibility.c (function_and_variable_visibility): Disable
31091         temporarily local aliases for some targets.
31093 2014-06-20  Marek Polacek  <polacek@redhat.com>
31095         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
31096         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
31097         into SANITIZE_UNDEFINED.
31098         * doc/invoke.texi: Describe -fsanitize=bounds.
31099         * gimplify.c (gimplify_call_expr): Add gimplification of internal
31100         functions created in the FEs.
31101         * internal-fn.c: Move "internal-fn.h" after "tree.h".
31102         (expand_UBSAN_BOUNDS): New function.
31103         * internal-fn.def (UBSAN_BOUNDS): New internal function.
31104         * internal-fn.h: Don't define internal functions here.
31105         * opts.c (common_handle_option): Add -fsanitize=bounds.
31106         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
31107         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
31108         * tree-core.h: Define internal functions here.
31109         (struct tree_base): Add ifn field.
31110         * tree-pretty-print.c: Include "internal-fn.h".
31111         (dump_generic_node): Handle functions without CALL_EXPR_FN.
31112         * tree.c (get_callee_fndecl): Likewise.
31113         (build_call_expr_internal_loc): New function.
31114         * tree.def (CALL_EXPR): Update description.
31115         * tree.h (CALL_EXPR_IFN): Define.
31116         (build_call_expr_internal_loc): Declare.
31117         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
31118         types.
31119         (ubsan_type_descriptor): Change bool parameter to enum
31120         ubsan_print_style.  Adjust the code.  Add handling of
31121         UBSAN_PRINT_ARRAY.
31122         (ubsan_expand_bounds_ifn): New function.
31123         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
31124         (ubsan_build_overflow_builtin): Likewise.
31125         (instrument_bool_enum_load): Likewise.
31126         (ubsan_instrument_float_cast): Likewise.
31127         * ubsan.h (enum ubsan_print_style): New enum.
31128         (ubsan_expand_bounds_ifn): Declare.
31129         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
31131 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
31133         * config/rs6000/rs6000.md: Append `DONE' to preparation
31134         statements of `bswap' pattern splitters.
31136 2014-06-20  Tom de Vries  <tom@codesourcery.com>
31138         * target.def (call_fusage_contains_non_callee_clobbers): Update
31139         definition.
31140         * doc/tm.texi: Regenerate.
31142 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
31143             Max Ostapenko  <m.ostapenko@partner.samsung.com>
31145         PR sanitizer/61547
31146         * asan.c (instrument_strlen_call): Fixed instrumentation of
31147         trailing byte.
31149 2014-06-20  Martin Jambor  <mjambor@suse.cz>
31151         PR ipa/61540
31152         * ipa-prop.c (impossible_devirt_target): New function.
31153         (try_make_edge_direct_virtual_call): Use it, also instead of
31154         asserting.
31156 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
31157             Max Ostapenko  <m.ostapenko@partner.samsung.com>
31159         PR sanitizer/61530
31160         * asan.c (build_check_stmt): Add condition.
31162 2014-06-20  Martin Jambor  <mjambor@suse.cz>
31164         PR ipa/61211
31165         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
31166         expanded clones.
31168 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31170         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
31171         Update comments.
31172         (VCONQ): Make comment more helpful.
31173         (VCON): Delete.
31174         * config/aarch64/aarch64-simd.md
31175         (aarch64_sqdmulh_lane<mode>):
31176         Use VCOND for operands 2.  Update lane checking and flipping logic.
31177         (aarch64_sqrdmulh_lane<mode>): Likewise.
31178         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
31179         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
31180         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
31181         attribute of operand 3 to VCOND.
31182         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
31183         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31184         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
31185         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
31186         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31187         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
31188         define_insn.
31189         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
31190         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
31191         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
31192         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
31193         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
31194         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
31195         operand to VCOND.  Update lane flipping and bounds checking logic.
31196         (aarch64_sqdmlal2_lane<mode>): Likewise.
31197         (aarch64_sqdmlsl_lane<mode>): Likewise.
31198         (aarch64_sqdmull_lane<mode>): Likewise.
31199         (aarch64_sqdmull2_lane<mode>): Likewise.
31200         (aarch64_sqdmlal_laneq<mode>):
31201         Replace VCON usage with VCONQ.
31202         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
31203         (aarch64_sqdmlal2_laneq<mode>): Emit
31204         aarch64_sqdmlal2_laneq<mode>_internal insn.
31205         Replace VCON with VCONQ.
31206         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
31207         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
31208         (aarch64_sqdmull_laneq<mode>): Emit
31209         aarch64_sqdmull_laneq<mode>_internal insn.
31210         Replace VCON with VCONQ.
31211         (aarch64_sqdmull2_laneq<mode>): Emit
31212         aarch64_sqdmull2_laneq<mode>_internal insn.
31213         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
31214         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
31215         of 3rd argument to int16x4_t.
31216         (vqdmlalh_lane_s16): Likewise.
31217         (vqdmlslh_lane_s16): Likewise.
31218         (vqdmull_high_lane_s16): Likewise.
31219         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
31220         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
31221         (vqdmlsl_lane_s16): Likewise.
31222         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
31223         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
31224         (vqdmlals_lane_s32): Likewise.
31225         (vqdmlsls_lane_s32): Likewise.
31226         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
31227         (vqdmulls_lane_s32): Likewise.
31228         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
31229         (vqdmlsl_lane_s32): Likewise.
31230         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
31231         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
31232         (vqrdmulhh_lane_s16): Likewise.
31233         (vqdmlsl_high_lane_s16): Likewise.
31234         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
31235         (vqdmlsl_high_lane_s32): Likewise.
31236         (vqrdmulhs_lane_s32): Likewise.
31238 2014-06-20  Tom de Vries  <tom@codesourcery.com>
31240         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
31241         get_call_reg_set_usage.
31243 2014-06-20  Tom de Vries  <tom@codesourcery.com>
31245         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
31246         it contains all call_used_regs.
31248 2014-06-20  Tom de Vries  <tom@codesourcery.com>
31250         * final.c (collect_fn_hard_reg_usage): Add and use variable
31251         function_used_regs.
31253 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
31255         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
31256         (set_init_priority, get_init_priority, set_fini_priority,
31257         get_fini_priority): New methods.
31258         * tree.c (init_priority_for_decl): Remove.
31259         (init_ttree): Do not initialize init priority.
31260         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
31261         (decl_priority_info): Remove.
31262         (decl_init_priority_insert): Rewrite.
31263         (decl_fini_priority_insert): Rewrite.
31264         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
31265         tree_priority_map_marked_p): Remove.
31266         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
31267         * lto-streamer-out.c (hash_tree): Do not hash priorities.
31268         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
31269         not output priorities.
31270         (pack_ts_function_decl_value_fields): Likewise.
31271         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
31272         not input priorities.
31273         (unpack_ts_function_decl_value_fields): Likewise.
31274         * symtab.c (symbol_priority_map): Declare.
31275         (init_priority_hash): Declare.
31276         (symtab_unregister_node): Unregister from priority hash, too.
31277         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
31278         New methods.
31279         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
31280         (symbol_priority_info): New function.
31281         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
31282         New methods.
31283         * tree-core.h (tree_priority_map): Remove.
31285 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
31287         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
31288         0xff to uint64_t before shifting it up.
31290 2014-06-20  Julian Brown  <julian@codesourcery.com>
31291             Chung-Lin Tang  <cltang@codesourcery.com>
31293         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
31294         TARGET_THUMB1_ONLY. Add comments.
31296 2014-06-19  Tom de Vries  <tom@codesourcery.com>
31298         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
31299         return type to void.
31300         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
31302 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31304         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
31305         as "move", from depends_on.
31307 2014-06-19  Terry Guo  <terry.guo@arm.com>
31309         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
31310         stage.
31312 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
31314         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
31315         Remove cr5.
31316         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
31318 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
31320         PR target/61550
31321         * config/sh/sh.c (prepare_move_operands): Don't process TLS
31322         addresses here if reload in progress or completed.
31324 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
31326         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
31327         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
31328         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
31329         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
31330         (mips_register_priority): New function that implements the target
31331         hook TARGET_REGISTER_PRIORITY.
31332         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
31333         (mips_lra_p): Likewise for TARGET_LRA_P.
31334         (TARGET_REGISTER_PRIORITY): Define macro.
31335         (TARGET_SPILL_CLASS): Likewise.
31336         (TARGET_LRA_P): Likewise.
31337         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
31338         classes.
31339         (REG_CLASS_NAMES): Likewise.
31340         (REG_CLASS_CONTENTS): Likewise.
31341         (BASE_REG_CLASS): Use M16_SP_REGS.
31342         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
31343         New set attribute to enable alternatives depending on the register
31344         allocator used.
31345         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
31346         (*lea64): Disable pattern for MIPS16.
31347         * config/mips/mips.opt (mlra): New option.
31349 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
31351         * lra-constraints.c (base_to_reg): New function.
31352         (process_address): Use new function.
31354 2014-06-18  Tom de Vries  <tom@codesourcery.com>
31356         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
31357         * config/aarch64/aarch64.c
31358         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
31359         (aarch64_emit_call_insn): New function.
31360         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
31361         of emit_call_insn.
31362         * config/aarch64/aarch64.md (define_expand "call_internal")
31363         (define_expand "call_value_internal", define_expand "sibcall_internal")
31364         (define_expand "sibcall_value_internal"): New.
31365         (define_expand "call", define_expand "call_value")
31366         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
31367         expand variant and aarch64_emit_call_insn.
31369 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
31370             Tom de Vries  <tom@codesourcery.com>
31372         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
31373         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
31374         Redefine to true.
31375         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
31376         clobbers to CALL_INSN_FUNCTION_USAGE.
31377         (define_expand "sibcall_internal")
31378         (define_expand "sibcall_value_internal"): New.
31379         (define_expand "call", define_expand "call_value"): Add argument to
31380         arm_emit_call_insn.
31381         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
31382         (define_expand "sibcall_value"): Use sibcall_value_internal and
31383         arm_emit_call_insn.
31385 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
31387         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
31389 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
31391         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
31392         __udivmoddi4.
31394 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
31396         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
31397         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
31398         annotations. Fix DWARF information.
31400 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
31402         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
31403         __udivmoddi4, and fixups for negative operands.
31405 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
31407         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
31409 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
31411         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
31412         to __udivmoddi4.
31414 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
31416         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
31417         manipulation.
31419 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
31421         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
31422         describing register usage on function entry and exit.
31424 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
31426         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
31427         (__aeabi_ldivmod): Fix whitespace.
31429 2014-06-18  Andreas Schwab  <schwab@suse.de>
31431         * doc/md.texi (Standard Names): Use @itemx for grouped items.
31432         Remove blank line after @item.
31434 2014-06-18  Richard Henderson  <rth@redhat.com>
31436         PR target/61545
31437         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
31439 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
31441         * config/arm/arm.c (neon_vector_mem_operand): Allow register
31442         POST_MODIFY for neon loads and stores.
31443         (arm_print_operand): Output post-index register for neon loads and
31444         stores.
31446 2014-06-18  Richard Biener  <rguenther@suse.de>
31448         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
31450 2014-06-18  Richard Biener  <rguenther@suse.de>
31452         * tree-pass.h (make_pass_dce_loop): Remove.
31453         * passes.def: Replace pass_dce_loop with pass_dce.
31454         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
31455         changed free niter estimates and reset the scev cache.
31456         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
31457         make_pass_dce_loop): Remove.
31458         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
31459         (fini_copy_prop): Return whether something changed.  Always
31460         let substitute_and_fold perform DCE and free niter estimates
31461         and reset the scev cache if so.
31462         (execute_copy_prop): If sth changed schedule cleanup-cfg.
31463         (pass_data_copy_prop): Do not unconditionally schedule
31464         cleanup-cfg or update-ssa.
31466 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
31468         PR tree-optimization/61518
31469         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
31470         reduction var is used in reduction stmt or phi-function only.
31472 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31474         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
31476 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31478         PR tree-optimization/61517
31479         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
31480         whose rhs's first tree is the source expression instead of the
31481         expression itself.
31482         (find_bswap_or_nop): Likewise.
31483         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
31484         gimple stmt whose rhs's first tree is the source. In the memory source
31485         case, move the stmt to be replaced close to one of the original load to
31486         avoid the problem of a store between the load and the stmt's original
31487         location.
31488         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
31489         signature.
31491 2014-06-18  Andreas Schwab  <schwab@suse.de>
31493         PR rtl-optimization/54555
31494         * postreload.c (move2add_use_add2_insn): Substitute
31495         STRICT_LOW_PART only if it is cheaper.
31497 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
31499         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
31500         Do not use unspec as call operand.  Use memory_operand instead of
31501         memory_nox32_operand and add "m" operand constraint.  Disable
31502         pattern for TARGET_X32.
31503         (*sibcall_pop_memory): Ditto.
31504         (*sibcall_value_memory): Ditto.
31505         (*sibcall_value_pop_memory): Ditto.
31506         (sibcall peepholes): Merge SImode and DImode patterns using
31507         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
31508         Disable pattern for TARGET_X32.  Check if eliminated register is
31509         really dead after call insn.  Generate call RTX without unspec operand.
31510         (sibcall_value peepholes): Ditto.
31511         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
31512         instead of memory_nox32_operand.  Check if eliminated register is
31513         really dead after call insn. Generate call RTX without unspec operand.
31514         (sibcall_value_pop peepholes): Ditto.
31515         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
31517 2014-06-18  Terry Guo  <terry.guo@arm.com>
31519         PR target/61544
31520         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
31521         reach the head.
31523 2014-06-18  Olivier Hainque  <hainque@adacore.com>
31525         * tree-core.h (tree_block): Add an "end_locus" field, allowing
31526         memorization of the end of block source location.
31527         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
31528         * gimplify.c (gimplify_bind_expr): Propagate the block start and
31529         end source location info we have on the block entry/exit code we
31530         generate.
31532 2014-06-18  Richard Biener  <rguenther@suse.de>
31534         * common.opt (fssa-phiopt): New option.
31535         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
31536         but not with -Og.
31537         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
31538         * doc/invoke.texi (-fssa-phiopt): Document.
31540 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31542         * genattrtab.c (n_bypassed): New variable.
31543         (process_bypasses): Initialise n_bypassed.
31544         Count number of bypassed reservations.
31545         (make_automaton_attrs): Allocate space for bypassed reservations
31546         rather than number of bypasses.
31548 2014-06-18  Richard Biener  <rguenther@suse.de>
31550         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
31551         we propagated anything.
31552         (substitute_and_fold_dom_walker::before_dom_children): Something
31553         changed if we propagated into PHI arguments.
31554         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
31555         we removed a stmt.
31557 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
31559         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
31560         vector case.
31561         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
31562         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
31563         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
31564         Introduces alternative way of loads group permutaions.
31565         (vect_transform_grouped_load): Try alternative way of permutations.
31567 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
31569         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
31570         changed in ORT_TARGET region, don't jump to do_outer.
31571         (struct gimplify_adjust_omp_clauses_data): New type.
31572         (gimplify_adjust_omp_clauses_1): Adjust for data being
31573         a struct gimplify_adjust_omp_clauses_data pointer instead
31574         of tree *.  Pass pre_p as a new argument to
31575         lang_hooks.decls.omp_finish_clause hook.
31576         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
31577         splay_tree_foreach to pass both list_p and pre_p.
31578         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
31579         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
31580         gimplify_adjust_omp_clauses callers.
31581         * langhooks.c (lhd_omp_finish_clause): New function.
31582         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
31583         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
31584         * langhooks.h (struct lang_hooks_for_decls): Add a new
31585         gimple_seq * argument to omp_finish_clause hook.
31586         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
31587         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
31588         (scan_omp_parallel, lower_omp_for): When adding
31589         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
31590         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
31591         * tree-nested.c (convert_nonlocal_omp_clauses,
31592         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
31593         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
31595 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
31597         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
31598         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
31600 2014-06-17  Xinliang David Li  <davidxl@google.com>
31602         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
31603         * passes.c (pass_init_dump_file): Do not set initialize
31604         flag to false unconditionally.
31606 2014-06-17  Richard Biener  <rguenther@suse.de>
31608         * genopinit.c (main): Use vec<>::qsort method.
31609         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
31610         Likewise.
31611         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
31613 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
31615         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
31616         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
31617         (mips_move_to_gpr_cost): Remove ST_REGS case.
31618         (mips_move_from_gpr_cost): Likewise.
31619         (mips_register_move_cost): Likewise.
31620         (mips_secondary_reload_class): Likewise.
31622 2014-06-17  Richard Biener  <rguenther@suse.de>
31624         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
31625         (pass_all_optimizations): Move 3rd copy-prop pass from after
31626         fre to before ifcombine/phiopt.
31628 2014-06-17  Richard Biener  <rguenther@suse.de>
31630         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
31631         and allow all blocks to be forwarders.
31633 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
31635         PR target/61483
31636         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
31637         variable 'size'; calculate 'size' right in the front; use
31638         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
31639         pcum->aapcs_stack_words.
31641 2014-06-17  Nick Clifton  <nickc@redhat.com>
31643         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
31644         (umulhi3, mulsidi3, umulsidi3): Likewise.
31646 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
31648         PR middle-end/61508
31649         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
31650         check for section name.
31652 2014-06-17  Richard Biener  <rguenther@suse.de>
31654         * tree-ssa-propagate.c: Include domwalk.h.
31655         (substitute_and_fold): Outline main worker into a domwalker ...
31656         (substitute_and_fold_dom_walker::before_dom_children): ... here.
31657         Schedule stmts we can fully propagate for removal.  Remove
31658         poor-mans DCE.
31659         (substitute_and_fold): Apply a dominator walk to perform
31660         substitution.  Process stmts scheduled for removal here.
31662 2014-06-17  Richard Biener  <rguenther@suse.de>
31664         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
31665         of PHI node moving.
31667 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
31669         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
31670         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
31671         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
31672         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
31673         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
31674         TARGET_HARD_FLOAT.
31675         (get_fpscr) : Likewise.
31677 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
31679         PR rtl-optimization/61325
31680         * lra-constraints.c (valid_address_p): Add forward declaration.
31681         (simplify_operand_subreg): Check address validity before and after
31682         alter_reg of memory subreg.
31684 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
31686         * config/i386/i386.c (decide_alg): Correctly handle
31687         maximum size of stringop algorithm.
31689 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
31691         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
31693 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
31695         PR rtl-optimization/61522
31696         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
31698 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
31700         Revert:
31701         * symtab.c (symtab_node::reset_section): New method.
31702         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
31703         for localization.
31704         * cgraph.h (reset_section): Declare.
31705         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
31706         do not consider comdat locals.
31707         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
31708         for new symbol.
31709         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
31710         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
31711         reset sections of symbols dragged out of the comdats.
31712         (function_and_variable_visibility): Reset sections of
31713         localized symbols.
31715 2014-06-16  Richard Biener  <rguenther@suse.de>
31717         PR tree-optimization/61482
31718         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
31719         [-INF(OVF), +INF(OVF)] range.
31721 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
31723         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
31724         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
31725         handling 32-bit multiplication.
31727 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
31729         PR middle-end/61430
31730         * lra-lives.c (process_bb_lives): Skip creating copy during
31731         insn scan when src/dest has constrained to same regno.
31733 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
31735         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
31736         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
31738 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
31740         * asan.c (check_func): New function.
31741         (maybe_create_ssa_name): Likewise.
31742         (build_check_stmt_with_calls): Likewise.
31743         (use_calls_p): Likewise.
31744         (report_error_func): Change interface.
31745         (build_check_stmt): Allow non-integer lengths; add support
31746         for new parameter.
31747         (asan_instrument): Likewise.
31748         (instrument_mem_region_access): Moved code to build_check_stmt.
31749         (instrument_derefs): Likewise.
31750         (instrument_strlen_call): Likewise.
31751         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
31752         * doc/invoke.texi: Describe new parameter.
31753         * params.def: Define new parameter.
31754         * params.h: Likewise.
31755         * sanitizer.def: Describe new builtins.
31757 2014-06-16  Richard Biener  <rguenther@suse.de>
31759         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
31760         Make all defs available at the end.
31761         (eliminate): If we remove a PHI node schedule cfg-cleanup.
31763 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
31765         PR plugins/45078
31766         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
31768 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
31770         PR bootstrap/61516
31771         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
31772         initialization.  Replace remaining use of uid.
31774 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
31776         * c-family/c-common.c (handle_tls_model_attribute): Use
31777         set_decl_tls_model.
31778         * c-family/c-common.c (handle_tls_model_attribute): Use
31779         set_decl_tls_model.
31780         * cgraph.h (struct varpool_node): Add tls_model.
31781         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
31782         * tree.h (DECL_TLS_MODEL): Update.
31783         (DECL_THREAD_LOCAL_P): Check that variable is static.
31784         (decl_tls_model): Declare.
31785         (set_decl_tls_model): Declare.
31786         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
31787         set symbol prorperties.
31788         (get_emutls_init_templ_addr): Cleanup.
31789         (new_emutls_decl): Update.
31790         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
31791         (lto_input_varpool_node): Likewise.
31792         * lto-streamer-out.c (hash_tree): Likewise.
31793         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
31794         not stream DECL_TLS_MODEL.
31795         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
31796         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
31798 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
31800         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
31802 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
31804         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
31805         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
31806         lists.
31807         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
31808         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
31809         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
31810         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
31811         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
31812         (df_get_artificial_defs, df_get_artificial_uses)
31813         (df_single_def, df_single_use): Update accordingly.
31814         (df_refs_chain_dump): Take the first element in a linked list as
31815         parameter, rather than a pointer to an array of pointers.
31816         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
31817         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
31818         (df_chain_create_bb_process_use): Likewise.
31819         (df_md_bb_local_compute_process_def): Likewise.
31820         * fwprop.c (process_defs, process_uses): Likewise.
31821         (register_active_defs, update_uses): Likewise.
31822         (forward_propagate_asm): Update for new df_ref linking.
31823         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
31824         (df_null_ref_rec, df_null_mw_rec): Likewise.
31825         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
31826         explicitly.
31827         (df_scan_free_bb_info): Remove check for null artificial_defs.
31828         (df_install_ref_incremental): Adjust for new df_ref linking.
31829         Use a single-element insertion rather than a full sort.
31830         (df_ref_chain_delete_du_chain): Take the first element
31831         in a linked list as parameter, rather than a pointer to an array of
31832         pointers.
31833         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
31834         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
31835         (df_insn_info_delete): Remove check for null defs and call to
31836         df_scan_free_mws_vec.
31837         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
31838         null rather than df_null_*_rec.
31839         (df_insn_rescan_debug_internal): Likewise, and update null
31840         checks in the same way.  Remove check for null defs.
31841         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
31842         Move a single element rather doing a full sort.
31843         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
31844         linking.
31845         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
31846         Initialize df_ref and df_mw_hardreg lists to null rather than
31847         df_null_*_rec.
31848         (df_ref_compare): Take df_refs as parameter, transferring the
31849         old interface to...
31850         (df_ref_ptr_compare): ...this new function.
31851         (df_sort_and_compress_refs): Update accordingly.
31852         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
31853         old interface to...
31854         (df_mw_ptr_compare): ...this new function.
31855         (df_sort_and_compress_mws): Update accordingly.
31856         (df_install_refs, df_install_mws): Return a linked list rather than
31857         an array of pointers.
31858         (df_refs_add_to_chains): Assert that old lists are empty rather
31859         than freeing them.
31860         (df_insn_refs_verify): Don't handle null defs speciailly.
31861         * web.c (union_match_dups): Update for new df_ref linking.
31863 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
31865         * df.h (df_ref_create, df_ref_remove): Delete.
31866         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
31867         (df_ref_remove): Likewise.
31869 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
31871         * df.h (df_single_def, df_single_use): New functions.
31872         * ira.c (find_moveable_pseudos): Use them.
31874 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
31876         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
31877         * df-problems.c (df_note_bb_compute): Use it.
31878         * regstat.c (regstat_bb_compute_ri): Likewise.
31880 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
31882         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
31883         * cse.c (cse_extended_basic_block): Use them.
31884         * dce.c (mark_artificial_use): Likewise.
31885         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
31886         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
31887         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
31888         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
31889         (df_simulate_initialize_backwards): Likewise.
31890         (df_simulate_finalize_backwards): Likewise.
31891         (df_simulate_initialize_forwards): Likewise.
31892         (df_md_simulate_artificial_defs_at_top): Likewise.
31893         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
31894         * regrename.c (init_rename_info): Likewise.
31895         * regstat.c (regstat_bb_compute_ri): Likewise.
31896         (regstat_bb_compute_calls_crossed): Likewise.
31898 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
31900         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
31901         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
31902         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
31903         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
31904         * combine.c (create_log_links): Likewise.
31905         * compare-elim.c (find_flags_uses_in_insn): Likewise.
31906         (try_eliminate_compare): Likewise.
31907         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
31908         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
31909         (remove_reg_equal_equiv_notes_for_defs): Likewise.
31910         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
31911         (word_dce_process_block, dce_process_block): Likewise.
31912         * ddg.c (def_has_ccmode_p): Likewise.
31913         * df-core.c (df_bb_regno_first_def_find): Likewise.
31914         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
31915         * df-problems.c (df_rd_simulate_one_insn): Likewise.
31916         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
31917         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
31918         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
31919         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
31920         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
31921         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
31922         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
31923         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
31924         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
31925         * fwprop.c (local_ref_killed_between_p): Likewise.
31926         (all_uses_available_at, free_load_extend): Likewise.
31927         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
31928         * hw-doloop.c (scan_loop): Likewise.
31929         * ifcvt.c (dead_or_predicable): Likewise.
31930         * init-regs.c (initialize_uninitialized_regs): Likewise.
31931         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
31932         (process_bb_node_lives): Likewise.
31933         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
31934         (find_moveable_pseudos): Likewise.
31935         * loop-invariant.c (check_dependencies, record_uses): Likewise.
31936         * recog.c (peep2_find_free_register): Likewise.
31937         * ree.c (get_defs): Likewise.
31938         * regstat.c (regstat_bb_compute_ri): Likewise.
31939         (regstat_bb_compute_calls_crossed): Likewise.
31940         * sched-deps.c (find_inc, find_mem): Likewise.
31941         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
31942         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
31943         * shrink-wrap.c (requires_stack_frame_p): Likewise.
31944         (prepare_shrink_wrap): Likewise.
31945         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
31946         * web.c (union_defs, pass_web::execute): Likewise.
31947         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
31948         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
31950 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
31952         * lra-assign.c (assign_by_spills): Add code to assign vector regs
31953         to inheritance pseudos.
31954         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
31956 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
31958         PR target/61415
31959         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
31960         (BU_MISC_2): Rename to ...
31961         (BU_LDBL128_2): ... this.
31962         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
31963         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
31964         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
31965         RS6000_BTM_LDBL128.
31966         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
31967         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
31968         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
31969         (unpacktf_1): Likewise.
31970         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
31971         (__builtin_longdouble_dw1): Likewise.
31972         * doc/sourcebuild.texi (longdouble128): Document.
31974 2014-06-13  Jeff Law  <law@redhat.com>
31976         PR rtl-optimization/61094
31977         PR rtl-optimization/61446
31978         * ree.c (combine_reaching_defs): Get the mode for the copy from
31979         the extension insn rather than the defining insn.
31981 2014-06-13  Dehao Chen  <dehao@google.com>
31983         * dwarf2out.c (add_linkage_name): Emit more linkage name.
31985 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
31987         * doc/install.texi (--enable-linker-plugin-configure-flags)
31988         (--enable-linker-plugin-flags): Document new flags.
31990 2014-06-13  Martin Jambor  <mjambor@suse.cz>
31992         PR ipa/61186
31993         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
31994         cache_token if returning early.
31996 2014-06-13  Nick Clifton  <nickc@redhat.com>
31998         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
31999         requested alignment is active.
32000         (LABEL_ALIGN): Likewise.
32001         (LOOP_ALIGN): Likewise.
32003 2014-06-13  Richard Biener  <rguenther@suse.de>
32005         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32006         Rewrite to propagate the VN result into all uses where
32007         possible and to remove stmts becoming dead because of that.
32008         (eliminate): Generalize stmt removal handling, remove in
32009         reverse dominator order to support proper debug stmt
32010         generation.  Update stmts before removing stmts.
32011         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
32013 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32015         PR tree-optimization/61375
32016         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
32017         symbolic number cannot be represented in an uint64_t.
32018         (find_bswap_or_nop_1): Likewise.
32020 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
32022         * symtab.c (symtab_node::reset_section): New method.
32023         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
32024         for localization.
32025         * cgraph.h (reset_section): Declare.
32026         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
32027         do not consider comdat locals.
32028         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
32029         for new symbol.
32030         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
32031         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
32032         reset sections of symbols dragged out of the comdats.
32033         (function_and_variable_visibility): Reset sections of
32034         localized symbols.
32036 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
32038         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
32039         to use symtab and decl_binds_to_current_def_p
32040         * tree-vectorizer.c (increase_alignment): Increase alignment
32041         of alias target, too.
32043 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
32045         PR middle-end/61486
32046         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
32047         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
32048         if outer combined construct is distribute.
32049         (gimplify_omp_for): For OMP_DISTRIBUTE set
32050         gimplify_omp_ctxp->distribute.
32051         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
32052         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
32053         mapping into decl map.
32055 2014-06-12  Jason Merrill  <jason@redhat.com>
32057         * common.opt (fabi-version): Change default to 0.
32059 2014-06-12  Jason Merrill  <jason@redhat.com>
32061         * toplev.c (process_options): Reject -fabi-version=1.
32063 2014-06-12  Jeff Law  <law@redhat.com>
32065         PR tree-optimization/61009
32066         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
32067         value when we stop processing a block due to problematic PHIs.
32069 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
32071         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
32072         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
32073         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
32074         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
32075         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
32076         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
32077         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
32078         are not in the spec.
32080 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
32082         PR target/59843
32083         * config/aarch64/aarch64-modes.def: Add V1DFmode.
32084         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
32085         Support V1DFmode.
32087 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
32089         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
32091 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
32093         PR target/61443
32094         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
32095         loading from address spaces.
32097 2014-06-12  Martin Liska  <mliska@suse.cz>
32099         PR ipa/61462
32100         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
32101         statement is reachable.
32103 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
32105         * symtab.c (section_hash): New hash.
32106         (symtab_unregister_node): Clear section before freeing.
32107         (hash_section_hash_entry): New haser.
32108         (eq_sections): New function.
32109         (symtab_node::set_section_for_node): New method.
32110         (set_section_1): Update.
32111         (symtab_node::set_section): Take string instead of tree as parameter.
32112         (symtab_resolve_alias): Update.
32113         * cgraph.h (section_hash_entry_d): New structure.
32114         (section_hash_entry): New typedef.
32115         (cgraph_node): Change comdat_group_ to x_comdat_group,
32116         change section_ to x_section and turn into section_hash_entry;
32117         update accestors; put set_section_for_node offline.
32118         * tree.c (decl_section_name): Turn into string.
32119         (set_decl_section_name): Change parameter to be string.
32120         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
32121         * sdbout.c (sdbout_one_type): Update.
32122         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
32123         * varasm.c (IN_NAMED_SECTION, get_named_section,
32124         resolve_unique_section, hot_function_section, get_named_text_section,
32125         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
32126         make_decl_rtl, default_unique_section): Update.
32127         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
32128         (c6x_elf_unique_section): Update.
32129         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
32130         * config/pa/pa.c (pa_function_section): Update.
32131         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
32132         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
32133         * config/arc/arc.c (arc_in_small_data_p): Update.
32134         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
32135         * config/mcore/mcore.c (mcore_unique_section): Update.
32136         * config/mips/mips.c (mips16_build_function_stub): Update.
32137         (mips16_build_call_stub): Update.
32138         (mips_function_rodata_section): Update.
32139         (mips_in_small_data_p): Update.
32140         * config/score/score.c (score_in_small_data_p): Update.
32141         * config/rx/rx.c (rx_in_small_data): Update.
32142         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
32143         (rs6000_xcoff_asm_named_section): Update.
32144         (rs6000_xcoff_unique_section): Update.
32145         * config/frv/frv.c (frv_string_begins_with): Update.
32146         (frv_in_small_data_p): Update.
32147         * config/v850/v850.c (v850_encode_data_area): Update.
32148         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
32149         (bfin_handle_l1_data_attribute): Update.
32150         (bfin_handle_l2_attribute): Update.
32151         * config/mep/mep.c (mep_unique_section): Update.
32152         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
32153         Update.
32154         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
32155         (h8300_handle_tiny_data_attribute): Update.
32156         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
32157         (m32r_in_small_data_p): Update.
32158         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
32159         * config/i386/i386.c (ix86_in_large_data_p): Update.
32160         * config/i386/winnt.c (i386_pe_unique_section): Update.
32161         * config/darwin.c (darwin_function_section): Update.
32162         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
32163         * tree-emutls.c (get_emutls_init_templ_addr): Update.
32164         (new_emutls_decl): Update.
32165         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
32166         input_varpool_node): Update.
32167         (ead_string_cst): Turn to ...
32168         (read_string): ... this one.
32169         * dwarf2out.c (secname_for_decl): Update.
32170         * asan.c (asan_protect_global): Update.
32172 2014-06-11  DJ Delorie  <dj@redhat.com>
32174         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
32175         cache lines.
32176         * config/rx/rx.c (rx_option_override): Likewise.
32177         (rx_align_for_label): Likewise.
32179         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
32181 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
32183         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
32184         prototype.
32186 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32188         * common.md: New file.
32189         * doc/md.texi: Update description of generic, machine-independent
32190         constraints.
32191         * config/s390/constraints.md (e): Delete.
32192         * Makefile.in (md_file): Include common.md.
32193         * config/m32c/t-m32c (md_file): Likewise.
32194         * genpreds.c (general_mem): New array.
32195         (generic_constraint_letters): Remove constraints now defined by
32196         common.md.
32197         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
32198         Allow the first character to be '<' or '>' as well.
32199         * genoutput.c (general_mem): New array.
32200         (indep_constraints): Remove constraints now defined by common.md.
32201         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
32202         Remove special handling of 'm'.
32203         * ira-costs.c (record_reg_classes): Remove special handling of
32204         constraints now defined by common.md.
32205         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
32206         * ira-lives.c (single_reg_class): Likewise.
32207         (ira_implicitly_set_insn_hard_regs): Likewise.
32208         * lra-constraints.c (reg_class_from_constraints): Likewise.
32209         (process_alt_operands, process_address, curr_insn_transform): Likewise.
32210         * postreload.c (reload_cse_simplify_operands): Likewise.
32211         * reload.c (push_secondary_reload, scratch_reload_class)
32212         (find_reloads, alternative_allows_const_pool_ref): Likewise.
32213         * reload1.c (maybe_fix_stack_asms): Likewise.
32214         * targhooks.c (default_secondary_reload): Likewise.
32215         * stmt.c (parse_output_constraint): Likewise.
32216         * recog.c (preprocess_constraints): Likewise.
32217         (constrain_operands, peep2_find_free_register): Likewise.
32218         (asm_operand_ok): Likewise, but add a comment saying why 'o'
32219         must be handled specially.
32221 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32223         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
32224         * genpreds.c (have_const_dbl_constraints): Delete.
32225         (add_constraint): Don't set it.
32226         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
32227         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
32228         constraints using the lookup_constraint logic.
32229         * ira-lives.c (single_reg_class): Likewise.
32230         * ira.c (ira_setup_alts): Likewise.
32231         * lra-constraints.c (process_alt_operands): Likewise.
32232         * recog.c (asm_operand_ok, constrain_operands): Likewise.
32233         * reload.c (find_reloads): Likewise.
32235 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32237         * genpreds.c (const_int_start, const_int_end): New variables.
32238         (choose_enum_order): Output CONST_INT constraints before memory
32239         constraints.
32240         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
32241         Add CT_CONST_INT.
32242         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
32243         * ira.c (ira_setup_alts): Likewise.
32244         * lra-constraints.c (process_alt_operands): Likewise.
32245         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
32246         * reload.c (find_reloads): Likewise.
32248 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32250         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
32251         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
32252         * recog.c (preprocess_constraints): Update accordingly.
32254 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32256         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
32257         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
32258         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
32259         * genpreds.c (print_type_tree): New function.
32260         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
32261         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
32262         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
32263         Write out enum constraint_type and get_constraint_type.
32264         * lra-constraints.c (satisfies_memory_constraint_p): Take a
32265         constraint_num rather than a constraint string.
32266         (satisfies_address_constraint_p): Likewise.
32267         (reg_class_from_constraints): Avoid old constraint macros.
32268         (process_alt_operands, process_address_1): Likewise.
32269         (curr_insn_transform): Likewise.
32270         * ira-costs.c (record_reg_classes): Likewise.
32271         (record_operand_costs): Likewise.
32272         * ira-lives.c (single_reg_class): Likewise.
32273         (ira_implicitly_set_insn_hard_regs): Likewise.
32274         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
32275         * postreload.c (reload_cse_simplify_operands): Likewise.
32276         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
32277         (constrain_operands, peep2_find_free_register): Likewise.
32278         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
32279         (find_reloads, alternative_allows_const_pool_ref): Likewise.
32280         * reload1.c (maybe_fix_stack_asms): Likewise.
32281         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
32282         * targhooks.c (default_secondary_reload): Likewise.
32283         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
32284         to EXTRA_CONSTRAINT_STR.
32285         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
32287 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32289         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
32290         (write_constraint_satisfied_p_array): ...this new function.
32291         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
32292         an array.
32293         (write_insn_preds_c): Update accordingly.
32295 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32297         * genpreds.c (write_lookup_constraint): Rename to...
32298         (write_lookup_constraint_1): ...this.
32299         (write_lookup_constraint_array): New function.
32300         (write_tm_preds_h): Define lookup_constraint as an inline function
32301         that uses write_lookup_constraint_array where possible.
32302         (write_insn_preds_c): Update for the changes above.
32304 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32306         * doc/md.texi (regclass_for_constraint): Rename to...
32307         (reg_class_for_constraint): ...this.
32308         * genpreds.c (num_constraints, enum_order, register_start)
32309         (register_end, satisfied_start, memory_start, memory_end)
32310         (address_start, address_end): New variables.
32311         (add_constraint): Count the number of constraints.
32312         (choose_enum_order): New function.
32313         (write_enum_constraint_num): Iterate over enum_order.
32314         (write_regclass_for_constraint): Rename to...
32315         (write_reg_class_for_constraint_1): ...this and update output
32316         accordingly.
32317         (write_constraint_satisfied_p): Rename to...
32318         (write_constraint_satisfied_p_1): ...this and update output
32319         accordingly.  Do nothing if all extra constraints are register
32320         constraints.
32321         (write_insn_extra_memory_constraint): Delete.
32322         (write_insn_extra_address_constraint): Delete.
32323         (write_range_function): New function.
32324         (write_tm_preds_h): Define constraint_satisfied_p and
32325         reg_class_for_constraint as inline functions that do a range check
32326         before calling the out-of-line function.  Use write_range_function
32327         to implement insn_extra_{register,memory,address}_constraint,
32328         the first of which is new.
32329         (write_insn_preds_c): Update after above changes to write_* functions.
32330         (main): Call choose_enum_order.
32332 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32334         PR tree-optimization/61306
32335         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
32336         expression instead of its size.
32337         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
32338         false to prevent optimization when the result is unpredictable due to
32339         arithmetic right shift of signed type with highest byte is set.
32340         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
32341         (init_symbolic_number): Likewise.
32342         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
32343         when the result is unpredictable due to sign extension.
32345 2014-06-11  Terry Guo  <terry.guo@arm.com>
32347         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
32348         (*thumb1_addsi3): Ditto.
32349         (*thumb_subdi3): Ditto.
32350         (thumb1_subsi3_insn): Ditto.
32351         (*thumb_mulsi3): Ditto.
32352         (*thumb_mulsi3_v6): Ditto.
32353         (*thumb1_andsi3_insn): Ditto.
32354         (thumb1_bicsi3): Ditto.
32355         (*thumb1_iorsi3_insn): Ditto.
32356         (*thumb1_xorsi3_insn): Ditto.
32357         (*thumb1_ashlsi3): Ditto.
32358         (*thumb1_ashrsi3): Ditto.
32359         (*thumb1_lshrsi3): Ditto.
32360         (*thumb1_rotrsi3): Ditto.
32361         (*thumb1_negdi2): Ditto.
32362         (*thumb1_negsi2): Ditto.
32363         (*thumb1_abssi2): Ditto.
32364         (*thumb1_neg_abssi2): Ditto.
32365         (*thumb1_one_cmplsi2): Ditto.
32366         (*thumb1_zero_extendhisi2): Ditto.
32367         (*thumb1_zero_extendqisi2): Ditto.
32368         (*thumb1_zero_extendqisi2_v6): Ditto.
32369         (thumb1_extendhisi2): Ditto.
32370         (thumb1_extendqisi2): Ditto.
32371         (*thumb1_movdi_insn): Ditto.
32372         (*thumb1_movsi_insn): Ditto.
32373         (*thumb1_movhi_insn): Ditto.
32374         (thumb_movhi_clobber): Ditto.
32375         (*thumb1_movqi_insn): Ditto.
32376         (*thumb1_movhf): Ditto.
32377         (*thumb1_movsf_insn): Ditto.
32378         (*thumb_movdf_insn): Ditto.
32379         (movmem12b): Ditto.
32380         (movmem8b): Ditto.
32381         (cbranchqi4): Ditto.
32382         (cbranchsi4_insn): Ditto.
32383         (cbranchsi4_scratch): Ditto.
32384         (*negated_cbranchsi4): Ditto.
32385         (*tbit_cbranch): Ditto.
32386         (*tlobits_cbranch): Ditto.
32387         (*tstsi3_cbranch): Ditto.
32388         (*cbranchne_decr1): Ditto.
32389         (*addsi3_cbranch): Ditto.
32390         (*addsi3_cbranch_scratch): Ditto.
32391         (*thumb_cmpdi_zero): Ditto.
32392         (cstoresi_eq0_thumb1): Ditto.
32393         (cstoresi_ne0_thumb1): Ditto.
32394         (*cstoresi_eq0_thumb1_insn): Ditto.
32395         (*cstoresi_ne0_thumb1_insn): Ditto.
32396         (cstoresi_nltu_thumb1): Ditto.
32397         (cstoresi_ltu_thumb1): Ditto.
32398         (thumb1_addsi3_addgeu): Ditto.
32399         (*thumb_jump): Ditto.
32400         (*call_reg_thumb1_v5): Ditto.
32401         (*call_reg_thumb1): Ditto.
32402         (*call_value_reg_thumb1_v5): Ditto.
32403         (*call_value_reg_thumb1): Ditto.
32404         (*call_insn): Ditto.
32405         (*call_value_insn): Ditto.
32406         (thumb1_casesi_internal_pic): Ditto.
32407         (thumb1_casesi_dispatch): Ditto.
32408         (*thumb1_indirect_jump): Ditto.
32409         (prologue_thumb1_interwork): Ditto.
32410         (*epilogue_insns): Ditto.
32411         (consttable_1): Ditto.
32412         (consttable_2): Ditto.
32413         (tablejump): Ditto.
32414         (*thumb1_tablejump): Ditto.
32415         (thumb_eh_return): Ditto.
32416         (define_peephole2): Two of them are thumb1 only and got moved into
32417         new file thumb1.md.
32418         (define_split): Six of them are thumb1 only and got moved into new
32419         file thumb1.md.
32420         * config/arm/thumb1.md: New file comprised of above thumb1 only
32421         patterns.
32423 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32425         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
32426         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
32427         dependencies.
32428         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
32429         (aarch64_crc_builtin_datum): New struct.
32430         (aarch64_crc_builtin_data): New.
32431         (aarch64_init_crc32_builtins): New function.
32432         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
32433         (aarch64_crc32_expand_builtin): New.
32434         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
32435         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
32436         __ARM_FEATURE_CRC32 when appropriate.
32437         (TARGET_CRC32): Define.
32438         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
32439         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
32440         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
32441         (aarch64_<crc_variant>): New pattern.
32442         * config/aarch64/arm_acle.h: New file.
32443         * config/aarch64/iterators.md (CRC): New int iterator.
32444         (crc_variant, crc_mode): New int attributes.
32445         * doc/aarch64-acle-intrinsics.texi: New file.
32446         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
32447         Include aarch64-acle-intrinsics.texi.
32449 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
32451         * tree-vect-data-refs.c (vect_grouped_store_supported): New
32452         check for stores group of length 3.
32453         (vect_permute_store_chain): New permutations for stores group of
32454         length 3.
32455         * tree-vect-stmts.c (vect_model_store_cost): Change cost
32456         of vec_perm_shuffle for the new permutations.
32458 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
32460         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
32461         table rewriting temporarily on targets not supporting ONE_ONLY.
32463 2014-06-11  Richard Biener  <rguenther@suse.de>
32465         PR middle-end/61437
32466         Revert
32467         2014-06-04  Richard Biener  <rguenther@suse.de>
32469         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
32470         TREE_PUBLIC and DECL_EXTERNAL decls.
32472 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
32474         * varasm.c (set_implicit_section): New function.
32475         (resolve_unique_section): Use it to set implicit section
32476         for aliases, too.
32477         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
32478         (default_function_section): Likewise.
32479         (decl_binds_to_current_def_p): Constify argument.
32480         * varasm.h (decl_binds_to_current_def_p): Update prototype.
32481         * asan.c (asan_protect_global): Use
32482         symtab_get_node (decl)->implicit_section.
32483         * symtab.c (dump_symtab_base): Dump implicit sections.
32484         (verify_symtab_base): Verify sanity of sectoins and comdats.
32485         (symtab_resolve_alias): Alias share the section of its target.
32486         (set_section_1): New function.
32487         (symtab_node::set_section): Move here, recurse to aliases.
32488         (verify_symtab): Check for duplicated symtab lists.
32489         * tree-core.h (implicit_section_name_p): Remove.
32490         * tree-vect-data-refs.c: Include varasm.h.
32491         (vect_can_force_dr_alignment_p): Fix conditional on when
32492         decl bints to current definition; use
32493         symtab_get_node (decl)->implicit_section.
32494         * cgraph.c (cgraph_make_node_local_1): Fix section set.
32495         * cgraph.h (struct symtab_node): Add implicit_section.
32496         (set_section): Rename to ...
32497         (set_section_for_node): ... this one.
32498         (set_section): Declare.
32499         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
32500         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
32501         input_overwrite_node, input_varpool_node): Stream implicit_section.
32502         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
32503         removal; it will fail in LTO.
32505 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32507         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
32508         Change second alternative type to f_mcr.
32509         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
32510         and 12th alternatives' types to f_mcr and f_mrc.
32511         (*movdi_aarch64): Same for 12th and 13th alternatives.
32512         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
32513         (aarch64_movtilow_tilow): Change type to fmov.
32515 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
32517         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
32518         (aarch64_save_or_restore_callee_save_registers): Fix layout.
32520 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32522         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
32523         New expander.
32524         (aarch64_sqrdmulh_lane<mode>): Likewise.
32525         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
32526         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
32527         (aarch64_sqdmulh_laneq<mode>): New expander.
32528         (aarch64_sqrdmulh_laneq<mode>): Likewise.
32529         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
32530         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
32531         (aarch64_sqdmulh_lane<mode>): New expander.
32532         (aarch64_sqrdmulh_lane<mode>): Likewise.
32533         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
32534         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
32535         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
32536         (aarch64_sqdmlal_laneq<mode>): Likewise.
32537         (aarch64_sqdmlsl_lane<mode>): Likewise.
32538         (aarch64_sqdmlsl_laneq<mode>): Likewise.
32539         (aarch64_sqdmlal2_lane<mode>): Likewise.
32540         (aarch64_sqdmlal2_laneq<mode>): Likewise.
32541         (aarch64_sqdmlsl2_lane<mode>): Likewise.
32542         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
32543         (aarch64_sqdmull_lane<mode>): Likewise.
32544         (aarch64_sqdmull_laneq<mode>): Likewise.
32545         (aarch64_sqdmull2_lane<mode>): Likewise.
32546         (aarch64_sqdmull2_laneq<mode>): Likewise.
32548 2014-06-10  Richard Biener  <rguenther@suse.de>
32550         PR tree-optimization/61438
32551         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
32552         (eliminate_dom_walker::before_dom_children): Only try to inhibit
32553         insertion of IVs if running PRE.
32554         (eliminate): Adjust.
32555         (pass_pre::execute): Likewise.
32556         (pass_fre::execute): Likewise.
32558 2014-06-10  Richard Biener  <rguenther@suse.de>
32560         PR middle-end/61456
32561         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
32562         Do not use the main variant for the type comparison.
32563         (ncr_compar): Likewise.
32564         (nonoverlapping_component_refs_p): Likewise.
32566 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32568         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
32569         REG_CFA_RESTORE mode.
32571 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
32573         * config/i386/i386.c (expand_vec_perm_pblendv): New.
32574         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
32575         expand_vec_perm_pblendv.
32577 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32579         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
32580         available.
32581         Simplify description of __crc32d and __crc32cd intrinsics.
32582         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
32583         availability.
32585 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
32587         PR lto/61334
32588         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
32589         * config.in: Regenerate.
32590         * configure: Likewise.
32592 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
32594         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
32595         and public vars.
32596         (intersect_static_var_sets): Remove.
32597         (propagate): Do not prune local statics.
32599 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
32601         PR fortran/60928
32602         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
32603         Set lastprivate_firstprivate even if omp_private_outer_ref
32604         langhook returns true.
32605         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
32606         langhook, call unshare_expr on new_var and call
32607         build_outer_var_ref to get the last argument.
32609 2014-06-10  Marek Polacek  <polacek@redhat.com>
32611         PR c/60988
32612         * doc/extend.texi: Add cindex for transparent_union.
32614 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32616         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
32617         init_symbolic_number ().
32619 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
32621         PR middle-end/61141
32622         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
32623         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
32624         (verify_rtl_sharing): Likewise.
32626 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
32628         PR c++/54442
32629         * tree.c (build_qualified_type): Use a canonical type for
32630         TYPE_CANONICAL.
32632 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32634         * config/arm/arm-modes.def: Remove XFmode.
32636 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
32638         PR target/61062
32639         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
32640         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
32641         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
32642         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
32643         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
32644         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
32645         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
32646         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
32647         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
32649 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
32651         * tree-core.h (tree_decl_with_vis): Remove section_name.
32653 2014-06-09  Kito Cheng  <kito@0xlab.org>
32655         * ira.c (ira): Don't call init_caller_save if LRA enabled
32656         since LRA use its own infrastructure to handle that.
32658 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
32660         * symtab.c (dump_symtab_base): Update dumping.
32661         (symtab_make_decl_local): Clear only DECL_COMDAT.
32662         * tree-vect-data-refs.c (Check that variable is static before
32663         tampering with sections.
32664         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
32665         (cgraph_create_virtual_clone): Likewise.
32666         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
32667         (decl_section_name, set_decl_section_name): New accessors.
32668         (find_decls_types_r): Do not walk section name
32669         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
32670         (decl_comdat_group, decl_comdat_group_id): Constify.
32671         (decl_section_name, set_decl_section_name): Update.
32672         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
32673         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
32674         (cgraph_make_node_local_1): Clear section and comdat group.
32675         * cgraph.h (set_comdat_group): Sanity check.
32676         (get_section, set_section): New.
32677         * ipa-comdats.c (ipa_comdats): Use get_section.
32678         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
32679         * lto-streamer-out.c: Do not follow section names.
32680         * c-family/c-common.c (handle_section_attribute): Update.
32681         * lto-cgraph.c (lto_output_node): Output section.
32682         (lto_output_varpool_node): Likewise.
32683         (read_comdat_group): Rename to ...
32684         (read_identifier): ... this one.
32685         (read_string_cst): New function.
32686         (input_node, input_varpool_node): Input section names.
32687         * tree-emutls.c (get_emutls_init_templ_addr): Update.
32688         (new_emutls_decl): Update.
32689         (secname_for_decl): Check section names only of static vars.
32690         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
32691         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
32692         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
32693         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
32694         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
32695         * config/mcore/mcore.c (mcore_unique_section): Likewise.
32696         * config/mips/mips.c (mips16_build_function_stub): Likewise.
32697         * config/v850/v850.c (v850_insert_attributes): Likewise.
32698         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
32699         Likewise.
32700         (h8300_handle_tiny_data_attribute): Likewise.
32701         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
32702         (bfin_handle_l2_attribute): Likewise.
32704 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
32706         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
32707         remove static initializer.
32709 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
32711         * varasm.c (use_blocks_for_decl_p): Check symbol table
32712         instead of alias attribute.
32713         (place_block_symbol): Recurse on aliases.
32715 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
32717         * ipa-visibility.c: Include varasm.h
32718         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
32720 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
32722         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
32723         outputting aliases.
32725 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
32727         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
32728         from test_insn into GGC space escape via SET_SRC.
32730 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
32732         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
32733         call statement, if any.
32734         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
32735         statements, if any.  Tidy up.
32737 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
32739         PR target/61431
32740         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
32741         iterators, VSX_D that handles 64-bit types, and VSX_LE that
32742         handles swapping the two 64-bit double words on little endian
32743         systems.  Include V1TImode and optionally TImode in VSX_LE so that
32744         these types are properly swapped.  Change all of the insns and
32745         splits that do the 64-bit swaps to use VSX_LE.
32746         (vsx_le_perm_load_<mode>): Likewise.
32747         (vsx_le_perm_store_<mode>): Likewise.
32748         (splitters for little endian memory operations): Likewise.
32749         (vsx_xxpermdi2_le_<mode>): Likewise.
32750         (vsx_lxvd2x2_le_<mode>): Likewise.
32751         (vsx_stxvd2x2_le_<mode>): Likewise.
32753 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
32755         PR target/61423
32756         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
32757         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
32758         and corresponding splitters.  Zero extend general register
32759         or memory input operand to XMM temporary.  Enable for
32760         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
32761         (floatunssi<mode>2): Update expander predicate.
32763 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
32765         PR rtl-optimization/61325
32766         * lra-constraints.c (process_address_1): Check scale equal to one
32767         to prevent transformation: base + scale * index => base + new_reg.
32769 2014-06-06  Richard Biener  <rguenther@suse.de>
32771         PR tree-optimization/59299
32772         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
32773         a def operand.
32774         (nearest_common_dominator_of_uses): Likewise.
32775         (statement_sink_location): Adjust.  Support sinking loads.
32777 2014-06-06  Martin Jambor  <mjambor@suse.cz>
32779         * ipa-prop.c (get_place_in_agg_contents_list): New function.
32780         (build_agg_jump_func_from_list): Likewise.
32781         (determine_known_aggregate_parts): Renamed to
32782         determine_locally_known_aggregate_parts.  Moved some functionality
32783         to the two functions above, removed bound checks.
32785 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
32787         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
32788         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
32789         (aarch64_progress_pointer): Likewise.
32790         (aarch64_copy_one_part_and_move_pointers): Likewise.
32791         (aarch64_expand_movmen): Likewise.
32792         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
32793         * config/aarch64/aarch64.md (movmem<mode>): New.
32795 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
32797         * targhooks.c (default_add_stmt_cost): Call target specific
32798         hook instead of default one.
32800 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32802         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
32803         endianness instead of host endianness.
32804         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
32805         comments.
32807 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
32809         PR debug/53927
32810         * function.c (instantiate_decls): Process the saved static chain.
32811         (expand_function_start): If not optimizing, save the static chain
32812         onto the stack.
32813         * tree-nested.c (convert_all_function_calls): Always create the static
32814         chain for nested functions if not optimizing.
32816 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
32818         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
32820 2014-06-06  Richard Biener  <rguenther@suse.de>
32822         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
32823         (construct_init_block): Likewise.
32824         (construct_exit_block): Likewise.
32825         (pass_expand::execute): Likewise.
32826         * graphite.c (graphite_transforms): Replace check for current_loops
32827         with a check for > 1 loops.
32828         (pass_graphite_transforms::execute): Adjust.
32829         * ipa-split.c (split_function): Remove check for current_loops.
32830         * omp-low.c (expand_parallel_call): Likewise.
32831         (expand_omp_for_init_counts): Likewise.
32832         (extract_omp_for_update_vars): Likewise.
32833         (expand_omp_for_generic): Likewise.
32834         (expand_omp_sections): Likewise.
32835         (expand_omp_target): Likewise.
32836         * tracer.c (tail_duplicate): Likewise.
32837         (pass_tracer::execute): Likewise.
32838         * trans-mem.c (expand_transaction): Likewise.
32839         * tree-complex.c (expand_complex_div_wide): Likewise.
32840         * tree-eh.c (lower_resx): Likewise.
32841         (cleanup_empty_eh_merge_phis): Likewise.
32842         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
32843         current_loops with a check for > 1 loops.
32844         (pass_predcom::execute): Adjust.
32845         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
32846         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
32847         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
32848         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
32849         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
32850         * tree-switch-conversion.c (process_switch): Likewise.
32851         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
32852         * tree-vrp.c (vrp_visit_phi_node): Likewise.
32853         (execute_vrp): Likewise.
32854         * ubsan.c (ubsan_expand_null_ifn): Likewise.
32856 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
32858         * rtl.h (insn_location): Declare.
32859         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
32860         with UNKNOWN_LOCATION.
32861         * emit-rtl.c (insn_location): New function.
32862         * final.c (notice_source_line): Check that the instruction has a
32863         location before retrieving it and use insn_location.
32864         * modulo-sched.c (loop_single_full_bb_p): Likewise.
32865         * print-rtl.c (print_rtx): Likewise.
32867 2014-06-06  Richard Biener  <rguenther@suse.de>
32869         * passes.def: Move 2nd VRP pass before phi-only-cprop.
32871 2014-06-06  Christian Bruel  <christian.bruel@st.com>
32873         PR tree-optimization/43934
32874         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
32875         cost.
32877 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
32879         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
32880         return NO_REGS for extra address and memory constraints.  Handle
32881         operands that match (or are equivalent to something that matches)
32882         extra constant constraints.  Ignore other non-register operands.
32884 2014-06-06  Alan Modra  <amodra@gmail.com>
32886         PR target/61300
32887         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
32888         * doc/tm.texi: Regenerate.
32889         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
32890         Use throughout in place of REG_PARM_STACK_SPACE.
32891         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
32892         "incoming" param.  Pass to rs6000_function_parms_need_stack.
32893         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
32894         prototype_p when incoming.  Use function decl when incoming
32895         to handle K&R style functions.
32896         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
32897         (INCOMING_REG_PARM_STACK_SPACE): Define.
32899 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32901         PR target/52472
32902         * cfgexpand.c (expand_debug_expr): Use address space of nested
32903         TREE_TYPE for ADDR_EXPR and MEM_REF.
32905 2014-06-05  Jeff Law  <law@redhat.com>
32907         PR tree-optimization/61289
32908         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
32909         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
32910         looking for those which match LHS.  All callers changed.
32911         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
32912         parameters and code which manipulated them.  All callers changed.
32913         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
32914         and DST_MAP parameters.  Simplify invalidation code by just calling
32915         invalidate_equivalences.  All callers changed.
32916         (thread_across_edge): Simplify now that we don't need to maintain
32917         the map of equivalences to invalidate.
32919 2014-06-05  Kai Tietz  <ktietz@redhat.com>
32920             Richard Henderson  <rth@redhat.com>
32922         PR target/46219
32923         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
32924         checking for !TARGET_X32.
32925         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
32926         (sibcall_intern): New define_insn, plus required peepholes.
32927         (sibcall_pop_intern): Likewise.
32928         (sibcall_value_intern): Likewise.
32929         (sibcall_value_pop_intern): Likewise.
32931 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
32933         * tree-inline.c (tree_function_versioning): Check DF info existence
32934         before accessing it.
32936 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32938         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
32939         frame_size.
32940         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
32941         aarch64_frame hard_fp_offset and frame_size.
32942         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
32943         frame_size; remove original_frame_size.
32944         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
32945         (aarch64_initial_elimination_offset): Remove frame_size and
32946         offset.  Use aarch64_frame frame_size.
32948 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32949             Jiong Wang  <jiong.wang@arm.com>
32950             Renlin  <renlin.li@arm.com>
32952         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
32953         initialization of R30 offset.  Update offset.  Iterate core
32954         regisers upto X30.  Remove X29, X30 specific code.
32956 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32957             Jiong Wang  <jiong.wang@arm.com>
32959         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
32960         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
32961         (aarch64_register_saved_on_entry): Adjust test.
32963 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32965         * config/aarch64/aarch64.h (machine_function): Move
32966         saved_varargs_size from here...
32967         (aarch64_frame): ... to here.
32969         * config/aarch64/aarch64.c (aarch64_expand_prologue)
32970         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
32971         (aarch64_initial_elimination_offset)
32972         (aarch64_setup_incoming_varargs): Adjust location of
32973         saved_varargs_size.
32975 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32977         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
32978         layout comment.
32980 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
32981             Prachi Godbole  <Prachi.Godbole@imgtec.com>
32983         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
32984         mips32r5 entry to use PROCESSOR_P5600.
32985         * config/mips/mips-tables.opt: Regenerate.
32986         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
32987         * config/mips/mips.c (mips_fmadd_bypass): New function.
32988         (mips_rtx_cost_data): Add costs for p5600.
32989         (mips_issue_rate): Add support for p5600.
32990         (mips_multipass_dfa_lookahead): Likewise.
32991         * config/mips/mips.h (TUNE_P5600): New define.
32992         (TUNE_MACC_CHAINS): Add TUNE_P5600.
32993         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
32994         * config/mips/mips.md: Include p5600.md.
32995         (processor): Add p5600.
32996         * config/mips/p5600.md: New file.
32998 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
33000         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
33001         * config/i386/predicates.md (palignr_operand): New.
33002         Indicates if permutation is suitable for palignr instruction.
33004 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
33006         PR tree-optimization/61319
33007         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
33008         stmt belongs to loop.
33010 2014-06-05  Richard Biener  <rguenther@suse.de>
33012         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
33013         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
33014         (lookup_tmp_var): Adjust.
33015         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
33017 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33019         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
33021 2014-06-05  Marek Polacek  <polacek@redhat.com>
33023         PR c/49706
33024         * doc/invoke.texi: Document -Wlogical-not-parentheses.
33026 2014-06-04  Tom de Vries  <tom@codesourcery.com>
33028         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
33029         CONST_INT.
33031 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
33033         PR tree-optimization/61385
33034         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
33036 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
33038         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
33039         changed to use fatal_error.
33040         (main): Ensure lto_wrapper_cleanup is run atexit.
33042 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33044         * lra-constraints.c (valid_address_p): Move earlier in file.
33045         (address_eliminator): New structure.
33046         (satisfies_memory_constraint_p): New function.
33047         (satisfies_address_constraint_p): Likewise.
33048         (process_alt_operands, process_address, curr_insn_transform): Use them.
33050 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33052         * lra-int.h (lra_static_insn_data): Make operand_alternative a
33053         const pointer.
33054         (target_lra_int, default_target_lra_int, this_target_lra_int)
33055         (op_alt_data): Delete.
33056         * lra.h (lra_init): Delete.
33057         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
33058         (init_insn_code_data_once): Remove op_alt_data handling.
33059         (finish_insn_code_data_once): Likewise.
33060         (init_op_alt_data): Delete.
33061         (get_static_insn_data): Initialize operand_alternative to null.
33062         (free_insn_recog_data): Cast operand_alternative before freeing it.
33063         (setup_operand_alternative): Take the operand_alternative as
33064         parameter and assume it isn't already cached in the static
33065         insn data.
33066         (lra_set_insn_recog_data): Update accordingly.
33067         (lra_init): Delete.
33068         * ira.c (ira_init): Don't call lra_init.
33069         * target-globals.h (this_target_lra_int): Declare.
33070         (target_globals): Remove lra_int.
33071         (restore_target_globals): Update accordingly.
33072         * target-globals.c: Don't include lra-int.h.
33073         (default_target_globals, save_target_globals): Remove lra_int.
33075 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33077         * recog.h (operand_alternative): Convert reg_class, reject,
33078         matched and matches into bitfields.
33079         (preprocess_constraints): New overload.
33080         (preprocess_insn_constraints): New function.
33081         (preprocess_constraints): Take the insn as parameter.
33082         (recog_op_alt): Change into a pointer.
33083         (target_recog): Add x_op_alt.
33084         * recog.c (asm_op_alt): New variable.
33085         (recog_op_alt): Change into a pointer.
33086         (preprocess_constraints): New overload, replacing the old function
33087         definition with one that doesn't use global state.
33088         (preprocess_insn_constraints): New function.
33089         (preprocess_constraints): Use them.  Take the insn as parameter.
33090         Use asm_op_alt for asms.
33091         (recog_init): Free existing x_op_alt entries.
33092         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
33093         pointer const.
33094         (make_early_clobber_and_input_conflicts): Likewise.
33095         (process_bb_node_lives): Pass the insn to process_constraints.
33096         * reg-stack.c (check_asm_stack_operands): Likewise.
33097         (subst_asm_stack_regs): Likewise.
33098         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
33099         * regrename.c (build_def_use): Likewise.
33100         * sched-deps.c (sched_analyze_insn): Likewise.
33101         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
33102         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
33103         (note_invalid_constants): Likewise.
33104         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
33105         (ix86_legitimate_combined_insn): Make operand_alternative pointer
33106         const.
33108 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33110         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
33111         * ira-lives.c (check_and_make_def_conflict): Check for disabled
33112         alternatives.
33113         (make_early_clobber_and_input_conflicts): Likewise.
33114         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
33116 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33118         * recog.h (alternative_class): New function.
33119         (which_op_alt): Return a const recog_op_alt.
33120         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
33121         (subst_asm_stack_regs): Likewise.
33122         * config/arm/arm.c (note_invalid_constants): Likewise.
33123         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
33124         the operand_alternative; use alternative class instead.
33125         * sel-sched.c (get_reg_class): Likewise.
33126         * regrename.c (build_def_use): Likewise.
33127         (hide_operands, restore_operands, record_out_operands): Update type
33128         accordingly.
33130 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33132         * recog.h (recog_op_alt): Convert to a flat array.
33133         (which_op_alt): New function.
33134         * recog.c (recog_op_alt): Convert to a flat array.
33135         (preprocess_constraints): Update accordingly, grouping all
33136         operands of the same alternative together, rather than the
33137         other way around.
33138         * ira-lives.c (check_and_make_def_conflict): Likewise.
33139         (make_early_clobber_and_input_conflicts): Likewise.
33140         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
33141         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
33142         (subst_asm_stack_regs): Likewise.
33143         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
33144         * regrename.c (hide_operands, record_out_operands): Likewise.
33145         (build_def_use): Likewise.
33146         * sel-sched.c (get_reg_class): Likewise.
33147         * config/arm/arm.c (note_invalid_constants): Likewise.
33149 2014-06-04  Jason Merrill  <jason@redhat.com>
33151         PR c++/51253
33152         PR c++/61382
33153         * gimplify.c (gimplify_arg): Non-static.
33154         * gimplify.h: Declare it.
33156 2014-06-04  Richard Biener  <rguenther@suse.de>
33158         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
33159         TREE_PUBLIC and DECL_EXTERNAL decls.
33161 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
33163         * regcprop.c (copyprop_hardreg_forward_1): Account for
33164         HARD_REGNO_CALL_PART_CLOBBERED.
33166 2014-06-04  Richard Biener  <rguenther@suse.de>
33168         * configure.ac: Check whether the underlying type of int64_t
33169         is long or long long.
33170         * configure: Regenerate.
33171         * config.in: Likewise.
33172         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
33173         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
33175 2014-06-04  Richard Biener  <rguenther@suse.de>
33177         PR tree-optimization/60098
33178         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
33179         we hit a kill.
33180         (dse_optimize_stmt): Simplify, now that we found a kill
33181         earlier.
33183 2014-06-04  Richard Biener  <rguenther@suse.de>
33185         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
33186         of accesses with non-invariant address.
33188 2014-06-04  Martin Liska  <mliska@suse.cz>
33190         * cgraph.h (cgraph_make_wrapper): New function introduced.
33191         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
33192         * ipa-inline.h (inline_analyze_function): The function is global.
33193         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
33195 2014-06-04  Martin Liska  <mliska@suse.cz>
33197         * tree.h (private_lookup_attribute_starting): New function.
33198         (lookup_attribute_starting): Likewise.
33199         * tree.c (private_lookup_attribute_starting): Likewise.
33201 2014-06-04  Martin Liska  <mliska@suse.cz>
33203         * cgraph.h (expand_thunk): New argument added.
33204         (address_taken_from_non_vtable_p): New global function.
33205         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
33206         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
33207         * cgraphunit.c (analyze_function): Likewise.
33208         (assemble_thunks_and_aliases): Argument added to call.
33209         (expand_thunk): New argument forces to produce GIMPLE thunk.
33211 2014-06-04  Martin Liska  <mliska@suse.cz>
33213         * coverage.h (coverage_compute_cfg_checksum): Argument added.
33214         * coverage.c (coverage_compute_cfg_checksum): Likewise.
33215         * profile.c (branch_prob): Likewise.
33217 2014-06-04  Martin Jambor  <mjambor@suse.cz>
33219         PR ipa/61340
33220         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
33221         handler for switch on an ipa_ref_use enum.
33222         * ipa-reference.c (analyze_function): Likewise.
33224 2014-06-04  Kai Tietz  <ktietz@redhat.com>
33226         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
33227         from old call-instruction.
33229 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
33231         * config/aarch64/aarch64.c (aarch64_classify_address)
33232         (aarch64_legitimize_reload_address): Support full addressing modes
33233         for vector modes.
33234         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
33235         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
33237 2014-06-03  Andrew Pinski  <apinski@cavium.com>
33239         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
33240         for OP0.
33242 2014-06-03  Andrew Pinski  <apinski@cavium.com>
33244         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
33245         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
33247 2014-06-03  Kai Tietz  <ktietz@redhat.com>
33249         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
33250         for 64-bit ms-abi.
33252 2014-06-03  Dehao Chen  <dehao@google.com>
33254         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
33255         the same loop.
33257 2014-06-03  Marek Polacek  <polacek@redhat.com>
33259         PR c/60439
33260         * doc/invoke.texi: Document -Wswitch-bool.
33261         * function.c (stack_protect_epilogue): Cast controlling expression of
33262         the switch to int.
33263         * gengtype.c (walk_type): Generate switch expression with its
33264         controlling expression cast to int.
33266 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
33268         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
33269         and attiny841.
33270         * config/avr/avr-tables.opt: Regenerate.
33271         * config/avr/t-multilib: Regenerate.
33272         * doc/avr-mmcu.texi: Regenerate.
33274 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
33275             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
33277         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
33278         (ata6617c, ata664251): Add new avr35 devices.
33279         (ata6612c): Add new avr4 device.
33280         (ata6613c, ata6614q): Add new avr5 devices.
33281         * config/avr/avr-tables.opt: Regenerate.
33282         * config/avr/t-multilib: Regenerate.
33283         * doc/avr-mmcu.texi: Regenerate.
33285 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
33287         * gcc/config/aarch64/aarch64-builtins.c
33288         (aarch64_types_binop_ssu_qualifiers): New static data.
33289         (TYPES_BINOP_SSU): Define.
33290         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
33291         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
33292         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
33293         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
33294         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
33295         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
33296         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
33297         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
33298         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
33299         suffix to builtin function name, remove cast.
33300         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
33301         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
33302         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
33304 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
33306         * gcc/config/aarch64/aarch64-builtins.c
33307         (aarch64_types_binop_uus_qualifiers,
33308         aarch64_types_shift_to_unsigned_qualifiers,
33309         aarch64_types_unsigned_shiftacc_qualifiers): Define.
33310         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
33311         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
33312         sqshlu_n, uqshl_n): Update qualifiers.
33313         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
33314         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
33315         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
33316         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
33317         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
33318         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
33319         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
33320         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
33321         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
33322         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
33323         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
33324         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
33325         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
33326         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
33327         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
33328         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
33329         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
33330         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
33331         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
33332         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
33333         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
33334         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
33335         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
33336         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
33337         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
33338         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
33339         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
33341 2014-06-03  Teresa Johnson  <tejohnson@google.com>
33343         * tree-sra.c (modify_function): Record caller nodes after rebuild.
33345 2014-06-02  Jason Merrill  <jason@redhat.com>
33347         PR c++/61020
33348         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
33350 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
33352         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
33353         location == 0.
33355 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
33357         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
33358         New pattern.
33359         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
33360         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
33361         * config/aarch64/iterators.md (REVERSE): New iterator.
33362         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
33363         (rev_op): New int_attribute.
33364         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
33365         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
33366         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
33367         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
33368         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
33369         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
33370         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
33371         Replace temporary __asm__ with __builtin_shuffle.
33373 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
33375         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
33376         mips64r5.
33377         * config/mips/mips-tables.opt: Regenerate.
33378         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
33379         to use mips_isa_rev rather than ISA_MIPS32R2.
33380         * config/mips/mips.h (ISA_MIPS32R3): New define.
33381         (ISA_MIPS32R5): New define.
33382         (ISA_MIPS64R3): New define.
33383         (ISA_MIPS64R5): New define.
33384         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
33385         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
33386         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
33387         and mips64r5.
33388         (MIPS_ISA_SYNCI_SPEC): Likewise.
33389         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
33390         (LINK_SPEC): Added mips32r3 and mips32r5.
33391         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
33392         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
33393         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
33394         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
33395         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
33396         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
33397         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
33399 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
33401         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
33402         options.
33403         * config/mips/mips.opt (mxpa): New option.
33404         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
33405         assembler.
33407 2014-06-03  Martin Jambor  <mjambor@suse.cz>
33409         PR ipa/61160
33410         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
33411         thunks.
33413 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33415         PR tree-optimization/61328
33416         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
33417         initialization from find_bswap_or_nop_1.
33418         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
33419         in source_expr2 before using the size value the function sets. Also
33420         make use of init_symbolic_number () in both the old place and
33421         find_bswap_or_nop_load () to avoid reading uninitialized memory when
33422         doing recursion in the GIMPLE_BINARY_RHS case.
33424 2014-06-03  Richard Biener  <rguenther@suse.de>
33426         PR tree-optimization/61383
33427         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
33428         stmts can't trap.
33430 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
33432         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
33433         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
33434         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
33435         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
33436         in this file.
33437         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
33438         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
33439         * system.h: ...here and make it unconditional.
33440         * target.def (conditional_register_usage): Mention
33441         define_register_constraint instead of old-style constraint macros.
33442         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
33443         * doc/tm.texi: Regenerate.
33444         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
33445         protected by !USE_MD_CONSTRAINTS.
33446         * config/frv/frv.md: Remove quote from old version of documentation.
33447         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
33448         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
33449         CONST_DOUBLE_OK_FOR_LETTER.
33450         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
33452 2014-06-02  Andrew Pinski  <apinski@cavium.com>
33454         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
33455         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
33456         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
33457         file whose name depends on -mabi= and -mbig-endian.
33458         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
33459         Handle LP64 better and handle ilp32 too.
33460         (MULTILIB_OPTIONS): Delete.
33461         (MULTILIB_DIRNAMES): Delete.
33463 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
33465         * expr.h: Remove prototypes of functions defined in builtins.c.
33466         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
33467         Remove prototypes of functions defined in builtins.c.
33468         * builtins.h: Update prototype list to include all exported functions.
33469         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
33470         no_c99_libc_has_function): Move to targhooks.c
33471         (build_string_literal, build_call_expr_loc_array,
33472         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
33473         to tree.c.
33474         (expand_builtin_object_size, fold_builtin_object_size): Make static.
33475         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
33476         no_c99_libc_has_function): Relocate from builtins.c.
33477         * tree.c: Include builtins.h.
33478         (build_call_expr_loc_array, build_call_expr_loc_vec,
33479         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
33480         from builtins.c.
33481         * fold-const.h (fold_fma): Move prototype to builtins.h.
33482         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
33483         * asan.c: Include builtins.h.
33484         * cfgexpand.c: Likewise.
33485         * convert.c: Likewise.
33486         * emit-rtl.c: Likewise.
33487         * except.c: Likewise.
33488         * expr.c: Likewise.
33489         * fold-const.c: Likewise.
33490         * gimple-fold.c: Likewise.
33491         * gimple-ssa-strength-reduction.c: Likewise.
33492         * gimplify.c: Likewise.
33493         * ipa-inline.c: Likewise.
33494         * ipa-prop.c: Likewise.
33495         * lto-streamer-out.c: Likewise.
33496         * stmt.c: Likewise.
33497         * tree-inline.c: Likewise.
33498         * tree-object-size.c: Likewise.
33499         * tree-sra.c: Likewise.
33500         * tree-ssa-ccp.c: Likewise.
33501         * tree-ssa-forwprop.c: Likewise.
33502         * tree-ssa-loop-ivcanon.c: Likewise.
33503         * tree-ssa-loop-ivopts.c: Likewise.
33504         * tree-ssa-math-opts.c: Likewise.
33505         * tree-ssa-reassoc.c: Likewise.
33506         * tree-ssa-threadedge.c: Likewise.
33507         * tree-streamer-in.c: Likewise.
33508         * tree-vect-data-refs.c: Likewise.
33509         * tree-vect-patterns.c: Likewise.
33510         * tree-vect-stmts.c: Likewise.
33511         * config/aarch64/aarch64.c: Likewise.
33512         * config/alpha/alpha.c: Likewise.
33513         * config/arc/arc.c: Likewise.
33514         * config/arm/arm.c: Likewise.
33515         * config/avr/avr.c: Likewise.
33516         * config/bfin/bfin.c: Likewise.
33517         * config/c6x/c6x.c: Likewise.
33518         * config/cr16/cr16.c: Likewise.
33519         * config/cris/cris.c: Likewise.
33520         * config/epiphany/epiphany.c: Likewise.
33521         * config/fr30/fr30.c: Likewise.
33522         * config/frv/frv.c: Likewise.
33523         * config/h8300/h8300.c: Likewise.
33524         * config/i386/i386.c: Likewise.
33525         * config/i386/winnt.c: Likewise.
33526         * config/ia64/ia64.c: Likewise.
33527         * config/iq2000/iq2000.c: Likewise.
33528         * config/lm32/lm32.c: Likewise.
33529         * config/m32c/m32c.c: Likewise.
33530         * config/m32r/m32r.c: Likewise.
33531         * config/m68k/m68k.c: Likewise.
33532         * config/mcore/mcore.c: Likewise.
33533         * config/mep/mep.c: Likewise.
33534         * config/microblaze/microblaze.c: Likewise.
33535         * config/mips/mips.c: Likewise.
33536         * config/mmix/mmix.c: Likewise.
33537         * config/mn10300/mn10300.c: Likewise.
33538         * config/moxie/moxie.c: Likewise.
33539         * config/msp430/msp430.c: Likewise.
33540         * config/nds32/nds32.c: Likewise.
33541         * config/pa/pa.c: Likewise.
33542         * config/pdp11/pdp11.c: Likewise.
33543         * config/picochip/picochip.c: Likewise.
33544         * config/rl78/rl78.c: Likewise.
33545         * config/rs6000/rs6000.c: Likewise.
33546         * config/rx/rx.c: Likewise.
33547         * config/s390/s390.c: Likewise.
33548         * config/score/score.c: Likewise.
33549         * config/sh/sh.c: Likewise.
33550         * config/sparc/sparc.c: Likewise.
33551         * config/spu/spu.c: Likewise.
33552         * config/stormy16/stormy16.c: Likewise.
33553         * config/tilegx/tilegx.c: Likewise.
33554         * config/tilepro/tilepro.c: Likewise.
33555         * config/v850/v850.c: Likewise.
33556         * config/vax/vax.c: Likewise.
33557         * config/xtensa/xtensa.c: Likewise.
33559 2014-06-02  Jeff Law  <law@redhat.com>
33561         PR rtl-optimization/61094
33562         * ree.c (combine_reaching_defs): Do not reextend an insn if it
33563         was marked as do_no_reextend.  If a copy is needed to eliminate
33564         an extension, then mark it as do_not_reextend.
33566 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33568         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
33570 2014-06-02  Richard Henderson  <rth@redhat.com>
33572         PR target/61336
33573         * config/alpha/alpha.c (print_operand_address): Allow symbolic
33574         addresses inside asms.  Use output_operand_lossage instead of
33575         gcc_unreachable.
33577 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
33579         PR target/61239
33580         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
33581         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
33583 2014-06-02  Tom de Vries  <tom@codesourcery.com>
33585         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
33586         case that x has VOIDmode.
33588 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
33590         * varasm.c (copy_constant): Delete function.
33591         (build_constant_desc): Don't call it.
33593 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33595         PR target/61154
33596         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
33597         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
33598         with immediate_operand.
33600 2014-06-02  Andreas Schwab  <schwab@suse.de>
33602         * config/ia64/ia64.c
33603         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
33604         pending_data_specs first.
33606 2014-06-02  Richard Biener  <rguenther@suse.de>
33608         PR tree-optimization/61378
33609         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
33610         valueized_anything.
33612 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
33614         * config/i386/constraints.md (Bw): Rename from 'w'.
33615         (Bz): Rename from 'z'.
33616         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
33618 2014-06-01  Kai Tietz  <ktietz@redhat.com>
33620         PR target/61377
33621         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
33622         * config/i386/i386.md (sibcall_insn_operand): Use Bs
33623         instead of m constraint.
33625 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
33627         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
33628         a separate alternative where the scratch operand 2 is marked as
33629         early clobber.
33631 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
33633         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
33634         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
33635         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
33636         and __builtins_arm_get_fpscr.
33637         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
33638         __builtins_arm_get_fpscr.
33639         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
33640         __builtins_arm_ldfpscr.
33641         (arm_atomic_assign_expand_fenv): New function.
33642         * config/arm/vfp.md (set_fpscr): New pattern.
33643         (get_fpscr) : Likewise.
33644         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
33645         VUNSPEC_SET_FPSCR.
33646         * doc/extend.texi (AARCH64 Built-in Functions) : Document
33647         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
33649 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
33651         * asan.c (report_error_func): Add SLOW_P argument, use
33652         BUILT_IN_ASAN_*_N if set.
33653         (build_check_stmt): Likewise.
33654         (instrument_derefs): If T has insufficient alignment,
33655         force same handling as for odd sizes.
33657         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
33658         BUILT_IN_ASAN_REPORT_STORE_N): New.
33659         * asan.c (struct asan_mem_ref): Change access_size type to
33660         HOST_WIDE_INT.
33661         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
33662         update_mem_ref_hash_table): Likewise.
33663         (asan_mem_ref_hasher::hash): Hash in a HWI.
33664         (report_error_func): Change size_in_bytes argument to HWI.
33665         Use *_N builtins if size_in_bytes is larger than 16 or not power of
33666         two.
33667         (build_shadow_mem_access): New function.
33668         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
33669         Handle size_in_bytes not power of two or larger than 16.
33670         (instrument_derefs): Don't give up if size_in_bytes is not
33671         power of two or is larger than 16.
33673 2014-05-30  Kai Tietz  <ktietz@redhat.com>
33675         PR target/60104
33676         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
33677         for sibling-tail-calls.
33678         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
33679         to its use.
33680         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
33681         (sibcall_insn_operand): Add check for sibcall_memory_operand.
33683 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
33685         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
33686         * config/avr/avr-tables.opt: Regenerate.
33687         * config/avr/t-multilib: Regenerate.
33688         * doc/avr-mmcu.texi: Regenerate.
33690 2014-05-30  Ian Lance Taylor  <iant@google.com>
33692         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
33693         target("sse").
33695 2014-05-30  Tom de Vries  <tom@codesourcery.com>
33697         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
33698         Redefine as true.
33700 2014-05-30  Tom de Vries  <tom@codesourcery.com>
33702         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
33703         * lra.c (initialize_lra_reg_info_element): Add init of
33704         actual_call_used_reg_set field.
33705         (lra): Call lra_create_live_ranges before lra_inheritance for
33706         -fuse-caller-save.
33707         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
33708         -fuse-caller-save.
33709         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
33710         instead of call_used_reg_set for -fuse-caller-save.
33711         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
33713 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33715         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
33716         to mov_imm.
33717         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
33719 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
33721         * ira.c (ira_get_dup_out_num): Check for output operands at
33722         the start of the loop.  Handle cases where an included alternative
33723         follows an excluded one.
33725 2014-05-29  Mike Stump  <mikestump@comcast.net>
33727         PR debug/61352
33728         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
33729         post ld passes when lto is used.
33731 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
33733         PR rtl-optimization/61325
33734         * lra-constraints.c (process_address): Rename to process_address_1.
33735         (process_address): New function.
33737 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
33739         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
33740         TYPES_BINOPV): New static data.
33741         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
33742         New builtin.
33743         * config/aarch64/aarch64-simd.md (aarch64_ext,
33744         aarch64_im_lane_boundsi): New patterns.
33745         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
33746         patterns for EXT.
33747         (aarch64_evpc_ext): New function.
33749         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
33751         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
33752         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
33753         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
33754         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
33755         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
33757 2014-05-29  Tom de Vries  <tom@codesourcery.com>
33759         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
33761 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
33762             Richard Sandiford  <rdsandiford@googlemail.com>
33764         * arm/iterators.md (shiftable_ops): New code iterator.
33765         (t2_binop0, arith_shift_insn): New code attributes.
33766         * arm/predicates.md (shift_nomul_operator): New predicate.
33767         * arm/arm.md (insn_enabled): Delete.
33768         (enabled): Remove insn_enabled test.
33769         (*arith_shiftsi): Delete.  Replace with ...
33770         (*<arith_shift_insn>_multsi): ... new pattern.
33771         (*<arith_shift_insn>_shiftsi): ... new pattern.
33772         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
33774 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
33775             Tom de Vries  <tom@codesourcery.com>
33777         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
33778         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
33779         clobber.
33780         (mips_split_call): Use POST_CALL_TMP_REG.
33781         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
33783 2014-05-29  Tom de Vries  <tom@codesourcery.com>
33785         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
33786         with #ifdef STACK_REGS.
33788 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
33790         * varasm.c (get_variable_section): Walk aliases.
33791         (place_block_symbol): Walk aliases.
33793 2014-05-28  Tom de Vries  <tom@codesourcery.com>
33795         Revert:
33796         2014-05-28  Tom de Vries  <tom@codesourcery.com>
33798         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
33799         * lra.c (initialize_lra_reg_info_element): Add init of
33800         actual_call_used_reg_set field.
33801         (lra): Call lra_create_live_ranges before lra_inheritance for
33802         -fuse-caller-save.
33803         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
33804         -fuse-caller-save.
33805         * lra-constraints.c (need_for_call_save_p): Use
33806         actual_call_used_reg_set instead of call_used_reg_set for
33807         -fuse-caller-save.
33808         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
33810 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
33812         * doc/md.texi: Document that the % constraint character must
33813         be at the beginning of the string.
33814         * genoutput.c (validate_insn_alternatives): Check that '=',
33815         '+' and '%' only appear at the beginning of a constraint.
33816         * ira.c (commutative_constraint_p): Delete.
33817         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
33818         at the start of the string.
33819         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
33820         duplicate '='s.
33821         * config/arm/neon.md (bicdi3_neon): Likewise.
33822         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
33823         (slt_si, sltu_si): Likewise.
33824         * config/vax/vax.md (sbcdi3): Likewise.
33825         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
33826         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
33827         (mul64): Move '%' to beginning of constraint.
33828         * config/arm/arm.md (*xordi3_insn): Likewise.
33829         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
33830         (xorsi3): Likewise.
33832 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
33834         * doc/md.texi: Document the restrictions on the "enabled" attribute.
33836 2014-05-28  Jason Merrill  <jason@redhat.com>
33838         PR c++/47202
33839         * cgraph.h (symtab_node::get_comdat_group_id): New.
33840         * cgraphunit.c (analyze_functions): Call it.
33841         * symtab.c (dump_symtab_node): Likewise.
33842         * tree.c (decl_comdat_group_id): New.
33843         * tree.h: Declare it.
33844         * lto-streamer-out.c (write_symbol): Use it.
33845         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
33847 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
33849         PR bootstrap/PR61146
33850         * wide-int.cc: Do not include longlong.h when compiling with clang.
33852 2014-05-28  Richard Biener  <rguenther@suse.de>
33854         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
33855         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
33856         (vrp_visit_assignment_or_call): Print less vertical space.
33857         (vrp_visit_stmt): Likewise.
33858         (vrp_visit_phi_node): Likewise.  For a PHI argument with
33859         VR_VARYING range consider recording it as copy.
33861 2014-05-28  Richard Biener  <rguenther@suse.de>
33863         Revert
33864         2014-05-28  Richard Biener  <rguenther@suse.de>
33866         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
33868 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33870         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
33871         sufficiently aligned and an offset is used at the same time.
33872         (expand_expr_real_1): Likewise.
33874 2014-05-28  Richard Biener  <rguenther@suse.de>
33876         PR middle-end/61045
33877         * fold-const.c (fold_comparison): When folding
33878         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
33879         the sign of the remaining constant operand stays the same.
33881 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
33883         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
33884         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
33885         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
33886         to the assembler.
33887         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
33888         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
33889         (m32bit-doubles) Likewise.
33890         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
33891         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
33892         option for RL78.
33894 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33896         * configure.ac ($gcc_cv_ld_clearcap): New test.
33897         * configure: Regenerate.
33898         * config.in: Regenerate.
33899         * config/sol2.opt (mclear-hwcap): New option.
33900         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
33901         * config/sol2-clearcap.map: Moved here from
33902         testsuite/gcc.target/i386/clearcap.map.
33903         * config/sol2-clearcapv2.map: Move here from
33904         gcc.target/i386/clearcapv2.map.
33905         * config/t-sol2 (install): Depend on install-clearcap-map.
33906         (install-clearcap-map): New target.
33907         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
33908         -mclear-hwcap.
33910 2014-05-28  Richard Biener  <rguenther@suse.de>
33912         * hwint.h (*_HALF_WIDE_INT*): Move to ...
33913         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
33914         ... here and remove the rest.
33915         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
33917 2014-05-28  Richard Biener  <rguenther@suse.de>
33919         PR tree-optimization/61335
33920         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
33921         new range fails, drop to varying.
33923 2014-05-28  Olivier Hainque  <hainque@adacore.com>
33925         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
33926         (CPP_SPEC): Add entry for -mcpu=8548.
33927         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
33928         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
33930 2014-05-28  Tom de Vries  <tom@codesourcery.com>
33932         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
33933         * lra.c (initialize_lra_reg_info_element): Add init of
33934         actual_call_used_reg_set field.
33935         (lra): Call lra_create_live_ranges before lra_inheritance for
33936         -fuse-caller-save.
33937         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
33938         -fuse-caller-save.
33939         * lra-constraints.c (need_for_call_save_p): Use
33940         actual_call_used_reg_set instead of call_used_reg_set for
33941         -fuse-caller-save.
33942         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
33944 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
33945             Tom de Vries  <tom@codesourcery.com>
33947         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
33948         to gccoptlist.
33949         (@item -fuse-caller-save): New item.
33951 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
33952             Tom de Vries  <tom@codesourcery.com>
33954         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
33955         OPT_fuse_caller_save.
33957 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
33958             Tom de Vries  <tom@codesourcery.com>
33960         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
33961         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
33962         get_call_reg_set_usage.
33963         * resource.c (mark_set_resources, mark_target_live_regs): Use
33964         get_call_reg_set_usage.
33965         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
33966         field.
33967         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
33968         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
33969         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
33970         * ira-build.c (ira_create_allocno): Init
33971         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
33972         (create_cap_allocno, propagate_allocno_info)
33973         (propagate_some_info_from_allocno)
33974         (copy_info_to_removed_store_destinations): Handle
33975         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
33976         * ira-costs.c (ira_tune_allocno_costs): Use
33977         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
33979 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
33980             Tom de Vries  <tom@codesourcery.com>
33982         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
33983         and function_used_regs_valid fields.
33984         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
33985         find_all_hard_reg_sets.
33986         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
33987         (get_call_reg_set_usage): New function.
33988         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
33989         * regs.h (get_call_reg_set_usage): Declare.
33991 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
33993         PR libgcc/61152
33994         * config/dbx.h (License): Add Runtime Library Exception.
33995         * config/newlib-stdint.h (License): Same.
33996         * config/rtems.h (License): Same
33997         * config/initfini-array.h (License): Same
33998         * config/v850/v850.h (License): Same.
33999         * config/v850/v850-opts.h (License): Same
34000         * config/v850/rtems.h (License): Same.
34002 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
34004         PR target/61044
34005         * doc/extend.texi (Local Labels): Note that label differences are
34006         not supported for AVR.
34008 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
34009             Olivier Hainque  <hainque@adacore.com>
34011         * rtl.h (set_for_reg_notes): Declare.
34012         * emit-rtl.c (set_for_reg_notes): New function.
34013         (set_unique_reg_note): Use it.
34014         * optabs.c (add_equal_note): Likewise
34016 2014-05-27  Andrew Pinski  <apinski@cavium.com>
34018         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
34019         Use <w> for the register in assembly template.
34020         (stack_protect_test): Use the mode of operands[0] for the result.
34021         (stack_protect_test_<mode>): Use <w> for the register
34022         in assembly template.
34024 2014-05-27  DJ Delorie  <dj@redhat.com>
34026         * config/rx/rx.c (add_vector_labels): New.
34027         (rx_output_function_prologue): Call it.
34028         (rx_handle_func_attribute): Don't require empty arguments.
34029         (rx_handle_vector_attribute): New.
34030         (rx_attribute_table): Add "vector" attribute.
34031         * doc/extend.texi (interrupt, vector): Document new/changed
34032         RX-specific attributes.
34034         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
34036 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
34038         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
34039         predicate to detect a negative quotient.
34041 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
34043         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
34044         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
34045         Add X - Y CMP 0 to X CMP Y transformation.
34046         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
34048 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
34050         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
34051         before printing.
34053 2014-05-27  Steve Ellcey  <sellcey@mips.com>
34055         * config/mips/mips.c: Add include of cgraph.h.
34057 2014-05-27  Richard Biener  <rguenther@suse.de>
34059         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
34061 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
34063         PR libgcc/61152
34064         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
34065         * config/arm/arm-cores.def (License): Same.
34066         * config/arm/arm-opts.h (License): Same.
34067         * config/arm/aout.h (License): Same.
34068         * config/arm/bpabi.h (License): Same.
34069         * config/arm/elf.h (License): Same.
34070         * config/arm/linux-elf.h (License): Same.
34071         * config/arm/linux-gas.h (License): Same.
34072         * config/arm/netbsd-elf.h (License): Same.
34073         * config/arm/uclinux-eabi.h (License): Same.
34074         * config/arm/uclinux-elf.h (License): Same.
34075         * config/arm/vxworks.h (License): Same.
34077 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34079         * config/arm/neon.md (neon_bswap<mode>): New pattern.
34080         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
34081         (arm_init_neon_builtins): Handle NEON_BSWAP.
34082         Define required type nodes.
34083         (arm_expand_neon_builtin): Handle NEON_BSWAP.
34084         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
34085         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
34086         * config/arm/iterators.md (VDQHSD): New mode iterator.
34088 2014-05-27  Richard Biener  <rguenther@suse.de>
34090         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
34091         Try using literal operands when comparing value-ranges failed.
34093 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
34095         * ira.c (commutative_operand): Adjust for change to recog_data.
34096         [Missing from previous commit.]
34098 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
34100         * system.h (TEST_BIT): New macro.
34101         * recog.h (alternative_mask): New type.
34102         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
34103         (recog_data_d): Replace alternative_enabled_p array with
34104         enabled_alternatives.
34105         (target_recog): New structure.
34106         (default_target_recog, this_target_recog): Declare.
34107         (get_enabled_alternatives, recog_init): Likewise.
34108         * recog.c (default_target_recog, this_target_recog): New variables.
34109         (get_enabled_alternatives): New function.
34110         (extract_insn): Use it.
34111         (recog_init): New function.
34112         (preprocess_constraints, constrain_operands): Adjust for change to
34113         recog_data.
34114         * postreload.c (reload_cse_simplify_operands): Likewise.
34115         * reload.c (find_reloads): Likewise.
34116         * ira-costs.c (record_reg_classes): Likewise.
34117         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
34118         all alternatives after a disabled one would be skipped.
34119         (ira_implicitly_set_insn_hard_regs): Likewise.
34120         * ira.c (ira_setup_alts): Adjust for change to recog_data.
34121         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
34122         with enabled_alternatives.
34123         * lra.c (free_insn_recog_data): Update accordingly.
34124         (lra_update_insn_recog_data): Likewise.
34125         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
34126         * lra-constraints.c (process_alt_operands): Likewise.  Handle
34127         only_alternative as part of the enabled mask.
34128         * target-globals.h (this_target_recog): Declare.
34129         (target_globals): Add a recog field.
34130         (restore_target_globals): Restore this_target_recog.
34131         * target-globals.c: Include recog.h.
34132         (default_target_globals): Initialize recog field.
34133         (save_target_globals): Likewise.
34134         * reginfo.c (reinit_regs): Call recog_init.
34135         * toplev.c (backend_init_target): Likewise.
34137 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
34139         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
34140         rather than any named insn's code.
34142 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
34144         PR libgcc/61152
34145         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
34146         * config/arm/arm-cores.def (License): Same.
34148 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
34150         * tree.h (decl_comdat_group): Declare.
34151         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
34152         * tree.c (decl_comdat_group): Here.
34154 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
34156         PR rtl-optimization/61222
34157         * combine.c (simplify_shift_const_1): When moving a PLUS outside
34158         the shift, truncate the PLUS operand to the result mode.
34160 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
34162         PR target/61271
34163         * config/i386/i386.c (ix86_rtx_costs)
34164         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
34165         Fix condition.
34167 2014-05-26  Martin Jambor  <mjambor@suse.cz>
34169         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
34170         subreg uses.
34172 2014-05-26  Richard Biener  <rguenther@suse.de>
34174         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
34175         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
34176         Provide specializations.
34177         (wi::int_traits <HOST_WIDE_INT>,
34178         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
34180 2014-05-26  Alan Modra  <amodra@gmail.com>
34182         PR target/61098
34183         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
34184         params and return a bool.  Remove dead code.  Update comment.
34185         Assert we have a const_int source.  Remove bogus code from
34186         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
34187         handling of constants > 2G and reg_equal note, from..
34188         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
34189         return value.  Update comment.  If we can, use a new pseudo
34190         for intermediate calculations.
34191         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
34192         prototype.
34193         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
34194         call to rs6000_emit_set_const in splitter.
34195         (movdi_internal64+2, +3): Likewise.
34197 2014-05-26  Richard Biener  <rguenther@suse.de>
34199         * system.h: Define __STDC_FORMAT_MACROS before
34200         including inttypes.h.
34201         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
34202         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
34203         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
34204         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
34205         HOST_WIDEST_INT_C): Remove.
34206         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
34207         if C99 inttypes.h is not available.
34208         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
34209         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
34210         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
34211         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
34212         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
34213         (struct output_info): Likewise.
34214         (print_statistics): Adjust.
34215         (dump_bitmap_statistics): Likewise.
34216         * bt-load.c (migrate_btr_defs): Print with PRId64.
34217         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
34218         (MAX_SAFE_MULTIPLIER): Adjust.
34219         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
34220         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
34221         dump_cgraph_node): Likewise.
34222         * final.c (dump_basic_block_info): Likewise.
34223         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
34224         * gcov.c (format_gcov): Likewise.
34225         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
34226         for calculation.
34227         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
34228         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
34229         (inline_small_functions, dump_overall_stats, dump_inline_stats):
34230         Use PRId64 for dumping.
34231         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
34232         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
34233         (add_allocno_hard_regs): Adjust.
34234         * loop-doloop.c (doloop_modify): Print using PRId64.
34235         * loop-iv.c (inverse): Compute in uint64_t.
34236         (determine_max_iter, iv_number_of_iterations): Likewise.
34237         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
34238         Print using PRId64.
34239         * lto-streamer-out.c (write_symbol): Use uint64_t.
34240         * mcf.c (CAP_INFINITY): Use int64_t maximum.
34241         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
34242         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
34243         * modulo-sched.c (const_iteration_count): Use int64_t.
34244         (sms_schedule): Dump using PRId64.
34245         * predict.c (dump_prediction): Likewise.
34246         * pretty-print.h (pp_widest_integer): Remove.
34247         * profile.c (get_working_sets, is_edge_inconsistent,
34248         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
34249         * tree-pretty-print.c (pp_double_int): Remove case handling
34250         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
34251         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
34252         and adjust users.
34253         (pass_optimize_bswap::execute): Remove restriction on hosts.
34254         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
34255         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
34256         * tree.c (widest_int_cst_value): Remove.
34257         * tree.h (widest_int_cst_value): Likewise.
34258         * value-prof.c (dump_histogram_value): Print using PRId64.
34259         * gengtype.c (main): Also inject int64_t.
34260         * ggc-page.c (struct max_alignment): Use int64_t.
34261         * alloc-pool.c (struct allocation_object_def): Likewise.
34262         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
34263         for computation.
34264         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
34265         * doc/tm.texi: Regenerated.
34266         * gengtype-lex.l (IWORD): Handle [u]int64_t.
34267         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
34268         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
34269         mmix_output_register_setting): Use [u]int64_t in prototypes.
34270         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
34271         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
34272         mmix_output_octa, mmix_output_shifted_value): Adjust.
34273         (mmix_intval): Adjust.  Remove unreachable case.
34274         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
34276 2014-05-26  Richard Biener  <rguenther@suse.de>
34278         * configure.ac: Drop __int64 type check.  Insist that we
34279         found uint64_t and int64_t.
34280         * hwint.h (HOST_BITS_PER___INT64): Remove.
34281         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
34282         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
34283         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
34284         (HOST_WIDEST_FAST_INT): Remove __int64 case.
34285         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
34286         for dst_q_src_df_rms_cdt.
34287         * configure: Regenerate.
34288         * config.in: Likewise.
34290 2014-05-26  Michael Tautschnig  <mt@debian.org>
34292         PR target/61249
34293         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
34294         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
34296 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
34298         PR rtl-optimization/61278
34299         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
34301 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
34303         PR rtl-optimization/61220
34304         Part of PR rtl-optimization/61225
34305         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
34306         insn; skip split_edge for a block with only one successor.
34308 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
34310         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
34311         for variables.
34313 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
34315         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
34316         (update_vtable_references): New function.
34317         (function_and_variable_visibility): Rewrite also vtable initializers.
34318         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
34320 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
34322         * ggc.h (ggc_grow): New function.
34323         * ggc-none.c (ggc_grow): New function.
34324         * ggc-page.c (ggc_grow): Likewise.
34326 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
34328         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
34329         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
34330         comdat_can_be_unshared_p, cgraph_externally_visible_p,
34331         varpool_externally_visible_p, can_replace_by_local_alias,
34332         update_visibility_by_resolution_info, function_and_variable_visibility,
34333         pass_data_ipa_function_and_variable_visibility,
34334         make_pass_ipa_function_and_variable_visibility,
34335         whole_program_function_and_variable_visibility,
34336         pass_data_ipa_whole_program_visibility,
34337         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
34338         * cgraph.h (cgraph_local_node_p): Declare.
34339         * ipa-visibility.c: New file.
34340         * Makefile.in (OBJS): Add ipa-visiblity.o
34342 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
34344         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
34345         that var decl is available.
34347 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
34349         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
34350         symtab_node pointer.
34351         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
34352         (find_decls_types_r): Do not walk COMDAT_GROUP.
34353         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
34354         * varasm.c (make_decl_one_only): Use set_comdat_group;
34355         create node if needed.
34356         * ipa-inline-transform.c (save_inline_function_body): Update
34357         way we decl->symtab mapping.
34358         * symtab.c (symtab_hash, hash_node, eq_node
34359         symtab_insert_node_to_hashtable): Remove.
34360         (symtab_register_node): Update.
34361         (symtab_unregister_node): Update.
34362         (symtab_get_node): Reimplement as inline function.
34363         (symtab_add_to_same_comdat_group): Update.
34364         (symtab_dissolve_same_comdat_group_list): Update.
34365         (dump_symtab_base): Update.
34366         (verify_symtab_base): Update.
34367         (symtab_make_decl_local): Update.
34368         (fixup_same_cpp_alias_visibility): Update.
34369         (symtab_nonoverwritable_alias): Update.
34370         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
34371         * ipa.c (update_visibility_by_resolution_info): UPdate.
34372         * bb-reorder.c: Include cgraph.h
34373         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
34374         with comdat groups.
34375         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
34376         * cgraph.c (cgraph_get_create_node): Update.
34377         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
34378         and comdat_group_.
34379         (symtab_get_node): Make inline.
34380         (symtab_insert_node_to_hashtable): Remove.
34381         (symtab_can_be_discarded): Update.
34382         (decl_comdat_group): New function.
34383         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
34384         Update.
34385         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
34386         comdat group name.
34387         (read_comdat_group): New function.
34388         (input_node, input_varpool_node): Use it.
34389         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
34390         comdat groups.
34391         * mips.c (mips_start_unique_function): Likewise.
34392         (ix86_code_end): Likewise.
34393         (rs6000_code_end): Likweise.
34394         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
34396 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
34398         * gengtype-state.c (fatal_reading_state): Bring offline.
34399         * optabs.c (widening_optab_handler): Bring offline.
34400         * optabs.h (widening_optab_handler): Likewise.
34401         * final.c (get_attr_length_1): Likewise.
34403 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
34405         * sched-int.h (sd_iterator_cond): Manually tail recurse.
34407 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
34409         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
34410         (ppc440-compare): Include shift with dot.
34411         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
34412         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
34413         without dot.
34414         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
34415         without dot.
34416         (e6500_sfx2): Include it.
34417         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
34418         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
34419         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
34420         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
34421         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
34422         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
34423         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
34424         *lshiftrt_internal1le, *lshiftrt_internal1be,
34425         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
34426         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
34427         *rotldi3_internal10le, *rotldi3_internal10be,
34428         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
34429         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
34430         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
34431         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
34432         define_insns): Use type "shift" in the appropriate alternatives.
34434 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
34436         * config/rs6000/rs6000.md (type): Add "logical".  Delete
34437         "fast_compare".
34438         (dot): Adjust comment.
34439         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
34440         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
34441         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
34442         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
34443         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
34444         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
34445         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
34446         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
34448         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
34449         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
34450         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
34451         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
34452         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
34453         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
34454         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
34455         * config/rs6000/8540.md (ppc8540_su): Adjust.
34456         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
34457         cell-cmp-microcoded): Adjust.
34458         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
34459         * config/rs6000/e500mc.md (e500mc_su): Adjust.
34460         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
34461         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
34462         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
34463         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
34464         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
34465         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
34466         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
34467         Adjust.
34468         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
34469         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
34470         Adjust.  Adjust comment.
34471         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
34472         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
34474 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
34476         * config/rs6000/rs6000.md (type): Add "add".
34477         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
34478         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
34479         define_insns): Use it.
34480         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
34482         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
34483         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
34484         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
34485         * config/rs6000/601.md (ppc601-integer): Adjust.
34486         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
34487         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
34488         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
34489         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
34490         * config/rs6000/8540.md (ppc8540_su): Adjust.
34491         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
34492         cell-cmp-microcoded): Adjust.
34493         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
34494         * config/rs6000/e500mc.md (e500mc_su): Adjust.
34495         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
34496         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
34497         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
34498         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
34499         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
34500         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
34501         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
34502         Adjust.
34503         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
34504         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
34505         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
34506         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
34508 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
34510         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
34511         "delayed_compare", "var_delayed_compare".
34512         (var_shift): New attribute.
34513         (cell_micro): Adjust.
34514         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
34515         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
34516         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
34517         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
34518         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
34519         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
34520         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
34521         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
34522         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
34523         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
34524         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
34525         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
34526         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
34527         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
34528         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
34529         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
34530         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
34531         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
34532         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
34533         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
34534         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
34535         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
34536         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
34537         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
34538         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
34540         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
34541         * config/rs6000/440.md (ppc440-integer): Adjust.
34542         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
34543         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
34544         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
34545         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
34546         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
34547         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
34548         * config/rs6000/8540.md (ppc8540_su): Adjust.
34549         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
34550         cell-cmp-microcoded): Adjust.
34551         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
34552         * config/rs6000/e500mc.md (e500mc_su): Adjust.
34553         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
34554         e500mc64_delayed): Adjust.
34555         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
34556         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
34557         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
34558         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
34559         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
34560         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
34561         power6-delayed-compare, power6-var-delayed-compare): Adjust.
34562         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
34563         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
34564         Adjust comment.
34565         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
34566         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
34568 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
34570         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
34571         (bits): New mode_attr.
34572         (idiv_ldiv): Delete mode_attr.
34573         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
34574         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
34575         rs6000_adjust_priority, is_nonpipeline_insn,
34576         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
34578         * config/rs6000/40x.md (ppc403-idiv): Adjust.
34579         * config/rs6000/440.md (ppc440-idiv): Adjust.
34580         * config/rs6000/476.md (ppc476-idiv): Adjust.
34581         * config/rs6000/601.md (ppc601-idiv): Adjust.
34582         * config/rs6000/603.md (ppc603-idiv): Adjust.
34583         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
34584         ppc620-ldiv): Adjust.
34585         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
34586         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
34587         * config/rs6000/8540.md (ppc8540_divide): Adjust.
34588         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
34589         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
34590         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
34591         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
34592         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
34593         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
34594         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
34595         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
34596         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
34597         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
34598         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
34599         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
34600         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
34601         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
34602         * config/rs6000/titan.md (titan_fxu_div): Adjust.
34604 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
34606         * config/rs6000/rs6000.md (type): Delete "insert_word",
34607         "insert_dword".  Add "insert".
34608         (size): Update comment.
34609         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
34610         insn_must_be_first_in_group): Adjust.
34611         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
34612         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
34613         *insvsi_internal6, insvdi_internal): Adjust.
34615         * config/rs6000/40x.md (ppc403-integer): Adjust.
34616         * config/rs6000/440.md (ppc440-integer): Adjust.
34617         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
34618         * config/rs6000/601.md (ppc601-integer): Adjust.
34619         * config/rs6000/603.md (ppc603-integer): Adjust.
34620         * config/rs6000/6xx.md (ppc604-integer): Adjust.
34621         * config/rs6000/7450.md (ppc7450-integer): Adjust.
34622         * config/rs6000/7xx.md (ppc750-integer): Adjust.
34623         * config/rs6000/8540.md (ppc8540_su): Adjust.
34624         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
34625         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
34626         * config/rs6000/e500mc.md (e500mc_su): Adjust.
34627         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
34628         * config/rs6000/e5500.md (e5500_sfx): Adjust.
34629         * config/rs6000/e6500.md (e6500_sfx): Adjust.
34630         * config/rs6000/mpc.md (mpccore-integer): Adjust.
34631         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
34632         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
34633         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
34634         * config/rs6000/power7.md (power7-integer): Adjust.
34635         * config/rs6000/power8.md (power8-1cyc): Adjust.
34636         * config/rs6000/rs64.md (rs64a-integer): Adjust.
34637         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
34639 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
34641         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
34642         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
34643         (size): New attribute.
34644         (dot): New attribute.
34645         (cell_micro): Adjust.
34646         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
34647         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
34648         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
34649         umuldi3_highpart): Adjust.
34650         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
34651         rs6000_adjust_priority, is_nonpipeline_insn,
34652         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
34654         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
34655         ppc405-imul3): Adjust.
34656         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
34657         * config/rs6000/476.md (ppc476-imul): Adjust.
34658         * config/rs6000/601.md (ppc601-imul): Adjust.
34659         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
34660         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
34661         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
34662         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
34663         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
34664         Adjust.
34665         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
34666         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
34667         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
34668         cell-imul): Adjust.
34669         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
34670         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
34671         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
34672         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
34673         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
34674         * config/rs6000/mpc.md (mpccore-imul): Adjust.
34675         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
34676         power4-lmul, power4-imul, power4-imul3): Adjust.
34677         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
34678         power5-lmul, power5-imul, power5-imul3): Adjust.
34679         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
34680         power6-lmul, power6-imul, power6-imul3): Adjust.
34681         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
34682         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
34684         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
34685         rs64a-lmul): Adjust.
34686         * config/rs6000/titan.md (titan_imul): Adjust.
34688 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
34690         * config/rs6000/rs6000.md (type): Add new value "halfmul".
34691         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
34692         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
34693         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
34694         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
34695         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
34696         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
34697         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
34698         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
34699         * config/rs6000/titan.md: Delete nonsensical comment.
34700         (titan_imul): Add type imul3.
34701         (titan_mulhw): Remove type imul3; add type halfmul.
34703 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
34705         * config/rs6000/rs6000.md (type): Reorder, reformat.
34707 2014-05-23  Martin Jambor  <mjambor@suse.cz>
34709         PR tree-optimization/53787
34710         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
34711         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
34712         analysis_done, update all uses.
34713         * ipa-prop.c: Include domwalk.h
34714         (param_analysis_info): Removed.
34715         (param_aa_status): New type.
34716         (ipa_bb_info): Likewise.
34717         (func_body_info): Likewise.
34718         (ipa_get_bb_info): New function.
34719         (aa_overwalked): Likewise.
34720         (find_dominating_aa_status): Likewise.
34721         (parm_bb_aa_status_for_bb): Likewise.
34722         (parm_preserved_before_stmt_p): Changed to use new param AA info.
34723         (load_from_unmodified_param): Accept func_body_info as a parameter
34724         instead of parms_ainfo.
34725         (parm_ref_data_preserved_p): Changed to use new param AA info.
34726         (parm_ref_data_pass_through_p): Likewise.
34727         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
34728         (compute_complex_assign_jump_func): Changed to use new param AA info.
34729         (compute_complex_ancestor_jump_func): Likewise.
34730         (ipa_compute_jump_functions_for_edge): Likewise.
34731         (ipa_compute_jump_functions): Removed.
34732         (ipa_compute_jump_functions_for_bb): New function.
34733         (ipa_analyze_indirect_call_uses): Likewise, moved variable
34734         declarations down.
34735         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
34736         and info, moved variable declarations down.
34737         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
34738         node and info.
34739         (ipa_analyze_stmt_uses): Likewise.
34740         (ipa_analyze_params_uses): Removed.
34741         (ipa_analyze_params_uses_in_bb): New function.
34742         (ipa_analyze_controlled_uses): Likewise.
34743         (free_ipa_bb_info): Likewise.
34744         (analysis_dom_walker): New class.
34745         (ipa_analyze_node): Handle node-specific forbidden analysis,
34746         initialize and free func_body_info, use dominator walker.
34747         (ipcp_modif_dom_walker): New class.
34748         (ipcp_transform_function): Create and free func_body_info, use
34749         ipcp_modif_dom_walker, moved a lot of functionality there.
34751 2014-05-23  Marek Polacek  <polacek@redhat.com>
34752             Jakub Jelinek  <jakub@redhat.com>
34754         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
34755         * gcc.c (sanitize_spec_function): Likewise.
34756         * convert.c (convert_to_integer): Include "ubsan.h".  Add
34757         floating-point to integer instrumentation.
34758         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
34759         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
34760         SANITIZE_NONDEFAULT.
34761         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
34762         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
34763         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
34764         * ubsan.c: Include "realmpfr.h" and "dfp.h".
34765         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
34766         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
34767         float/double/long double.
34768         (ubsan_instrument_float_cast): New function.
34769         * ubsan.h (ubsan_instrument_float_cast): Declare.
34771 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
34773         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
34774         predicate.
34775         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
34776         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
34777         Adjust for tailcalling through registers.
34778         * config/aarch64/aarch64.h (enum reg_class): New caller save
34779         register class.
34780         (REG_CLASS_NAMES): Likewise.
34781         (REG_CLASS_CONTENTS): Likewise.
34782         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
34783         Allow tailcalling without decls.
34785 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
34787         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
34788         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
34790         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
34791         gsi, and variables v_* to v*.
34793 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
34795         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
34797 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
34799         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
34800         * omp-low.c: Update accordingly.
34802         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
34803         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
34804         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
34805         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
34806         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
34807         GF_OMP_TARGET_KIND_UPDATE.
34809         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
34810         Explicitly enumerate the expected region types.
34812 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
34814         PR other/56955
34815         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
34816         documentation; the old documentation didn't clearly state the
34817         constraints on the contents of the pointed-to storage.
34819 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34821         Fix bootstrap error on ia64
34822         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
34823         Return default value.
34825 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34827         PR tree-optimization/54733
34828         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
34829         (CMPNOP): Define.
34830         (find_bswap_or_nop_load): New.
34831         (find_bswap_1): Renamed to ...
34832         (find_bswap_or_nop_1): This. Also add support for memory source.
34833         (find_bswap): Renamed to ...
34834         (find_bswap_or_nop): This. Also add support for memory source and
34835         detection of bitwise operations equivalent to load in target
34836         endianness.
34837         (execute_optimize_bswap): Likewise. Also move its leading comment back
34838         in place and split statement transformation into ...
34839         (bswap_replace): This.
34841 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
34843         PR rtl-optimization/61215
34844         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
34845         simplify_gen_subreg until final substitution.
34847 2014-05-23  Alan Modra  <amodra@gmail.com>
34849         PR target/61231
34850         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
34851         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
34852         Use "Y" constraint rather than "m".
34854 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
34856         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
34857         define.
34858         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
34859         New function declaration.
34860         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
34861         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
34862         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
34863         (aarch64_init_builtins) : Initialize builtins
34864         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
34865         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
34866         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
34867         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
34868         and __builtins_aarch64_set_fpsr.
34869         (aarch64_atomic_assign_expand_fenv): New function.
34870         * config/aarch64/aarch64.md (set_fpcr): New pattern.
34871         (get_fpcr) : Likewise.
34872         (set_fpsr) : Likewise.
34873         (get_fpsr) : Likewise.
34874         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
34875         and UNSPECV_SET_FPSR.
34876         * doc/extend.texi (AARCH64 Built-in Functions) : Document
34877         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
34878         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
34880 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
34882         PR rtl-optimization/60969
34883         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
34884         constraints.  Set up mem cost for NO_REGS case.
34886 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
34888         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
34890 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
34892         * config/darwin.c: Include "lto-section-names.h".
34893         (LTO_SEGMENT_NAME): Don't define.
34894         * config/i386/winnt.c: Include "lto-section-names.h".
34895         * lto-streamer.c: Include "lto-section-names.h".
34896         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
34897         * lto-wrapper.c: Include "lto-section-names.h".
34898         (LTO_SECTION_NAME_PREFIX): Don't define.
34899         * lto-section-names.h: New file.
34900         * cgraphunit.c: Include "lto-section-names.h".
34902 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
34904         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
34906 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
34908         PR target/61208
34909         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
34911 2014-05-22  Nick Clifton  <nickc@redhat.com>
34913         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
34915 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
34917         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
34918         -> (T)A transformation to integer types.
34920 2014-05-22  Teresa Johnson  <tejohnson@google.com>
34922         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
34923         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
34924         (gcov_rewrite): Use gcov_nonruntime_assert.
34925         (gcov_open): Ditto.
34926         (gcov_write_words): Ditto.
34927         (gcov_write_length): Ditto.
34928         (gcov_read_words): Use gcov_nonruntime_assert, and remove
34929         gcc_assert from IN_LIBGCOV code.
34930         (gcov_read_summary): Use gcov_error to flag profile corruption.
34931         (gcov_sync): Use gcov_nonruntime_assert.
34932         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
34933         (gcov_histo_index): Use gcov_nonruntime_assert.
34934         (static void gcov_histogram_merge): Ditto.
34935         (compute_working_sets): Ditto.
34936         * gcov-io.h (gcov_nonruntime_assert): Define.
34937         (gcov_error): Define for !IN_LIBGCOV
34939 2014-05-22  Richard Biener  <rguenther@suse.de>
34941         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
34942         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
34943         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
34944         and deallocation site.
34945         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34946         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
34947         passing through the incoming points-to set.
34948         (handle_lhs_call): Use flags argument instead of recomputing it.
34949         (find_func_aliases_for_call): Call handle_lhs_call with proper
34950         call return flags.
34952 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
34954         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
34955         all padding bits in REAL_VALUE_TYPE are cleared.
34957 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34959         Cleanup and improve multipass_dfa_lookahead_guard
34960         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
34961         (core2i7_first_cycle_multipass_begin,)
34962         (core2i7_first_cycle_multipass_issue,)
34963         (core2i7_first_cycle_multipass_backtrack): Update signature.
34964         * config/ia64/ia64.c
34965         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
34966         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
34967         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
34968         hook definition.
34969         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
34970         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
34971         values.
34972         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
34973         return values.
34974         * doc/tm.texi: Regenerate.
34975         * doc/tm.texi.in
34976         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
34977         * haifa-sched.c (ready_try): Make signed to allow negative values.
34978         (rebug_ready_list_1): Update.
34979         (choose_ready): Simplify.
34980         (sched_extend_ready_list): Update.
34982 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34984         Remove IA64 speculation tweaking flags
34985         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
34986         speculation tuning flags.
34987         (msched-prefer-non-data-spec-insns,)
34988         (msched-prefer-non-control-spec-insns): Obsolete options.
34989         * haifa-sched.c (choose_ready): Remove handling of
34990         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
34991         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
34992         and PREFER_NON_DATA_SPEC.
34993         * sel-sched.c (process_spec_exprs): Remove handling of
34994         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
34996 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34998         Improve scheduling debug output
34999         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
35000         (advance_one_cycle): Update.
35001         (schedule_insn, queue_to_ready): Add debug printouts.
35002         (debug_ready_list_1): New static function.
35003         (debug_ready_list): Update.
35004         (max_issue): Add debug printouts.
35005         (dump_insn_stream): New static function.
35006         (schedule_block): Use it.  Also better indent printouts.
35008 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35010         Fix sched_insn debug counter
35011         * haifa-sched.c (schedule_insn): Update.
35012         (struct haifa_saved_data): Add nonscheduled_insns_begin.
35013         (save_backtrack_point, restore_backtrack_point): Update.
35014         (first_nonscheduled_insn): New static function.
35015         (queue_to_ready, choose_ready): Use it.
35016         (schedule_block): Init nonscheduled_insns_begin.
35017         (sched_emit_insn): Update.
35020 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
35022         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
35023         to GENERAL_REGS.
35024         (aarch64_secondary_reload) : LikeWise.
35025         (aarch64_class_max_nregs) : Remove CORE_REGS.
35026         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
35027         (REG_CLASS_NAMES) : Likewise.
35028         (REG_CLASS_CONTENTS) : LikeWise.
35029         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
35031 2014-05-21  Guozhi Wei  <carrot@google.com>
35033         PR target/61202
35034         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
35035         constraint.
35036         (vqdmulhq_n_s16): Likewise.
35038 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
35040         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
35042 2014-05-21  Marek Polacek  <polacek@redhat.com>
35044         PR sanitizer/61272
35045         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
35047 2014-05-21  Martin Jambor  <mjambor@suse.cz>
35049         * doc/invoke.texi (Optimize Options): Document parameters
35050         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
35051         ipa-cp-array-index-hint-bonus.
35053 2014-05-21  Mark Wielaard  <mjw@redhat.com>
35055         PR debug/16063
35056         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
35057         version >= 3 or not strict DWARF.
35058         * langhooks.h (struct lang_hooks_for_types): Add
35059         enum_underlying_base_type.
35060         * langhooks.c (lhd_enum_underlying_base_type): New function.
35061         * gcc/langhooks.h (struct lang_hooks_for_types): Add
35062         enum_underlying_base_type.
35063         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
35064         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
35065         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
35067 2014-05-21  Richard Biener  <rguenther@suse.de>
35069         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
35071 2014-05-21  John Marino  <gnugcc@marino.st>
35073         * config.gcc (*-*-dragonfly*): New target.
35074         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
35075         * configure: Regenerate.
35076         * config/dragonfly-stdint.h: New.
35077         * config/dragonfly.h: New.
35078         * config/dragonfly.opt: New.
35079         * config/i386/dragonfly.h: New.
35080         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
35082 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35084         * tree.def (VOID_CST): New.
35085         * tree-core.h (TI_VOID): New.
35086         * tree.h (void_node): New.
35087         * tree.c (tree_node_structure_for_code, tree_code_size)
35088         (iterative_hash_expr): Handle VOID_CST.
35089         (build_common_tree_nodes): Initialize void_node.
35091 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
35093         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
35094         functions.
35095         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
35097         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
35098         more places.
35100         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
35101         flag_reorder_blocks_and_partition.
35102         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
35104 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
35106         PR target/54236
35107         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
35108         constraints.
35109         (*addc_r_t): Add new insn_and_split.
35111 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
35113         PR middle-end/61252
35114         * omp-low.c (handle_simd_reference): New function.
35115         (lower_rec_input_clauses): Use it.  Defer adding reference
35116         initialization even for reduction without placeholder if in simd,
35117         handle it properly later on.
35119 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
35121         PR tree-optimization/60899
35122         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
35123         assume all static symbols will have definition wile parsing and
35124         check the do have definition later in compilation; check that
35125         variable referring symbol will be output before concluding that
35126         reference is safe; be conservative for referring local statics;
35127         be more precise about when comdat is output in other partition.
35129 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
35131         PR bootstrap/60984
35132         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
35133         parameter.
35134         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
35135         (ipa_inline): Loop inline_to_all_callers until no more aliases
35136         are removed.
35138 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
35140         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
35141         set writeonly flag only for vars actually written to.
35143 2014-05-20  Dehao Chen  <dehao@google.com>
35145         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
35146         and callee count to get clone count.
35147         * tree-inline.c (expand_call_inline): Use callee count instead of bb
35148         count in copy_body.
35150 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
35152         PR rtl-optimization/61243
35153         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
35155 2014-05-20  Xinliang David Li  <davidxl@google.com>
35157         * cgraphunit.c (walk_polymorphic_call_targets): Add
35158         dbgcnt and fopt-info support.
35159         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
35160         * ipa-devirt.c (ipa_devirt): Ditto.
35161         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
35162         * ipa.c (walk_polymorphic_call_targets): Ditto.
35163         * gimple-fold.c (fold_gimple_assign): Ditto.
35164         (gimple_fold_call): Ditto.
35165         * dbgcnt.def: New counter.
35167 2014-05-20  DJ Delorie  <dj@redhat.com>
35169         * config/msp430/msp430.md (split): Don't allow subregs when
35170         splitting SImode adds.
35171         (andneghi): Fix subtraction logic.
35172         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
35174 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
35176         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
35177         symbols.
35178         * except.c (switch_to_exception_section, resolve_unique_section,
35179         get_named_text_section, default_function_rodata_section,
35180         align_variable, get_block_for_decl, default_section_type_flags):
35181         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
35182         * symtab.c (symtab_add_to_same_comdat_group,
35183         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
35184         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
35185         Likewise.
35186         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
35187         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
35188         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
35189         (c6x_function_in_section_p): Likewise.
35190         * config/darwin.c (machopic_select_section): Likewise.
35191         * config/arm/arm.c (arm_function_in_section_p): Likewise.
35192         * config/mips/mips.c (mips_function_rodata_section): Likewise.
35193         * config/mep/mep.c (mep_select_section): LIkewise.
35194         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
35196 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
35198         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
35199         EH region of calls to pure functions that can throw an exception.
35200         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
35201         (copy_reference_ops_from_call): Also copy the EH region of the call if
35202         it can throw an exception.
35204 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35206         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
35207         nested VEC_SELECTs that are inverses of each other.
35209 2014-05-20  Richard Biener  <rguenther@suse.de>
35211         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
35212         (extract_and_process_scc_for_name): not here.
35213         (cond_dom_walker::before_dom_children): Only process
35214         stmts that end the BB in interesting ways.
35215         (run_scc_vn): Mark param uses as visited.
35217 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35219         * config/arm/arm.md (arith_shiftsi): Do not predicate for
35220         arm_restrict_it.
35222 2014-05-20  Nick Clifton  <nickc@redhat.com>
35224         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
35225         (msp430_gimplify_va_arg_expr): New function.
35226         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
35228         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
35229         operand 0 in order to prevent confusion about the number of
35230         registers involved.
35232 2014-05-20  Richard Biener  <rguenther@suse.de>
35234         PR tree-optimization/61221
35235         * tree-ssa-pre.c (el_to_update): Remove.
35236         (eliminate_dom_walker::before_dom_children): Handle released
35237         VDEFs by value-numbering them to the associated VUSE.  Update
35238         stmt immediately for substituted call address.
35239         (eliminate): Remove delayed stmt updating code.
35240         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
35241         possibly late re-numbered vuses.
35242         (vn_reference_lookup_2): Adjust.
35243         (vn_reference_lookup_pieces): Likewise.
35244         (vn_reference_lookup): Likewise.
35246 2014-05-20  Richard Biener  <rguenther@suse.de>
35248         * config.gcc: Remove need_64bit_hwint.
35249         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
35250         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
35251         it to be true.
35252         * config.in: Regenerate.
35253         * configure: Likewise.
35255 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
35257         * doc/extend.texi: Create Label Attributes section,
35258         move all label attributes into it and reference it.
35260 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
35262         * arm.c (thumb1_reorg): When scanning backwards skip anything
35263         that's not a proper insn.
35265 2014-05-19  Richard Biener  <rguenther@suse.de>
35267         PR tree-optimization/61221
35268         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
35269         Do nothing for unreachable blocks.
35270         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
35271         Improve unreachability detection.
35273 2014-05-19  Richard Biener  <rguenther@suse.de>
35275         PR tree-optimization/61209
35276         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
35278 2014-05-19  Nick Clifton  <nickc@redhat.com>
35280         * except.c (init_eh): Fix computation of builtin setjmp buffer
35281         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
35283 2014-05-19  Richard Biener  <rguenther@suse.de>
35285         PR tree-optimization/61184
35286         * tree-vrp.c (is_negative_overflow_infinity): Use
35287         TREE_OVERFLOW_P and do that check first.
35288         (is_positive_overflow_infinity): Likewise.
35289         (is_overflow_infinity): Likewise.
35290         (vrp_operand_equal_p): Properly treat operands with
35291         differing overflow as not equal.
35293 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
35295         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
35296         shift simplification where it was intended.
35298 2014-05-19  Christian Bruel  <christian.bruel@st.com>
35300         PR target/61195
35301         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
35303 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
35305         PR target/61084
35306         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
35307         than wide_int.
35309 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
35311         * reg-notes.def (CROSSING_JUMP): Likewise.
35312         * rtl.h (rtx_def): Update comment for jump flag.
35313         (CROSSING_JUMP_P): Define.
35314         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
35315         of a REG_CROSSING_JUMP note.
35316         * cfghooks.c (tidy_fallthru_edges): Likewise.
35317         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
35318         * emit-rtl.c (try_split): Likewise.
35319         * haifa-sched.c (sched_create_recovery_edges): Likewise.
35320         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
35321         * jump.c (redirect_jump_2): Likewise.
35322         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
35323         (relax_delay_slots): Likewise.
35324         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
35325         (bbit_di): Likewise.
35326         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
35327         * config/sh/sh.md (jump_compact): Likewise.
35328         * bb-reorder.c (rotate_loop): Likewise.
35329         (pass_duplicate_computed_gotos::execute): Likewise.
35330         (add_reg_crossing_jump_notes): Rename to...
35331         (update_crossing_jump_flags): ...this.
35332         (pass_partition_blocks::execute): Update accordingly.
35334 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
35336         * tree.h: Remove extraneous template <>.
35338 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
35340         * ipa.c (symtab_remove_unreachable_nodes): Remove
35341         symbol from comdat group if its body was eliminated.
35342         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
35343         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
35344         (symtab_unregister_node): ... this one.
35345         (verify_symtab_base): More strict checking of comdats.
35346         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
35348 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
35350         * tree-pass.h (make_pass_ipa_comdats): New pass.
35351         * timevar.def (TV_IPA_COMDATS): New timevar.
35352         * passes.def (pass_ipa_comdats): Add.
35353         * Makefile.in (OBJS): Add ipa-comdats.o
35354         * ipa-comdats.c: New file.
35356 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
35358         * ipa.c (update_visibility_by_resolution_info): New function.
35359         (function_and_variable_visibility): Use it.
35361 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
35363         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
35364         New functions.
35365         (FOR_EACH_DEFINED_SYMBOL): New macro.
35366         (varpool_first_static_initializer, varpool_next_static_initializer,
35367         varpool_first_defined_variable, varpool_next_defined_variable):
35368         Fix comments.
35369         (symtab_in_same_comdat_p): Correctly deal with inline functions.
35371 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
35373         * ggc-page.c (ggc_handle_finalizers): Add comment.
35375 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
35377         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
35378         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
35379         (ggc_internal_cleared_alloc): Likewise.
35380         * ggc-page.c (finalizer): New class.
35381         (vec_finalizer): Likewise.
35382         (globals::finalizers): New member.
35383         (globals::vec_finalizers): Likewise.
35384         (ggc_internal_alloc): Record the finalizer if any for the block being
35385         allocated.
35386         (ggc_handle_finalizers): New function.
35387         (ggc_collect): Call ggc_handle_finalizers.
35388         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
35389         finalizer.
35390         (ggc_internal_cleared_alloc): Likewise.
35391         (finalize): New function.
35392         (need_finalization_p): Likewise.
35393         (ggc_alloc): Install the type's destructor as the finalizer if it
35394         might do something.
35395         (ggc_cleared_alloc): Likewise.
35396         (ggc_vec_alloc): Likewise.
35397         (ggc_cleared_vec_alloc): Likewise.
35399 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
35401         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
35403 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
35405         * alias.c (record_alias_subset): Adjust.
35406         * bitmap.c (bitmap_element_allocate): Likewise.
35407         (bitmap_gc_alloc_stat): Likewise.
35408         * cfg.c (init_flow): Likewise.
35409         (alloc_block): Likewise.
35410         (unchecked_make_edge): Likewise.
35411         * cfgloop.c (alloc_loop): Likewise.
35412         (flow_loops_find): Likewise.
35413         (rescan_loop_exit): Likewise.
35414         * cfgrtl.c (init_rtl_bb_info): Likewise.
35415         * cgraph.c (insert_new_cgraph_node_version): Likewise.
35416         (cgraph_allocate_node): Likewise.
35417         (cgraph_create_edge_1): Likewise.
35418         (cgraph_allocate_init_indirect_info): Likewise.
35419         * cgraphclones.c (cgraph_clone_edge): Likewise.
35420         * cgraphunit.c (add_asm_node): Likewise.
35421         (init_lowered_empty_function): Likewise.
35422         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
35423         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
35424         (alpha_use_linkage): Likewise.
35425         * config/arc/arc.c (arc_init_machine_status): Likewise.
35426         * config/arm/arm.c (arm_init_machine_status): Likewise.
35427         * config/avr/avr.c (avr_init_machine_status): Likewise.
35428         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
35429         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
35430         * config/cris/cris.c (cris_init_machine_status): Likewise.
35431         * config/darwin.c (machopic_indirection_name): Likewise.
35432         (darwin_build_constant_cfstring): Likewise.
35433         (darwin_enter_string_into_cfstring_table): Likewise.
35434         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
35435         * config/frv/frv.c (frv_init_machine_status): Likewise.
35436         * config/i386/i386.c (get_dllimport_decl): Likewise.
35437         (ix86_init_machine_status): Likewise.
35438         (assign_386_stack_local): Likewise.
35439         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
35440         (i386_pe_maybe_record_exported_symbol): Likewise.
35441         (i386_pe_record_stub): Likewise.
35442         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
35443         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
35444         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
35445         (m32c_note_pragma_address): Likewise.
35446         * config/mep/mep.c (mep_init_machine_status): Likewise.
35447         (mep_note_pragma_flag): Likewise.
35448         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
35449         (mips16_local_alias): Likewise.
35450         (mips_init_machine_status): Likewise.
35451         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
35452         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
35453         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
35454         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
35455         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
35456         * config/pa/pa.c (pa_init_machine_status): Likewise.
35457         (pa_get_deferred_plabel): Likewise.
35458         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
35459         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
35460         (rs6000_init_machine_status): Likewise.
35461         (output_toc): Likewise.
35462         * config/s390/s390.c (s390_init_machine_status): Likewise.
35463         * config/score/score.c (score_output_external): Likewise.
35464         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
35465         * config/spu/spu.c (spu_init_machine_status): Likewise.
35466         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
35467         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
35468         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
35469         * coverage.c (coverage_end_function): Likewise.
35470         * dbxout.c (dbxout_init): Likewise.
35471         * doc/gty.texi: Don't mention variable_size attribute.
35472         * dwarf2cfi.c (new_cfi): Adjust.
35473         (new_cfi_row): Likewise.
35474         (copy_cfi_row): Likewise.
35475         (create_cie_data): Likewise.
35476         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
35477         (new_loc_descr): Likewise.
35478         (find_AT_string_in_table): Likewise.
35479         (add_addr_table_entry): Likewise.
35480         (new_die): Likewise.
35481         (add_var_loc_to_decl): Likewise.
35482         (clone_die): Likewise.
35483         (clone_as_declaration): Likewise.
35484         (break_out_comdat_types): Likewise.
35485         (new_loc_list): Likewise.
35486         (add_loc_descr_to_each): Likewise.
35487         (add_location_or_const_value_attribute): Likewise.
35488         (add_linkage_name): Likewise.
35489         (lookup_filename): Likewise.
35490         (dwarf2out_var_location): Likewise.
35491         (new_line_info_table): Likewise.
35492         (dwarf2out_init): Likewise.
35493         (mem_loc_descriptor): Likewise.
35494         (loc_descriptor): Likewise.
35495         (add_const_value_attribute): Likewise.
35496         (tree_add_const_value_attribute): Likewise.
35497         (comp_dir_string): Likewise.
35498         (dwarf2out_vms_debug_main_pointer): Likewise.
35499         (string_cst_pool_decl): Likewise.
35500         * emit-rtl.c (set_mem_attrs): Likewise.
35501         (get_reg_attrs): Likewise.
35502         (start_sequence): Likewise.
35503         (init_emit): Likewise.
35504         (init_emit_regs): Likewise.
35505         * except.c (init_eh_for_function): Likewise.
35506         (gen_eh_region): Likewise.
35507         (gen_eh_region_catch): Likewise.
35508         (gen_eh_landing_pad): Likewise.
35509         (add_call_site): Likewise.
35510         * function.c (add_frame_space): Likewise.
35511         (insert_temp_slot_address): Likewise.
35512         (assign_stack_temp_for_type): Likewise.
35513         (get_hard_reg_initial_val): Likewise.
35514         (allocate_struct_function): Likewise.
35515         (prepare_function_start): Likewise.
35516         (types_used_by_var_decl_insert): Likewise.
35517         * gengtype.c (variable_size_p): Remove function.
35518         (enum alloc_quantity): Remove enum.
35519         (write_typed_alloc_def): Remove function.
35520         (write_typed_struct_alloc_def): Likewise.
35521         (write_typed_typedef_alloc_def): Likewise.
35522         (write_typed_alloc_defns): Likewise.
35523         (main): Adjust.
35524         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
35525         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
35526         * ggc.h (ggc_alloc): new function.
35527         (ggc_cleared_alloc): Likewise.
35528         (ggc_vec_alloc): Template on type of vector element, and remove
35529         element size argument.
35530         (ggc_cleared_vec_alloc): Likewise.
35531         * gimple.c (gimple_build_omp_for): Adjust.
35532         (gimple_copy): Likewise.
35533         * ipa-cp.c (get_replacement_map): Likewise.
35534         (find_aggregate_values_for_callers_subset): Likewise.
35535         (known_aggs_to_agg_replacement_list): Likewise.
35536         * ipa-devirt.c (get_odr_type): Likewise.
35537         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
35538         (read_agg_replacement_chain): Likewise.
35539         * loop-iv.c (get_simple_loop_desc): Likewise.
35540         * lto-cgraph.c (input_node_opt_summary): Likewise.
35541         * lto-section-in.c (lto_new_in_decl_state): Likewise.
35542         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
35543         (input_eh_region): Likewise.
35544         (input_eh_lp): Likewise.
35545         (input_cfg): Likewise.
35546         * optabs.c (set_optab_libfunc): Likewise.
35547         (init_tree_optimization_optabs): Likewise.
35548         (set_conv_libfunc): Likewise.
35549         * passes.c (do_per_function_toporder): Likewise.
35550         * rtl.h: Don't use variable_size gty attribute.
35551         * sese.c (if_region_set_false_region): Adjust.
35552         * stringpool.c (gt_pch_save_stringpool): Likewise.
35553         * target-globals.c (save_target_globals): Likewise.
35554         * toplev.c (general_init): Likewise.
35555         * trans-mem.c (record_tm_replacement): Likewise.
35556         (split_bb_make_tm_edge): Likewise.
35557         * tree-cfg.c (move_sese_region_to_fn): Likewise.
35558         * tree-data-ref.h (lambda_vector_new): Likewise.
35559         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
35560         * tree-iterator.c (tsi_link_before): Likewise.
35561         (tsi_link_after): Likewise.
35562         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
35563         * tree-ssa-loop-niter.c (record_estimate): Likewise.
35564         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
35565         * tree-ssa-operands.h: Don't use variable_size gty attribute.
35566         * tree-ssa.c (init_tree_ssa): Adjust.
35567         * tree-ssanames.c (set_range_info): Likewise.
35568         (get_ptr_info): Likewise.
35569         (duplicate_ssa_name_ptr_info): Likewise.
35570         (duplicate_ssa_name_range_info): Likewise.
35571         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
35572         (unpack_ts_fixed_cst_value_fields): Likewise.
35573         * tree.c (build_fixed): Likewise.
35574         (build_real): Likewise.
35575         (build_string): Likewise.
35576         (decl_priority_info): Likewise.
35577         (decl_debug_expr_insert): Likewise.
35578         (decl_value_expr_insert): Likewise.
35579         (decl_debug_args_insert): Likewise.
35580         (type_hash_add): Likewise.
35581         (build_omp_clause): Likewise.
35582         * ubsan.c (decl_for_type_insert): Likewise.
35583         * varasm.c (get_unnamed_section): Likewise.
35584         (get_noswitch_section): Likewise.
35585         (get_section): Likewise.
35586         (get_block_for_section): Likewise.
35587         (create_block_symbol): Likewise.
35588         (build_constant_desc): Likewise.
35589         (create_constant_pool): Likewise.
35590         (force_const_mem): Likewise.
35591         (record_tm_clone_pair): Likewise.
35592         * varpool.c (varpool_create_empty_node): Likewise.
35594 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
35596         * dwarf2out.c (tree_add_const_value_attribute): Call
35597         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
35598         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
35599         instead of ggc_internal_<x>alloc_stat.
35600         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
35601         (ggc_realloc): Likewise.
35602         * ggc-none.c (ggc_internal_alloc): Likewise.
35603         (ggc_internal_cleared_alloc): Likewise.
35604         * ggc-page.c: Likewise.
35605         * ggc.h (ggc_internal_alloc_stat): Likewise.
35606         (ggc_internal_alloc): Remove macro.
35607         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
35608         (ggc_internal_cleared_alloc): Remove macro.
35609         (GGC_RESIZEVEC): Adjust.
35610         (ggc_resizevar): Remove macro.
35611         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
35612         (ggc_internal_cleared_vec_alloc_stat): Likewise.
35613         (ggc_internal_vec_cleared_alloc): Remove macro.
35614         (ggc_alloc_atomic_stat): Drop _stat suffix.
35615         (ggc_alloc_atomic): Remove macro.
35616         (ggc_alloc_cleared_atomic): Remove macro.
35617         (ggc_alloc_string_stat): Drop _stat suffix.
35618         (ggc_alloc_string): Remove macro.
35619         (ggc_alloc_rtx_def_stat): Adjust.
35620         (ggc_alloc_tree_node_stat): Likewise.
35621         (ggc_alloc_cleared_tree_node_stat): Likewise.
35622         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
35623         (ggc_alloc_cleared_simd_clone_stat): Likewise.
35624         * gimple.c (gimple_build_omp_for): Likewise.
35625         (gimple_copy): Likewise.
35626         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
35627         * toplev.c (realloc_for_line_map): Adjust.
35628         * tree-data-ref.h (lambda_vector_new): Likewise.
35629         * tree-phinodes.c (allocate_phi_node): Likewise.
35630         * tree.c (grow_tree_vec_stat): Likewise.
35631         * vec.h (va_gc::reserve): Adjust.
35633 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
35635         * config/microblaze/microblaze.c (break_handler): New Declaration.
35636         (microblaze_break_function_p,microblaze_is_break_handler): New.
35637         (compute_frame_size): Use microblaze_break_function_p.
35638         Add the test of break_handler.
35639         (microblaze_function_prologue) : Add the test of variable
35640         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
35641         (microblaze_function_epilogue) : Add the test of break_handler.
35642         (microblaze_globalize_label) : Add the test of break_handler.
35643         Check the name by BREAK_HANDLER_NAME.
35645         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
35647         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
35648         microblaze_is_break_handler test.
35649         (call_internal1,call_value_intern): Use microblaze_break_function_p.
35650         Use SYMBOL_REF_DECL.
35652         * config/microblaze/microblaze-protos.h
35653         (microblaze_break_function_p,microblaze_is_break_handler):
35654         New Declaration.
35656         * doc/extend.texi (MicroBlaze break_handler Functions): Document
35657         new MicroBlaze break_handler functions.
35659 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
35661         * doc/extend.texi (Size of an asm): Move node text according
35662         to its @menu entry position.
35664 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
35666         PR tree-optimization/61140
35667         PR tree-optimization/61150
35668         PR tree-optimization/61197
35669         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
35671 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
35673         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
35675 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
35677         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
35678         __SIZEOF_INT128__ is defined.
35680 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
35682         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
35683         (rs6000_delegitimize_address): Use it.
35685 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
35687         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
35688         inplace argument.  Store the new address in the original MEM when true.
35689         * emit-rtl.c (change_address_1): Likewise.
35690         (adjust_address_1, adjust_automodify_address_1, offset_address):
35691         Update accordingly.
35692         * rtl.h (plus_constant): Add an inplace argument.
35693         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
35694         when true.  Avoid generating (plus X (const_int 0)).
35695         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
35696         in-place.  Pass true to plus_constant.
35697         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
35699 2014-05-16  Dehao Chen  <dehao@google.com>
35701         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
35703 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
35705         PR target/54089
35706         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
35707         patterns.
35708         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
35710 2014-05-16  Dehao Chen  <dehao@google.com>
35712         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
35713         optimize_function_for_size_p.
35714         * regs.h (REG_FREQ_FROM_BB): Likewise.
35716 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
35718         PR target/51244
35719         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
35720         negt_reg_operand cases.
35721         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
35722         predicate.
35723         * config/sh/predicates.md (cbranch_treg_value): Simplify.
35725 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
35727         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
35728         target variants.
35730 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
35732         Revert:
35733         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
35735         * tree-cfg.c (dump_function_to_file): Dump the return type of
35736         functions, in a line to itself before the function body, mimicking
35737         the layout of a C function.
35739 2014-05-16  Dehao Chen  <dehao@google.com>
35741         * cfghooks.c (make_forwarder_block): Use direct computation to
35742         get fall-through edge's count and frequency.
35744 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
35746         * config/arc/arc.c (arc_init): Fix typo in error message.
35747         * config/i386/i386.c (ix86_expand_builtin): Likewise.
35748         (split_stack_prologue_scratch_regno): Likewise.
35749         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
35750         word from error message.
35752 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35754         * ira-costs.c: Fix typo in comment.
35756 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
35758         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
35760 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
35762         * varpool.c (dump_varpool_node): Dump write-only flag.
35763         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
35764         write-only flag.
35765         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
35766         write-only variables.
35767         * ipa.c (process_references): New function.
35768         (set_readonly_bit): New function.
35769         (set_writeonly_bit): New function.
35770         (clear_addressable_bit): New function.
35771         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
35772         fix handling of aliases.
35773         * cgraph.h (struct varpool_node): Add writeonly flag.
35775 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
35777         PR rtl-optimization/60969
35778         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
35779         Calculate costs for this case.
35781 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
35783         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
35784         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
35786 2014-05-16  Richard Biener  <rguenther@suse.de>
35788         PR tree-optimization/61194
35789         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
35790         bool patterns ending in a COND_EXPR.
35792 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35794         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
35796 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35798         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
35799         where we were unable to cost an RTX.
35801 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35803         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
35804         HIGH, LO_SUM.
35806 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35807             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35809         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
35811 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35812             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35814         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
35815         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
35817 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35818             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35820         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
35821         operators.
35823 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35824             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35826         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
35827         DIV/MOD.
35829 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35830             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35832         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
35833         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
35835 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35836             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35838         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
35839         rotates and shifts.
35841 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35842             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35844         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
35845         ZERO_EXTEND and SIGN_EXTEND better.
35847 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35848             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35850         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
35851         logical operations.
35853 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35854             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35856         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
35857         costs when costing loads and stores to memory.
35859 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35860             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
35862         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
35863         for SET RTX.
35865 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35867         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
35869 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35870             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35872         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
35873         to...
35874         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
35875         well formed.
35876         (aarch64_rtx_mult_cost): New.
35877         (aarch64_rtx_costs): Use it, refactor as appropriate.
35879 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35880             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35882         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
35883         emit instructions, return number of instructions which would
35884         be emitted.
35885         (aarch64_add_constant): Update call to aarch64_build_constant.
35886         (aarch64_output_mi_thunk): Likewise.
35887         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
35888         a CONST_DOUBLE.
35890 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35892         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
35893         (TARGET_RTX_COSTS): Call it.
35895 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35897         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
35898         (cortexa57_vector_cost): Likewise.
35899         (cortexa57_tunings): Use them.
35901 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
35903         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
35904         (cpu_addrcost_table): Use it.
35905         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
35906         (aarch64_address_cost): Rewrite using aarch64_classify_address,
35907         move it.
35909 2014-05-16  Richard Biener  <rguenther@suse.de>
35911         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
35912         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
35913         (visit_phi): Ignore edges marked as not executable.
35914         (class cond_dom_walker): New.
35915         (cond_dom_walker::before_dom_children): Value-number
35916         control statements and mark successor edges as not
35917         executable if possible.
35918         (run_scc_vn): First walk all control statements in
35919         dominator order, marking edges as not executable.
35920         * tree-inline.c (copy_edges_for_bb): Be not confused
35921         about random edge flags.
35923 2014-05-16  Richard Biener  <rguenther@suse.de>
35925         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
35927 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
35929         PR target/61193
35930         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
35931         (__TM_simple_begin): Use it.
35932         (__TM_begin): Likewise.
35934 2014-05-15  Martin Jambor  <mjambor@suse.cz>
35936         PR ipa/61085
35937         * ipa-prop.c (update_indirect_edges_after_inlining): Check
35938         type_preserved flag when the indirect edge is polymorphic.
35940 2014-05-15  Martin Jambor  <mjambor@suse.cz>
35942         PR tree-optimization/61090
35943         * tree-sra.c (sra_modify_expr): Pass the current gsi to
35944         build_ref_for_model.
35946 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35948         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
35949         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
35951 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
35953         PR tree-optimization/61158
35954         * fold-const.c (fold_binary_loc): If X is zero-extended and
35955         shiftc >= prec, make sure zerobits is all ones instead of
35956         invoking undefined behavior.
35958 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
35960         * regcprop.h: New file.
35961         * regcprop.c (skip_debug_insn_p): New decl.
35962         (replace_oldest_value_reg): Check skip_debug_insn_p.
35963         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
35964         * shrink-wrap.c: Include regcprop.h.
35965         (prepare_shrink_wrap): Call
35966         copyprop_hardreg_forward_bb_without_debug_insn.
35968 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
35970         * shrink-wrap.h: Update comment.
35971         * shrink-wrap.c: Update comment.
35972         (next_block_for_reg): Rename to live_edge_for_reg.
35973         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
35974         (move_insn_for_shrink_wrap): Split live_edge.
35975         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
35977 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
35979         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
35980         Delete.
35981         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
35982         * config/sparc/sparc.md (fptype_ut699): New attribute.
35983         (in_branch_delay): Return false if -mfix-ut699 is specified and
35984         fptype_ut699 is set to single.
35985         (truncdfsf2): Add fptype_ut699 attribute.
35986         (fix_truncdfsi2): Likewise.
35987         (floatsisf2): Change fptype attribute.
35988         (fix_truncsfsi2): Likewise.
35989         (negtf2_notv9): Delete.
35990         (negtf2_v9): Likewise.
35991         (negtf2_hq): New instruction.
35992         (negtf2): New instruction and splitter.
35993         (negdf2_notv9): Rewrite.
35994         (abstf2_notv9): Delete.
35995         (abstf2_hq_v9): Likewise.
35996         (abstf2_v9): Likewise.
35997         (abstf2_hq): New instruction.
35998         (abstf2): New instruction and splitter.
35999         (absdf2_notv9): Rewrite.
36001 2014-05-14  Cary Coutant  <ccoutant@google.com>
36003         PR debug/61013
36004         * opts.c (common_handle_option): Don't special-case "-g".
36005         (set_debug_level): Default to at least level 2 with "-g".
36007 2014-05-14  DJ Delorie  <dj@redhat.com>
36009         * config/msp430/msp430.c (msp430_builtin): Add
36010         MSP430_BUILTIN_DELAY_CYCLES.
36011         (msp430_init_builtins): Register void __delay_cycles(long long).
36012         (msp430_builtin_decl): Add it.
36013         (cg_magic_constant): New.
36014         (msp430_expand_delay_cycles): New.
36015         (msp430_expand_builtin): Call it.
36016         (msp430_print_operand_raw): Change integer printing from "int" to
36017         HOST_WIDE_INT.
36018         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
36019         (delay_cycles_start): New.
36020         (delay_cycles_end): New.
36021         (delay_cycles_32): New.
36022         (delay_cycles_32x): New.
36023         (delay_cycles_16): New.
36024         (delay_cycles_16x): New.
36025         (delay_cycles_2): New.
36026         (delay_cycles_1): New.
36027         * doc/extend.texi: Document __delay_cycles().
36029 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
36031         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
36032         length attribute computation.
36034 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
36036         PR debug/61188
36037         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
36039 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
36041         PR target/61084
36042         * config/sparc/sparc.md: Fix types of low and high in DI constant
36043         splitter.  Use gen_int_mode in some other splitters.
36045 2014-05-14  Martin Jambor  <mjambor@suse.cz>
36047         PR ipa/60897
36048         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
36050 2014-05-14  James Norris  <jnorris@codesourcery.com>
36052         * omp-low.c (expand_parallel_call): Remove shadow variable.
36053         (expand_omp_taskreg): Likewise.
36055 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
36057         * common/config/i386/i386-common.c
36058         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
36059         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
36060         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
36061         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
36062         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
36063         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
36064         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
36065         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
36066         xsavecintrin.h, xsavesintrin.h.
36067         (x86_64-*-*): Ditto.
36068         * config/i386/clflushoptintrin.h: New.
36069         * config/i386/xsavecintrin.h: Ditto.
36070         * config/i386/xsavesintrin.h: Ditto.
36071         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
36072         (bit_XSAVES): Ditto.
36073         (bit_XSAVES): Ditto.
36074         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
36075         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
36076         -mno-clflushopt.
36077         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
36078         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
36079         OPTION_MASK_ISA_XSAVES.
36080         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
36081         -mxsavec, -mxsaves.
36082         (PTA_CLFLUSHOPT) Define.
36083         (PTA_XSAVEC): Ditto.
36084         (PTA_XSAVES): Ditto.
36085         (ix86_option_override_internal): Handle new options.
36086         (ix86_valid_target_attribute_inner_p): Ditto.
36087         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
36088         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
36089         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
36090         (bdesc_special_args): Add __builtin_ia32_xsaves,
36091         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
36092         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
36093         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
36094         (ix86_expand_builtin): Handle new builtins.
36095         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
36096         (TARGET_CLFLUSHOPT_P): Ditto.
36097         (TARGET_XSAVEC): Ditto.
36098         (TARGET_XSAVEC_P): Ditto.
36099         (TARGET_XSAVES): Ditto.
36100         (TARGET_XSAVES_P): Ditto.
36101         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
36102         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
36103         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
36104         (ANY_XRSTOR): New.
36105         (ANY_XRSTOR64): Ditto.
36106         (xrstor): Ditto.
36107         (xrstor): Change into <xrstor>.
36108         (xrstor_rex64): Change into <xrstor>_rex64.
36109         (xrstor64): Change into <xrstor>64
36110         (clflushopt): New.
36111         * config/i386/i386.opt (mclflushopt): New.
36112         (mxsavec): Ditto.
36113         (mxsaves): Ditto.
36114         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
36115         xsavecintrin.h.
36116         * doc/invoke.texi: Document new options.
36118 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
36120         PR rtl-optimization/60866
36121         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
36122         Default it to -1.  Pass it down to init_simplejump_data.
36123         (init_simplejump_data): New parameter old_seqno.  Pass it down
36124         to get_seqno_for_a_jump.
36125         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
36126         initializing new jump seqno as a last resort.  Add comment.
36127         (sel_redirect_edge_and_branch): Save old seqno of the conditional
36128         jump and pass it down to sel_init_new_insn.
36129         (sel_redirect_edge_and_branch_force): Likewise.
36131 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
36133         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
36134         shifted values to avoid build warning.
36136 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
36138         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
36139         * cfgrtl.c (rtl_merge_blocks): Fix comment.
36140         (cfg_layout_merge_blocks): Likewise.
36141         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
36143 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
36145         PR rtl-optimization/60901
36146         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
36147         bb predecessor belongs to the same scheduling region.  Adjust comment.
36149 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
36151         * doc/sourcebuild.texi: (dfp_hw): Document.
36152         (p8vector_hw): Likewise.
36153         (powerpc_eabi_ok): Likewise.
36154         (powerpc_elfv2): Likewise.
36155         (powerpc_htm_ok): Likewise.
36156         (ppc_recip_hw): Likewise.
36157         (vsx_hw): Likewise.
36159 2014-05-13  Cary Coutant  <ccoutant@google.com>
36161         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
36163 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
36165         * gengtype-parse.c (require3): Eliminate in favor of...
36166         (require4): New.
36167         (require_template_declaration): Update to support optional single *
36168         on a type.
36170         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
36171         (create_user_defined_type): Handle a single level of explicit
36172         pointerness within template arguments.
36173         (struct write_types_data): Add field "kind".
36174         (filter_type_name): Handle "*" character.
36175         (write_user_func_for_structure_ptr): Require a write_types_data
36176         rather than just a prefix string, so that we can look up the kind
36177         of the wtd and use it as an index into wrote_user_func_for_ptr,
36178         ensuring that such functions are written at most once.  Support
36179         subclasses by invoking the marking function of the ultimate base class.
36180         (write_user_func_for_structure_body): Require a write_types_data
36181         rather than just a prefix string, so that we can pass this to
36182         write_user_func_for_structure_ptr.
36183         (write_func_for_structure): Likewise.
36184         (ggc_wtd): Add initializer of new "kind" field.
36185         (pch_wtd): Likewise.
36187         * gengtype.h (enum write_types_kinds): New.
36188         (struct type): Add field wrote_user_func_for_ptr to the "s"
36189         union member.
36191 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
36193         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
36194         instead of const_binop.
36195         (fold_binary_loc): Likewise.
36197 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
36199         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
36200         calculation to match get_ref_base_and_extent.
36202 2014-05-13  Catherine Moore  <clm@codesourcery.com>
36203             Sandra Loosemore  <sandra@codesourcery.com>
36205         * configure.ac: Fix assembly for explicit JALR relocation check.
36206         * configure: Regenerate.
36208 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36210         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
36211         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
36212         Remove associated type declarations and initialisations.
36213         (arm_expand_neon_builtin): Likewise.
36214         (neon_emit_pair_result_insn): Delete.
36215         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
36216         * config/arm/neon.md (neon_vtrn<mode>): Delete.
36217         (neon_vzip<mode>): Likewise.
36218         (neon_vuzp<mode>): Likewise.
36220 2014-05-13  Richard Biener  <rguenther@suse.de>
36222         PR ipa/60973
36223         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
36224         it needs revisiting whether the call still may be tail-called.
36226 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36228         * rtl.def (SYMBOL_REF): Remove middle "0" field.
36229         * rtl.h (block_symbol): Reduce number of fields to 2.
36230         (rtx_def): Add u2.symbol_ref_flags.
36231         (SYMBOL_REF_FLAGS): Use it.
36232         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
36233         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
36234         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
36235         Lower index of SYMBOL_REF_DATA.
36236         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
36237         Print SYMBOL_REF_FLAGS at the same time.
36238         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
36240 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36242         * rtl.def (VAR_LOCATION): Remove "i" field.
36243         * rtl.h (rtx_def): Add u2.var_location_status.
36244         (PAT_VAR_LOCATION_STATUS): Use it.
36245         (gen_rtx_VAR_LOCATION): Declare.
36246         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
36247         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
36248         * var-tracking.c (emit_note_insn_var_location): Remove casts.
36250 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36252         * rtl.def (scratch): Fix outdated comment and remove "0" field.
36253         * gengtype.c (adjust_field_rtx_def): Update accordingly.
36255 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36257         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
36258         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
36259         * rtl.h (rtx_def): Add insn_uid to u2 field.
36260         (RTX_FLAG_CHECK8): Delete in favor of...
36261         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
36262         (INSN_DELETED_P): Update accordingly.
36263         (INSN_UID): Use u2.insn_uid.
36264         (INSN_CHAIN_CODE_P): Define.
36265         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
36266         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
36267         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
36268         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
36269         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
36270         indices accordingly.
36271         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
36272         Update indices for insn-chain rtxes.
36273         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
36274         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
36275         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
36276         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
36277         * combine.c (try_combine): Likewise.
36278         * ira.c (setup_prohibited_mode_move_regs): Likewise.
36280 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36282         * rtl.def (REG): Remove middle field.
36283         * rtl.h (rtx_def): Add orignal_regno to u2.
36284         (ORIGINAL_REGNO): Use it instead of field 1.
36285         (REG_ATTRS): Lower field index accordingly.
36286         * gengtype.c (adjust_field_rtx_def): Remove handling of
36287         ORIGINAL_REGNO.  Move REG_ATTRS index down.
36288         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
36289         code that prints the REGNO.
36291 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36293         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
36294         GENERATOR_FILE.
36296 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36298         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
36300 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
36302         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
36303         (alloc_iv): Lower base expressions containing ADDR_EXPR.
36305 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
36307         * config/aarch64/aarch64-protos.h
36308         (aarch64_hard_regno_caller_save_mode): New prototype.
36309         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
36310         New function.
36311         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
36313 2014-05-13  Christian Bruel  <christian.bruel@st.com>
36315         * target.def (mode_switching): New hook vector.
36316         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
36317         (mode_exit, modepriority_to_mode): Likewise.
36318         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
36319         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
36320         * target.h: Include tm.h and hard-reg-set.h.
36321         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
36322         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
36323         * doc/tm.texi Regenerate.
36324         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
36325         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
36326         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
36327         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
36328         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
36329         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
36330         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
36331         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
36332         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
36333         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
36334         (ix86_emit_mode_set): Hookify.
36335         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
36336         Delete.
36337         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
36338         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
36339         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
36340         (epiphany_mode_priority_to_mode): Remove declaration.
36341         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
36342         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
36343         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
36344         Likewise.
36345         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
36346         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
36347         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
36349 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
36351         PR target/61060
36352         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
36353         is const0_rtx, return immediately.  Don't test count == 0 when
36354         it is always true.
36356 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
36358         * Makefile.in: add shrink-wrap.o.
36359         * config/i386/i386.c: include "shrink-wrap.h"
36360         * function.c: Likewise.
36361         (requires_stack_frame_p, next_block_for_reg,
36362         move_insn_for_shrink_wrap, prepare_shrink_wrap,
36363         dup_block_and_redirect): Move to shrink-wrap.c
36364         (thread_prologue_and_epilogue_insns): Extract three code segments
36365         as functions in shrink-wrap.c
36366         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
36367         shrink-wrap.h
36368         * shrink-wrap.c: New file.
36369         * shrink-wrap.h: New file.
36371 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
36373         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
36374         reference to Solaris.
36376 2014-05-12  Mike Stump  <mikestump@comcast.net>
36378         PR other/31778
36379         * genattrtab.c (filename): Add.
36380         (convert_set_attr_alternative): Improve error message.
36381         (check_defs): Restore read_md_filename for error messages.
36382         (gen_insn): Save filename.
36384 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
36386         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
36387         -fno-local-ivars and -fivar-visibility.
36388         * c-family/c.opt: Make -Wshadow also implicitly enable
36389         -Wshadow-ivar.
36391 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
36393         * doc/tm.texi: Remove reference to deleted macro.
36394         * doc/tm.texi.in: Likewise.
36396 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
36398         PR target/60991
36399         * config/avr/avr.c (avr_out_store_psi): Use correct constant
36400         to restore Y.
36402 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
36404         PR libgcc/61152
36405         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
36406         * config/arm/aout.h (License): Same.
36407         * config/arm/bpabi.h (License): Same.
36408         * config/arm/elf.h (License): Same.
36409         * config/arm/linux-elf.h (License): Same.
36410         * config/arm/linux-gas.h (License): Same.
36411         * config/arm/netbsd-elf.h (License): Same.
36412         * config/arm/uclinux-eabi.h (License): Same.
36413         * config/arm/uclinux-elf.h (License): Same.
36414         * config/arm/vxworks.h (License): Same.
36416 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
36418         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
36419         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
36420         number of operands to 3.
36421         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
36422         * tree-nested.c (convert_nonlocal_omp_clauses,
36423         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
36424         * gimplify.c (gimplify_scan_omp_clauses): Handle
36425         OMP_CLAUSE_LINEAR_STMT.
36426         * omp-low.c (lower_rec_input_clauses): Fix typo.
36427         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
36428         cast between Fortran boolean_type_node and C _Bool if
36429         needed.
36431 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
36433         PR tree-optimization/61136
36434         * wide-int.h (multiple_of_p): Define a version that doesn't return
36435         the quotient.
36436         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
36437         integer_zerop/const_binop pair.
36438         (multiple_of_p): Likewise, converting both operands to widest_int
36439         precision.
36441 2014-05-09  Teresa Johnson  <tejohnson@google.com>
36443         * cgraphunit.c (analyze_functions): Use correct dump file.
36445 2014-05-09  Florian Weimer  <fweimer@redhat.com>
36447         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
36448         expand_used_vars.
36449         (stack_protect_return_slot_p): New function.
36450         (expand_used_vars): Call stack_protect_decl_p and
36451         stack_protect_return_slot_p for -fstack-protector-strong.
36453 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
36454         Andrew Haley <aph@redhat.com>
36455         Richard Sandiford <rdsandiford@googlemail.com>
36457         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
36458         pages.
36460 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
36462         PR middle-end/61111
36463         * fold-const.c (fold_binary_loc): Changed width of mask.
36465 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
36467         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
36468         unsigned int initializers for regno_in, regno_out.
36470 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
36472         PR target/61055
36473         * config/avr/avr.md (cc): Add new attribute set_vzn.
36474         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
36475         Set cc insn attribute to set_vzn instead of set_zn for alternatives
36476         with INC, DEC or NEG.
36477         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
36478         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
36479         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
36481 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36483         Revert:
36484         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36486         * wide-int.cc (UTItype): Define.
36487         (UDWtype): Define for appropriate W_TYPE_SIZE.
36489 2014-05-09  Richard Biener  <rguenther@suse.de>
36491         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
36492         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
36493         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
36494         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
36495         ssa_propagate): Adjust.
36497 2014-05-08  Jeff Law  <law@redhat.com>
36499         PR tree-optimization/61009
36500         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
36501         tri-state rather than a boolean.  When a block is too big to
36502         thread through, inform caller via negative return value.
36503         (thread_across_edge): If a block was too big for normal threading,
36504         then it's too big for a joiner too, so remove temporary equivalences
36505         and return immediately.
36507 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36508             Matthias Klose  <doko@ubuntu.com>
36510         PR driver/61106
36511         * optc-gen.awk: Fix option handling for -Wunused-parameter.
36513 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
36515         PR target/59952
36516         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
36518 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
36520         PR target/61092
36521         * config/alpha/alpha.c: Include gimple-iterator.h.
36522         (alpha_gimple_fold_builtin): New function.  Move
36523         ALPHA_BUILTIN_UMULH folding from ...
36524         (alpha_fold_builtin): ... here.
36525         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
36527 2014-05-08  Wei Mi  <wmi@google.com>
36529         PR target/58066
36530         * config/i386/i386.c (ix86_compute_frame_layout): Update
36531         preferred_stack_boundary for call, expanded from tls descriptor.
36532         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
36533         to depend on SP register.
36534         (*tls_local_dynamic_base_32_gnu): Ditto.
36535         (*tls_local_dynamic_32_once): Ditto.
36536         (tls_global_dynamic_64_<mode>): Set
36537         ix86_tls_descriptor_calls_expanded_in_cfun.
36538         (tls_local_dynamic_base_64_<mode>): Ditto.
36539         (tls_global_dynamic_32): Set
36540         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
36541         to depend on SP register.
36542         (tls_local_dynamic_base_32): Ditto.
36544 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36546         * config/arm/arm_neon.h: Update comment.
36547         * config/arm/neon-docgen.ml: Delete.
36548         * config/arm/neon-gen.ml: Delete.
36549         * doc/arm-neon-intrinsics.texi: Update comment.
36551 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36553         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
36554         and v4sf versions.
36555         (vand, vorr, veor, vorn, vbic): Remove.
36556         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
36557         iterator.
36558         (neon_vsub_unspec): Likewise.
36559         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
36561 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36563         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
36564         (vadd_s16): Likewise.
36565         (vadd_s32): Likewise.
36566         (vadd_f32): Likewise.
36567         (vadd_u8): Likewise.
36568         (vadd_u16): Likewise.
36569         (vadd_u32): Likewise.
36570         (vadd_s64): Likewise.
36571         (vadd_u64): Likewise.
36572         (vaddq_s8): Likewise.
36573         (vaddq_s16): Likewise.
36574         (vaddq_s32): Likewise.
36575         (vaddq_s64): Likewise.
36576         (vaddq_f32): Likewise.
36577         (vaddq_u8): Likewise.
36578         (vaddq_u16): Likewise.
36579         (vaddq_u32): Likewise.
36580         (vaddq_u64): Likewise.
36581         (vmul_s8): Likewise.
36582         (vmul_s16): Likewise.
36583         (vmul_s32): Likewise.
36584         (vmul_f32): Likewise.
36585         (vmul_u8): Likewise.
36586         (vmul_u16): Likewise.
36587         (vmul_u32): Likewise.
36588         (vmul_p8): Likewise.
36589         (vmulq_s8): Likewise.
36590         (vmulq_s16): Likewise.
36591         (vmulq_s32): Likewise.
36592         (vmulq_f32): Likewise.
36593         (vmulq_u8): Likewise.
36594         (vmulq_u16): Likewise.
36595         (vmulq_u32): Likewise.
36596         (vsub_s8): Likewise.
36597         (vsub_s16): Likewise.
36598         (vsub_s32): Likewise.
36599         (vsub_f32): Likewise.
36600         (vsub_u8): Likewise.
36601         (vsub_u16): Likewise.
36602         (vsub_u32): Likewise.
36603         (vsub_s64): Likewise.
36604         (vsub_u64): Likewise.
36605         (vsubq_s8): Likewise.
36606         (vsubq_s16): Likewise.
36607         (vsubq_s32): Likewise.
36608         (vsubq_s64): Likewise.
36609         (vsubq_f32): Likewise.
36610         (vsubq_u8): Likewise.
36611         (vsubq_u16): Likewise.
36612         (vsubq_u32): Likewise.
36613         (vsubq_u64): Likewise.
36614         (vand_s8): Likewise.
36615         (vand_s16): Likewise.
36616         (vand_s32): Likewise.
36617         (vand_u8): Likewise.
36618         (vand_u16): Likewise.
36619         (vand_u32): Likewise.
36620         (vand_s64): Likewise.
36621         (vand_u64): Likewise.
36622         (vandq_s8): Likewise.
36623         (vandq_s16): Likewise.
36624         (vandq_s32): Likewise.
36625         (vandq_s64): Likewise.
36626         (vandq_u8): Likewise.
36627         (vandq_u16): Likewise.
36628         (vandq_u32): Likewise.
36629         (vandq_u64): Likewise.
36630         (vorr_s8): Likewise.
36631         (vorr_s16): Likewise.
36632         (vorr_s32): Likewise.
36633         (vorr_u8): Likewise.
36634         (vorr_u16): Likewise.
36635         (vorr_u32): Likewise.
36636         (vorr_s64): Likewise.
36637         (vorr_u64): Likewise.
36638         (vorrq_s8): Likewise.
36639         (vorrq_s16): Likewise.
36640         (vorrq_s32): Likewise.
36641         (vorrq_s64): Likewise.
36642         (vorrq_u8): Likewise.
36643         (vorrq_u16): Likewise.
36644         (vorrq_u32): Likewise.
36645         (vorrq_u64): Likewise.
36646         (veor_s8): Likewise.
36647         (veor_s16): Likewise.
36648         (veor_s32): Likewise.
36649         (veor_u8): Likewise.
36650         (veor_u16): Likewise.
36651         (veor_u32): Likewise.
36652         (veor_s64): Likewise.
36653         (veor_u64): Likewise.
36654         (veorq_s8): Likewise.
36655         (veorq_s16): Likewise.
36656         (veorq_s32): Likewise.
36657         (veorq_s64): Likewise.
36658         (veorq_u8): Likewise.
36659         (veorq_u16): Likewise.
36660         (veorq_u32): Likewise.
36661         (veorq_u64): Likewise.
36662         (vbic_s8): Likewise.
36663         (vbic_s16): Likewise.
36664         (vbic_s32): Likewise.
36665         (vbic_u8): Likewise.
36666         (vbic_u16): Likewise.
36667         (vbic_u32): Likewise.
36668         (vbic_s64): Likewise.
36669         (vbic_u64): Likewise.
36670         (vbicq_s8): Likewise.
36671         (vbicq_s16): Likewise.
36672         (vbicq_s32): Likewise.
36673         (vbicq_s64): Likewise.
36674         (vbicq_u8): Likewise.
36675         (vbicq_u16): Likewise.
36676         (vbicq_u32): Likewise.
36677         (vbicq_u64): Likewise.
36678         (vorn_s8): Likewise.
36679         (vorn_s16): Likewise.
36680         (vorn_s32): Likewise.
36681         (vorn_u8): Likewise.
36682         (vorn_u16): Likewise.
36683         (vorn_u32): Likewise.
36684         (vorn_s64): Likewise.
36685         (vorn_u64): Likewise.
36686         (vornq_s8): Likewise.
36687         (vornq_s16): Likewise.
36688         (vornq_s32): Likewise.
36689         (vornq_s64): Likewise.
36690         (vornq_u8): Likewise.
36691         (vornq_u16): Likewise.
36692         (vornq_u32): Likewise.
36693         (vornq_u64): Likewise.
36695 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36697         * wide-int.cc (UTItype): Define.
36698         (UDWtype): Define for appropriate W_TYPE_SIZE.
36700 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
36702         PR tree-optimization/59100
36703         * tree-ssa-phiopt.c: Include tree-inline.h.
36704         (neutral_element_p, absorbing_element_p): New functions.
36705         (value_replacement): Handle conditional binary operations with a
36706         neutral or absorbing element.
36708 2014-05-08  Richard Biener  <rguenther@suse.de>
36710         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
36711         folding the expression.
36712         (valueize_expr): Remove.
36713         (visit_reference_op_load): Do not valueize the result of
36714         vn_get_expr_for.
36715         (simplify_binary_expression): Likewise.
36716         (simplify_unary_expression): Likewise.
36718 2014-05-08  Richard Biener  <rguenther@suse.de>
36720         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
36721         looking at TYPE_ARG_TYPES.
36723 2014-05-08  Richard Biener  <rguenther@suse.de>
36725         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
36726         pointer propagation special-case.
36728 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
36730         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
36731         core part of address expressions.
36733 2014-05-08  Alan Modra  <amodra@gmail.com>
36735         PR target/60737
36736         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
36737         loads and stores when -mno-strict-align at any alignment.
36738         (expand_block_clear): Similarly.  Also correct calculation of
36739         instruction count.
36741 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36743         PR middle-end/39246
36744         * tree-complex.c (expand_complex_move): Keep line info when expanding
36745         complex move.
36746         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
36747         of complex expression. Use new argument to display correct location
36748         for values coming from phi statement.
36749         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
36750         (warn_uninitialized_phi): Pass location of phi argument to
36751         warn_uninit.
36752         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
36753         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
36755 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
36757         * config/rs6000/predicates.md (indexed_address_mem): New.
36758         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
36759         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
36760         fpstore_ux, fpstore_u.
36761         (sign_extend, indexed, update): New.
36762         (cell_micro): Adjust.
36763         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
36764         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
36765         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
36766         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
36767         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
36768         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
36769         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
36770         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
36771         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
36772         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
36773         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
36774         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
36775         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
36776         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
36777         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
36779         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
36780         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
36781         *vsx_extract_<mode>_store): Adjust.
36782         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
36783         is_cracked_insn, insn_must_be_first_in_group,
36784         insn_must_be_last_in_group): Adjust.
36786         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
36787         Adjust.
36788         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
36789         ppc440-fpstore): Adjust.
36790         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
36791         ppc476-fpstore): Adjust.
36792         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
36793         ppc601-fpstore): Adjust.
36794         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
36795         Adjust.
36796         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
36797         Adjust.
36798         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
36799         ppc7450-fpstore): Adjust.
36800         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
36801         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
36802         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
36803         Adjust.
36804         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
36805         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
36806         cell-fpstore, cell-fpstore-update): Adjust.
36807         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
36808         ppce300c3_store, ppce300c3_fpstore): Adjust.
36809         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
36810         e500mc_fpstore): Adjust.
36811         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
36812         e500mc64_store, e500mc64_fpstore): Adjust.
36813         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
36814         e5500_fpstore): Adjust.
36815         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
36816         e6500_fpstore): Adjust.
36817         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
36818         Adjust.
36819         * config/rs6000/power4.md (power4-load, power4-load-ext,
36820         power4-load-ext-update, power4-load-ext-update-indexed,
36821         power4-load-update-indexed, power4-load-update, power4-fpload,
36822         power4-fpload-update, power4-store, power4-store-update,
36823         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
36824         Adjust.
36825         * config/rs6000/power5.md (power5-load, power5-load-ext,
36826         power5-load-ext-update, power5-load-ext-update-indexed,
36827         power5-load-update-indexed, power5-load-update, power5-fpload,
36828         power5-fpload-update, power5-store, power5-store-update,
36829         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
36830         Adjust.
36831         * config/rs6000/power6.md (power6-load, power6-load-ext,
36832         power6-load-update, power6-load-update-indexed,
36833         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
36834         power6-fpload-update, power6-store, power6-store-update,
36835         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
36836         Adjust.
36837         * config/rs6000/power7.md (power7-load, power7-load-ext,
36838         power7-load-update, power7-load-update-indexed,
36839         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
36840         power7-fpload-update, power7-store, power7-store-update,
36841         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
36842         Adjust.
36843         * config/rs6000/power8.md (power8-load, power8-load-update,
36844         power8-load-ext, power8-load-ext-update, power8-fpload,
36845         power8-fpload-update, power8-store, power8-store-update-indexed,
36846         power8-fpstore, power8-fpstore-update): Adjust.
36847         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
36848         Adjust.
36849         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
36850         titan_lsu_store, titan_lsu_fpstore): Adjust.
36851         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
36853 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
36855         PR target/60884
36856         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
36857         unrolled byte insns.  Emit address increments after move insns.
36859 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
36861         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
36862         const_gimple, rather than a gimple.
36863         (gimple_call_builtin_p): Likewise, for the three variants.
36865         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
36866         (gimple_call_builtin_p): Likewise, for the three variants.
36868 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
36870         PR tree-optimization/61095
36871         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
36873 2014-05-07  Richard Biener  <rguenther@suse.de>
36875         PR tree-optimization/61034
36876         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
36877         (maybe_skip_until): Use translate to take into account
36878         lattices when trying to do disambiguations.
36879         (get_continuation_for_phi_1): Likewise.
36880         (get_continuation_for_phi): Adjust for added translate arguments.
36881         (walk_non_aliased_vuses): Likewise.
36882         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
36883         (walk_non_aliased_vuses): Likewise.
36884         (call_may_clobber_ref_p_1): Declare.
36885         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
36886         calls.  Stop early if we are only supposed to disambiguate.
36887         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
36889 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
36891         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
36892         Emit an error when the function has arguments.
36894 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
36896         * cfgloop.h (unswitch_loops): Remove.
36897         * doc/passes.texi: Remove references to loop-unswitch.c
36898         * timevar.def (TV_LOOP_UNSWITCH): Remove.
36900 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
36902         * tree-vect-data-refs.c (vect_grouped_load_supported): New
36903         check for loads group of length 3.
36904         (vect_permute_load_chain): New permutations for loads group of
36905         length 3.
36906         * tree-vect-stmts.c (vect_model_load_cost): Change cost
36907         of vec_perm_shuffle for the new permutations.
36909 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
36911         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
36912         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
36913         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
36914         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
36915         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
36916         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
36917         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
36918         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
36920 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
36922         * loop-unswitch.c: Delete.
36924 2014-05-07  Richard Biener  <rguenther@suse.de>
36926         * config.gcc: Always set need_64bit_hwint to yes.
36928 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
36930         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
36931         of using optimize_size.
36933 2014-05-06  Mike Stump  <mikestump@comcast.net>
36935         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
36937 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
36939         * config/i386/sse.md (*mov<mode>_internal)
36940         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
36941         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
36942         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
36943         (*<code><mode>3, *andnot<mode>3<mask_name>)
36944         (<mask_codefor><code><mode>3<mask_name>): Only consider
36945         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
36947 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
36949         Revert:
36950         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
36952         * lra-constraints.c (valid_address_p): Move earlier in file.
36953         Add a constraint argument to the address_info version.
36954         (satisfies_memory_constraint_p): New function.
36955         (satisfies_address_constraint_p): Likewise.
36956         (process_alt_operands, curr_insn_transform): Use them.
36957         (process_address): Pass the constraint to valid_address_p when
36958         checking address operands.
36960 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
36962         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
36963         to their respective blocks.  Fix inadvertent use of "node".
36965 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
36967         * emit-rtl.c (init_derived_machine_modes): New functionm, split
36968         out from...
36969         (init_emit_once): ...here.
36970         * rtl.h (init_derived_machine_modes): Declare.
36971         * toplev.c (do_compile): Call it even if no_backend.
36973 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
36974             Mike Stump  <mikestump@comcast.net>
36975             Richard Sandiford  <rdsandiford@googlemail.com>
36976             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36978         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
36979         (rtx_equal_for_memref_p): Update comment.
36980         (adjust_offset_for_component_ref): Use wide-int interfaces.
36981         * builtins.c (get_object_alignment_2): Likewise.
36982         (c_readstr): Likewise.
36983         (target_char_cast): Add comment.
36984         (determine_block_size): Use wide-int interfaces.
36985         (expand_builtin_signbit): Likewise.
36986         (fold_builtin_int_roundingfn): Likewise.
36987         (fold_builtin_bitop): Likewise.
36988         (fold_builtin_bswap): Likewise.
36989         (fold_builtin_logarithm): Use signop.
36990         (fold_builtin_pow): Likewise.
36991         (fold_builtin_memory_op): Use wide-int interfaces.
36992         (fold_builtin_object_size): Likewise.
36993         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
36994         nb_iterations_estimate.
36995         (record_niter_bound): Use wide-int interfaces.
36996         (get_estimated_loop_iterations_int): Likewise.
36997         (get_estimated_loop_iterations): Likewise.
36998         (get_max_loop_iterations): Likewise.
36999         * cfgloop.h: Include wide-int.h.
37000         (struct nb_iter_bound): Change bound to widest_int.
37001         (struct loop): Change nb_iterations_upper_bound and
37002         nb_iterations_estimate to widest_int.
37003         (record_niter_bound): Switch to use widest_int.
37004         (get_estimated_loop_iterations): Likewise.
37005         (get_max_loop_iterations): Likewise.
37006         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
37007         update for wide-int.
37008         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
37009         * combine.c (try_combine): Likewise.
37010         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
37011         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
37012         interfaces.
37013         (aarch64_float_const_representable_p): Likewise.
37014         * config/arc/arc.c: Include wide-int.h.
37015         (arc_can_use_doloop_p): Use wide-int interfaces.
37016         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
37017         (vfp3_const_double_index): Likewise.
37018         * config/avr/avr.c (avr_out_round): Likewise.
37019         (avr_fold_builtin): Likewise.
37020         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
37021         (bfin_can_use_doloop_p): Likewise.
37022         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
37023         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
37024         * config/i386/i386.c: Include wide-int.h.
37025         (ix86_data_alignment): Use wide-int interfaces.
37026         (ix86_local_alignment): Likewise.
37027         (ix86_emit_swsqrtsf): Update real_from_integer.
37028         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
37029         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
37030         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
37031         (zero_constant): Likewise.
37032         (input_operand): Likewise.
37033         (splat_input_operand): Likewise.
37034         (non_logical_cint_operand): Change const_double to const_wide_int.
37035         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
37036         (easy_altivec_constant): Remove comment.
37037         (paired_expand_vector_init): Use CONSTANT_P.
37038         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
37039         (rs6000_emit_move): Update checks.
37040         (rs6000_aggregate_candidate): Use wide-int interfaces.
37041         (rs6000_expand_ternop_builtin): Likewise.
37042         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
37043         (rs6000_assemble_integer): Likewise.
37044         (rs6000_hash_constant): Likewise.
37045         (output_toc): Likewise.
37046         (rs6000_rtx_costs): Likewise.
37047         (rs6000_emit_swrsqrt); Update call to real_from_integer.
37048         * config/rs6000/rs6000-c.c: Include wide-int.h.
37049         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
37050         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
37051         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
37052         Handle CONST_WIDE_INT.
37053         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
37054         Use tree_fits_uhwi_p.
37055         * config/sparc/sparc.c: Include wide-int.h.
37056         (sparc_fold_builtin): Use wide-int interfaces.
37057         * config/vax/vax.c: Include wide-int.h.
37058         (vax_float_literal): Use real_from_integer.
37059         * coretypes.h (struct hwivec_def): New.
37060         (hwivec): New.
37061         (const_hwivec): New.
37062         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
37063         (equiv_constant): Handle CONST_WIDE_INT.
37064         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
37065         (cselib_hash_rtx): Handle CONST_WIDE_INT.
37066         * dbxout.c (stabstr_U): Use wide-int interfaces.
37067         (dbxout_type): Update to use cst_fits_shwi_p.
37068         * defaults.h (LOG2_BITS_PER_UNIT): Define.
37069         (TARGET_SUPPORTS_WIDE_INT): Add default.
37070         * dfp.c: Include wide-int.h.
37071         (decimal_real_to_integer2): Use wide-int interfaces and rename to
37072         decimal_real_to_integer.
37073         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
37074         decimal_real_to_integer.
37075         * doc/generic.texi (Constant expressions): Update for wide_int.
37076         * doc/rtl.texi (const_double): Likewise.
37077         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
37078         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
37079         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
37080         (REAL_VALUE_FROM_INT): Remove.
37081         (TARGET_SUPPORTS_WIDE_INT): New.
37082         * doc/tm.texi: Regenerate.
37083         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
37084         * double-int.h: Include wide-int.h.
37085         (struct wi::int_traits): New.
37086         * dwarf2out.c (get_full_len): New.
37087         (dw_val_equal_p): Add case dw_val_class_wide_int.
37088         (size_of_loc_descr): Likewise.
37089         (output_loc_operands): Likewise.
37090         (insert_double): Remove.
37091         (insert_wide_int): New.
37092         (add_AT_wide): New.
37093         (print_die): Add case dw_val_class_wide_int.
37094         (attr_checksum): Likewise.
37095         (attr_checksum_ordered): Likewise.
37096         (same_dw_val_p): Likewise.
37097         (size_of_die): Likewise.
37098         (value_format): Likewise.
37099         (output_die): Likewise.
37100         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
37101         Use wide-int.
37102         (clz_loc_descriptor): Use wide-int interfaces.
37103         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
37104         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
37105         (round_up_to_align): Use wide-int interfaces.
37106         (field_byte_offset): Likewise.
37107         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
37108         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
37109         CONST_DOUBLE handling.  Use wide-int interfaces.
37110         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
37111         (gen_enumeration_type_die): Use add_AT_wide.
37112         (hash_loc_operands): Add case dw_val_class_wide_int.
37113         (compare_loc_operands): Likewise.
37114         * dwarf2out.h: Include wide-int.h.
37115         (wide_int_ptr): New.
37116         (enum dw_val_class): Add dw_val_class_wide_int.
37117         (struct dw_val_struct): Add val_wide.
37118         * emit-rtl.c (const_wide_int_htab): New.
37119         (const_wide_int_htab_hash): New.
37120         (const_wide_int_htab_eq): New.
37121         (lookup_const_wide_int): New.
37122         (const_double_htab_hash): Use wide-int interfaces.
37123         (const_double_htab_eq): Likewise.
37124         (rtx_to_double_int): Conditionally compile for wide-int.
37125         (immed_double_int_const): Rename to immed_wide_int_const and
37126         update for wide-int.
37127         (immed_double_const): Conditionally compile for wide-int.
37128         (init_emit_once): Use wide-int interfaces.
37129         * explow.c (plus_constant): Likewise.
37130         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
37131         (lshift_value): Use wide-int interfaces.
37132         (expand_mult): Likewise.
37133         (choose_multiplier): Likewise.
37134         (expand_smod_pow2): Likewise.
37135         (make_tree): Likewise.
37136         * expr.c (convert_modes): Consolidate handling of constants.
37137         Use wide-int interfaces.
37138         (emit_group_load_1): Add note.
37139         (store_expr): Update comment.
37140         (get_inner_reference): Use wide-int interfaces.
37141         (expand_constructor): Update comment.
37142         (expand_expr_real_2): Use wide-int interfaces.
37143         (expand_expr_real_1): Likewise.
37144         (reduce_to_bit_field_precision): Likewise.
37145         (const_vector_from_tree): Likewise.
37146         * final.c: Include wide-int-print.h.
37147         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
37148         * fixed-value.c: Include wide-int.h.
37149         (fixed_from_string): Use wide-int interfaces.
37150         (fixed_to_decimal): Likewise.
37151         (fixed_convert_from_real): Likewise.
37152         (real_convert_from_fixed): Likewise.
37153         * fold-const.h (mem_ref_offset): Return an offset_int.
37154         (div_if_zero_remainder): Remove code parameter.
37155         * fold-const.c (div_if_zero_remainder): Remove code parameter.
37156         Use wide-int interfaces.
37157         (may_negate_without_overflow_p): Use wide-int interfaces.
37158         (negate_expr_p): Likewise.
37159         (fold_negate_expr): Likewise.
37160         (int_const_binop_1): Likewise.
37161         (const_binop): Likewise.
37162         (fold_convert_const_int_from_int): Likewise.
37163         (fold_convert_const_int_from_real): Likewise.
37164         (fold_convert_const_int_from_fixed): Likewise.
37165         (fold_convert_const_fixed_from_int): Likewise.
37166         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
37167         (sign_bit_p): Use wide-int interfaces.
37168         (make_range_step): Likewise.
37169         (build_range_check): Likewise.  Pass an integer of the correct type
37170         instead of using integer_one_node.
37171         (range_predecessor): Pass an integer of the correct type instead
37172         of using integer_one_node.
37173         (range_successor): Likewise.
37174         (merge_ranges): Likewise.
37175         (unextend): Use wide-int interfaces.
37176         (extract_muldiv_1): Likewise.
37177         (fold_div_compare): Likewise.
37178         (fold_single_bit_test): Likewise.
37179         (fold_sign_changed_comparison): Likewise.
37180         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
37181         (fold_plusminus_mult_expr): Use wide-int interfaces.
37182         (native_encode_int): Likewise.
37183         (native_interpret_int): Likewise.
37184         (fold_unary_loc): Likewise.
37185         (pointer_may_wrap_p): Likewise.
37186         (size_low_cst): Likewise.
37187         (mask_with_tz): Likewise.
37188         (fold_binary_loc): Likewise.
37189         (fold_ternary_loc): Likewise.
37190         (multiple_of_p): Likewise.
37191         (tree_call_nonnegative_warnv_p): Update calls to
37192         tree_int_cst_min_precision and real_from_integer.
37193         (fold_negate_const): Use wide-int interfaces.
37194         (fold_abs_const): Likewise.
37195         (fold_relational_const): Use tree_int_cst_lt.
37196         (round_up_loc): Use wide-int interfaces.
37197         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
37198         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
37199         * gengtype.c: Remove include of double-int.h.
37200         (do_typedef): Use wide-int interfaces.
37201         (open_base_files): Add wide-int.h.
37202         (main): Add offset_int and widest_int typedefs.
37203         * gengtype-lex.l: Handle "^".
37204         (CXX_KEYWORD): Add "static".
37205         * gengtype-parse.c (require3): New.
37206         (require_template_declaration): Handle constant template arguments
37207         and nested templates.
37208         * gengtype-state.c: Don't include "double-int.h".
37209         * genpreds.c (write_one_predicate_function): Update comment.
37210         (write_tm_constrs_h): Add check for hval and lval use in
37211         CONST_WIDE_INT.
37212         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
37213         (add_to_sequence): Likewise.
37214         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
37215         and const_double_operand.
37216         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
37217         interfaces.
37218         * gimple-fold.c (get_base_constructor): Likewise.
37219         (fold_array_ctor_reference): Likewise.
37220         (fold_nonarray_ctor_reference): Likewise.
37221         (fold_const_aggregate_ref_1): Likewise.
37222         (gimple_val_nonnegative_real_p): Likewise.
37223         (gimple_fold_indirect_ref): Likewise.
37224         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
37225         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
37226         (struct slsr_cand_d): Change index to be widest_int.
37227         (struct incr_info_d): Change incr to be widest_int.
37228         (alloc_cand_and_find_basis): Use wide-int interfaces.
37229         (slsr_process_phi): Likewise.
37230         (backtrace_base_for_ref): Likewise.  Return a widest_int.
37231         (restructure_reference): Take a widest_int instead of a double_int.
37232         (slsr_process_ref): Use wide-int interfaces.
37233         (create_mul_ssa_cand): Likewise.
37234         (create_mul_imm_cand): Likewise.
37235         (create_add_ssa_cand): Likewise.
37236         (create_add_imm_cand): Take a widest_int instead of a double_int.
37237         (slsr_process_add): Use wide-int interfaces.
37238         (slsr_process_cast): Likewise.
37239         (slsr_process_copy): Likewise.
37240         (dump_candidate): Likewise.
37241         (dump_incr_vec): Likewise.
37242         (replace_ref): Likewise.
37243         (cand_increment): Likewise.  Return a widest_int.
37244         (cand_abs_increment): Likewise.
37245         (replace_mult_candidate): Take a widest_int instead of a double_int.
37246         (replace_unconditional_candidate): Use wide-int interfaces.
37247         (incr_vec_index): Take a widest_int instead of a double_int.
37248         (create_add_on_incoming_edge): Likewise.
37249         (create_phi_basis): Use wide-int interfaces.
37250         (replace_conditional_candidate): Likewise.
37251         (record_increment): Take a widest_int instead of a double_int.
37252         (record_phi_increments): Use wide-int interfaces.
37253         (phi_incr_cost): Take a widest_int instead of a double_int.
37254         (lowest_cost_path): Likewise.
37255         (total_savings): Likewise.
37256         (analyze_increments): Use wide-int interfaces.
37257         (ncd_with_phi): Take a widest_int instead of a double_int.
37258         (ncd_of_cand_and_phis): Likewise.
37259         (nearest_common_dominator_for_cands): Likewise.
37260         (insert_initializers): Use wide-int interfaces.
37261         (all_phi_incrs_profitable): Likewise.
37262         (replace_one_candidate): Likewise.
37263         (replace_profitable_candidates): Likewise.
37264         * godump.c: Include wide-int-print.h.
37265         (go_output_typedef): Use wide-int interfaces.
37266         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
37267         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
37268         (build_loop_iteration_domains): Likewise.
37269         * hooks.h: Include wide-int.h rather than double-int.h.
37270         (hook_bool_dint_dint_uint_bool_true): Delete.
37271         (hook_bool_wint_wint_uint_bool_true): Declare.
37272         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
37273         (hook_bool_wint_wint_uint_bool_true): New.
37274         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
37275         interfaces.
37276         (ubsan_expand_si_overflow_mul_check): Likewise.
37277         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
37278         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
37279         (get_ancestor_addr_info): Likewise.
37280         (ipa_modify_call_arguments): Likewise.
37281         * loop-doloop.c (doloop_modify): Likewise.
37282         (doloop_optimize): Likewise.
37283         * loop-iv.c (iv_number_of_iterations): Likewise.
37284         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
37285         (unroll_loop_constant_iterations): Likewise.
37286         (decide_unroll_runtime_iterations): Likewise.
37287         (unroll_loop_runtime_iterations): Likewise.
37288         (decide_peel_simple): Likewise.
37289         (decide_unroll_stupid): Likewise.
37290         * lto-streamer-in.c (streamer_read_wi): Add.
37291         (input_cfg): Use wide-int interfaces.
37292         (lto_input_tree_1): Likewise.
37293         * lto-streamer-out.c (streamer_write_wi): Add.
37294         (hash_tree): Use wide-int interfaces.
37295         (output_cfg): Likewise.
37296         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
37297         (GTFILES): Add wide-int.h and signop.h.
37298         (TAGS): Look for .cc files too.
37299         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
37300         * optabs.c (expand_subword_shift): Likewise.
37301         (expand_doubleword_shift): Likewise.
37302         (expand_absneg_bit): Likewise.
37303         (expand_copysign_absneg): Likewise.
37304         (expand_copysign_bit): Likewise.
37305         * postreload.c (reload_cse_simplify_set): Likewise.
37306         * predict.c (predict_iv_comparison): Likewise.
37307         * pretty-print.h: Include wide-int-print.h.
37308         (pp_wide_int) New.
37309         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
37310         * print-tree.c: Include wide-int-print.h.
37311         (print_node_brief): Use wide-int interfaces.
37312         (print_node): Likewise.
37313         * read-rtl.c (validate_const_wide_int): New.
37314         (read_rtx_code): Add CONST_WIDE_INT case.
37315         * real.c: Include wide-int.h.
37316         (real_to_integer2): Delete.
37317         (real_to_integer): New function, returning a wide_int.
37318         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
37319         (ten_to_ptwo): Update call to real_from_integer.
37320         (real_digit): Likewise.
37321         * real.h: Include signop.h, wide-int.h and insn-modes.h.
37322         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
37323         (REAL_VALUE_TO_INT): Delete.
37324         (real_to_integer): Declare a wide-int form.
37325         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
37326         * recog.c (const_int_operand): Improve comment.
37327         (const_scalar_int_operand): New.
37328         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
37329         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
37330         (split_double): Likewise.
37331         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
37332         (rtx_size): Likewise.
37333         (rtx_alloc_stat_v): New.
37334         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
37335         (cwi_output_hex): New.
37336         (iterative_hash_rtx): Handle CONST_WIDE_INT.
37337         (cwi_check_failed_bounds): New.
37338         * rtl.def (CONST_WIDE_INT): New.
37339         * rtl.h: Include <utility> and wide-int.h.
37340         (struct hwivec_def): New.
37341         (CWI_GET_NUM_ELEM): New.
37342         (CWI_PUT_NUM_ELEM): New.
37343         (struct rtx_def): Add num_elem and hwiv.
37344         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
37345         (CASE_CONST_UNIQUE): Likewise.
37346         (CASE_CONST_ANY): Likewise.
37347         (CONST_SCALAR_INT_P): Likewise.
37348         (CONST_WIDE_INT_P): New.
37349         (CWI_ELT): New.
37350         (HWIVEC_CHECK): New.
37351         (cwi_check_failed_bounds): New.
37352         (CWI_ELT): New.
37353         (HWIVEC_CHECK): New.
37354         (CONST_WIDE_INT_VEC) New.
37355         (CONST_WIDE_INT_NUNITS) New.
37356         (CONST_WIDE_INT_ELT) New.
37357         (rtx_mode_t): New type.
37358         (wi::int_traits <rtx_mode_t>): New.
37359         (wi::shwi): New.
37360         (wi::min_value): New.
37361         (wi::max_value): New.
37362         (rtx_alloc_v) New.
37363         (const_wide_int_alloc): New.
37364         (immed_wide_int_const): New.
37365         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
37366         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
37367         * signop.h: New file.
37368         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
37369         (simplify_const_unary_operation): Use wide-int interfaces.
37370         (simplify_binary_operation_1): Likewise.
37371         (simplify_const_binary_operation): Likewise.
37372         (simplify_const_relational_operation): Likewise.
37373         (simplify_immed_subreg): Likewise.
37374         * stmt.c (expand_case): Likewise.
37375         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
37376         signop rather than a bool.
37377         * stor-layout.c (layout_type): Use wide-int interfaces.
37378         (initialize_sizetypes): Update calls to
37379         set_min_and_max_values_for_integral_type.
37380         (set_min_and_max_values_for_integral_type): Take a signop rather
37381         than a bool.  Use wide-int interfaces.
37382         (fixup_signed_type): Update accordingly.  Remove
37383         HOST_BITS_PER_DOUBLE_INT limit.
37384         (fixup_unsigned_type): Likewise.
37385         * system.h (STATIC_CONSTANT_P): New.
37386         (STATIC_ASSERT): New.
37387         * target.def (can_use_doloop_p): Take widest_ints rather than
37388         double_ints.
37389         * target.h: Include wide-int.h rather than double-int.h.
37390         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
37391         than double_ints.
37392         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
37393         rather than INT_CST_LT_UNSIGNED.
37394         (can_use_doloop_if_innermost): Take widest_ints rather than
37395         double_ints.
37396         * tree-affine.c: Include wide-int-print.h.
37397         (double_int_ext_for_comb): Delete.
37398         (wide_int_ext_for_comb): New.
37399         (aff_combination_zero): Use wide-int interfaces.
37400         (aff_combination_const): Take a widest_int instead of a double_int.
37401         (aff_combination_elt): Use wide-int interfaces.
37402         (aff_combination_scale): Take a widest_int instead of a double_int.
37403         (aff_combination_add_elt): Likewise.
37404         (aff_combination_add_cst): Likewise.
37405         (aff_combination_add): Use wide-int interfaces.
37406         (aff_combination_convert): Likewise.
37407         (tree_to_aff_combination): Likewise.
37408         (add_elt_to_tree): Take a widest_int instead of a double_int.
37409         (aff_combination_to_tree): Use wide-int interfaces.
37410         (aff_combination_remove_elt): Likewise.
37411         (aff_combination_add_product): Take a widest_int instead of
37412         a double_int.
37413         (aff_combination_mult): Use wide-int interfaces.
37414         (aff_combination_expand): Likewise.
37415         (double_int_constant_multiple_p): Delete.
37416         (wide_int_constant_multiple_p): New.
37417         (aff_combination_constant_multiple_p): Take a widest_int pointer
37418         instead of a double_int pointer.
37419         (print_aff): Use wide-int interfaces.
37420         (get_inner_reference_aff): Take a widest_int pointer
37421         instead of a double_int pointer.
37422         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
37423         * tree-affine.h: Include wide-int.h.
37424         (struct aff_comb_elt): Change type of coef to widest_int.
37425         (struct affine_tree_combination): Change type of offset to widest_int.
37426         (double_int_ext_for_comb): Delete.
37427         (wide_int_ext_for_comb): New.
37428         (aff_combination_const): Use widest_int instead of double_int.
37429         (aff_combination_scale): Likewise.
37430         (aff_combination_add_elt): Likewise.
37431         (aff_combination_constant_multiple_p): Likewise.
37432         (get_inner_reference_aff): Likewise.
37433         (aff_comb_cannot_overlap_p): Likewise.
37434         (aff_combination_zero_p): Use wide-int interfaces.
37435         * tree.c: Include tree.h.
37436         (init_ttree): Use make_int_cst.
37437         (tree_code_size): Removed code for INTEGER_CST case.
37438         (tree_size): Add INTEGER_CST case.
37439         (make_node_stat): Update comment.
37440         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
37441         (build_int_cst_type): Use wide-int interfaces.
37442         (double_int_to_tree): Likewise.
37443         (double_int_fits_to_tree_p): Delete.
37444         (force_fit_type_double): Delete.
37445         (force_fit_type): New.
37446         (int_cst_hash_hash): Use wide-int interfaces.
37447         (int_cst_hash_eq): Likewise.
37448         (build_int_cst_wide): Delete.
37449         (wide_int_to_tree): New.
37450         (cache_integer_cst): Use wide-int interfaces.
37451         (build_low_bits_mask): Likewise.
37452         (cst_and_fits_in_hwi): Likewise.
37453         (real_value_from_int_cst): Likewise.
37454         (make_int_cst_stat): New.
37455         (integer_zerop): Use wide_int interfaces.
37456         (integer_onep): Likewise.
37457         (integer_all_onesp): Likewise.
37458         (integer_pow2p): Likewise.
37459         (integer_nonzerop): Likewise.
37460         (tree_log2): Likewise.
37461         (tree_floor_log2): Likewise.
37462         (tree_ctz): Likewise.
37463         (int_size_in_bytes): Likewise.
37464         (mem_ref_offset): Return an offset_int rather than a double_int.
37465         (build_type_attribute_qual_variant): Use wide_int interfaces.
37466         (type_hash_eq): Likewise
37467         (tree_int_cst_equal): Likewise.
37468         (tree_int_cst_lt): Delete.
37469         (tree_int_cst_compare): Likewise.
37470         (tree_fits_shwi_p): Use wide_int interfaces.
37471         (tree_fits_uhwi_p): Likewise.
37472         (tree_int_cst_sign_bit): Likewise.
37473         (tree_int_cst_sgn): Likewise.
37474         (tree_int_cst_min_precision): Take a signop rather than a bool.
37475         (simple_cst_equal): Use wide_int interfaces.
37476         (compare_tree_int): Likewise.
37477         (iterative_hash_expr): Likewise.
37478         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
37479         INT_CST_LT.
37480         (get_type_static_bounds): Use wide_int interfaces.
37481         (tree_int_cst_elt_check_failed): New.
37482         (build_common_tree_nodes): Reordered to set prec before filling in
37483         value.
37484         (int_cst_value): Check cst_and_fits_in_hwi.
37485         (widest_int_cst_value): Use wide_int interfaces.
37486         (upper_bound_in_type): Likewise.
37487         (lower_bound_in_type): Likewise.
37488         (num_ending_zeros): Likewise.
37489         (drop_tree_overflow): Likewise.
37490         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
37491         (gen_conditions_for_pow_cst_base): Likewise.
37492         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
37493         (group_case_labels_stmt): Use wide-int interfaces.
37494         (verify_gimple_assign_binary): Likewise.
37495         (print_loop): Likewise.
37496         * tree-chrec.c (tree_fold_binomial): Likewise.
37497         * tree-core.h (struct tree_base): Add int_length.
37498         (struct tree_int_cst): Change rep of value.
37499         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
37500         (dr_may_alias_p): Likewise.
37501         (max_stmt_executions_tree): Likewise.
37502         * tree.def (INTEGER_CST): Update comment.
37503         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
37504         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
37505         * tree-dump.c: Include wide-int.h and wide-int-print.h.
37506         (dequeue_and_dump): Use wide-int interfaces.
37507         * tree.h: Include wide-int.h.
37508         (NULL_TREE): Moved to earlier loc in file.
37509         (TREE_INT_CST_ELT_CHECK): New.
37510         (tree_int_cst_elt_check_failed): New.
37511         (TYPE_SIGN): New.
37512         (TREE_INT_CST): Delete.
37513         (TREE_INT_CST_LOW): Use wide-int interfaces.
37514         (TREE_INT_CST_HIGH): Delete.
37515         (TREE_INT_CST_NUNITS): New.
37516         (TREE_INT_CST_EXT_NUNITS): Likewise.
37517         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
37518         (TREE_INT_CST_ELT): Likewise.
37519         (INT_CST_LT): Delete.
37520         (tree_int_cst_elt_check): New (two forms).
37521         (type_code_size): Update comment.
37522         (make_int_cst_stat, make_int_cst): New.
37523         (tree_to_double_int): Delete.
37524         (double_int_fits_to_tree_p): Delete.
37525         (force_fit_type_double): Delete.
37526         (build_int_cstu): Replace with out-of-line function.
37527         (build_int_cst_wide): Delete.
37528         (tree_int_cst_lt): Define inline.
37529         (tree_int_cst_le): New.
37530         (tree_int_cst_compare): Define inline.
37531         (tree_int_cst_min_precision): Take a signop rather than a bool.
37532         (wi::int_traits <const_tree>): New.
37533         (wi::int_traits <tree>): New.
37534         (wi::extended_tree): New.
37535         (wi::int_traits <wi::extended_tree>): New.
37536         (wi::to_widest): New.
37537         (wi::to_offset): New.
37538         (wi::fits_to_tree_p): New.
37539         (wi::min_value): New.
37540         (wi::max_value): New.
37541         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
37542         (copy_tree_body_r): Likewise.
37543         * tree-object-size.c (compute_object_offset): Likewise.
37544         (addr_object_size): Likewise.
37545         * tree-predcom.c: Include wide-int-print.h.
37546         (struct dref_d): Change type of offset to widest_int.
37547         (dump_dref): Call wide-int printer.
37548         (aff_combination_dr_offset): Use wide-int interfaces.
37549         (determine_offset): Take a widest_int pointer rather than a
37550         double_int pointer.
37551         (split_data_refs_to_components): Use wide-int interfaces.
37552         (suitable_component_p): Likewise.
37553         (order_drefs): Likewise.
37554         (add_ref_to_chain): Likewise.
37555         (valid_initializer_p): Likewise.
37556         (determine_roots_comp): Likewise.
37557         * tree-pretty-print.c: Include wide-int-print.h.
37558         (dump_generic_node): Use wide-int interfaces.
37559         * tree-sra.c (sra_ipa_modify_expr): Likewise.
37560         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
37561         (move_fixed_address_to_symbol): Likewise.
37562         (move_hint_to_base): Likewise.
37563         (move_pointer_to_base): Likewise.
37564         (move_variant_to_index): Likewise.
37565         (most_expensive_mult_to_index): Likewise.
37566         (addr_to_parts): Likewise.
37567         (copy_ref_info): Likewise.
37568         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
37569         (indirect_refs_may_alias_p): Likewise.
37570         (stmt_kills_ref_p_1): Likewise.
37571         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
37572         * tree-ssa-ccp.c: Update comment at top of file.  Include
37573         wide-int-print.h.
37574         (struct prop_value_d): Change type of mask to widest_int.
37575         (extend_mask): New function.
37576         (dump_lattice_value): Use wide-int interfaces.
37577         (get_default_value): Likewise.
37578         (set_constant_value): Likewise.
37579         (set_value_varying): Likewise.
37580         (valid_lattice_transition): Likewise.
37581         (set_lattice_value): Likewise.
37582         (value_to_double_int): Delete.
37583         (value_to_wide_int): New.
37584         (get_value_from_alignment): Use wide-int interfaces.
37585         (get_value_for_expr): Likewise.
37586         (do_dbg_cnt): Likewise.
37587         (ccp_finalize): Likewise.
37588         (ccp_lattice_meet): Likewise.
37589         (bit_value_unop_1): Use widest_ints rather than double_ints.
37590         (bit_value_binop_1): Likewise.
37591         (bit_value_unop): Use wide-int interfaces.
37592         (bit_value_binop): Likewise.
37593         (bit_value_assume_aligned): Likewise.
37594         (evaluate_stmt): Likewise.
37595         (ccp_fold_stmt): Likewise.
37596         (visit_cond_stmt): Likewise.
37597         (ccp_visit_stmt): Likewise.
37598         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
37599         (constant_pointer_difference): Likewise.
37600         (associate_pointerplus): Likewise.
37601         (combine_conversions): Likewise.
37602         * tree-ssa-loop.h: Include wide-int.h.
37603         (struct tree_niter_desc): Change type of max to widest_int.
37604         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
37605         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
37606         (remove_redundant_iv_tests): Likewise.
37607         (canonicalize_loop_induction_variables): Likewise.
37608         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
37609         (constant_multiple_of): Take a widest_int pointer instead of
37610         a double_int pointer.
37611         (get_computation_aff): Use wide-int interfaces.
37612         (ptr_difference_cost): Likewise.
37613         (difference_cost): Likewise.
37614         (get_loop_invariant_expr_id): Likewise.
37615         (get_computation_cost_at): Likewise.
37616         (iv_elimination_compare_lt): Likewise.
37617         (may_eliminate_iv): Likewise.
37618         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
37619         instead of double_int.
37620         (max_loop_iterations): Likewise.
37621         (max_stmt_executions): Likewise.
37622         (estimated_stmt_executions): Likewise.
37623         * tree-ssa-loop-niter.c: Include wide-int-print.h.
37624         (split_to_var_and_offset): Use wide-int interfaces.
37625         (determine_value_range): Likewise.
37626         (bound_difference_of_offsetted_base): Likewise.
37627         (bounds_add): Take a widest_int instead of a double_int.
37628         (number_of_iterations_ne_max): Use wide-int interfaces.
37629         (number_of_iterations_ne): Likewise.
37630         (number_of_iterations_lt_to_ne): Likewise.
37631         (assert_loop_rolls_lt): Likewise.
37632         (number_of_iterations_lt): Likewise.
37633         (number_of_iterations_le): Likewise.
37634         (number_of_iterations_cond): Likewise.
37635         (number_of_iterations_exit): Likewise.
37636         (finite_loop_p): Likewise.
37637         (derive_constant_upper_bound_assign): Likewise.
37638         (derive_constant_upper_bound): Return a widest_int.
37639         (derive_constant_upper_bound_ops): Likewise.
37640         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
37641         (record_estimate): Take a widest_int rather than a double_int.
37642         (record_nonwrapping_iv): Use wide-int interfaces.
37643         (double_int_cmp): Delete.
37644         (wide_int_cmp): New.
37645         (bound_index): Take a widest_int rather than a double_int.
37646         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
37647         (maybe_lower_iteration_bound): Likewise.
37648         (estimate_numbers_of_iterations_loop): Likewise.
37649         (estimated_loop_iterations): Take a widest_int pointer than than
37650         a double_int pointer.
37651         (estimated_loop_iterations_int): Use wide-int interfaces.
37652         (max_loop_iterations): Take a widest_int pointer than than
37653         a double_int pointer.
37654         (max_loop_iterations_int): Use wide-int interfaces.
37655         (max_stmt_executions): Take a widest_int pointer than than
37656         a double_int pointer.
37657         (estimated_stmt_executions): Likewise.
37658         (n_of_executions_at_most): Use wide-int interfaces.
37659         (scev_probably_wraps_p): Likewise.
37660         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
37661         to real_to_integer.
37662         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
37663         interfaces.
37664         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
37665         double_ints.  Adjust for trailing_wide_ints <3> representation.
37666         (set_nonzero_bits): Likewise.
37667         (get_range_info): Return wide_ints rather than double_ints.
37668         Adjust for trailing_wide_ints <3> representation.
37669         (get_nonzero_bits): Likewise.
37670         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
37671         representation.
37672         * tree-ssanames.h (struct range_info_def): Replace min, max and
37673         nonzero_bits with a trailing_wide_ints <3>.
37674         (set_range_info): Use wide_int_refs rather than double_ints.
37675         (set_nonzero_bits): Likewise.
37676         (get_range_info): Return wide_ints rather than double_ints.
37677         (get_nonzero_bits): Likewise.
37678         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
37679         * tree-ssa-pre.c (phi_translate_1): Likewise.
37680         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
37681         (acceptable_pow_call): Likewise.
37682         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
37683         interfaces.
37684         (vn_reference_fold_indirect): Likewise.
37685         (vn_reference_maybe_forwprop_address): Likewise.
37686         (valueize_refs_1): Likewise.
37687         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
37688         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
37689         tree_int_cst_lt and tree_int_cst_le.
37690         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
37691         interfaces.
37692         (streamer_alloc_tree): Likewise.
37693         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
37694         (streamer_write_tree_header): Likewise.
37695         (streamer_write_integer_cst): Likewise.
37696         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
37697         (build_constructors): Likewise.
37698         (array_value_type): Likewise.
37699         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
37700         (vect_check_gather): Likewise.
37701         * tree-vect-generic.c (build_replicated_const): Likewise.
37702         (expand_vector_divmod): Likewise.
37703         * tree-vect-loop.c (vect_transform_loop): Likewise.
37704         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
37705         (vect_do_peeling_for_alignment): Likewise.
37706         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
37707         * tree-vrp.c: Include wide-int.h.
37708         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
37709         (extract_range_from_assert): Use wide-int interfaces.
37710         (vrp_int_const_binop): Likewise.
37711         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
37712         double_int pointers.
37713         (ranges_from_anti_range): Use wide-int interfaces.
37714         (quad_int_cmp): Delete.
37715         (quad_int_pair_sort): Likewise.
37716         (extract_range_from_binary_expr_1): Use wide-int interfaces.
37717         (extract_range_from_unary_expr_1): Likewise.
37718         (adjust_range_with_scev): Likewise.
37719         (masked_increment): Take and return wide_ints rather than double_ints.
37720         (register_edge_assert_for_2): Use wide-int interfaces.
37721         (check_array_ref): Likewise.
37722         (search_for_addr_array): Likewise.
37723         (maybe_set_nonzero_bits): Likewise.
37724         (union_ranges): Pass an integer of the correct type instead of
37725         using integer_one_node.
37726         (intersect_ranges): Likewise.
37727         (simplify_truth_ops_using_ranges): Likewise.
37728         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
37729         (range_fits_type_p): Likewise.
37730         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
37731         a bool.
37732         (simplify_conversion_using_ranges): Use wide-int interfaces.
37733         (simplify_float_conversion_using_ranges): Likewise.
37734         (vrp_finalize): Likewise.
37735         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
37736         (gimple_stringops_transform): Likewise.
37737         * varasm.c (decode_addr_const): Likewise.
37738         (const_hash_1): Likewise.
37739         (const_rtx_hash_1): Likewise
37740         (output_constant): Likewise.
37741         (array_size_for_constructor): Likewise.
37742         (output_constructor_regular_field): Likewise.
37743         (output_constructor_bitfield): Likewise.
37744         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
37745         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
37746         GENERATOR_FILEs.
37747         * gencheck.c: Define BITS_PER_UNIT.
37748         * wide-int.cc: New.
37749         * wide-int.h: New.
37750         * wide-int-print.cc: New.
37751         * wide-int-print.h: New.
37753 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
37755         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
37757 2014-05-06  Richard Biener  <rguenther@suse.de>
37759         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
37760         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
37761         (TODO_verify_all): Adjust.
37762         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
37763         TODO_verify_stmts and TODO_verify_rtl_sharing.
37764         * bb-reorder.c: Likewise.
37765         * cfgexpand.c: Likewise.
37766         * cprop.c: Likewise.
37767         * cse.c: Likewise.
37768         * function.c: Likewise.
37769         * fwprop.c: Likewise.
37770         * gcse.c: Likewise.
37771         * gimple-ssa-isolate-paths.c: Likewise.
37772         * gimple-ssa-strength-reduction.c: Likewise.
37773         * ipa-split.c: Likewise.
37774         * loop-init.c: Likewise.
37775         * loop-unroll.c: Likewise.
37776         * lower-subreg.c: Likewise.
37777         * modulo-sched.c: Likewise.
37778         * postreload-gcse.c: Likewise.
37779         * predict.c: Likewise.
37780         * recog.c: Likewise.
37781         * sched-rgn.c: Likewise.
37782         * store-motion.c: Likewise.
37783         * tracer.c: Likewise.
37784         * trans-mem.c: Likewise.
37785         * tree-call-cdce.c: Likewise.
37786         * tree-cfg.c: Likewise.
37787         * tree-cfgcleanup.c: Likewise.
37788         * tree-complex.c: Likewise.
37789         * tree-eh.c: Likewise.
37790         * tree-emutls.c: Likewise.
37791         * tree-if-conv.c: Likewise.
37792         * tree-into-ssa.c: Likewise.
37793         * tree-loop-distribution.c: Likewise.
37794         * tree-object-size.c: Likewise.
37795         * tree-parloops.c: Likewise.
37796         * tree-pass.h: Likewise.
37797         * tree-sra.c: Likewise.
37798         * tree-ssa-ccp.c: Likewise.
37799         * tree-ssa-copy.c: Likewise.
37800         * tree-ssa-copyrename.c: Likewise.
37801         * tree-ssa-dce.c: Likewise.
37802         * tree-ssa-dom.c: Likewise.
37803         * tree-ssa-dse.c: Likewise.
37804         * tree-ssa-forwprop.c: Likewise.
37805         * tree-ssa-ifcombine.c: Likewise.
37806         * tree-ssa-loop-ch.c: Likewise.
37807         * tree-ssa-loop-ivcanon.c: Likewise.
37808         * tree-ssa-loop.c: Likewise.
37809         * tree-ssa-math-opts.c: Likewise.
37810         * tree-ssa-phiopt.c: Likewise.
37811         * tree-ssa-phiprop.c: Likewise.
37812         * tree-ssa-pre.c: Likewise.
37813         * tree-ssa-reassoc.c: Likewise.
37814         * tree-ssa-sink.c: Likewise.
37815         * tree-ssa-strlen.c: Likewise.
37816         * tree-ssa-tail-merge.c: Likewise.
37817         * tree-ssa-uncprop.c: Likewise.
37818         * tree-switch-conversion.c: Likewise.
37819         * tree-tailcall.c: Likewise.
37820         * tree-vect-generic.c: Likewise.
37821         * tree-vectorizer.c: Likewise.
37822         * tree-vrp.c: Likewise.
37823         * tsan.c: Likewise.
37824         * var-tracking.c: Likewise.
37825         * bt-load.c: Likewise.
37826         * cfgcleanup.c: Likewise.
37827         * combine-stack-adj.c: Likewise.
37828         * combine.c: Likewise.
37829         * compare-elim.c: Likewise.
37830         * config/epiphany/resolve-sw-modes.c: Likewise.
37831         * config/i386/i386.c: Likewise.
37832         * config/mips/mips.c: Likewise.
37833         * config/s390/s390.c: Likewise.
37834         * config/sh/sh_treg_combine.cc: Likewise.
37835         * config/sparc/sparc.c: Likewise.
37836         * dce.c: Likewise.
37837         * dse.c: Likewise.
37838         * final.c: Likewise.
37839         * ifcvt.c: Likewise.
37840         * mode-switching.c: Likewise.
37841         * passes.c: Likewise.
37842         * postreload.c: Likewise.
37843         * ree.c: Likewise.
37844         * reg-stack.c: Likewise.
37845         * regcprop.c: Likewise.
37846         * regrename.c: Likewise.
37847         * web.c: Likewise.
37849 2014-05-06  Richard Biener  <rguenther@suse.de>
37851         PR middle-end/61070
37852         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
37853         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
37855 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
37857         PR ipa/60965
37858         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
37860 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
37861             Tom de Vries  <tom@codesourcery.com>
37863         * target.def (call_fusage_contains_non_callee_clobbers): New
37864         DEFHOOKPOD.
37865         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
37866         Hooks to @menu.
37867         (@node Miscellaneous Register Hooks): New node.
37868         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
37869         * doc/tm.texi: Regenerate.
37871 2014-05-05  Marek Polacek  <polacek@redhat.com>
37873         PR driver/61065
37874         * opts.c (common_handle_option): Call error_at instead of warning_at.
37876 2014-05-05  Richard Biener  <rguenther@suse.de>
37878         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
37879         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
37880         under the TODO_verify_il umbrella.
37882 2014-05-05  Richard Biener  <rguenther@suse.de>
37884         * passes.c (execute_function_todo): Move TODO_verify_flow under
37885         the TODO_verify_ul umbrella.
37887 2014-05-05  Richard Biener  <rguenther@suse.de>
37889         PR middle-end/61010
37890         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
37891         X & CST away from a CST that is the mask of a mode.
37893 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
37895         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
37896         int argument to enum machine_mode.
37897         (picochip_class_max_nregs): Ditto.
37898         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
37899         (picochip_class_max_nregs): Ditto.
37901 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37903         * target.def: Add new target hook.
37904         * doc/tm.texi: Regenerate.
37905         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
37906         * targhooks.c (default_keep_leaf_when_profiled): New function.
37908         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
37909         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
37911 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
37913         PR tree-optimization/60363
37914         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
37915         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
37916         (update_destination_phis): New parameter.
37917         (create_edge_and_update_destination_phis): Ditto.
37918         (ssa_fix_duplicate_block_edges): Pass new arguments.
37919         (thread_single_edge): Ditto.
37921 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
37923         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
37924         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
37925         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
37926         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
37927         Use RS6000_BTM_HARD_FLOAT.
37928         (BU_MISC_2): Likewise.
37929         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
37930         RS6000_BTM_HARD_FLOAT.
37931         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
37932         is explicitly used.
37933         (rs6000_invalid_builtin): Add hard floating builtin support.
37934         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
37935         hard float builtins.
37936         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
37938 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
37940         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
37941         Add missing function* argument.
37943 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
37945         * lra-constraints.c (valid_address_p): Move earlier in file.
37946         Add a constraint argument to the address_info version.
37947         (satisfies_memory_constraint_p): New function.
37948         (satisfies_address_constraint_p): Likewise.
37949         (process_alt_operands, curr_insn_transform): Use them.
37950         (process_address): Pass the constraint to valid_address_p when
37951         checking address operands.
37953 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
37955         * config/mips/mips.c (mips_isa_rev): New variable.
37956         (mips_set_architecture): Set it.
37957         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
37958         from mips_isa_rev.
37959         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
37960         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
37961         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
37962         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
37963         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
37964         conditions in terms of mips_isa_rev.
37965         (mips_isa_rev): Declare.
37967 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
37969         * config/sh/sh-mem.cc: Use tabs instead of spaces.
37970         (prob_unlikely, prob_likely): Make variables const.
37972 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
37974         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
37976 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
37978         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
37980 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
37982         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
37983         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
37984         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
37985         functions.
37986         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
37987         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
37988         sh_pass_in_reg_p.
37989         Replace usage of ROUND_REG with sh_round_reg.
37990         Use CEIL instead of ROUND_ADVANCE.
37992 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
37994         PR target/61026
37995         * config/sh/sh.c: Include stdlib headers before everything else.
37997 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
37999         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
38000         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
38001         (gimplify_adjust_omp_clauses): Simd region is never
38002         directly nested in combined parallel.  Instead, for linear
38003         with copyin/copyout, if in combined for simd loop, make decl
38004         firstprivate/lastprivate on OMP_FOR.
38005         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
38006         expand_omp_for_static_chunk): When setting endvar, also set
38007         fd->loop.v to the same value.
38009 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
38011         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
38013 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
38015         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
38016         expression.
38018 2014-05-02  Marek Polacek  <polacek@redhat.com>
38020         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
38022 2014-05-02  Kito Cheng  <kito@0xlab.org>
38024         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
38025         to a C expression marco.
38026         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
38027         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
38028         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
38029         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
38030         HONOR_REG_ALLOC_ORDER.
38031         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
38033 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
38035         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
38037 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
38039         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
38041 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
38043         * tree-if-conv.c (is_cond_scalar_reduction): New function.
38044         (convert_scalar_cond_reduction): Likewise.
38045         (predicate_scalar_phi): Add recognition and transformation
38046         of simple conditioanl reduction to be vectorizable.
38048 2014-05-01  Marek Polacek  <polacek@redhat.com>
38050         PR c/43245
38051         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
38053 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
38055         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
38056         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
38057         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
38058         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
38059         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
38060         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
38061         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
38062         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
38064 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
38066         * config/arc/arc.opt (mlra): Move comment above option name
38067         to avoid mis-parsing as language options.
38069 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38071         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
38072         * config/sol2.h: ... here.
38073         * config/sol2-10.h: Remove.
38075         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
38076         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
38077         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
38078         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
38079         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
38080         * config/sol2.h: ... here.
38081         (SECTION_NAME_FORMAT): Don't redefine.
38082         (STARTFILE_ARCH32_SPEC): Rename to ...
38083         (STARTFILE_ARCH_SPEC): ... this.
38084         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
38085         * config/sparc/sol2.h: ... here.
38086         (SECTION_NAME_FORMAT): Don't undef.
38087         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
38088         (SUBTARGET_EXTRA_SPECS): Remove.
38089         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
38091         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
38092         (MD_STARTFILE_PREFIX): Remove.
38093         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
38094         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
38095         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
38096         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
38097         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
38098         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
38099         * config/i386/sol2.h: ... here.
38100         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
38101         * config/i386/sol2-bi.h: Remove.
38102         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
38103         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
38105         * config/i386/t-sol2-64: Rename to ...
38106         * config/i386/t-sol2: ... this.
38107         * config/sparc/t-sol2-64: Rename to ...
38108         * config/sparc/t-sol2: ... this.
38110         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
38111         sol2_tm_file_head, sol2_tm_file_tail.
38112         Include ${cpu_type}/sol2.h before sol2.h.
38113         Remove sol2-10.h.
38114         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
38115         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
38116         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
38117         Reflect i386/t-sol2-64 renaming.
38118         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
38119         Reflect sparc/t-sol2-64 renaming.
38121 2014-04-30  Richard Biener  <rguenther@suse.de>
38123         * passes.c (execute_function_todo): Move TODO_verify_stmts
38124         and TODO_verify_ssa under the TODO_verify_il umbrella.
38125         * tree-ssa.h (verify_ssa): Adjust prototype.
38126         * tree-ssa.c (verify_ssa): Add parameter to tell whether
38127         we should verify SSA operands.
38128         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
38129         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
38130         whether we should verify whether not throwing stmts have EH info.
38131         * graphite-scop-detection.c (create_sese_edges): Adjust.
38132         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
38133         * tree-eh.c (lower_try_finally_switch): Do not add the
38134         default case label twice.
38136 2014-04-30  Marek Polacek  <polacek@redhat.com>
38138         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
38139         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
38140         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
38141         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
38143 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
38145         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
38146         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
38147         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
38148         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
38149         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
38150         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
38151         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
38152         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
38154 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
38156         * tree-cfg.c (dump_function_to_file): Dump the return type of
38157         functions, in a line to itself before the function body, mimicking
38158         the layout of a C function.
38160 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
38162         PR tree-optimization/60971
38163         * tree-tailcall.c (process_assignment): Reject conversions which
38164         reduce precision.
38166 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
38168         * calls.c (initialize_argument_information): Always treat
38169         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
38170         (expand_call): Likewise.
38171         (emit_library_call_calue_1): Likewise.
38172         * expr.c (PUSH_ARGS_REVERSED): Do not define.
38173         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
38174         code accordingly.
38176 2014-04-29  Nick Clifton  <nickc@redhat.com>
38178         * config/msp430/msp430.md (umulsidi): Fix typo.
38179         (mulhisi3): Enable even inside interrupt handlers.
38180         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
38181         bigger return address pushed in large mode.
38183 2014-04-29  Nick Clifton  <nickc@redhat.com>
38185         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
38186         (arc_init_reg_tables): Use a machine_mode enum to iterate over
38187         available modes.
38188         * config/m32r/m32r.c (init_reg_tables): Likewise.
38189         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
38190         enum to hold the modes.
38192 2014-04-29  Richard Biener  <rguenther@suse.de>
38194         * dominance.c (free_dominance_info): Add overload with
38195         function parameter.
38196         (dom_info_state): Likewise.
38197         (dom_info_available_p): Likewise.
38198         * basic-block.h (free_dominance_info, dom_info_state,
38199         dom_info_available_p): Declare overloads.
38200         * passes.c (execute_function_todo): Verify that verifiers
38201         don't change dominator info state.  Drop dominator info
38202         for IPA pass invocations.
38203         * cgraph.c (release_function_body): Restore asserts that
38204         dominator information is released.
38206 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
38208         * doc/invoke.texi: Fix typo.
38209         * tree-vrp.c: Fix typos.
38210         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
38212 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
38214         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
38216 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
38218         * config/aarch64/aarch64-builtins.c
38219         (aarch64_types_storestruct_lane_qualifiers): New.
38220         (TYPES_STORESTRUCT_LANE): Likewise.
38221         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
38222         (st3_lane): Likewise.
38223         (st4_lane): Likewise.
38224         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
38225         (vec_store_lanesci_lane<mode>): Likewise.
38226         (vec_store_lanesxi_lane<mode>): Likewise.
38227         (aarch64_st2_lane<VQ:mode>): Likewise.
38228         (aarch64_st3_lane<VQ:mode>): Likewise.
38229         (aarch64_st4_lane<VQ:mode>): Likewise.
38230         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
38231         * config/aarch64/arm_neon.h
38232         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
38233         use new macro arguments.
38234         (__ST3_LANE_FUNC): Likewise.
38235         (__ST4_LANE_FUNC): Likewise.
38236         * config/aarch64/iterators.md (V_TWO_ELEM): New.
38237         (V_THREE_ELEM): Likewise.
38238         (V_FOUR_ELEM): Likewise.
38240 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
38242         * doc/gimple.texi: Replace the description of the now-defunct
38243         union gimple_statement_d with a diagram showing the
38244         gimple_statement_base class hierarchy and its relationships to
38245         the GSS_ and GIMPLE_ enums.
38247 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
38249         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
38250         * config/aarch64/aarch64.c
38251         (aarch64_cannot_change_mode_class): Weaken conditions.
38252         (aarch64_modes_tieable_p): New.
38253         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
38255 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
38257         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
38258         (loadsync_<mode>): Change mode.
38259         (load_quadpti, store_quadpti): New.
38260         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
38261         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
38263 2014-04-28  Martin Jambor  <mjambor@suse.cz>
38265         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
38266         same alias type as the original statement.
38267         (subreplacement_assignment_data): New type.
38268         (handle_unscalarized_data_in_subtree): New type of parameter,
38269         generate new memory accesses with same alias type as the original
38270         statement.
38271         (load_assign_lhs_subreplacements): Likewise.
38272         (sra_modify_constructor_assign): Generate new memory accesses with
38273         same alias type as the original statement.
38275 2014-04-28  Richard Biener  <rguenther@suse.de>
38277         * tree-pass.h (TODO_verify_il): Define.
38278         (TODO_verify_all): Complete properly.
38279         * passes.c (execute_function_todo): Move existing loop-closed
38280         SSA verification under TODO_verify_il.
38281         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
38282         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
38283         Fix tree sharing issue.
38285 2014-04-28  Richard Biener  <rguenther@suse.de>
38287         PR middle-end/60092
38288         * builtins.def (DEF_C11_BUILTIN): Add.
38289         (BUILT_IN_ALIGNED_ALLOC): Likewise.
38290         * coretypes.h (enum function_class): Add function_c11_misc.
38291         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
38292         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
38293         (call_may_clobber_ref_p_1): Likewise.
38294         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
38295         (mark_all_reaching_defs_necessary_1): Likewise.
38296         (propagate_necessity): Likewise.
38297         (eliminate_unnecessary_stmts): Likewise.
38298         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
38300 2014-04-28  Richard Biener  <rguenther@suse.de>
38302         * tree-vrp.c (vrp_var_may_overflow): Remove.
38303         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
38304         with overflow immediately bump to one before that value and
38305         let iteration figure out overflow status.
38307 2014-04-28  Richard Biener  <rguenther@suse.de>
38309         * configure.ac: Do valgrind header checks unconditionally.
38310         Add --enable-valgrind-annotations.
38311         * system.h: Guard valgrind header inclusion with
38312         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
38313         * alloc-pool.c (pool_alloc, pool_free): Use
38314         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
38315         to guard possibly dead code.
38316         * config.in: Regenerated.
38317         * configure: Likewise.
38319 2014-04-28  Jeff Law  <law@redhat.com>
38321         PR tree-optimization/60902
38322         * tree-ssa-threadedge.c
38323         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
38324         over real defs when invalidating outputs from statements that do not
38325         produce useful outputs for threading.
38327 2014-04-28  Richard Biener  <rguenther@suse.de>
38329         PR tree-optimization/60979
38330         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
38331         SCOPs that end in a block with a successor with abnormal
38332         predecessors.
38334 2014-04-28  Richard Biener  <rguenther@suse.de>
38336         * tree-pass.h (execute_pass_list): Adjust prototype.
38337         * passes.c (pass_manager::execute_early_local_passes): Adjust.
38338         (do_per_function): Change callback signature, push all actual
38339         work to the callbals.
38340         (do_per_function_toporder): Likewise.
38341         (execute_function_dump): Adjust.
38342         (execute_function_todo): Likewise.
38343         (clear_last_verified): Likewise.
38344         (verify_curr_properties): Likewise.
38345         (update_properties_after_pass): Likewise.
38346         (execute_pass_list_1): Split out from ...
38347         (execute_pass_list): ... here.  Adjust.
38348         (execute_ipa_pass_list): Likewise.
38349         * cgraphunit.c (cgraph_add_new_function): Adjust.
38350         (analyze_function): Likewise.
38351         (expand_function): Likewise.
38352         * cgraph.c (release_function_body): Free dominance info
38353         here instead of asserting it was magically freed elsewhere.
38355 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
38357         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
38358         * configure: Regenerate.
38359         * config/sparc/sparc.opt (muser-mode): New option.
38360         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
38361         for LEON3.
38362         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
38363         * doc/invoke.texi (SPARC options): Document -muser-mode.
38365 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
38367         * cselib.c (find_slot_memmode): Delete.
38368         (cselib_hasher): Change compare_type to a struct.
38369         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
38370         constants.
38371         (preserve_constants_and_equivs): Adjust for new compare_type.
38372         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
38373         (wrap_constant): Delete.
38374         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
38376 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
38378         * doc/install.texi (Building with profile feedback): Remove
38379         outdated sentence.
38381 2014-04-26  Tom de Vries  <tom@codesourcery.com>
38383         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
38384         array accesses.
38386 2014-04-25  Cary Coutant  <ccoutant@google.com>
38388         PR debug/60929
38389         * dwarf2out.c (should_move_die_to_comdat): A type definition
38390         can contain a subprogram definition, but don't move it to a
38391         comdat unit.
38392         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
38393         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
38394         from original DIE.
38395         (clone_tree_hash): Rename to...
38396         (clone_tree_partial): ...this; change callers.  Copy
38397         DW_TAG_subprogram DIEs as declarations.
38398         (copy_decls_walk): Don't copy children of a declaration into a
38399         type unit.
38401 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
38403         PR target/60969
38404         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
38405         alternative 12.
38407 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
38409         * config/arm/predicates.md (call_insn_operand): Add long_call check.
38410         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
38411         reg for long_call.
38412         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
38413         restriction.
38415 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38417         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
38419 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
38421         PR tree-optimization/60930
38422         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
38423         creating a multiply candidate by folding two constant
38424         multiplicands when the result overflows.
38426 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
38428         PR tree-optimization/60960
38429         * tree-vect-generic.c (expand_vector_operation): Only call
38430         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
38432 2014-04-25  Tom de Vries  <tom@codesourcery.com>
38434         * expr.c (clobber_reg_mode): New function.
38435         * expr.h (clobber_reg): New function.
38437 2014-04-25  Tom de Vries  <tom@codesourcery.com>
38439         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
38440         clobbers.
38442 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
38443             Tom de Vries  <tom@codesourcery.com>
38445         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
38446         handle.
38447         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
38448         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
38449         new argument to find_all_hard_reg_sets call.
38451 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38453         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
38454         Use HOST_WIDE_INT_C for mask literal.
38455         (aarch_rev16_shleft_mask_imm_p): Likewise.
38457 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
38459         PR target/60941
38460         * config/sparc/sparc.md (ashlsi3_extend): Delete.
38462 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
38464         PR preprocessor/56540
38465         * config/i386/i386-c.c (ix86_target_macros): Define
38466         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
38468 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38470         * configure.ac (tga_func): Remove.
38471         (LIB_TLS_SPEC): Remove.
38472         * configure: Regenerate.
38473         * config.in: Regenerate.
38474         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
38476 2014-04-25  Richard Biener  <rguenther@suse.de>
38478         PR ipa/60912
38479         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
38480         call stmt use/clobber sets during stmt walk instead of
38481         walking the possibly incomplete set of caller edges.
38483 2014-04-25  Richard Biener  <rguenther@suse.de>
38485         PR ipa/60911
38486         * passes.c (apply_ipa_transforms): Inline into only caller ...
38487         (execute_one_pass): ... here.  Properly bring in function
38488         bodies for nodes we want to apply IPA transforms to.
38490 2014-04-24  Cong Hou  <congh@google.com>
38492         PR tree-optimization/60896
38493         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
38494         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
38495         (vect_mark_pattern_stmts): Set the def type of all statements in
38496         PATTERN_DEF_SEQ as vect_internal_def.
38498 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
38500         * doc/extend.texi (PowerPC Built-in Functions): Document new
38501         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
38502         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
38504         * config/rs6000/predicates.md (const_0_to_3_operand): New
38505         predicate to match 0..3 integer constants.
38507         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
38508         to support adding miscellaneous builtin functions.
38509         (BU_DFP_MISC_2): Likewise.
38510         (BU_P7_MISC_1): Likewise.
38511         (BU_P7_MISC_2): Likewise.
38512         (BU_P8V_MISC_3): Likewise.
38513         (BU_MISC_1): Likewise.
38514         (BU_MISC_2): Likewise.
38515         (DIVWE): Add extended divide builtin functions.
38516         (DIVWEO): Likewise.
38517         (DIVWEU): Likewise.
38518         (DIVWEUO): Likewise.
38519         (DIVDE): Likewise.
38520         (DIVDEO): Likewise.
38521         (DIVDEU): Likewise.
38522         (DIVDEUO): Likewise.
38523         (DXEX): Add decimal floating-point builtin functions.
38524         (DXEXQ): Likewise.
38525         (DDEDPD): Likewise.
38526         (DDEDPDQ): Likewise.
38527         (DENBCD): Likewise.
38528         (DENBCDQ): Likewise.
38529         (DIEX): Likewise.
38530         (DIEXQ): Likewise.
38531         (DSCLI): Likewise.
38532         (DSCLIQ): Likewise.
38533         (DSCRI): Likewise.
38534         (DSCRIQ): Likewise.
38535         (CDTBCD): Add new BCD builtin functions.
38536         (CBCDTD): Likewise.
38537         (ADDG6S): Likewise.
38538         (BCDADD): Likewise.
38539         (BCDADD_LT): Likewise.
38540         (BCDADD_EQ): Likewise.
38541         (BCDADD_GT): Likewise.
38542         (BCDADD_OV): Likewise.
38543         (BCDSUB): Likewise.
38544         (BCDSUB_LT): Likewise.
38545         (BCDSUB_EQ): Likewise.
38546         (BCDSUB_GT): Likewise.
38547         (BCDSUB_OV): Likewise.
38548         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
38549         (UNPACK_TD): Likewise.
38550         (PACK_TF): Likewise.
38551         (UNPACK_TF): Likewise.
38552         (UNPACK_TF_0): Likewise.
38553         (UNPACK_TF_1): Likewise.
38554         (PACK_V1TI): Likewise.
38555         (UNPACK_V1TI): Likewise.
38557         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
38558         support for decimal floating point builtin functions.
38559         (rs6000_expand_ternop_builtin): Add checks for the new builtin
38560         functions that take constant arguments.
38561         (rs6000_invalid_builtin): Add decimal floating point builtin support.
38562         (rs6000_init_builtins): Setup long double, _Decimal64, and
38563         _Decimal128 types for new builtin functions.
38564         (builtin_function_type): Set the unsigned flags appropriately for
38565         the new builtin functions.
38566         (rs6000_opt_masks): Add support for decimal floating point builtin
38567         functions.
38569         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
38570         floating point builtin functions.
38571         (RS6000_BTM_COMMON): Likewise.
38572         (RS6000_BTI_long_double): Likewise.
38573         (RS6000_BTI_dfloat64): Likewise.
38574         (RS6000_BTI_dfloat128): Likewise.
38575         (long_double_type_internal_node): Likewise.
38576         (dfloat64_type_internal_node): Likewise.
38577         (dfloat128_type_internal_node): Likewise.
38579         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
38580         2.07 bcd arithmetic instructions.
38581         (UNSPEC_BCDSUB): Likewise.
38582         (UNSPEC_BCD_OVERFLOW): Likewise.
38583         (UNSPEC_BCD_ADD_SUB): Likewise.
38584         (bcd_add_sub): Likewise.
38585         (BCD_TEST): Likewise.
38586         (bcd<bcd_add_sub>): Likewise.
38587         (bcd<bcd_add_sub>_test): Likewise.
38588         (bcd<bcd_add_sub>_test2): Likewise.
38589         (bcd<bcd_add_sub>_<code>): Likewise.
38590         (peephole2 for combined bcd ops): Likewise.
38592         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
38593         decimal floating point builtin functions.
38594         (UNSPEC_DENBCD): Likewise.
38595         (UNSPEC_DXEX): Likewise.
38596         (UNSPEC_DIEX): Likewise.
38597         (UNSPEC_DSCLI): Likewise.
38598         (UNSPEC_DSCRI): Likewise.
38599         (D64_D128): Likewise.
38600         (dfp_suffix): Likewise.
38601         (dfp_ddedpd_<mode>): Likewise.
38602         (dfp_denbcd_<mode>): Likewise.
38603         (dfp_dxex_<mode>): Likewise.
38604         (dfp_diex_<mode>): Likewise.
38605         (dfp_dscli_<mode>): Likewise.
38606         (dfp_dscri_<mode>): Likewise.
38608         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
38609         builtin functions.
38610         (UNSPEC_CDTBCD): Likewise.
38611         (UNSPEC_CBCDTD): Likewise.
38612         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
38613         (UNSPEC_DIVEO): Likewise.
38614         (UNSPEC_DIVEU): Likewise.
38615         (UNSPEC_DIVEUO): Likewise.
38616         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
38617         pack/unpack 128-bit types.
38618         (UNSPEC_PACK_128BIT): Likewise.
38619         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
38620         (udiv<mode>3): Use idiv_ldiv mode attribute.
38621         (div<mode>3): Likewise.
38622         (addg6s): Add new BCD builtin functions.
38623         (cdtbcd): Likewise.
38624         (cbcdtd): Likewise.
38625         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
38626         (div_extend): Likewise.
38627         (div<div_extend>_<mode>"): Likewise.
38628         (FP128_64): Add support for new builtin functions to pack/unpack
38629         128-bit types.
38630         (unpack<mode>): Likewise.
38631         (unpacktf_0): Likewise.
38632         (unpacktf_1): Likewise.
38633         (unpack<mode>_dm): Likewise.
38634         (unpack<mode>_nodm): Likewise.
38635         (pack<mode>): Likewise.
38636         (unpackv1ti): Likewise.
38637         (packv1ti): Likewise.
38639 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
38641         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
38642         is disabled.
38644 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
38646         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
38647         * gimplify.c (omp_is_private): Change last argument's type to int.
38648         Only diagnose lastprivate if the simd argument is 1, only diagnose
38649         linear if the simd argument is 2.
38650         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
38651         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
38652         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
38653         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
38654         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
38655         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
38656         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
38657         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
38658         * tree-nested.c (convert_nonlocal_omp_clauses,
38659         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
38661 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
38663         PR target/60822
38664         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
38665         operand 1.
38667 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
38669         * flag-types.h (enum ivar_visibility): Add.
38671 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
38673         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
38674         function * argument.
38676 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
38678         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
38680 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
38681             Tom de Vries  <tom@codesourcery.com>
38683         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
38684         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
38685         reg-note.
38686         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
38687         * emit-rtl.c (try_split): Same.
38689 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
38690             Tom de Vries  <tom@codesourcery.com>
38692         * common.opt (fuse-caller-save): New option.
38694 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
38696         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
38697         elements for big-endian.
38699 2014-04-24  Richard Biener  <rguenther@suse.de>
38701         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
38702         during TER and instead use the sepops interface for expanding
38703         non-GIMPLE_SINGLE_RHS.
38705 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38707         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
38708         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
38710 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38712         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
38713         assembler 64-bit option.
38714         * configure: Regenerate.
38716 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38718         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
38719         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
38720         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
38721         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
38722         (TARGET_CRYPTO): Take TARGET_SIMD into account.
38724 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38726         * config/aarch64/aarch64-builtins.c
38727         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
38728         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
38729         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
38730         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
38731         builtins.
38732         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
38733         (Vrevsuff): New mode attribute.
38735 2014-04-24  Terry Guo  <terry.guo@arm.com>
38737         * config/arm/arm.h (machine_function): Define variable
38738         after_arm_reorg here.
38739         * config/arm/arm.c (after_arm_reorg): Remove the definition.
38740         (arm_split_constant): Update the way to access variable
38741         after_arm_reorg.
38742         (arm_reorg): Ditto.
38743         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
38745 2014-04-23  Tom de Vries  <tom@codesourcery.com>
38747         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
38749 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
38751         * is-a.h: Update comments to reflect the following changes to the
38752         "pointerness" of the API, making the template parameter match the
38753         return type, allowing use of is-a.h with typedefs of pointers.
38754         (is_a_helper::cast): Return a T rather then a pointer to a T, so
38755         that the return type matches the parameter to the is_a_helper.
38756         (as_a): Likewise.
38757         (dyn_cast): Likewise.
38759         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
38760         pointer from the is-a.h API.
38762         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
38763         (is_a_helper <cgraph_node *>::test): ...this, matching change to
38764         is-a.h API.
38765         (is_a_helper <varpool_node>::test): Likewise, convert to...
38766         (is_a_helper <varpool_node *>::test): ...this.
38768         (varpool_first_variable): Update for removal of implicit pointer
38769         from the is-a.h API.
38770         (varpool_next_variable): Likewise.
38771         (varpool_first_static_initializer): Likewise.
38772         (varpool_next_static_initializer): Likewise.
38773         (varpool_first_defined_variable): Likewise.
38774         (varpool_next_defined_variable): Likewise.
38775         (cgraph_first_defined_function): Likewise.
38776         (cgraph_next_defined_function): Likewise.
38777         (cgraph_first_function): Likewise.
38778         (cgraph_next_function): Likewise.
38779         (cgraph_first_function_with_gimple_body): Likewise.
38780         (cgraph_next_function_with_gimple_body): Likewise.
38781         (cgraph_alias_target): Likewise.
38782         (varpool_alias_target): Likewise.
38783         (cgraph_function_or_thunk_node): Likewise.
38784         (varpool_variable_node): Likewise.
38785         (symtab_real_symbol_p): Likewise.
38786         * cgraphunit.c (referred_to_p): Likewise.
38787         (analyze_functions): Likewise.
38788         (handle_alias_pairs): Likewise.
38789         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
38790         * gimple-ssa.h (gimple_vuse_op): Likewise.
38791         (gimple_vdef_op): Likewise.
38792         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
38793         * gimple.c (gimple_build_asm_1): Likewise.
38794         (gimple_build_try): Likewise.
38795         (gimple_build_resx): Likewise.
38796         (gimple_build_eh_dispatch): Likewise.
38797         (gimple_build_omp_for): Likewise.
38798         (gimple_omp_for_set_clauses): Likewise.
38800         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
38801         (is_a_helper <gimple_statement_asm *>::test): ...this.
38802         (is_a_helper <gimple_statement_bind>::test): Convert to...
38803         (is_a_helper <gimple_statement_bind *>::test): ...this.
38804         (is_a_helper <gimple_statement_call>::test): Convert to...
38805         (is_a_helper <gimple_statement_call *>::test): ...this.
38806         (is_a_helper <gimple_statement_catch>::test): Convert to...
38807         (is_a_helper <gimple_statement_catch *>::test): ...this.
38808         (is_a_helper <gimple_statement_resx>::test): Convert to...
38809         (is_a_helper <gimple_statement_resx *>::test): ...this.
38810         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
38811         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
38812         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
38813         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
38814         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
38815         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
38816         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
38817         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
38818         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
38819         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
38820         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
38821         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
38822         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
38823         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
38824         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
38825         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
38826         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
38827         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
38828         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
38829         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
38830         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
38831         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
38832         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
38833         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
38834         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
38835         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
38836         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
38837         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
38838         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
38839         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
38840         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
38841         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
38842         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
38843         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
38844         (is_a_helper <gimple_statement_phi>::test): Convert to...
38845         (is_a_helper <gimple_statement_phi *>::test): ...this.
38846         (is_a_helper <gimple_statement_transaction>::test): Convert to...
38847         (is_a_helper <gimple_statement_transaction *>::test): ...this.
38848         (is_a_helper <gimple_statement_try>::test): Convert to...
38849         (is_a_helper <gimple_statement_try *>::test): ...this.
38850         (is_a_helper <gimple_statement_wce>::test): Convert to...
38851         (is_a_helper <gimple_statement_wce *>::test): ...this.
38852         (is_a_helper <const gimple_statement_asm>::test): Convert to...
38853         (is_a_helper <const gimple_statement_asm *>::test): ...this.
38854         (is_a_helper <const gimple_statement_bind>::test): Convert to...
38855         (is_a_helper <const gimple_statement_bind *>::test): ...this.
38856         (is_a_helper <const gimple_statement_call>::test): Convert to...
38857         (is_a_helper <const gimple_statement_call *>::test): ...this.
38858         (is_a_helper <const gimple_statement_catch>::test): Convert to...
38859         (is_a_helper <const gimple_statement_catch *>::test): ...this.
38860         (is_a_helper <const gimple_statement_resx>::test): Convert to...
38861         (is_a_helper <const gimple_statement_resx *>::test): ...this.
38862         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
38863         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
38864         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
38865         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
38866         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
38867         Convert to...
38868         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
38869         ...this.
38870         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
38871         Convert to...
38872         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
38873         ...this.
38874         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
38875         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
38876         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
38877         to...
38878         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
38879         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
38880         to...
38881         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
38882         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
38883         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
38884         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
38885         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
38886         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
38887         to...
38888         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
38889         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
38890         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
38891         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
38892         to...
38893         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
38894         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
38895         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
38896         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
38897         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
38898         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
38899         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
38900         (is_a_helper <const gimple_statement_phi>::test): Convert to...
38901         (is_a_helper <const gimple_statement_phi *>::test): ...this.
38902         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
38903         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
38904         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
38905         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
38906         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
38907         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
38908         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
38909         to...
38910         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
38911         ...this.
38912         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
38913         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
38915         (gimple_use_ops): Update for removal of implicit pointer from the
38916         is-a.h API.
38917         (gimple_set_use_ops): Likewise.
38918         (gimple_vuse): Likewise.
38919         (gimple_vdef): Likewise.
38920         (gimple_vuse_ptr): Likewise.
38921         (gimple_vdef_ptr): Likewise.
38922         (gimple_set_vuse): Likewise.
38923         (gimple_set_vdef): Likewise.
38924         (gimple_omp_return_set_lhs): Likewise.
38925         (gimple_omp_return_lhs): Likewise.
38926         (gimple_omp_return_lhs_ptr): Likewise.
38927         (gimple_call_fntype): Likewise.
38928         (gimple_call_set_fntype): Likewise.
38929         (gimple_call_set_internal_fn): Likewise.
38930         (gimple_call_use_set): Likewise.
38931         (gimple_call_clobber_set): Likewise.
38932         (gimple_bind_vars): Likewise.
38933         (gimple_bind_set_vars): Likewise.
38934         (gimple_bind_body_ptr): Likewise.
38935         (gimple_bind_set_body): Likewise.
38936         (gimple_bind_add_stmt): Likewise.
38937         (gimple_bind_block): Likewise.
38938         (gimple_bind_set_block): Likewise.
38939         (gimple_asm_ninputs): Likewise.
38940         (gimple_asm_noutputs): Likewise.
38941         (gimple_asm_nclobbers): Likewise.
38942         (gimple_asm_nlabels): Likewise.
38943         (gimple_asm_input_op): Likewise.
38944         (gimple_asm_input_op_ptr): Likewise.
38945         (gimple_asm_output_op): Likewise.
38946         (gimple_asm_output_op_ptr): Likewise.
38947         (gimple_asm_set_output_op): Likewise.
38948         (gimple_asm_clobber_op): Likewise.
38949         (gimple_asm_set_clobber_op): Likewise.
38950         (gimple_asm_label_op): Likewise.
38951         (gimple_asm_set_label_op): Likewise.
38952         (gimple_asm_string): Likewise.
38953         (gimple_catch_types): Likewise.
38954         (gimple_catch_types_ptr): Likewise.
38955         (gimple_catch_handler_ptr): Likewise.
38956         (gimple_catch_set_types): Likewise.
38957         (gimple_catch_set_handler): Likewise.
38958         (gimple_eh_filter_types): Likewise.
38959         (gimple_eh_filter_types_ptr): Likewise.
38960         (gimple_eh_filter_failure_ptr): Likewise.
38961         (gimple_eh_filter_set_types): Likewise.
38962         (gimple_eh_filter_set_failure): Likewise.
38963         (gimple_eh_must_not_throw_fndecl): Likewise.
38964         (gimple_eh_must_not_throw_set_fndecl): Likewise.
38965         (gimple_eh_else_n_body_ptr): Likewise.
38966         (gimple_eh_else_e_body_ptr): Likewise.
38967         (gimple_eh_else_set_n_body): Likewise.
38968         (gimple_eh_else_set_e_body): Likewise.
38969         (gimple_try_eval_ptr): Likewise.
38970         (gimple_try_cleanup_ptr): Likewise.
38971         (gimple_try_set_eval): Likewise.
38972         (gimple_try_set_cleanup): Likewise.
38973         (gimple_wce_cleanup_ptr): Likewise.
38974         (gimple_wce_set_cleanup): Likewise.
38975         (gimple_phi_capacity): Likewise.
38976         (gimple_phi_num_args): Likewise.
38977         (gimple_phi_result): Likewise.
38978         (gimple_phi_result_ptr): Likewise.
38979         (gimple_phi_set_result): Likewise.
38980         (gimple_phi_arg): Likewise.
38981         (gimple_phi_set_arg): Likewise.
38982         (gimple_resx_region): Likewise.
38983         (gimple_resx_set_region): Likewise.
38984         (gimple_eh_dispatch_region): Likewise.
38985         (gimple_eh_dispatch_set_region): Likewise.
38986         (gimple_omp_critical_name): Likewise.
38987         (gimple_omp_critical_name_ptr): Likewise.
38988         (gimple_omp_critical_set_name): Likewise.
38989         (gimple_omp_for_clauses): Likewise.
38990         (gimple_omp_for_clauses_ptr): Likewise.
38991         (gimple_omp_for_set_clauses): Likewise.
38992         (gimple_omp_for_collapse): Likewise.
38993         (gimple_omp_for_index): Likewise.
38994         (gimple_omp_for_index_ptr): Likewise.
38995         (gimple_omp_for_set_index): Likewise.
38996         (gimple_omp_for_initial): Likewise.
38997         (gimple_omp_for_initial_ptr): Likewise.
38998         (gimple_omp_for_set_initial): Likewise.
38999         (gimple_omp_for_final): Likewise.
39000         (gimple_omp_for_final_ptr): Likewise.
39001         (gimple_omp_for_set_final): Likewise.
39002         (gimple_omp_for_incr): Likewise.
39003         (gimple_omp_for_incr_ptr): Likewise.
39004         (gimple_omp_for_set_incr): Likewise.
39005         (gimple_omp_for_pre_body_ptr): Likewise.
39006         (gimple_omp_for_set_pre_body): Likewise.
39007         (gimple_omp_parallel_clauses): Likewise.
39008         (gimple_omp_parallel_clauses_ptr): Likewise.
39009         (gimple_omp_parallel_set_clauses): Likewise.
39010         (gimple_omp_parallel_child_fn): Likewise.
39011         (gimple_omp_parallel_child_fn_ptr): Likewise.
39012         (gimple_omp_parallel_set_child_fn): Likewise.
39013         (gimple_omp_parallel_data_arg): Likewise.
39014         (gimple_omp_parallel_data_arg_ptr): Likewise.
39015         (gimple_omp_parallel_set_data_arg): Likewise.
39016         (gimple_omp_task_clauses): Likewise.
39017         (gimple_omp_task_clauses_ptr): Likewise.
39018         (gimple_omp_task_set_clauses): Likewise.
39019         (gimple_omp_task_child_fn): Likewise.
39020         (gimple_omp_task_child_fn_ptr): Likewise.
39021         (gimple_omp_task_set_child_fn): Likewise.
39022         (gimple_omp_task_data_arg): Likewise.
39023         (gimple_omp_task_data_arg_ptr): Likewise.
39024         (gimple_omp_task_set_data_arg): Likewise.
39025         (gimple_omp_taskreg_clauses): Likewise.
39026         (gimple_omp_taskreg_clauses_ptr): Likewise.
39027         (gimple_omp_taskreg_set_clauses): Likewise.
39028         (gimple_omp_taskreg_child_fn): Likewise.
39029         (gimple_omp_taskreg_child_fn_ptr): Likewise.
39030         (gimple_omp_taskreg_set_child_fn): Likewise.
39031         (gimple_omp_taskreg_data_arg): Likewise.
39032         (gimple_omp_taskreg_data_arg_ptr): Likewise.
39033         (gimple_omp_taskreg_set_data_arg): Likewise.
39034         (gimple_omp_task_copy_fn): Likewise.
39035         (gimple_omp_task_copy_fn_ptr): Likewise.
39036         (gimple_omp_task_set_copy_fn): Likewise.
39037         (gimple_omp_task_arg_size): Likewise.
39038         (gimple_omp_task_arg_size_ptr): Likewise.
39039         (gimple_omp_task_set_arg_size): Likewise.
39040         (gimple_omp_task_arg_align): Likewise.
39041         (gimple_omp_task_arg_align_ptr): Likewise.
39042         (gimple_omp_task_set_arg_align): Likewise.
39043         (gimple_omp_single_clauses): Likewise.
39044         (gimple_omp_single_clauses_ptr): Likewise.
39045         (gimple_omp_single_set_clauses): Likewise.
39046         (gimple_omp_target_clauses): Likewise.
39047         (gimple_omp_target_clauses_ptr): Likewise.
39048         (gimple_omp_target_set_clauses): Likewise.
39049         (gimple_omp_target_child_fn): Likewise.
39050         (gimple_omp_target_child_fn_ptr): Likewise.
39051         (gimple_omp_target_set_child_fn): Likewise.
39052         (gimple_omp_target_data_arg): Likewise.
39053         (gimple_omp_target_data_arg_ptr): Likewise.
39054         (gimple_omp_target_set_data_arg): Likewise.
39055         (gimple_omp_teams_clauses): Likewise.
39056         (gimple_omp_teams_clauses_ptr): Likewise.
39057         (gimple_omp_teams_set_clauses): Likewise.
39058         (gimple_omp_sections_clauses): Likewise.
39059         (gimple_omp_sections_clauses_ptr): Likewise.
39060         (gimple_omp_sections_set_clauses): Likewise.
39061         (gimple_omp_sections_control): Likewise.
39062         (gimple_omp_sections_control_ptr): Likewise.
39063         (gimple_omp_sections_set_control): Likewise.
39064         (gimple_omp_for_set_cond): Likewise.
39065         (gimple_omp_for_cond): Likewise.
39066         (gimple_omp_atomic_store_set_val): Likewise.
39067         (gimple_omp_atomic_store_val): Likewise.
39068         (gimple_omp_atomic_store_val_ptr): Likewise.
39069         (gimple_omp_atomic_load_set_lhs): Likewise.
39070         (gimple_omp_atomic_load_lhs): Likewise.
39071         (gimple_omp_atomic_load_lhs_ptr): Likewise.
39072         (gimple_omp_atomic_load_set_rhs): Likewise.
39073         (gimple_omp_atomic_load_rhs): Likewise.
39074         (gimple_omp_atomic_load_rhs_ptr): Likewise.
39075         (gimple_omp_continue_control_def): Likewise.
39076         (gimple_omp_continue_control_def_ptr): Likewise.
39077         (gimple_omp_continue_set_control_def): Likewise.
39078         (gimple_omp_continue_control_use): Likewise.
39079         (gimple_omp_continue_control_use_ptr): Likewise.
39080         (gimple_omp_continue_set_control_use): Likewise.
39081         (gimple_transaction_body_ptr): Likewise.
39082         (gimple_transaction_label): Likewise.
39083         (gimple_transaction_label_ptr): Likewise.
39084         (gimple_transaction_set_body): Likewise.
39085         (gimple_transaction_set_label): Likewise.
39087         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
39088         * ipa-inline-analysis.c (inline_write_summary): Likewise.
39089         * ipa-ref.c (ipa_record_reference): Likewise.
39090         * ipa-reference.c (analyze_function): Likewise.
39091         (ipa_reference_write_optimization_summary): Likewise.
39092         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
39093         (address_taken_from_non_vtable_p): Likewise.
39094         (comdat_can_be_unshared_p_1): Likewise.
39095         * lto-cgraph.c (lto_output_ref): Likewise.
39096         (add_references): Likewise.
39097         (compute_ltrans_boundary): Likewise.
39098         (output_symtab): Likewise.
39099         (input_ref): Likewise.
39100         (input_cgraph_1): Likewise.
39101         (output_cgraph_opt_summary): Likewise.
39102         * lto-streamer-out.c (lto_output): Likewise.
39103         (output_symbol_p): Likewise.
39104         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
39105         (lsei_start_function_in_partition): Likewise.
39106         (lsei_next_variable_in_partition): Likewise.
39107         (lsei_start_variable_in_partition): Likewise.
39108         * symtab.c (insert_to_assembler_name_hash): Likewise.
39109         (unlink_from_assembler_name_hash): Likewise.
39110         (symtab_unregister_node): Likewise.
39111         (symtab_remove_node): Likewise.
39112         (dump_symtab_node): Likewise.
39113         (verify_symtab_base): Likewise.
39114         (verify_symtab_node): Likewise.
39115         (symtab_make_decl_local): Likewise.
39116         (symtab_alias_ultimate_target): Likewise.
39117         (symtab_resolve_alias): Likewise.
39118         (symtab_get_symbol_partitioning_class): Likewise.
39119         * tree-phinodes.c (allocate_phi_node): Likewise.
39120         (reserve_phi_args_for_new_edge): Likewise.
39121         (remove_phi_args): Likewise.
39122         * varpool.c (varpool_node_for_asm): Likewise.
39123         (varpool_remove_unreferenced_decls): Likewise.
39125 2014-04-23  Jeff Law  <law@redhat.com>
39127         PR tree-optimization/60902
39128         * tree-ssa-threadedge.c
39129         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
39130         invalidate outputs from statements that do not produce useful
39131         outputs for threading.
39133 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
39135         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
39136         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
39137         machine descriptions for Stack Smashing Protector.
39139 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
39141         * aarch64.md (<optab>_rol<mode>3): New pattern.
39142         (<optab>_rolsi3_uxtw): Likewise.
39143         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
39145 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
39147         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
39148         (arm_cortex_a12_tune): Likewise.
39150 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39152         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
39154 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39156         * config/arm/arm.md (arm_rev16si2): New pattern.
39157         (arm_rev16si2_alt): Likewise.
39158         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
39160 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39162         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
39163         (rev16<mode>2_alt): Likewise.
39164         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
39165         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
39166         (aarch_rev16_shleft_mask_imm_p): Likewise.
39167         (aarch_rev16_p_1): Likewise.
39168         (aarch_rev16_p): Likewise.
39169         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
39170         (aarch_rev16_shright_mask_imm_p): Likewise.
39171         (aarch_rev16_shleft_mask_imm_p): Likewise.
39173 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39175         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
39176         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
39177         rev cost.
39178         (cortex_a53_extra_costs): Likewise.
39179         (cortex_a57_extra_costs): Likewise.
39180         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
39181         (cortexa7_extra_costs): Likewise.
39182         (cortexa8_extra_costs): Likewise.
39183         (cortexa12_extra_costs): Likewise.
39184         (cortexa15_extra_costs): Likewise.
39185         (v7m_extra_costs): Likewise.
39186         (arm_new_rtx_costs): Handle BSWAP.
39188 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39190         * config/arm/arm.c (cortexa8_extra_costs): New table.
39191         (arm_cortex_a8_tune): New tuning struct.
39192         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
39194 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39196         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
39198 2014-04-23  Richard Biener  <rguenther@suse.de>
39200         * Makefile.in (OBJS): Remove loop-unswitch.o.
39201         * tree-pass.h (make_pass_rtl_unswitch): Remove.
39202         * passes.def (pass_rtl_unswitch): Likewise.
39203         * loop-init.c (gate_rtl_unswitch): Likewise.
39204         (rtl_unswitch): Likewise.
39205         (pass_data_rtl_unswitch): Likewise.
39206         (pass_rtl_unswitch): Likewise.
39207         (make_pass_rtl_unswitch): Likewise.
39208         * rtl.h (reversed_condition): Likewise.
39209         (compare_and_jump_seq): Likewise.
39210         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
39211         and make static.
39212         * loop-unroll.c (compare_and_jump_seq): Likewise.
39214 2014-04-23  Richard Biener  <rguenther@suse.de>
39216         PR tree-optimization/60903
39217         * tree-ssa-loop-im.c (analyze_memory_references): Remove
39218         commented code block.
39219         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
39220         loop flags to newly created BBs and edges.
39222 2014-04-23  Nick Clifton  <nickc@redhat.com>
39224         * config/msp430/msp430.c (msp430_handle_option): Move function
39225         to msp430-common.c
39226         (msp430_option_override): Simplify mcu and mcpu option handling.
39227         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
39228         support for -mhwmult command line option.
39229         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
39230         -mhwmult command line option.
39231         (msp430_hwmult_enabled): Delete.
39232         (msp43o_output_labelref): Add support for -mhwmult command line option.
39233         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
39234         (umulsidi3): Likewise.
39235         * config/msp430/msp430.opt (mmcu): Add Report attribute.
39236         (mcpu, mlarge, msmall): Likewise.
39237         (mhwmult): New option.
39238         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
39239         prototype.
39240         (msp430_is_f5_mcu): Remove prototype.
39241         (msp430_use_f5_series_hwmult): Add prototype.
39242         * config/msp430/msp430-opts.h: New file.
39243         * common/config/msp430: New directory.
39244         * common/config/msp430/msp430-common.c: New file.
39245         * config.gcc (msp430): Remove target_has_targetm_common.
39246         * doc/invoke.texi: Document -mhwmult command line option.
39248 2014-04-23  Nick Clifton  <nickc@redhat.com>
39250         * config/i386/cygwin.h (ENDFILE_SPEC): Include
39251         default-manifest.o if it can be found in the search path.
39252         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39254 2014-04-23  Terry Guo  <terry.guo@arm.com>
39256         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
39258 2014-04-23  Richard Biener  <rguenther@suse.de>
39260         PR middle-end/60895
39261         * tree-inline.c (declare_return_variable): Use mark_addressable.
39263 2014-04-23  Richard Biener  <rguenther@suse.de>
39265         PR middle-end/60891
39266         * loop-init.c (loop_optimizer_init): Make sure to apply
39267         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
39269 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
39271         PR sanitizer/60275
39272         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
39273         New options.
39274         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
39275         if flag_sanitize_undefined_trap_on_error.
39276         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
39277         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
39278         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
39279         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
39280         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
39281         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
39282         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
39283         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
39284         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
39285         * ubsan.c (ubsan_instrument_unreachable): Return
39286         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
39287         (ubsan_expand_null_ifn): Emit __builtin_trap ()
39288         if flag_sanitize_undefined_trap_on_error and
39289         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
39290         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
39291         instrument_bool_enum_load): Emit __builtin_trap () if
39292         flag_sanitize_undefined_trap_on_error and
39293         __builtin_handle_*_abort () if !flag_sanitize_recover.
39294         * doc/invoke.texi (-fsanitize-recover,
39295         -fsanitize-undefined-trap-on-error): Document.
39297 2014-04-22  Christian Bruel  <christian.bruel@st.com>
39299         * config/sh/sh.md (mov<mode>): Replace movQIHI.
39300         Force immediates to SImode.
39302 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
39304         * config/nios2/nios2.md (UNSPEC_ROUND): New.
39305         (lroundsfsi2): New.
39306         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
39307         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
39308         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
39309         (nios2_fpu_insn): Add entry for round.
39310         (N2FPU_NO_ERRNO_P): Define.
39311         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
39312         flag_errno_math.
39313         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
39315 2014-04-22  Richard Henderson  <rth@redhat.com>
39317         * config/aarch64/aarch64 (addti3, subti3): New expanders.
39318         (add<GPI>3_compare0): Remove leading * from name.
39319         (add<GPI>3_carryin): Likewise.
39320         (sub<GPI>3_compare0): Likewise.
39321         (sub<GPI>3_carryin): Likewise.
39322         (<su_optab>mulditi3): New expander.
39323         (multi3): New expander.
39324         (madd<GPI>): Remove leading * from name.
39326 2014-04-22  Martin Jambor  <mjambor@suse.cz>
39328         * cgraphclones.c (cgraph_function_versioning): Copy
39329         ipa_transforms_to_apply instead of asserting it is empty.
39331 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
39333         PR target/60868
39334         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
39335         on count_exp to get mode.
39337 2014-04-22  Andrew Pinski  <apinski@cavium.com>
39339         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
39340         Handle TLS for ILP32.
39341         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
39342         (tlsie_small_<mode>): this and handle PTR.
39343         (tlsie_small_sidi): New pattern.
39344         (tlsle_small): Change to an expand to handle ILP32.
39345         (tlsle_small_<mode>): New pattern.
39346         (tlsdesc_small): Rename to ...
39347         (tlsdesc_small_<mode>): this and handle PTR.
39349 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39351         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
39353 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
39355         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
39356         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
39357         (aarch64_types_signed_poly_qualifiers): Likewise.
39358         (aarch64_types_unsigned_signed_qualifiers): Likewise.
39359         (aarch64_types_poly_signed_qualifiers): Likewise.
39360         (TYPES_REINTERP_SS): Type macro added.
39361         (TYPES_REINTERP_SU): Likewise.
39362         (TYPES_REINTERP_SP): Likewise.
39363         (TYPES_REINTERP_US): Likewise.
39364         (TYPES_REINTERP_PS): Likewise.
39365         (aarch64_fold_builtin): New expression folding added.
39366         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
39367         Declarations removed.
39368         (REINTERP_SS): Declarations added.
39369         (REINTERP_US): Likewise.
39370         (REINTERP_PS): Likewise.
39371         (REINTERP_SU): Likewise.
39372         (REINTERP_SP): Likewise.
39373         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
39374         (vreinterpretq_p8_f64): Likewise.
39375         (vreinterpret_p16_f64): Likewise.
39376         (vreinterpretq_p16_f64): Likewise.
39377         (vreinterpret_f32_f64): Likewise.
39378         (vreinterpretq_f32_f64): Likewise.
39379         (vreinterpret_f64_f32): Likewise.
39380         (vreinterpret_f64_p8): Likewise.
39381         (vreinterpret_f64_p16): Likewise.
39382         (vreinterpret_f64_s8): Likewise.
39383         (vreinterpret_f64_s16): Likewise.
39384         (vreinterpret_f64_s32): Likewise.
39385         (vreinterpret_f64_s64): Likewise.
39386         (vreinterpret_f64_u8): Likewise.
39387         (vreinterpret_f64_u16): Likewise.
39388         (vreinterpret_f64_u32): Likewise.
39389         (vreinterpret_f64_u64): Likewise.
39390         (vreinterpretq_f64_f32): Likewise.
39391         (vreinterpretq_f64_p8): Likewise.
39392         (vreinterpretq_f64_p16): Likewise.
39393         (vreinterpretq_f64_s8): Likewise.
39394         (vreinterpretq_f64_s16): Likewise.
39395         (vreinterpretq_f64_s32): Likewise.
39396         (vreinterpretq_f64_s64): Likewise.
39397         (vreinterpretq_f64_u8): Likewise.
39398         (vreinterpretq_f64_u16): Likewise.
39399         (vreinterpretq_f64_u32): Likewise.
39400         (vreinterpretq_f64_u64): Likewise.
39401         (vreinterpret_s64_f64): Likewise.
39402         (vreinterpretq_s64_f64): Likewise.
39403         (vreinterpret_u64_f64): Likewise.
39404         (vreinterpretq_u64_f64): Likewise.
39405         (vreinterpret_s8_f64): Likewise.
39406         (vreinterpretq_s8_f64): Likewise.
39407         (vreinterpret_s16_f64): Likewise.
39408         (vreinterpretq_s16_f64): Likewise.
39409         (vreinterpret_s32_f64): Likewise.
39410         (vreinterpretq_s32_f64): Likewise.
39411         (vreinterpret_u8_f64): Likewise.
39412         (vreinterpretq_u8_f64): Likewise.
39413         (vreinterpret_u16_f64): Likewise.
39414         (vreinterpretq_u16_f64): Likewise.
39415         (vreinterpret_u32_f64): Likewise.
39416         (vreinterpretq_u32_f64): Likewise.
39418 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
39420         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
39421         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
39422         (vreinterpret_p8_s8): Likewise.
39423         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
39424         (vreinterpret_p8_s16): Likewise.
39425         (vreinterpret_p8_s32): Likewise.
39426         (vreinterpret_p8_s64): Likewise.
39427         (vreinterpret_p8_f32): Likewise.
39428         (vreinterpret_p8_u8): Likewise.
39429         (vreinterpret_p8_u16): Likewise.
39430         (vreinterpret_p8_u32): Likewise.
39431         (vreinterpret_p8_u64): Likewise.
39432         (vreinterpret_p8_p16): Likewise.
39433         (vreinterpretq_p8_s8): Likewise.
39434         (vreinterpretq_p8_s16): Likewise.
39435         (vreinterpretq_p8_s32): Likewise.
39436         (vreinterpretq_p8_s64): Likewise.
39437         (vreinterpretq_p8_f32): Likewise.
39438         (vreinterpretq_p8_u8): Likewise.
39439         (vreinterpretq_p8_u16): Likewise.
39440         (vreinterpretq_p8_u32): Likewise.
39441         (vreinterpretq_p8_u64): Likewise.
39442         (vreinterpretq_p8_p16): Likewise.
39443         (vreinterpret_p16_s8): Likewise.
39444         (vreinterpret_p16_s16): Likewise.
39445         (vreinterpret_p16_s32): Likewise.
39446         (vreinterpret_p16_s64): Likewise.
39447         (vreinterpret_p16_f32): Likewise.
39448         (vreinterpret_p16_u8): Likewise.
39449         (vreinterpret_p16_u16): Likewise.
39450         (vreinterpret_p16_u32): Likewise.
39451         (vreinterpret_p16_u64): Likewise.
39452         (vreinterpret_p16_p8): Likewise.
39453         (vreinterpretq_p16_s8): Likewise.
39454         (vreinterpretq_p16_s16): Likewise.
39455         (vreinterpretq_p16_s32): Likewise.
39456         (vreinterpretq_p16_s64): Likewise.
39457         (vreinterpretq_p16_f32): Likewise.
39458         (vreinterpretq_p16_u8): Likewise.
39459         (vreinterpretq_p16_u16): Likewise.
39460         (vreinterpretq_p16_u32): Likewise.
39461         (vreinterpretq_p16_u64): Likewise.
39462         (vreinterpretq_p16_p8): Likewise.
39463         (vreinterpret_f32_s8): Likewise.
39464         (vreinterpret_f32_s16): Likewise.
39465         (vreinterpret_f32_s32): Likewise.
39466         (vreinterpret_f32_s64): Likewise.
39467         (vreinterpret_f32_u8): Likewise.
39468         (vreinterpret_f32_u16): Likewise.
39469         (vreinterpret_f32_u32): Likewise.
39470         (vreinterpret_f32_u64): Likewise.
39471         (vreinterpret_f32_p8): Likewise.
39472         (vreinterpret_f32_p16): Likewise.
39473         (vreinterpretq_f32_s8): Likewise.
39474         (vreinterpretq_f32_s16): Likewise.
39475         (vreinterpretq_f32_s32): Likewise.
39476         (vreinterpretq_f32_s64): Likewise.
39477         (vreinterpretq_f32_u8): Likewise.
39478         (vreinterpretq_f32_u16): Likewise.
39479         (vreinterpretq_f32_u32): Likewise.
39480         (vreinterpretq_f32_u64): Likewise.
39481         (vreinterpretq_f32_p8): Likewise.
39482         (vreinterpretq_f32_p16): Likewise.
39483         (vreinterpret_s64_s8): Likewise.
39484         (vreinterpret_s64_s16): Likewise.
39485         (vreinterpret_s64_s32): Likewise.
39486         (vreinterpret_s64_f32): Likewise.
39487         (vreinterpret_s64_u8): Likewise.
39488         (vreinterpret_s64_u16): Likewise.
39489         (vreinterpret_s64_u32): Likewise.
39490         (vreinterpret_s64_u64): Likewise.
39491         (vreinterpret_s64_p8): Likewise.
39492         (vreinterpret_s64_p16): Likewise.
39493         (vreinterpretq_s64_s8): Likewise.
39494         (vreinterpretq_s64_s16): Likewise.
39495         (vreinterpretq_s64_s32): Likewise.
39496         (vreinterpretq_s64_f32): Likewise.
39497         (vreinterpretq_s64_u8): Likewise.
39498         (vreinterpretq_s64_u16): Likewise.
39499         (vreinterpretq_s64_u32): Likewise.
39500         (vreinterpretq_s64_u64): Likewise.
39501         (vreinterpretq_s64_p8): Likewise.
39502         (vreinterpretq_s64_p16): Likewise.
39503         (vreinterpret_u64_s8): Likewise.
39504         (vreinterpret_u64_s16): Likewise.
39505         (vreinterpret_u64_s32): Likewise.
39506         (vreinterpret_u64_s64): Likewise.
39507         (vreinterpret_u64_f32): Likewise.
39508         (vreinterpret_u64_u8): Likewise.
39509         (vreinterpret_u64_u16): Likewise.
39510         (vreinterpret_u64_u32): Likewise.
39511         (vreinterpret_u64_p8): Likewise.
39512         (vreinterpret_u64_p16): Likewise.
39513         (vreinterpretq_u64_s8): Likewise.
39514         (vreinterpretq_u64_s16): Likewise.
39515         (vreinterpretq_u64_s32): Likewise.
39516         (vreinterpretq_u64_s64): Likewise.
39517         (vreinterpretq_u64_f32): Likewise.
39518         (vreinterpretq_u64_u8): Likewise.
39519         (vreinterpretq_u64_u16): Likewise.
39520         (vreinterpretq_u64_u32): Likewise.
39521         (vreinterpretq_u64_p8): Likewise.
39522         (vreinterpretq_u64_p16): Likewise.
39523         (vreinterpret_s8_s16): Likewise.
39524         (vreinterpret_s8_s32): Likewise.
39525         (vreinterpret_s8_s64): Likewise.
39526         (vreinterpret_s8_f32): Likewise.
39527         (vreinterpret_s8_u8): Likewise.
39528         (vreinterpret_s8_u16): Likewise.
39529         (vreinterpret_s8_u32): Likewise.
39530         (vreinterpret_s8_u64): Likewise.
39531         (vreinterpret_s8_p8): Likewise.
39532         (vreinterpret_s8_p16): Likewise.
39533         (vreinterpretq_s8_s16): Likewise.
39534         (vreinterpretq_s8_s32): Likewise.
39535         (vreinterpretq_s8_s64): Likewise.
39536         (vreinterpretq_s8_f32): Likewise.
39537         (vreinterpretq_s8_u8): Likewise.
39538         (vreinterpretq_s8_u16): Likewise.
39539         (vreinterpretq_s8_u32): Likewise.
39540         (vreinterpretq_s8_u64): Likewise.
39541         (vreinterpretq_s8_p8): Likewise.
39542         (vreinterpretq_s8_p16): Likewise.
39543         (vreinterpret_s16_s8): Likewise.
39544         (vreinterpret_s16_s32): Likewise.
39545         (vreinterpret_s16_s64): Likewise.
39546         (vreinterpret_s16_f32): Likewise.
39547         (vreinterpret_s16_u8): Likewise.
39548         (vreinterpret_s16_u16): Likewise.
39549         (vreinterpret_s16_u32): Likewise.
39550         (vreinterpret_s16_u64): Likewise.
39551         (vreinterpret_s16_p8): Likewise.
39552         (vreinterpret_s16_p16): Likewise.
39553         (vreinterpretq_s16_s8): Likewise.
39554         (vreinterpretq_s16_s32): Likewise.
39555         (vreinterpretq_s16_s64): Likewise.
39556         (vreinterpretq_s16_f32): Likewise.
39557         (vreinterpretq_s16_u8): Likewise.
39558         (vreinterpretq_s16_u16): Likewise.
39559         (vreinterpretq_s16_u32): Likewise.
39560         (vreinterpretq_s16_u64): Likewise.
39561         (vreinterpretq_s16_p8): Likewise.
39562         (vreinterpretq_s16_p16): Likewise.
39563         (vreinterpret_s32_s8): Likewise.
39564         (vreinterpret_s32_s16): Likewise.
39565         (vreinterpret_s32_s64): Likewise.
39566         (vreinterpret_s32_f32): Likewise.
39567         (vreinterpret_s32_u8): Likewise.
39568         (vreinterpret_s32_u16): Likewise.
39569         (vreinterpret_s32_u32): Likewise.
39570         (vreinterpret_s32_u64): Likewise.
39571         (vreinterpret_s32_p8): Likewise.
39572         (vreinterpret_s32_p16): Likewise.
39573         (vreinterpretq_s32_s8): Likewise.
39574         (vreinterpretq_s32_s16): Likewise.
39575         (vreinterpretq_s32_s64): Likewise.
39576         (vreinterpretq_s32_f32): Likewise.
39577         (vreinterpretq_s32_u8): Likewise.
39578         (vreinterpretq_s32_u16): Likewise.
39579         (vreinterpretq_s32_u32): Likewise.
39580         (vreinterpretq_s32_u64): Likewise.
39581         (vreinterpretq_s32_p8): Likewise.
39582         (vreinterpretq_s32_p16): Likewise.
39583         (vreinterpret_u8_s8): Likewise.
39584         (vreinterpret_u8_s16): Likewise.
39585         (vreinterpret_u8_s32): Likewise.
39586         (vreinterpret_u8_s64): Likewise.
39587         (vreinterpret_u8_f32): Likewise.
39588         (vreinterpret_u8_u16): Likewise.
39589         (vreinterpret_u8_u32): Likewise.
39590         (vreinterpret_u8_u64): Likewise.
39591         (vreinterpret_u8_p8): Likewise.
39592         (vreinterpret_u8_p16): Likewise.
39593         (vreinterpretq_u8_s8): Likewise.
39594         (vreinterpretq_u8_s16): Likewise.
39595         (vreinterpretq_u8_s32): Likewise.
39596         (vreinterpretq_u8_s64): Likewise.
39597         (vreinterpretq_u8_f32): Likewise.
39598         (vreinterpretq_u8_u16): Likewise.
39599         (vreinterpretq_u8_u32): Likewise.
39600         (vreinterpretq_u8_u64): Likewise.
39601         (vreinterpretq_u8_p8): Likewise.
39602         (vreinterpretq_u8_p16): Likewise.
39603         (vreinterpret_u16_s8): Likewise.
39604         (vreinterpret_u16_s16): Likewise.
39605         (vreinterpret_u16_s32): Likewise.
39606         (vreinterpret_u16_s64): Likewise.
39607         (vreinterpret_u16_f32): Likewise.
39608         (vreinterpret_u16_u8): Likewise.
39609         (vreinterpret_u16_u32): Likewise.
39610         (vreinterpret_u16_u64): Likewise.
39611         (vreinterpret_u16_p8): Likewise.
39612         (vreinterpret_u16_p16): Likewise.
39613         (vreinterpretq_u16_s8): Likewise.
39614         (vreinterpretq_u16_s16): Likewise.
39615         (vreinterpretq_u16_s32): Likewise.
39616         (vreinterpretq_u16_s64): Likewise.
39617         (vreinterpretq_u16_f32): Likewise.
39618         (vreinterpretq_u16_u8): Likewise.
39619         (vreinterpretq_u16_u32): Likewise.
39620         (vreinterpretq_u16_u64): Likewise.
39621         (vreinterpretq_u16_p8): Likewise.
39622         (vreinterpretq_u16_p16): Likewise.
39623         (vreinterpret_u32_s8): Likewise.
39624         (vreinterpret_u32_s16): Likewise.
39625         (vreinterpret_u32_s32): Likewise.
39626         (vreinterpret_u32_s64): Likewise.
39627         (vreinterpret_u32_f32): Likewise.
39628         (vreinterpret_u32_u8): Likewise.
39629         (vreinterpret_u32_u16): Likewise.
39630         (vreinterpret_u32_u64): Likewise.
39631         (vreinterpret_u32_p8): Likewise.
39632         (vreinterpret_u32_p16): Likewise.
39633         (vreinterpretq_u32_s8): Likewise.
39634         (vreinterpretq_u32_s16): Likewise.
39635         (vreinterpretq_u32_s32): Likewise.
39636         (vreinterpretq_u32_s64): Likewise.
39637         (vreinterpretq_u32_f32): Likewise.
39638         (vreinterpretq_u32_u8): Likewise.
39639         (vreinterpretq_u32_u16): Likewise.
39640         (vreinterpretq_u32_u64): Likewise.
39641         (vreinterpretq_u32_p8): Likewise.
39642         (vreinterpretq_u32_p16): Likewise.
39644 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
39646         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
39647         Pattern extended.
39648         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
39649         (sqabs): Likewise.
39650         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
39651         (vqnegd_s64): Likewise.
39652         (vqabs_s64): Likewise.
39653         (vqabsd_s64): Likewise.
39655 2014-04-22  Richard Henderson  <rth@redhat.com>
39657         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
39658         computation to the top of the loop.
39660 2014-04-22  Renlin  <renlin.li@arm.com>
39661             Jiong Wang  <jiong.wang@arm.com>
39663         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
39664         * config/aarch64/aarch64.c (aarch64_layout_frame)
39665         (aarch64_initial_elimination_offset): Likewise.
39667 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
39669         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
39670         Fix indentation.
39672 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
39674         * machmode.h (bitwise_mode_for_mode): Declare.
39675         * stor-layout.h (bitwise_type_for_mode): Likewise.
39676         * stor-layout.c (bitwise_mode_for_mode): New function.
39677         (bitwise_type_for_mode): Likewise.
39678         * builtins.c (fold_builtin_memory_op): Use it instead of
39679         int_mode_for_mode and build_nonstandard_integer_type.
39681 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39683         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
39684         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
39685         (*-*-solaris2*): Simplify.
39686         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
39687         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
39688         *-*-solaris2.9* handling.
39690         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
39691         as bug.
39692         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
39693         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
39694         handling, simplify.
39695         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
39696         * configure: Regenerate.
39698         * config/i386/sol2-9.h: Remove.
39700         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
39701         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
39702         Remove Solaris 9 references.
39704 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
39706         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
39707         (floatuns<GPI:mode><GPF:mode>2): Remove.
39708         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
39709         and floatuns conversions.
39710         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
39711         and floatuns conversions.
39712         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
39713         (w1,w2): New mode attributes for inequal width conversions.
39715 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
39717         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
39718         the output asm format.
39720 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
39722         * config/aarch64/aarch64-simd.md
39723         (aarch64_cm<optab>di): Always split.
39724         (*aarch64_cm<optab>di): New.
39725         (aarch64_cmtstdi): Always split.
39726         (*aarch64_cmtstdi): New.
39728 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
39730         PR tree-optimization/60823
39731         * omp-low.c (ipa_simd_modify_function_body): Go through
39732         all SSA_NAMEs and for those refering to vector arguments
39733         which are going to be replaced adjust SSA_NAME_VAR and,
39734         if it is a default definition, change it into a non-default
39735         definition assigned at the beginning of function from new_decl.
39736         (ipa_simd_modify_stmt_ops): Rewritten.
39737         * tree-dfa.c (set_ssa_default_def): When removing default def,
39738         check for NULL loc instead of NULL *loc.
39740 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39742         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
39743         restrictions on core registers for DImode values in Thumb2.
39745 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
39747         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
39748         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
39750 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
39752         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
39753         (*iordi_notzesidi_di): Likewise.
39754         (*iordi_notsesidi_di): Likewise.
39756 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
39758         * config/arm/arm-protos.h (tune_params): New struct members.
39759         * config/arm/arm.c: Initialise tune_params per processor.
39760         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
39761         for speed, based on new tune_params.
39763 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
39765         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
39766         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
39767         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
39768         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
39769         * config/aarch64/arm_neon.h (vrnd_f64): Added.
39770         (vrnda_f64): Likewise.
39771         (vrndi_f64): Likewise.
39772         (vrndm_f64): Likewise.
39773         (vrndn_f64): Likewise.
39774         (vrndp_f64): Likewise.
39775         (vrndx_f64): Likewise.
39777 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
39779         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
39780         GET_MODE_SIZE argument is enum machine_mode.
39782 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
39784         PR target/60910
39785         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
39786         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
39788 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
39790         PR middle-end/60281
39791         * asan.c (asan_emit_stack_protection): Force the base to align to
39792         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
39793         appropriate bits if STRICT_ALIGNMENT.
39794         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
39795         when asan is on.
39796         (expand_used_vars): Leave a space in the stack frame for alignment
39797         if STRICT_ALIGNMENT.
39799 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
39801         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
39802         than a gimple.
39803         (gimple_store_p): Likewise.
39804         (gimple_assign_load_p): Likewise.
39805         (gimple_assign_cast_p): Likewise.
39806         (gimple_clobber_p): Likewise.
39808         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
39809         rather than a gimple.
39810         (gimple_assign_cast_p): Likewise.
39812 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
39814         PR target/60735
39815         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
39816         If mode is DDmode and TARGET_E500_DOUBLE allow move.
39818         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
39819         more debug information for E500 if -mdebug=reg.
39821 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
39823         PR target/60909
39824         * config/i386/i386.c (ix86_expand_builtin)
39825         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
39826         register for target RTX.
39827         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
39829 2014-04-18  Cong Hou  <congh@google.com>
39831         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
39832         the widen-mult pattern by handling two operands with different sizes,
39833         and operands whose size is smaller than half of the result type.
39835 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
39837         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
39838         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
39839         (do_estimate_edge_time): Compute it.
39840         * ipa-inline.c (want_inline_small_function_p): Bypass
39841         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
39843 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
39845         * ipa-inline.c (spec_rem): New static variable.
39846         (dump_overall_stats): New function.
39847         (dump_inline_stats): New function.
39849 2014-04-18  Richard Henderson  <rth@redhat.com>
39851         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
39852         to GET_MODE_SIZE, not a reg_class_t.
39854 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
39856         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
39857         (vsx_xxmrglw_<mode>): Likewise.
39859 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
39861         PR target/60876
39862         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
39863         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
39864         (rs6000_init_hard_regno_mode_ok): Likewise.
39866 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
39868         * ipa-inline.c (inline_small_functions): Account only non-cold
39869         functions.
39870         * doc/invoke.texi (inline-unit-growth): Update documentation.
39872 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
39874         * config/rs6000/rs6000.md (addti3, subti3): New.
39876 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
39878         PR target/60863
39879         * config/i386/i386.c (ix86_expand_clear): Remove outdated
39880         comment.  Check optimize_insn_for_size_p instead of
39881         optimize_insn_for_speed_p.
39883 2014-04-17  Martin Jambor  <mjambor@suse.cz>
39885         * gimple-iterator.c (gsi_start_edge): New function.
39886         * gimple-iterator.h (gsi_start_edge): Declare.
39887         * tree-sra.c (single_non_eh_succ): New function.
39888         (disqualify_ops_if_throwing_stmt): Renamed to
39889         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
39890         having one non-EH successor BB.
39891         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
39892         generate loads into replacements.
39893         (sra_modify_assign): Likewise and and also use the simple path for
39894         such statements.
39895         (sra_modify_function_body): Commit statements on edges.
39897 2014-04-17  Richard Biener  <rguenther@suse.de>
39899         PR middle-end/60849
39900         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
39901         comparison results and add clarifying comment.
39903 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
39905         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
39906         (blank_mode): Initialize it.
39907         (emit_mode_size_inline, emit_mode_nunits_inline,
39908         emit_mode_inner_inline): New functions.
39909         (emit_insn_modes_h): Call them and surround their output with
39910         #if GCC_VERSION >= 4001 ... #endif.
39911         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
39912         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
39913         mode_* arrays if the argument is __builtin_constant_p.
39914         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
39915         is enum machine_mode.
39917 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
39919         * passes.c (opt_pass::execute): Adjust.
39920         (pass_manager::execute_pass_mode_switching): Likewise.
39921         (early_local_passes::execute): Likewise.
39922         (execute_one_pass): Pass cfun to the pass's execute method.
39923         * tree-pass.h (opt_pass::execute): Add function * argument.
39924         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
39925         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
39926         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
39927         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
39928         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
39929         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
39930         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
39931         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
39932         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
39933         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
39934         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
39935         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
39936         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
39937         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
39938         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
39939         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
39940         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
39941         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
39942         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
39943         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
39944         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
39945         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
39946         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
39947         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
39948         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
39949         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
39950         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
39951         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
39952         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
39953         Adjust.
39955 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
39957         * passes.c (opt_pass::gate): Take function * argument.
39958         (gate_all_early_local_passes): Merge into
39959         (early_local_passes::gate): this.
39960         (gate_all_early_optimizations): Merge into
39961         (all_early_optimizations::gate): this.
39962         (gate_all_optimizations): Mege into
39963         (all_optimizations::gate): this.
39964         (gate_all_optimizations_g): Merge into
39965         (all_optimizations_g::gate): this.
39966         (gate_rest_of_compilation): Mege into
39967         (rest_of_compilation::gate): this.
39968         (gate_postreload): Merge into
39969         (postreload::gate): this.
39970         (dump_one_pass): Pass cfun to the pass's gate method.
39971         (execute_ipa_summary_passes): Likewise.
39972         (execute_one_pass): Likewise.
39973         (ipa_write_summaries_2): Likewise.
39974         (ipa_write_optimization_summaries_1): Likewise.
39975         (ipa_read_summaries_1): Likewise.
39976         (ipa_read_optimization_summaries_1): Likewise.
39977         (execute_ipa_stmt_fixups): Likewise.
39978         * tree-pass.h (opt_pass::gate): Add function * argument.
39979         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
39980         combine-stack-adj.c, combine.c, compare-elim.c,
39981         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
39982         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
39983         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
39984         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
39985         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
39986         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
39987         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
39988         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
39989         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
39990         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
39991         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
39992         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
39993         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
39994         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
39995         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
39996         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
39997         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
39998         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
39999         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
40000         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
40001         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
40002         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
40003         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
40004         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
40005         var-tracking.c, vtable-verify.c, web.c: Adjust.
40007 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
40009         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
40010         * configure: Regenerate.
40012 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
40014         * passes.c (dump_one_pass): don't check pass->has_gate.
40015         (execute_ipa_summary_passes): Likewise.
40016         (execute_one_pass): Likewise.
40017         (ipa_write_summaries_2): Likewise.
40018         (ipa_write_optimization_summaries_1): Likewise.
40019         (ipa_read_optimization_summaries_1): Likewise.
40020         (execute_ipa_stmt_fixups): Likewise.
40021         * tree-pass.h (pass_data::has_gate): Remove.
40022         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
40023         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
40024         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
40025         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
40026         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
40027         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
40028         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
40029         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
40030         gimple-low.c, gimple-ssa-isolate-paths.c,
40031         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
40032         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
40033         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
40034         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
40035         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
40036         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
40037         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
40038         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
40039         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
40040         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
40041         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
40042         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
40043         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
40044         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
40045         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
40046         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
40047         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
40048         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
40049         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
40050         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
40051         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
40052         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
40053         Adjust.
40055 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
40057         * pass_manager.h (pass_manager::register_dump_files_1): Remove
40058         declaration.
40059         * passes.c (pass_manager::register_dump_files_1): Merge into
40060         (pass_manager::register_dump_files): this, and remove its handling of
40061         properties since the pass always has the properties anyway.
40062         (pass_manager::pass_manager): Adjust.
40064 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
40066         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
40067         * passes.c (pass_manager::register_dump_files_1): Remove dead code
40068         dealing with properties.
40069         (pass_manager::register_dump_files): Adjust.
40071 2014-03-20  Mark Wielaard  <mjw@redhat.com>
40073         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
40074         then represent the bound as normal constant value.
40076 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
40078         PR target/60847
40079         Forward port from 4.8 branch
40080         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
40082         * config/i386/bmiintrin.h (_blsi_u32): New.
40083         (_blsi_u64): Ditto.
40084         (_blsr_u32): Ditto.
40085         (_blsr_u64): Ditto.
40086         (_blsmsk_u32): Ditto.
40087         (_blsmsk_u64): Ditto.
40088         (_tzcnt_u32): Ditto.
40089         (_tzcnt_u64): Ditto.
40091 2014-04-17  Kito Cheng  <kito@0xlab.org>
40093         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
40095 2014-04-17  Richard Biener  <rguenther@suse.de>
40097         PR middle-end/60849
40098         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
40099         boolean results for comparisons.
40101 2014-04-17  Richard Biener  <rguenther@suse.de>
40103         PR tree-optimization/60836
40104         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
40105         initial PHI args to be gimple values.
40107 2014-04-17  Richard Biener  <rguenther@suse.de>
40109         PR tree-optimization/60841
40110         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
40111         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
40112         of stmts to SLP build.
40113         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
40114         (vect_analyze_slp): Likewise.
40115         (vect_analyze_slp_instance): Likewise.
40116         (vect_build_slp_tree): Limit overall SLP tree growth.
40117         * tree-vectorizer.h (vect_analyze_data_refs,
40118         vect_analyze_slp): Adjust prototypes.
40120 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
40122         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
40123         Silvermont.
40125 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
40127         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
40128         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
40129         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
40130         for TARGET_SLOW_PSHUFB
40132 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
40134         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
40135         * config/i386/i386.c (intel_cost): Ditto.
40137 2014-04-17  Joey Ye  <joey.ye@arm.com>
40139         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
40141 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
40143         * opts.c (common_handle_option): Disable -fipa-reference coorectly
40144         with -fuse-profile.
40146 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
40148         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
40149         (type_all_derivations_known_p): New predicate.
40150         (type_all_ctors_visible_p): New predicate.
40151         (type_possibly_instantiated_p): New predicate.
40152         (get_odr_type): Compute all_derivations_known.
40153         (dump_odr_type): Dump the flag.
40154         (maybe_record_type): Cleanup.
40155         (record_target_from_binfo): Add bases_to_consider array;
40156         record bases for types w/o instances and skip CXX destructor.
40157         (possible_polymorphic_call_targets_1): Add bases_to_consider
40158         and consider_construction parameters; check if type may have instance.
40159         (get_polymorphic_call_info): Set maybe_in_construction to true
40160         when we know nothing.
40161         (record_targets_from_bases): Skip CXX destructors; they are
40162         never called for types in construction.
40163         (possible_polymorphic_call_targets): Do not record target when
40164         type may not have instance.
40166 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
40168         PR ipa/60854
40169         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
40170         external aliases alive, too.
40172 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
40174         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
40175         definition.
40177 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
40179         * final.c (compute_alignments): Do not apply loop alignment to a block
40180         falling through to the exit.
40182 2014-04-16  Catherine Moore  <clm@codesourcery.com>
40184         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
40185         Adjust constraints for microMIPS store patterns.
40187 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
40189         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
40191 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
40193         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
40194         (append_use): Run at -O0.
40195         (append_vdef): Likewise.
40196         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
40197         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
40199 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
40201         PR tree-optimization/60844
40202         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
40203         (propagate_op_to_single_use, remove_visited_stmt_chain,
40204         linearize_expr, repropagate_negates, reassociate_bb): Use it
40205         instead of gsi_remove.
40207 2014-04-16  Martin Jambor  <mjambor@suse.cz>
40209         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
40210         ipa_transforms_to_apply.
40211         (cgraph_function_versioning): Assert that old_node has empty
40212         ipa_transforms_to_apply.
40213         * trans-mem.c (ipa_tm_create_version): Likewise.
40214         * tree-inline.c (tree_function_versioning): Do not duplicate
40215         ipa_transforms_to_apply.
40217 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40219         PR target/60817
40220         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
40221         x86_64-*-* cases.
40222         Pass necessary as flags on 64-bit Solaris/x86.
40223         Use lowercase relocs for x86_64-*-*.
40224         * configure: Regenerate.
40226 2014-04-15  Jan Hubicka  <jh@suse.cz>
40228         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
40229         (maybe_record_node, likely_target_p): Use it.
40231 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
40233         PR target/60839
40234         Revert following patch
40236         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
40238         PR target/60735
40239         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
40240         software floating point or no floating point registers, do not
40241         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
40242         in GPRs that occurs after we tested for GPRs that would never be
40243         true.
40245         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
40246         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
40247         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
40248         specifically allow DDmode, since that does not use the SPE SIMD
40249         instructions.
40251 2014-03-21  Mark Wielaard  <mjw@redhat.com>
40253         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
40254         as unsigned or int depending on type and value used.
40256 2014-04-15  Richard Biener  <rguenther@suse.de>
40258         PR rtl-optimization/56965
40259         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
40260         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
40261         ... here.
40262         * alias.c (true_dependence_1): Do not call
40263         nonoverlapping_component_refs_p.
40264         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
40265         nonoverlapping_component_refs_p.
40266         (indirect_refs_may_alias_p): Likewise.
40268 2014-04-15  Teresa Johnson  <tejohnson@google.com>
40270         * cfg.c (dump_bb_info): Fix flags check.
40271         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
40273 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40275         PR rtl-optimization/60663
40276         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
40277         avoid 0 cost.
40279 2014-04-15  Richard Biener  <rguenther@suse.de>
40281         * lto-streamer.h (LTO_major_version): Bump to 4.
40283 2014-04-15  Richard Biener  <rguenther@suse.de>
40285         * common.opt (lto_partition_model): New enum.
40286         (flto-partition=): Merge separate options with a single with argument,
40287         add -flto-partition=one support.
40288         * flag-types.h (enum lto_partition_model): Declare.
40289         * opts.c (finish_options): Remove duplicate -flto-partition=
40290         option check.
40291         * lto-wrapper.c (run_gcc): Adjust.
40293 2014-04-15  Richard Biener  <rguenther@suse.de>
40295         * alias.c (ncr_compar): New function.
40296         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
40298 2014-04-15  Richard Biener  <rguenther@suse.de>
40300         * alias.c (record_component_aliases): Do not walk BINFOs.
40302 2014-04-15  Richard Biener  <rguenther@suse.de>
40304         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
40305         Add struct function argument and adjust.
40306         (find_func_aliases_for_call): Likewise.
40307         (find_func_aliases): Likewise.
40308         (find_func_clobbers): Likewise.
40309         (intra_create_variable_infos): Likewise.
40310         (compute_points_to_sets): Likewise.
40311         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
40313 2014-04-15  Richard Biener  <rguenther@suse.de>
40315         * tree.c (iterative_hash_expr): Use enum tree_code_class
40316         to store TREE_CODE_CLASS.
40317         (tree_block): Likewise.
40318         (tree_set_block): Likewise.
40319         * tree.h (fold_build_pointer_plus_loc): Use
40320         convert_to_ptrofftype_loc.
40322 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
40324         PR plugins/59335
40325         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
40326         added in 4.9.
40328 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
40330         * cfgloop.h (struct loop): Move force_vectorize down.
40331         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
40332         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
40333         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
40334         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
40335         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
40336         * tree-core.h (enum annot_expr_kind): Add new kind values.
40337         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
40338         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
40339         kinds.
40340         * tree.def (ANNOTATE_EXPR): Tweak comment.
40342 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
40344         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
40345         cxa_pure_virtual).
40347 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
40349         * tree.h (TYPE_IDENTIFIER): Declare.
40350         * tree.c (subrange_type_for_debug_p): Use it.
40351         * godump.c (go_format_type): Likewise.
40352         * dwarf2out.c (is_cxx_auto, modified_type_die,
40353         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
40354         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
40356 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
40358         PR lto/60820
40359         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
40361 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
40363         * config/i386/i386.c (examine_argument): Return bool.  Return true if
40364         parameter should be passed in memory.
40365         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
40366         (construct_container): Update calls to examine_argument.
40367         (function_arg_advance_64): Ditto.
40368         (return_in_memory_32): Merge with ix86_return_in_memory.
40369         (return_in_memory_64): Ditto.
40370         (return_in_memory_ms_64): Ditto.
40372 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
40374         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
40375         * coverage.c (coverage_compute_profile_id): Handle externally visible
40376         symbols.
40378 2014-04-14  Martin Jambor  <mjambor@suse.cz>
40380         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
40381         DECL_DISREGARD_INLINE_LIMITS functions.
40383 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
40385         PR target/60827
40386         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
40388 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
40390         PR target/60827
40391         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
40392         optimize_insn_for_speed_p instead of
40393         optimize_function_for_speed_p.
40395 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
40397         * doc/invoke.texi (free): Document AArch64.
40399 2014-04-14  Richard Biener  <rguenther@suse.de>
40401         PR tree-optimization/60042
40402         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
40403         (insert_into_preds_of_block): Do not prevent PHI insertion
40404         for REFERENCE exprs here ...
40405         (eliminate_dom_walker::before_dom_children): ... but prevent
40406         their use here under similar conditions when applied to the
40407         IL after PRE optimizations.
40409 2014-04-14  Richard Biener  <rguenther@suse.de>
40411         * passes.def: Move early points-to after early SRA.
40413 2014-04-14  Richard Biener  <rguenther@suse.de>
40415         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
40416         check for which sign-changes we allow when forwarding
40417         a converted value into a switch.
40419 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
40421         * stor-layout.c (place_field): Finalize non-constant offset for the
40422         field, if any.
40424 2014-04-14  Richard Biener  <rguenther@suse.de>
40426         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
40427         as argument.
40428         (expand_switch_using_bit_tests_p): Likewise.
40429         (process_switch): Compute and pass on speed_p based on the
40430         switch stmt.
40431         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
40432         optimize_bb_for_speed_p.
40434 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
40436         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
40437         * function.h (struct function): Rename has_force_vect_loops into
40438         has_force_vectorize_loops.
40439         * lto-streamer-in.c (input_cfg): Adjust for renaming.
40440         (input_struct_function_base): Likewise.
40441         * lto-streamer-out.c (output_cfg): Likewise.
40442         (output_struct_function_base): Likewise.
40443         * omp-low.c (expand_omp_simd): Likewise.
40444         * tree-cfg.c (move_sese_region_to_fn): Likewise.
40445         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
40446         (version_loop_for_if_conversion): Likewise.
40447         (tree_if_conversion): Likewise.
40448         (main_tree_if_conversion): Likewise.
40449         (gate_tree_if_conversion): Likewise.
40450         * tree-inline.c (copy_loops): Likewise.
40451         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
40452         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
40453         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
40454         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
40455         * tree-vectorizer.c (vectorize_loops): Likewise.
40456         * tree-vectorizer.h (unlimited_cost_model): Likewise.
40458 2014-04-14  Richard Biener  <rguenther@suse.de>
40460         PR lto/60720
40461         * lto-streamer-out.c (wrap_refs): New function.
40462         (lto_output): Wrap symbol references in global initializes in
40463         type-preserving MEM_REFs.
40465 2014-04-14  Christian Bruel  <christian.bruel@st.com>
40467         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
40469 2014-04-14  Christian Bruel  <christian.bruel@st.com>
40471         * config/sh/sh.md (setmemqi): New expand pattern.
40472         * config/sh/sh.h (CLEAR_RATIO): Define.
40473         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
40474         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
40476 2014-04-14  Richard Biener  <rguenther@suse.de>
40478         PR middle-end/55022
40479         * fold-const.c (negate_expr_p): Don't negate directional rounding
40480         division.
40481         (fold_negate_expr): Likewise.
40483 2014-04-14  Richard Biener  <rguenther@suse.de>
40485         PR tree-optimization/59817
40486         PR tree-optimization/60453
40487         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
40488         recursion to catch all CHRECs in the scalar evolution and restrict
40489         the predicate for the remains appropriately.
40491 2014-04-12  Catherine Moore  <clm@codesourcery.com>
40493         * config/mips/constraints.md: Add new register constraint "kb".
40494         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
40495         (*movhi_internal): Likewise.
40496         (*movqi_internal): Likewise.
40497         * config/mips/mips.h (M16_STORE_REGS): New register class.
40498         (REG_CLASS_NAMES): Add M16_STORE_REGS.
40499         (REG_CLASS_CONTENTS): Likewise.
40500         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
40502 2014-04-11  Tobias Burnus  <burnus@net-b.de>
40504         PR c/60194
40505         * doc/invoke.texi (-Wformat-signedness): Document it.
40506         (Wformat=2): Mention that this enables -Wformat-signedness.
40508 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
40510         * common/config/epiphany/epiphany-common.c
40511         (epiphany_option_optimization_table): Enable section anchors by
40512         default at -O1 or higher.
40513         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
40514         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
40515         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
40516         carries no extra cost.
40517         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
40518         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
40519         * config/epiphany/predicates.md (memclob_operand): New predicate.
40520         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
40521         Use memclob_operand predicate and X constraint for operand 3.
40523 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
40525         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
40526         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
40527         its operands.
40529 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
40531         PR rtl-optimization/60651
40532         * mode-switching.c (optimize_mode_switching): Make sure to emit
40533         sets of a lower numbered entity before sets of a higher numbered
40534         entity to a mode of the same or lower priority.
40535         When creating a seginfo for a basic block that starts with a code
40536         label, move the insertion point past the code label.
40537         (new_seginfo): Document and enforce requirement that
40538         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
40539         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
40540         * doc/tm.texi: Regenerate.
40542 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
40544         PR target/60811
40545         * config/arc/arc.c (arc_save_restore): Fix assert typo.
40547 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
40549         * BASE-VER: Set to 4.10.0.
40551 2014-04-11  Tobias Burnus  <burnus@net-b.de>
40553         PR other/59055
40554         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
40555         * doc/gcc.texi (Service): Update description in the @menu
40556         * doc/invoke.texi (Option Summary): Remove misplaced and
40557         duplicated @menu.
40559 2014-04-11  Steve Ellcey  <sellcey@mips.com>
40560             Jakub Jelinek  <jakub@redhat.com>
40562         PR middle-end/60556
40563         * expr.c (convert_move): Use emit_store_flag_force instead of
40564         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
40565         argument to it.
40567 2014-04-11  Richard Biener  <rguenther@suse.de>
40569         PR middle-end/60797
40570         * varasm.c (assemble_alias): Avoid endless error reporting
40571         recursion by setting TREE_ASM_WRITTEN.
40573 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40575         * config/s390/s390.md: Add a splitter for NOT rtx.
40577 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
40579         PR rtl-optimization/60663
40580         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
40582 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
40583             Jakub Jelinek  <jakub@redhat.com>
40585         PR lto/60567
40586         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
40587         flag from decl_node to node.
40589 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40591         PR debug/60655
40592         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
40593         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
40594         ameliorating the cases where it can be.
40596 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
40598         Revert
40599         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
40601         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40602         (loadsync_<mode>): Change mode.
40603         (load_quadpti, store_quadpti): New.
40604         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40605         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40606         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
40608 2014-04-09  Cong Hou  <congh@google.com>
40610         PR testsuite/60773
40611         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
40612         documentation.
40614 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
40616         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
40617         instead of vnor to exploit possible fusion opportunity in the
40618         future.
40619         (altivec_expand_vec_perm_const_le): Likewise.
40621 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
40623         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40624         (loadsync_<mode>): Change mode.
40625         (load_quadpti, store_quadpti): New.
40626         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40627         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40629 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
40631         PR target/60763
40632         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
40633         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
40634         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
40636 2014-04-08  Richard Biener  <rguenther@suse.de>
40638         PR middle-end/60706
40639         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
40640         a 64bit widest int print double-int similar to on HWI64 hosts.
40642 2014-04-08  Richard Biener  <rguenther@suse.de>
40644         PR tree-optimization/60785
40645         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
40646         default defs properly.
40648 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
40650         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
40651         (Weffc++): Likewise.
40653 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
40655         * ipa-devirt.c (maybe_record_node): When node is not recorded,
40656         set completep to false rather than true.
40658 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
40660         PR target/60504
40661         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
40662         ARM_TARGET2_DWARF_FORMAT.
40664 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
40666         PR target/60609
40667         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
40668         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
40669         ADDR_DIFF_VEC.
40671 2014-04-07  Richard Biener  <rguenther@suse.de>
40673         PR tree-optimization/60766
40674         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
40675         (may_eliminate_iv): Convert cand_value_at result to desired type.
40677 2014-04-07  Jason Merrill  <jason@redhat.com>
40679         PR c++/60731
40680         * common.opt (-fno-gnu-unique): Add.
40681         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
40683 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40685         * haifa-sched.c: Fix outdated function reference and minor
40686         grammar errors in introductory comment.
40688 2014-04-07  Richard Biener  <rguenther@suse.de>
40690         PR middle-end/60750
40691         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
40692         for noreturn calls.
40693         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
40695 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
40697         PR debug/55794
40698         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
40699         size accounting for thunks.
40700         (pa_asm_output_mi_thunk): Use final_start_function() and
40701         final_end_function() to output function start and end directives.
40703 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
40705         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
40706         device specific ISA/ feature information. Remove short_sp and
40707         errata_skip ds.  Add avr_device_specific_features enum to have device
40708         specific info.
40709         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
40710         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
40711         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
40712         updated device specific info.
40713         * config/avr/avr-mcus.def: Merge device specific details to
40714         dev_attribute field.
40715         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
40716         errata_skip.
40717         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
40718         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
40719         assembler if RMW isa supported by current device.
40720         * config/avr/genmultilib.awk: Update as device info structure changed.
40721         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
40723 2014-04-04  Cong Hou  <congh@google.com>
40725         PR tree-optimization/60656
40726         * tree-vect-stmts.c (supportable_widening_operation):
40727         Fix a bug that elements in a vector with vect_used_by_reduction
40728         property are incorrectly reordered when the operation on it is not
40729         consistant with the one in reduction operation.
40731 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
40733         PR rtl-optimization/60155
40734         * gcse.c (record_set_data): New function.
40735         (single_set_gcse): New function.
40736         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
40737         (hoist_code): Likewise.
40738         (get_pressure_class_and_nregs): Likewise.
40740 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
40742         * explow.c (probe_stack_range): Emit a final optimization blockage.
40744 2014-04-04  Anthony Green  <green@moxielogic.com>
40746         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
40747         typos.
40749 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
40751         PR ipa/59626
40752         * lto-cgraph.c (input_overwrite_node): Check that partitioning
40753         flags are set only during streaming.
40754         * ipa.c (process_references, walk_polymorphic_call_targets,
40755         symtab_remove_unreachable_nodes): Drop bodies of always inline
40756         after early inlining.
40757         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
40759 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
40760         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40762         PR debug/60655
40763         * dwarf2out.c (const_ok_for_output_1): Reject expressions
40764         containing a NOT.
40766 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40768         PR bootstrap/60743
40769         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
40770         duration.
40771         (cortex_a53_fdivd): Likewise.
40773 2014-04-04  Martin Jambor  <mjambor@suse.cz>
40775         PR ipa/60640
40776         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
40777         Adjust all callers.
40778         * cgraph.c (clone_of_p): Also return true if thunks match.
40779         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
40780         cgraph_function_or_thunk_node and an obsolete comment.
40781         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
40782         file.
40783         (build_function_decl_skip_args): Likewise.
40784         (set_new_clone_decl_and_node_flags): New function.
40785         (duplicate_thunk_for_node): Likewise.
40786         (redirect_edge_duplicating_thunks): Likewise.
40787         (cgraph_clone_node): New parameter args_to_skip, pass it to
40788         redirect_edge_duplicating_thunks which is called instead of
40789         cgraph_redirect_edge_callee.
40790         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
40791         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
40793 2014-04-04  Jeff Law  <law@redhat.com>
40795         PR target/60657
40796         * config/arm/predicates.md (const_int_I_operand): New predicate.
40797         (const_int_M_operand): Similarly.
40798         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
40799         const_int_operand.
40800         (insv_t2, extv_reg, extzv_t2): Likewise.
40801         (load_multiple_with_writeback): Similarly for const_int_I_operand.
40802         (pop_multiple_with_writeback_and_return): Likewise.
40803         (vfp_pop_multiple_with_writeback): Likewise
40805 2014-04-04  Richard Biener  <rguenther@suse.de>
40807         PR ipa/60746
40808         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
40809         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
40810         non-GIMPLE_LABELs.
40811         * gimplify.h (gimple_add_tmp_var_fn): Declare.
40812         * gimplify.c (gimple_add_tmp_var_fn): New function.
40813         * gimple-expr.h (create_tmp_reg_fn): Declare.
40814         * gimple-expr.c (create_tmp_reg_fn): New function.
40815         * gimple-low.c (record_vars_into): Don't change cfun.
40816         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
40817         code generation without cfun.
40819 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
40821         PR bootstrap/60719
40822         * Makefile.in (install-driver): Fix shell scripting.
40824 2014-04-03  Cong Hou  <congh@google.com>
40826         PR tree-optimization/60505
40827         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
40828         threshold of number of iterations below which no vectorization
40829         will be done.
40830         * tree-vect-loop.c (new_loop_vec_info):
40831         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
40832         * tree-vect-loop.c (vect_analyze_loop_operations):
40833         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
40834         * tree-vect-loop.c (vect_transform_loop):
40835         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
40836         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
40837         of iterations of the loop and see if we should build the epilogue.
40839 2014-04-03  Richard Biener  <rguenther@suse.de>
40841         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
40842         (streamer_tree_cache_create): Adjust.
40843         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
40844         to allow optional nodes array.
40845         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
40846         (streamer_tree_cache_append): Likewise.
40847         (streamer_tree_cache_create): Create nodes array optionally
40848         as specified by parameter.
40849         * lto-streamer-out.c (create_output_block): Avoid maintaining
40850         the node array in the writer cache.
40851         (DFS_write_tree): Remove assertion.
40852         (produce_asm_for_decls): Free the out decl state hash table early.
40853         * lto-streamer-in.c (lto_data_in_create): Adjust for
40854         streamer_tree_cache_create prototype change.
40856 2014-04-03  Richard Biener  <rguenther@suse.de>
40858         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
40859         set TREE_CHAIN to NULL_TREE.
40861 2014-04-03  Richard Biener  <rguenther@suse.de>
40863         PR tree-optimization/60740
40864         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
40865         over all GIMPLE_COND operands.
40867 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
40869         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
40870         (Weffc++): Remove Scott's numbering, merge lists and reference
40871         Wnon-virtual-dtor.
40873 2014-04-03  Nick Clifton  <nickc@redhat.com>
40875         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
40876         properly.
40878 2014-04-03  Martin Jambor  <mjambor@suse.cz>
40880         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
40881         mention gcc_unreachable before failing.
40882         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
40883         removed symbols.
40885 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
40887         PR ipa/60659
40888         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
40889         inconsistent code and instead mark the context inconsistent.
40890         (possible_polymorphic_call_targets): For inconsistent contexts
40891         return empty complete list.
40893 2014-04-02  Anthony Green  <green@moxielogic.com>
40895         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
40896         (extendqisi2, extendhisi2): Define.
40897         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
40898         (WCHAR_TYPE): Change to unsigned int.
40900 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
40902         PR tree-optimization/60733
40903         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
40904         insertion point for PHI candidates to be the end of the feeding
40905         block for the PHI argument.
40907 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
40909         PR rtl-optimization/60650
40910         * lra-constraints.c (process_alt_operands): Decrease reject for
40911         earlyclobber matching.
40913 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40915         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
40917 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40919         * config/spu/spu.c (pad_bb): Do not crash when the last
40920         insn is CODE_FOR_blockage.
40922 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40924         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
40925         lies outside the target mode.
40927 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
40929         PR target/60735
40930         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
40931         software floating point or no floating point registers, do not
40932         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
40933         in GPRs that occurs after we tested for GPRs that would never be
40934         true.
40936         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
40937         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
40938         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
40939         specifically allow DDmode, since that does not use the SPE SIMD
40940         instructions.
40942 2014-04-02  Richard Biener  <rguenther@suse.de>
40944         PR middle-end/60729
40945         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
40946         MODE_INTs.  Properly use negv_optab.
40947         (expand_abs): Likewise.
40949 2014-04-02  Richard Biener  <rguenther@suse.de>
40951         PR bootstrap/60719
40952         * Makefile.in (install-driver): Guard extra installs with special
40953         names properly.
40955 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
40957         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
40958         Document vec_vgbbd.
40960 2014-04-01  Richard Henderson  <rth@redhat.com>
40962         PR target/60704
40963         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
40964         alternative enabled before register allocation.
40966 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
40968         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
40969         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
40970         typo.
40971         (nios2_large_got_address): Remove unneeded 'sym' parameter.
40972         (nios2_got_address): Update nios2_large_got_address call site.
40973         (nios2_delegitimize_address): New function.
40974         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
40975         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
40976         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
40978 2014-04-01  Martin Husemann  <martin@duskware.de>
40980         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
40981         for -mabi=32.
40983 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
40985         PR rtl-optimization/60604
40986         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
40987         check from register_operand.
40988         (register_operand): Redefine in terms of general_operand.
40989         (nonmemory_operand): Use register_operand for the non-constant cases.
40991 2014-04-01  Richard Biener  <rguenther@suse.de>
40993         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
40995 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40997         * doc/invoke.texi (mapp-regs): Clarify.
40999 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
41001         * config/i386/avx512fintrin.h (__v32hi): Define type.
41002         (__v64qi): Likewise.
41003         (_mm512_set1_epi8): Define.
41004         (_mm512_set1_epi16): Define.
41005         (_mm512_set4_epi32): Define.
41006         (_mm512_set4_epi64): Define.
41007         (_mm512_set4_pd): Define.
41008         (_mm512_set4_ps): Define.
41009         (_mm512_setr4_epi64): Define.
41010         (_mm512_setr4_epi32): Define.
41011         (_mm512_setr4_pd): Define.
41012         (_mm512_setr4_ps): Define.
41013         (_mm512_setzero_epi32): Define.
41015 2014-03-31  Martin Jambor  <mjambor@suse.cz>
41017         PR middle-end/60647
41018         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
41019         callsite_arguments_match_p.  Updated all callers.  Also check types of
41020         corresponding formal parameters and actual arguments.
41021         (not_all_callers_have_enough_arguments_p) Renamed to
41022         some_callers_have_mismatched_arguments_p.
41024 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
41026         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
41028 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
41030         PR target/60034
41031         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
41032         section anchor.
41034 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
41036         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
41037         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
41038         Split out
41039         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
41040         Use FMAMODE_NOVF512 mode iterator.
41041         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
41042         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
41043         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
41044         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
41045         Split out
41046         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
41047         Use VF_128_256 mode iterator.
41048         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
41049         Ditto.
41051 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
41053         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
41054         static chain if needed.
41056 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
41058         PR target/60697
41059         * lra-constraints.c (index_part_to_reg): New.
41060         (process_address): Use it.
41062 2014-03-27  Jeff Law  <law@redhat.com>
41063             Jakub Jelinek  <jakub@redhat.com>
41065         PR target/60648
41066         * expr.c (do_tablejump): Use simplify_gen_binary rather than
41067         gen_rtx_{PLUS,MULT} to build up the address expression.
41069         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
41070         creating non-canonical RTL.
41072 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
41074         PR ipa/60243
41075         * ipa-inline.c (want_inline_small_function_p): Short circuit large
41076         functions; reorganize to make cheap checks first.
41077         (inline_small_functions): Do not estimate growth when dumping;
41078         it is expensive.
41079         * ipa-inline.h (inline_summary): Add min_size.
41080         (growth_likely_positive): New function.
41081         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
41082         (set_cond_stmt_execution_predicate): Cleanup.
41083         (estimate_edge_size_and_time): Compute min_size.
41084         (estimate_calls_size_and_time): Likewise.
41085         (estimate_node_size_and_time): Likewise.
41086         (inline_update_overall_summary): Update min_size.
41087         (do_estimate_edge_time): Likewise.
41088         (do_estimate_edge_size): Update.
41089         (do_estimate_edge_hints): Update.
41090         (growth_likely_positive): New function.
41092 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
41094         PR target/60693
41095         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
41096         also if addr has VOIDmode.
41098 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41100         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
41101         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
41102         Declare extern.
41103         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
41104         instructions as well as AdvancedSIMD loads.
41106 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41108         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
41109         Use crypto_aese type.
41110         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
41111         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
41112         crypto_aese, crypto_aesmc.  Move to types.md.
41113         * config/arm/types.md (crypto_aes): Split into crypto_aese,
41114         crypto_aesmc.
41115         * config/arm/iterators.md (crypto_type): Likewise.
41117 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
41119         * cgraph.c: Include expr.h and tree-dfa.h.
41120         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
41121         remove LHS.
41123 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
41125         PR target/60675
41126         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
41127         regs from checking multi-reg pseudos.
41129 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
41131         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
41133 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41135         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
41136         if it would clobber the stack pointer, even temporarily.
41138 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
41140         * mode-switching.c: Make small adjustments to the top comment.
41142 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
41144         * config/rs6000/constraints.md (wD constraint): New constraint to
41145         match the constant integer to get the top DImode/DFmode out of a
41146         vector in a VSX register.
41148         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
41149         match the constant integer to get the top DImode/DFmode out of a
41150         vector in a VSX register.
41152         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
41153         for ISA 2.07.
41155         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
41156         vbpermq builtins.
41158         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
41159         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
41161         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
41162         Optimize vec_extract of 64-bit values, where the value being
41163         extracted is in the top word, where we can use scalar
41164         instructions.  Add direct move and store support.  Combine the big
41165         endian/little endian vector select load support into a single insn.
41166         (vsx_extract_<mode>_internal1): Likewise.
41167         (vsx_extract_<mode>_internal2): Likewise.
41168         (vsx_extract_<mode>_load): Likewise.
41169         (vsx_extract_<mode>_store): Likewise.
41170         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
41171         combined into vsx_extract_<mode>_load.
41172         (vsx_extract_<mode>_one_le): Likewise.
41174         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
41175         define the top 64-bit vector element.
41177         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
41178         constraint.
41180         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
41181         Document vec_vbpermq builtin.
41183         PR target/60672
41184         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
41185         enable use of xxsldwi and xxpermdi builtin functions.
41186         (vec_xxpermdi): Likewise.
41188         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
41189         Document use of vec_xxsldwi and vec_xxpermdi builtins.
41191 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
41193         PR rtl-optimization/60650
41194         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
41195         first_p.  Use it.
41196         (find_spills_for): New.
41197         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
41198         Spill all pseudos on the second iteration.
41200 2014-03-27  Marek Polacek  <polacek@redhat.com>
41202         PR c/50347
41203         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
41204         types.
41206 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41208         * config/s390/s390.c (s390_can_use_return_insn): Check for
41209         call-saved FPRs on 31 bit.
41211 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
41213         PR middle-end/60682
41214         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
41215         if they need regimplification, just drop them instead of
41216         calling gimple_regimplify_operands on them.
41218 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
41220         PR target/60580
41221         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
41222         (aarch64_frame_pointer_required): Adjust logic.
41223         (aarch64_can_eliminate): Adjust logic.
41224         (aarch64_override_options_after_change): Adjust logic.
41226 2014-03-27  Dehao Chen  <dehao@google.com>
41228         * ipa-inline.c (early_inliner): Update node's inline info.
41230 2014-03-26  Dehao Chen  <dehao@google.com>
41232         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
41233         compiler inserted conditional jumps for NAN float check.
41235 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
41237         * ubsan.h (ubsan_create_data): Change second argument's type
41238         to const location_t *.
41239         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
41240         _("<unknown>").
41241         (ubsan_create_data): Change second argument to const location_t *PLOC.
41242         Create Loc field whenever PLOC is non-NULL.
41243         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
41244         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
41245         callers.
41247         PR other/59545
41248         * real.c (real_to_integer2): Change type of low to UHWI.
41250 2014-03-26  Tobias Burnus  <burnus@net-b.de>
41252         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
41253         (CILK_SELF_SPECS): New define.
41254         (driver_self_specs): Use it.
41256 2014-03-26  Richard Biener  <rguenther@suse.de>
41258         * tree-pretty-print.c (percent_K_format): Implement special
41259         case for LTO and its stripped down BLOCK tree.
41261 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
41263         PR sanitizer/60636
41264         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
41266         * tree-vrp.c (simplify_internal_call_using_ranges): If only
41267         one range is range_int_cst_p, but not both, at least optimize
41268         addition/subtraction of 0 and multiplication by 0 or 1.
41269         * gimple-fold.c (gimple_fold_call): Fold
41270         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
41271         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
41272         INTEGER_CSTs, try to fold at least x * 0 and y - y.
41274 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
41276         PR rtl-optimization/60452
41277         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
41278         <case REG>: Return 1 for invalid offsets from the frame pointer.
41280 2014-03-26  Marek Polacek  <polacek@redhat.com>
41282         PR c/37428
41283         * doc/extend.texi (C Extensions): Mention variable-length arrays in
41284         a structure/union.
41286 2014-03-26  Marek Polacek  <polacek@redhat.com>
41288         PR c/39525
41289         * doc/extend.texi (Designated Inits): Describe what happens to omitted
41290         field members.
41292 2014-03-26  Marek Polacek  <polacek@redhat.com>
41294         PR other/59545
41295         * ira-color.c (update_conflict_hard_regno_costs): Perform the
41296         multiplication in unsigned type.
41298 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
41300         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
41302 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
41304         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
41306 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
41308         PR ipa/60315
41309         * cif-code.def (UNREACHABLE) New code.
41310         * ipa-inline.c (inline_small_functions): Skip edges to
41311         __builtlin_unreachable.
41312         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
41313         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
41314         predicate to __bulitin_unreachable.
41315         (set_cond_stmt_execution_predicate): Fix issue when
41316         invert_tree_comparison returns ERROR_MARK.
41317         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
41318         propagate to inline clones.
41319         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
41320         to unreachable.
41321         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
41322         * cgraphclones.c (cgraph_clone_node): If call destination is already
41323         ureachable, do not redirect it back.
41324         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
41325         unreachable.
41327 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
41329         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
41330         Do not modify inline clones.
41332 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
41334         * config/i386/i386.md (general_sext_operand): New mode attr.
41335         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
41336         don't generate (sign_extend (const_int)).
41337         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
41338         operands[2].  Use We constraint instead of <i> and
41339         <general_sext_operand> predicate instead of <general_operand>.
41340         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
41341         * config/i386/constraints.md (We): New constraint.
41342         * config/i386/predicates.md (x86_64_sext_operand,
41343         sext_operand): New predicates.
41345 2014-03-25  Martin Jambor  <mjambor@suse.cz>
41347         PR ipa/60600
41348         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
41349         inconsistent devirtualizations to __builtin_unreachable.
41351 2014-03-25  Marek Polacek  <polacek@redhat.com>
41353         PR c/35449
41354         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
41356 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
41358         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
41359         order of elements for big-endian.
41361 2014-03-25  Richard Biener  <rguenther@suse.de>
41363         PR middle-end/60635
41364         * gimplify-me.c (gimple_regimplify_operands): Update the
41365         re-gimplifed stmt.
41367 2014-03-25  Martin Jambor  <mjambor@suse.cz>
41369         PR ipa/59176
41370         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
41371         (lto_output_varpool_node): Likewise.
41372         (input_overwrite_node): Likewise.
41373         (input_varpool_node): Likewise.
41375 2014-03-25  Richard Biener  <rguenther@suse.de>
41377         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
41378         (run_gcc): Likewise.
41380 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
41382         * combine.c (simplify_compare_const): Add MODE argument.
41383         Handle mode_width 0 as very large mode_width.
41384         (try_combine, simplify_comparison): Adjust callers.
41386         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
41387         type to avoid signed integer overflow.
41388         * explow.c (plus_constant): Likewise.
41390 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
41392         * doc/generic.texi: Correct typos.
41394 2014-03-24  Tobias Burnus  <burnus@net-b.de>
41396         * doc/invoke.texi (-flto): Expand section about
41397         using static libraries with LTO.
41399 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41401         PR rtl-optimization/60501
41402         * optabs.def (addptr3_optab): New optab.
41403         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
41404         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
41405         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
41407         * lra.c (emit_add3_insn): Use the addptr pattern if available.
41409         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
41411 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
41413         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
41414         _mm512_set1_pd.
41416         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
41417         (_mm256_undefined_ps): Define.
41418         (_mm256_undefined_pd): Define.
41419         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
41420         (_mm_undefined_pd): Define.
41421         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
41422         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
41423         (_mm512_undefined_ps): Define.
41424         (_mm512_undefined_pd): Define.
41425         Use _mm*_undefined_*.
41426         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
41428 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
41430         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
41431         (lshr_simd): DI mode added.
41432         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
41433         (aarch64_ushr_simddi): Likewise.
41434         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
41435         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
41436         (vshrd_n_u64): Likewise.
41438 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
41440         * Makefile.in (s-macro_list): Depend on cc1.
41442 2014-03-23  Teresa Johnson  <tejohnson@google.com>
41444         * ipa-utils.c (ipa_print_order): Use specified dump file.
41446 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
41448         PR rtl-optimization/60601
41449         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
41451         * gcc.c (eval_spec_function): Initialize save_growing_value.
41453 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
41455         PR sanitizer/60613
41456         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
41457         code == MINUS_EXPR, never swap op0 with op1.
41459         * toplev.c (init_local_tick): Avoid signed integer multiplication
41460         overflow.
41461         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
41462         shift by first operand's bitsize.
41464 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
41466         PR target/60610
41467         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
41468         redefine to 1 or 0.
41469         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
41470         TARGET_ISA_64BIT_P(x).
41472 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41474         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
41475         pattern for vector nor instead of subtract from splat(-1).
41476         (altivec_expand_vec_perm_const_le): Likewise.
41478 2014-03-21  Richard Henderson  <rth@twiddle.net>
41480         PR target/60598
41481         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
41482         related insns after epilogue_completed.
41484 2014-03-21  Martin Jambor  <mjambor@suse.cz>
41486         PR ipa/59176
41487         * cgraph.h (symtab_node): New flag body_removed.
41488         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
41489         when removing bodies.
41490         * symtab.c (dump_symtab_base): Dump body_removed flag.
41491         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
41492         had their bodies removed.
41494 2014-03-21  Martin Jambor  <mjambor@suse.cz>
41496         PR ipa/60419
41497         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
41498         in the border.
41500 2014-03-21  Richard Biener  <rguenther@suse.de>
41502         PR tree-optimization/60577
41503         * tree-core.h (struct tree_base): Document nothrow_flag use
41504         in DECL_NONALIASED.
41505         * tree.h (DECL_NONALIASED): New.
41506         (may_be_aliased): Adjust.
41507         * coverage.c (build_var): Set DECL_NONALIASED.
41509 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
41511         * expr.c (expand_expr_real_1): Remove outdated comment.
41513 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
41515         PR middle-end/60597
41516         * ira.c (adjust_cleared_regs): Call copy_rtx on
41517         *reg_equiv[REGNO (loc)].src_p before passing it to
41518         simplify_replace_fn_rtx.
41520         PR target/60568
41521         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
41522         into CONST, put pic register as first operand of PLUS.  Use
41523         gen_const_mem for both 32-bit and 64-bit PIC got loads.
41525 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
41527         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
41529 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
41531         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
41532         around for store forwarding issue in the FPU on the UT699.
41533         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
41534         loads and operations if -mfix-ut699 is specified.
41535         (divtf3_hq): Tweak attribute.
41536         (sqrttf2_hq): Likewise.
41538 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
41540         * calls.c (store_one_arg): Remove incorrect const qualification on the
41541         type of the temporary.
41542         * cfgexpand.c (expand_return): Likewise.
41543         * expr.c (expand_constructor): Likewise.
41544         (expand_expr_real_1): Likewise.
41546 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
41548         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
41549         of parts.
41551 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
41553         PR target/60039
41554         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
41556 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
41558         * config/arm/aarch-common-protos.h
41559         (alu_cost_table): Fix spelling of "extend".
41560         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
41562 2014-03-19  Richard Biener  <rguenther@suse.de>
41564         PR middle-end/60553
41565         * tree-core.h (tree_type_common): Re-order pointer members
41566         to reduce recursion depth during GC walks.
41568 2014-03-19  Marek Polacek  <polacek@redhat.com>
41570         PR sanitizer/60569
41571         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
41572         before accessing it.
41574 2014-03-19  Richard Biener  <rguenther@suse.de>
41576         PR lto/59543
41577         * lto-streamer-in.c (input_function): In WPA stage do not drop
41578         debug stmts.
41580 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
41582         PR tree-optimization/60559
41583         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
41584         with build_zero_cst assignment.
41586 2014-03-18  Kai Tietz  <ktietz@redhat.com>
41588         PR rtl-optimization/56356
41589         * sdbout.c (sdbout_parms): Verify that parms'
41590         incoming argument is valid.
41591         (sdbout_reg_parms): Likewise.
41593 2014-03-18  Richard Henderson  <rth@redhat.com>
41595         PR target/60562
41596         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
41597         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
41598         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
41600 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
41602         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
41603         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
41604         Italicize plugin event names in description.  Explain that
41605         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
41606         Remind that no GCC functions should be called after PLUGIN_FINISH.
41607         Explain what pragmas with expansion are.
41609 2014-03-18  Martin Liska  <mliska@suse.cz>
41611         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
41612         gimple call statement is update.
41613         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
41614         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
41616 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
41618         PR sanitizer/60557
41619         * ubsan.c (ubsan_instrument_unreachable): Call
41620         initialize_sanitizer_builtins.
41621         (ubsan_pass): Likewise.
41623         PR sanitizer/60535
41624         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
41625         varpool_finalize_decl instead of rest_of_decl_compilation.
41627 2014-03-18  Richard Biener  <rguenther@suse.de>
41629         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
41630         by using bitmap_and_compl instead of bitmap_and_compl_into.
41631         (df_rd_transfer_function): Likewise.
41633 2014-03-18  Richard Biener  <rguenther@suse.de>
41635         * doc/lto.texi (fresolution): Fix typo.
41637 2014-03-18  Richard Biener  <rguenther@suse.de>
41639         * doc/invoke.texi (flto): Update for changes in 4.9.
41641 2014-03-18  Richard Biener  <rguenther@suse.de>
41643         * doc/loop.texi: Remove section on the removed lambda framework.
41644         Update loop docs with recent changes in preserving loop structure.
41646 2014-03-18  Richard Biener  <rguenther@suse.de>
41648         * doc/lto.texi (-fresolution): Document.
41650 2014-03-18  Richard Biener  <rguenther@suse.de>
41652         * doc/contrib.texi: Adjust my name.
41654 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
41656         PR ipa/58721
41657         * internal-fn.c: Include diagnostic-core.h.
41658         (expand_BUILTIN_EXPECT): New function.
41659         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
41660         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
41661         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
41662         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
41663         IFN_BUILTIN_EXPECT.
41664         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
41665         Revert 3 argument __builtin_expect code.
41666         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
41667         * gimple-fold.c (gimple_fold_call): Likewise.
41668         * tree.h (fold_builtin_expect): New prototype.
41669         * builtins.c (build_builtin_expect_predicate): Add predictor
41670         argument, if non-NULL, create 3 argument __builtin_expect.
41671         (fold_builtin_expect): No longer static.  Add ARG2 argument,
41672         pass it through to build_builtin_expect_predicate.
41673         (fold_builtin_2): Adjust caller.
41674         (fold_builtin_3): Handle BUILT_IN_EXPECT.
41675         * internal-fn.def (BUILTIN_EXPECT): New.
41677 2014-03-18  Tobias Burnus  <burnus@net-b.de>
41679         PR ipa/58721
41680         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
41681         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
41682         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
41684 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
41686         PR ipa/58721
41687         * predict.c (combine_predictions_for_bb): Fix up formatting.
41688         (expr_expected_value_1, expr_expected_value): Add predictor argument,
41689         fill what it points to if non-NULL.
41690         (tree_predict_by_opcode): Adjust caller, use the predictor.
41691         * predict.def (PRED_COMPARE_AND_SWAP): Add.
41693 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
41695         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
41696         proper constant for the store mode.
41698 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
41700         * symtab.c (change_decl_assembler_name): Fix transparent alias
41701         chain construction.
41703 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
41705         * config/aarch64/aarch64.c: Correct the comments about the
41706         aarch64 stack layout.
41708 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
41710         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
41711         check for GF_OMP_FOR_KIND_FOR.
41713 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
41715         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
41716         ymm and zmm register names.
41718 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
41720         PR target/60516
41721         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
41722         note creation for the 2010-08-31 changes.
41724 2014-03-17  Marek Polacek  <polacek@redhat.com>
41726         PR middle-end/60534
41727         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
41728         as -fno-tree-loop-vectorize.
41729         (expand_omp_simd): Likewise.
41731 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
41733         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
41734         (eligible_for_call_delay): New prototype.
41735         * config/sparc/sparc.c (tls_call_delay): Rename into...
41736         (eligible_for_call_delay): ...this.  Return false if the instruction
41737         cannot be put in the delay slot of a branch.
41738         (eligible_for_restore_insn): Simplify.
41739         (eligible_for_return_delay): Return false if the instruction cannot be
41740         put in the delay slot of a branch and simplify.
41741         (eligible_for_sibcall_delay): Return false if the instruction cannot be
41742         put in the delay slot of a branch.
41743         * config/sparc/sparc.md (fix_ut699): New attribute.
41744         (tls_call_delay): Delete.
41745         (in_call_delay): Reimplement.
41746         (eligible_for_sibcall_delay): Rename into...
41747         (in_sibcall_delay): ...this.
41748         (eligible_for_return_delay): Rename into...
41749         (in_return_delay): ...this.
41750         (in_branch_delay): Reimplement.
41751         (in_uncond_branch_delay): Delete.
41752         (in_annul_branch_delay): Delete.
41754 2014-03-14  Richard Henderson  <rth@redhat.com>
41756         PR target/60525
41757         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
41758         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
41759         (*floathi<X87MODEF>2_i387_with_temp): Remove.
41760         (floathi splitters): Remove.
41761         (float<SWI48x>xf2): New pattern.
41762         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
41763         code that tried to handle DImode for 32-bit, but which was excluded
41764         by the pattern's condition.  Drop allocation of stack temporary.
41765         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
41766         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
41767         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
41768         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
41769         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
41770         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
41771         (*float<SWI48><MODEF>2_sse_interunit): Remove.
41772         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
41773         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
41774         (*float<SWI48x><X87MODEF>2_i387): Remove.
41775         (all float _with_temp splitters): Remove.
41776         (*float<SWI48x><MODEF>2_i387): New pattern.
41777         (*float<SWI48><MODEF>2_sse): New pattern.
41778         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
41779         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
41781 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
41782             Marek Polacek  <polacek@redhat.com>
41784         PR middle-end/60484
41785         * common.opt (dump_base_name_prefixed): New Variable.
41786         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
41787         if x_dump_base_name_prefixed is already set, set it at the end.
41789 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
41791         PR rtl-optimization/60508
41792         * lra-constraints.c (get_reload_reg): Add new parameter
41793         in_subreg_p.
41794         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
41795         Pass the new parameter values.
41797 2014-03-14  Richard Biener  <rguenther@suse.de>
41799         * common.opt: Revert unintented changes from r205065.
41800         * opts.c: Likewise.
41802 2014-03-14  Richard Biener  <rguenther@suse.de>
41804         PR middle-end/60518
41805         * cfghooks.c (split_block): Properly adjust all loops the
41806         block was a latch of.
41808 2014-03-14  Martin Jambor  <mjambor@suse.cz>
41810         PR lto/60461
41811         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
41812         and simplify it.
41814 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
41816         PR target/59396
41817         * config/avr/avr.c (avr_set_current_function): Pass function name
41818         through default_strip_name_encoding before sanity checking instead
41819         of skipping the first char of the assembler name.
41821 2014-03-13  Richard Henderson  <rth@redhat.com>
41823         PR debug/60438
41824         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
41825         (ix86_force_to_memory, ix86_free_from_memory): Remove.
41826         * config/i386/i386-protos.h: Likewise.
41827         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
41828         in the expander instead of a splitter.
41829         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
41830         any possibility of requiring a memory.
41831         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
41832         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
41833         (fp branch splitters): Update for ix86_split_fp_branch.
41834         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
41835         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
41836         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
41837         (*fop_<MODEF>_2_i387): Remove f/r alternative.
41838         (*fop_<MODEF>_3_i387): Likewise.
41839         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
41840         (splitters for the fop_* register patterns): Remove.
41841         (fscalexf4_i387): Rename from *fscalexf4_i387.
41842         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
41844 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
41846         PR tree-optimization/59779
41847         * tree-dfa.c (get_ref_base_and_extent): Use double_int
41848         type for bitsize and maxsize instead of HOST_WIDE_INT.
41850 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
41852         PR rtl-optimization/57320
41853         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
41854         the CFG after thread_prologue_and_epilogue_insns.
41856 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
41858         PR rtl-optimization/57189
41859         * lra-constraints.c (process_alt_operands): Disfavor spilling
41860         vector pseudos.
41862 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
41864         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
41866 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
41868         PR tree-optimization/59025
41869         PR middle-end/60418
41870         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
41871         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
41873 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
41875         PR target/60486
41876         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
41877         calls of avr_out_plus_1.
41879 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
41881         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
41882         BB's single pred and update the father loop's latch info later.
41884 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
41886         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
41887         (VEC_M): Likewise.
41888         (VEC_N): Likewise.
41889         (VEC_R): Likewise.
41890         (VEC_base): Likewise.
41891         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
41892         registers, we need to swap double words in little endian mode.
41894         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
41895         to be a container mode for 128-bit integer operations added in ISA
41896         2.07.  Unlike TImode and PTImode, the preferred register set is
41897         the Altivec/VMX registers for the 128-bit operations.
41899         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
41900         declarations.
41901         (rs6000_split_128bit_ok_p): Likewise.
41903         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
41904         macros for creating ISA 2.07 normal and overloaded builtin
41905         functions with 3 arguments.
41906         (BU_P8V_OVERLOAD_3): Likewise.
41907         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
41908         for use as overloaded functions.
41909         (VPERM_1TI_UNS): Likewise.
41910         (VSEL_1TI): Likewise.
41911         (VSEL_1TI_UNS): Likewise.
41912         (ST_INTERNAL_1ti): Likewise.
41913         (LD_INTERNAL_1ti): Likewise.
41914         (XXSEL_1TI): Likewise.
41915         (XXSEL_1TI_UNS): Likewise.
41916         (VPERM_1TI): Likewise.
41917         (VPERM_1TI_UNS): Likewise.
41918         (XXPERMDI_1TI): Likewise.
41919         (SET_1TI): Likewise.
41920         (LXVD2X_V1TI): Likewise.
41921         (STXVD2X_V1TI): Likewise.
41922         (VEC_INIT_V1TI): Likewise.
41923         (VEC_SET_V1TI): Likewise.
41924         (VEC_EXT_V1TI): Likewise.
41925         (EQV_V1TI): Likewise.
41926         (NAND_V1TI): Likewise.
41927         (ORC_V1TI): Likewise.
41928         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
41929         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
41930         overloaded builtin.
41931         (VADDUQM): Likewise.
41932         (VSUBCUQ): Likewise.
41933         (VADDEUQM): Likewise.
41934         (VADDECUQ): Likewise.
41935         (VSUBEUQM): Likewise.
41936         (VSUBECUQ): Likewise.
41938         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
41939         __int128_t and __uint128_t types.
41940         (__uint128_type): Likewise.
41941         (altivec_categorize_keyword): Add support for vector __int128_t,
41942         vector __uint128_t, vector __int128, and vector unsigned __int128
41943         as a container type for TImode operations that need to be done in
41944         VSX/Altivec registers.
41945         (rs6000_macro_to_expand): Likewise.
41946         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
41947         to support 128-bit integer instructions vaddcuq, vadduqm,
41948         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
41949         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
41951         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
41952         for V1TImode, and set up preferences to use VSX/Altivec registers.
41953         Setup VSX reload handlers.
41954         (rs6000_debug_reg_global): Likewise.
41955         (rs6000_init_hard_regno_mode_ok): Likewise.
41956         (rs6000_preferred_simd_mode): Likewise.
41957         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
41958         (easy_altivec_constant): Likewise.
41959         (output_vec_const_move): Likewise.
41960         (rs6000_expand_vector_set): Convert V1TImode set and extract to
41961         simple move.
41962         (rs6000_expand_vector_extract): Likewise.
41963         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
41964         addressing.
41965         (rs6000_const_vec): Add support for V1TImode.
41966         (rs6000_emit_le_vsx_load): Swap double words when loading or
41967         storing TImode/V1TImode.
41968         (rs6000_emit_le_vsx_store): Likewise.
41969         (rs6000_emit_le_vsx_move): Likewise.
41970         (rs6000_emit_move): Add support for V1TImode.
41971         (altivec_expand_ld_builtin): Likewise.
41972         (altivec_expand_st_builtin): Likewise.
41973         (altivec_expand_vec_init_builtin): Likewise.
41974         (altivec_expand_builtin): Likewise.
41975         (rs6000_init_builtins): Add support for V1TImode type.  Add
41976         support for ISA 2.07 128-bit integer builtins.  Define type names
41977         for the VSX/Altivec vector types.
41978         (altivec_init_builtins): Add support for overloaded vector
41979         functions with V1TImode type.
41980         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
41981         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
41982         external function.
41983         (rs6000_split_128bit_ok_p): Likewise.
41984         (rs6000_handle_altivec_attribute): Create V1TImode from vector
41985         __int128_t and vector __uint128_t.
41987         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
41988         and mode attributes.
41989         (VSX_M): Likewise.
41990         (VSX_M2): Likewise.
41991         (VSm): Likewise.
41992         (VSs): Likewise.
41993         (VSr): Likewise.
41994         (VSv): Likewise.
41995         (VS_scalar): Likewise.
41996         (VS_double): Likewise.
41997         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
41999         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
42000         we support the ISA 2.07 128-bit integer arithmetic instructions.
42001         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
42002         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
42003         and TImode types for use with the builtin functions.
42004         (V1TI_type_node): Likewise.
42005         (unsigned_V1TI_type_node): Likewise.
42006         (intTI_type_internal_node): Likewise.
42007         (uintTI_type_internal_node): Likewise.
42009         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
42010         128-bit builtin functions.
42011         (UNSPEC_VADDEUQM): Likewise.
42012         (UNSPEC_VADDECUQ): Likewise.
42013         (UNSPEC_VSUBCUQ): Likewise.
42014         (UNSPEC_VSUBEUQM): Likewise.
42015         (UNSPEC_VSUBECUQ): Likewise.
42016         (VM): Add V1TImode to vector mode iterators.
42017         (VM2): Likewise.
42018         (VI_unit): Likewise.
42019         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
42020         (altivec_vaddcuq): Likewise.
42021         (altivec_vsubuqm): Likewise.
42022         (altivec_vsubcuq): Likewise.
42023         (altivec_vaddeuqm): Likewise.
42024         (altivec_vaddecuq): Likewise.
42025         (altivec_vsubeuqm): Likewise.
42026         (altivec_vsubecuq): Likewise.
42028         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
42029         mode iterators.
42030         (BOOL_128): Likewise.
42031         (BOOL_REGS_OUTPUT): Likewise.
42032         (BOOL_REGS_OP1): Likewise.
42033         (BOOL_REGS_OP2): Likewise.
42034         (BOOL_REGS_UNARY): Likewise.
42035         (BOOL_REGS_AND_CR0): Likewise.
42037         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
42038         128-bit integer builtin support.
42039         (vec_vadduqm): Likewise.
42040         (vec_vaddecuq): Likewise.
42041         (vec_vaddeuqm): Likewise.
42042         (vec_vsubecuq): Likewise.
42043         (vec_vsubeuqm): Likewise.
42044         (vec_vsubcuq): Likewise.
42045         (vec_vsubuqm): Likewise.
42047         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
42048         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
42049         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
42050         128-bit integer add/subtract to ISA 2.07.
42052 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
42054         * config/arc/arc.c (arc_predicate_delay_insns):
42055         Fix third argument passed to conditionalize_nonjump.
42057 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
42059         * config/aarch64/aarch64-builtins.c
42060         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
42061         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
42062         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
42063         instead of __builtin_lfloor.
42064         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
42066 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
42068         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
42069         (tree_ssa_ifcombine_bb_1): New function.
42070         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
42071         is an empty forwarder block to then_bb or vice versa and then_bb
42072         and else_bb are effectively swapped.
42074 2014-03-12  Christian Bruel  <christian.bruel@st.com>
42076         PR target/60264
42077         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
42078         REG_CFA_DEF_CFA note.
42079         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
42080         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
42082 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42084         PR tree-optimization/60454
42085         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
42087 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42089         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
42090         Do not define target_cpu_default2 to generic.
42091         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
42092         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
42093         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
42095 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
42096             Marc Glisse  <marc.glisse@inria.fr>
42098         PR tree-optimization/60502
42099         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
42100         instead of build_low_bits_mask.
42102 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
42104         PR middle-end/60482
42105         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
42106         if there are multiple uses, but op doesn't live on E edge.
42107         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
42108         clobber stmts before __builtin_unreachable.
42110 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
42112         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
42113         hard_frame_pointer_rtx.
42114         * cse.c (cse_insn): Remove volatile check.
42115         * cselib.c (cselib_process_insn): Likewise.
42116         * dse.c (scan_insn): Likewise.
42118 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
42120         * config/arc/arc.c (conditionalize_nonjump): New function,
42121         broken out of ...
42122         (arc_ifcvt): ... this.
42123         (arc_predicate_delay_insns): Use it.
42125 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
42127         * config/arc/predicates.md (extend_operand): During/after reload,
42128         allow const_int_operand.
42129         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
42130         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
42131         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
42132         to "i".
42133         (umulsi3_highpart_i): Likewise.
42135 2014-03-11  Richard Biener  <rguenther@suse.de>
42137         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
42138         Add asserts to guard possible wrong-code bugs.
42140 2014-03-11  Richard Biener  <rguenther@suse.de>
42142         PR tree-optimization/60429
42143         PR tree-optimization/60485
42144         * tree-ssa-structalias.c (set_union_with_increment): Properly
42145         take into account all fields that overlap the shifted vars.
42146         (do_sd_constraint): Likewise.
42147         (do_ds_constraint): Likewise.
42148         (get_constraint_for_ptr_offset): Likewise.
42150 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
42152         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
42153         (nios2_compute_frame_layout):
42154         Add calculation of cfun->machine->fp_save_offset.
42155         (nios2_expand_prologue): Correct setting of frame pointer register
42156         in prologue.
42157         (nios2_expand_epilogue): Update recovery of stack pointer from
42158         frame pointer accordingly.
42159         (nios2_initial_elimination_offset): Update calculation of offset
42160         for eliminating to HARD_FRAME_POINTER_REGNUM.
42162 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
42164         PR ipa/60457
42165         * ipa.c (symtab_remove_unreachable_nodes): Don't call
42166         cgraph_get_create_node on VAR_DECLs.
42168 2014-03-10  Richard Biener  <rguenther@suse.de>
42170         PR middle-end/60474
42171         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
42173 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
42175         * config/vms/vms.opt (vms_float_format): New variable.
42177 2014-03-08  Tobias Burnus  <burnus@net-b.de>
42179         * doc/invoke.texi (-fcilkplus): Update implementation status.
42181 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
42182             Richard Biener  <rguenther@suse.de>
42184         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
42185         consistently accross all TUs.
42186         (run_gcc): Enable -fshort-double automatically at link at link-time
42187         and disallow override.
42189 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
42191         PR target/58271
42192         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
42193         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
42194         if they can't be used.
42196 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42198         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
42199         for Solaris 11/x86 ld.
42200         * configure: Regenerate.
42202 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42204         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
42205         (LIB_TLS_SPEC): Save as ld_tls_libs.
42206         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
42207         (HAVE_AS_IX86_TLSLDM): New test.
42208         * configure, config.in: Regenerate.
42209         * config/i386/i386.c (legitimize_tls_address): Fall back to
42210         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
42211         cannot support TLS_MODEL_LOCAL_DYNAMIC.
42212         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
42213         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
42215 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
42217         * common.opt (fira-loop-pressure): Mark as optimization.
42219 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
42221         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
42222         an OpenMP mappable type.
42224 2014-03-06  Matthias Klose  <doko@ubuntu.com>
42226         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
42227         MULTILIB_OSDIRNAMES is not defined.
42229 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
42230             Meador Inge  <meadori@codesourcery.com>
42232         PR target/58595
42233         * config/arm/arm.c (arm_tls_symbol_p): Remove.
42234         (arm_legitimize_address): Call legitimize_tls_address for any
42235         arm_tls_referenced_p expression, handle constant addend.  Call it
42236         before testing for !TARGET_ARM.
42237         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
42239 2014-03-06  Richard Biener  <rguenther@suse.de>
42241         PR middle-end/60445
42242         PR lto/60424
42243         PR lto/60427
42244         Revert
42245         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
42247         * tree-streamer.c (record_common_node): Assert we don't record
42248         nodes with type double.
42249         (preload_common_node): Skip type double, complex double and double
42250         pointer since it is now frontend dependent due to fshort-double option.
42252 2014-03-06  Richard Biener  <rguenther@suse.de>
42254         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
42255         or -fno-lto is specified and the linker has full plugin support.
42256         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
42257         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
42258         * lto-wrapper.c (merge_and_complain): Merge compile-time
42259         optimization levels.
42260         (run_gcc): And pass it through to the link options.
42262 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
42264         PR debug/60381
42265         Revert:
42266         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
42267         PR debug/59992
42268         * cselib.c (remove_useless_values): Skip to avoid quadratic
42269         behavior if the condition moved from...
42270         (cselib_process_insn): ... here holds.
42272 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
42274         PR plugins/59335
42275         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
42276         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
42278         PR plugins/59335
42279         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
42280         (TM_H): Add x86-tune.def.
42282 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42284         * config/aarch64/aarch64.c (generic_tunings):
42285         Use cortexa57_extra_costs.
42287 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
42289         PR lto/60404
42290         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
42291         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
42292         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
42293         cost for in_lto_p.
42295 2014-03-04  Heiher  <r@hev.cc>
42297         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
42298         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
42300 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
42302         * config/i386/predicates.md (const2356_operand): Change to ...
42303         (const2367_operand): ... this.
42304         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
42305         const2367_operand.
42306         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
42307         (*avx512pf_scatterpf<mode>sf): Ditto.
42308         (avx512pf_scatterpf<mode>df): Ditto.
42309         (*avx512pf_scatterpf<mode>df_mask): Ditto.
42310         (*avx512pf_scatterpf<mode>df): Ditto.
42311         * config/i386/i386.c (ix86_expand_builtin): Update
42312         incorrect hint operand error message.
42314 2014-03-04  Richard Biener  <rguenther@suse.de>
42316         * lto-section-in.c (lto_get_section_data): Fix const cast.
42318 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
42320         * tree-streamer.c (record_common_node): Assert we don't record
42321         nodes with type double.
42322         (preload_common_node): Skip type double, complex double and double
42323         pointer since it is now frontend dependent due to fshort-double option.
42325 2014-03-04  Richard Biener  <rguenther@suse.de>
42327         PR lto/60405
42328         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
42329         (lto_input_toplevel_asms): Likewise.
42330         * lto-section-in.c (lto_get_section_data): Instead do it here
42331         for every section.
42333 2014-03-04  Richard Biener  <rguenther@suse.de>
42335         PR tree-optimization/60382
42336         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
42337         dead PHIs a reduction.
42339 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
42341         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
42342         hint value.
42343         (_mm_prefetch): Move out of GCC target("sse") pragma.
42344         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
42345         GCC target("prfchw") pragma.
42346         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
42347         for locality <= 2.
42348         * config/i386/i386.c (ix86_option_override_internal): Enable
42349         -mprfchw with -mprefetchwt1.
42351 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
42353         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
42354         Mark as varying.
42356 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
42358         * opts.h (CL_PCH_IGNORE): Define.
42359         * targhooks.c (option_affects_pch_p):
42360         Return false for options that have CL_PCH_IGNORE set.
42361         * opt-functions.awk: Process PchIgnore.
42362         * doc/options.texi: Document PchIgnore.
42364         * config/arc/arc.opt (misize): Add PchIgnore property.
42366 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42368         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
42369         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
42370         constraint on constants to permit them being loaded into
42371         GENERAL_REGS or BASE_REGS.
42373 2014-03-03  Nick Clifton  <nickc@redhat.com>
42375         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
42376         anti-cacnonical alternatives.
42377         (negandhi3_real): New pattern.
42378         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
42380 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
42382         * config/avr/avr-mcus.def: Remove atxmega16x1.
42383         * config/avr/avr-tables.opt: Regenerate.
42384         * config/avr/t-multilib: Regenerate.
42385         * doc/avr-mmcu.texi: Regenerate.
42387 2014-03-03  Tobias Grosser  <tobias@grosser.es>
42388             Mircea Namolaru  <mircea.namolaru@inria.fr>
42390         PR tree-optimization/58028
42391         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
42392         scalar dimensions.
42394 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
42396         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
42397         not handled by recognizers.
42399 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
42401         PR middle-end/60175
42402         * function.c (expand_function_end): Don't emit
42403         clobber_return_register sequence if clobber_after is a BARRIER.
42404         * cfgexpand.c (construct_exit_block): Append instructions before
42405         return_label to prev_bb.
42407 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42409         * config/rs6000/constraints.md: Document reserved use of "wc".
42411 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
42413         PR ipa/60150
42414         * ipa.c (function_and_variable_visibility): When dissolving comdat
42415         group, also set all symbols to local.
42417 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
42419         PR ipa/60306
42421         Revert:
42422         2013-12-14  Jan Hubicka  <jh@suse.cz>
42423         PR middle-end/58477
42424         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
42426 2014-03-02  Jon Beniston  <jon@beniston.com>
42428         PR bootstrap/48230
42429         PR bootstrap/50927
42430         PR bootstrap/52466
42431         PR target/46898
42432         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
42433         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
42434         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
42435         (simple_return, *simple_return): New patterns
42436         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
42437         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
42439 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
42441         * dwarf2out.c (gen_subprogram_die): Tidy.
42443 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
42445         PR target/60071
42446         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
42447         (*mov_t_msb_neg_negc): ... this new insn.
42449 2014-02-28  Jason Merrill  <jason@redhat.com>
42451         PR c++/58678
42452         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
42453         function.
42455 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
42457         PR c++/60314
42458         * dwarf2out.c (decltype_auto_die): New static.
42459         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
42460         (gen_type_die_with_usage): Handle 'decltype(auto)'.
42461         (is_cxx_auto): Likewise.
42463 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
42465         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
42466         we are not using general regs only.
42468 2014-02-28  Richard Biener  <rguenther@suse.de>
42470         PR target/60280
42471         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
42472         previous fix and only allow to remove trivial pre-headers
42473         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
42474         (remove_forwarder_block): Properly update the latch of a loop.
42476 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
42478         PR debug/59992
42479         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
42480         (cselib_preserved_hash_table): New.
42481         (preserve_constants_and_equivs): Move preserved vals to it.
42482         (cselib_find_slot): Look it up first.
42483         (cselib_init): Initialize it.
42484         (cselib_finish): Release it.
42485         (dump_cselib_table): Dump it.
42487 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
42489         PR debug/59992
42490         * cselib.c (remove_useless_values): Skip to avoid quadratic
42491         behavior if the condition moved from...
42492         (cselib_process_insn): ... here holds.
42494 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
42496         PR debug/57232
42497         * var-tracking.c (vt_initialize): Apply the same condition to
42498         preserve the CFA base value.
42500 2014-02-28  Joey Ye  <joey.ye@arm.com>
42502         PR target/PR60169
42503         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
42504         if reload in progress or completed.
42506 2014-02-28  Tobias Burnus  <burnus@net-b.de>
42508         PR middle-end/60147
42509         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
42510         NAMELIST_DECL.
42512 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
42514         * doc/tm.texi.in (Condition Code Status): Update documention for
42515         relative locations of cc0-setter and cc0-user.
42517 2014-02-27  Jeff Law  <law@redhat.com>
42519         PR rtl-optimization/52714
42520         * combine.c (try_combine): When splitting an unrecognized PARALLEL
42521         into two independent simple sets, if I3 is a jump, ensure the
42522         pattern we place into I3 is a (set (pc) ...).
42524 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
42525             Jeff Law  <law@redhat.com>
42527         PR rtl-optimization/49847
42528         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
42529         are in different blocks.
42530         * doc/tm.texi (Condition Code Status): Update documention for
42531         relative locations of cc0-setter and cc0-user.
42533 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
42535         PR target/59222
42536         * lra.c (lra_emit_add): Check SUBREG too.
42538 2014-02-27  Andreas Schwab  <schwab@suse.de>
42540         * config/m68k/m68k.c (m68k_option_override): Disable
42541         -flive-range-shrinkage for classic m68k.
42542         (m68k_override_options_after_change): Likewise.
42544 2014-02-27  Marek Polacek  <polacek@redhat.com>
42546         PR middle-end/59223
42547         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
42548         -Wmaybe-uninitialized.
42550 2014-02-27  Alan Modra  <amodra@gmail.com>
42552         PR target/57936
42553         * reload1.c (emit_input_reload_insns): When reload_override_in,
42554         set old to rl->in_reg when rl->in_reg is a subreg.
42556 2014-02-26  Richard Biener  <rguenther@suse.de>
42558         PR bootstrap/60343
42559         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
42561 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
42563         * common/config/i386/predicates.md (const1256_operand): Remove.
42564         (const2356_operand): New.
42565         (const_1_to_2_operand): Remove.
42566         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
42567         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
42568         (*avx512pf_gatherpf<mode>sf): Ditto.
42569         (avx512pf_gatherpf<mode>df): Ditto.
42570         (*avx512pf_gatherpf<mode>df_mask): Ditto.
42571         (*avx512pf_gatherpf<mode>df): Ditto.
42572         (avx512pf_scatterpf<mode>sf): Ditto.
42573         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
42574         (*avx512pf_scatterpf<mode>sf): Ditto.
42575         (avx512pf_scatterpf<mode>df): Ditto.
42576         (*avx512pf_scatterpf<mode>df_mask): Ditto.
42577         (*avx512pf_scatterpf<mode>df): Ditto.
42578         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
42580 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
42582         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
42583         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
42584         (_mm512_mask_testn_epi64_mask): Move to ...
42585         * config/i386/avx512cdintrin.h: Here.
42586         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
42587         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
42588         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
42589         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
42590         TARGET_AVX512F from TARGET_AVX512CD.
42592 2014-02-26  Richard Biener  <rguenther@suse.de>
42594         PR ipa/60327
42595         * ipa.c (walk_polymorphic_call_targets): Properly guard
42596         call to inline_update_overall_summary.
42598 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
42600         PR target/60280
42601         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
42602         and latches only if requested.  Fix latch if it is removed.
42603         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
42604         LOOPS_HAVE_PREHEADERS.
42606 2014-02-25  Andrew Pinski  <apinski@cavium.com>
42608         * builtins.c (expand_builtin_thread_pointer): Create a new target
42609         when the target is NULL.
42611 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
42613         PR rtl-optimization/60317
42614         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
42615         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
42616         * lra-assigns.c: Include params.h.
42617         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
42618         other reload pseudos considerations.
42620 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42622         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
42623         to use canonical form for nor<mode>3.
42625 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42627         PR target/55426
42628         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
42629         conversions.
42631 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
42633         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
42634         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
42635         (ix86_handle_option): Handle OPT_mprefetchwt1.
42636         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
42637         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
42638         PREFETCHWT1 CPUID.
42639         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
42640         OPTION_MASK_ISA_PREFETCHWT1.
42641         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
42642         (PTA_PREFETCHWT1): New.
42643         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
42644         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
42645         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
42646         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
42647         (*prefetch_avx512pf_<mode>_: Change into ...
42648         (*prefetch_prefetchwt1_<mode>: This.
42649         * config/i386/i386.opt (mprefetchwt1): New.
42650         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
42651         (_mm_prefetch): Handle intent to write.
42652         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
42654 2014-02-25  Richard Biener  <rguenther@suse.de>
42656         PR middle-end/60291
42657         * emit-rtl.c (mem_attrs_htab): Remove.
42658         (mem_attrs_htab_hash): Likewise.
42659         (mem_attrs_htab_eq): Likewise.
42660         (set_mem_attrs): Always allocate new mem-attrs when something changed.
42661         (init_emit_once): Do not allocate mem_attrs_htab.
42663 2014-02-25  Richard Biener  <rguenther@suse.de>
42665         PR lto/60319
42666         * lto-opts.c (lto_write_options): Output non-explicit conservative
42667         -fwrapv, -fno-trapv and -fno-strict-overflow.
42668         * lto-wrapper.c (merge_and_complain): Handle merging those options.
42669         (run_gcc): And pass them through.
42671 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
42673         * sel-sched.c (calculate_new_fences): New parameter ptime.
42674         Calculate it as a maximum over all fence cycles.
42675         (sel_sched_region_2): Adjust the call to calculate_new_fences.
42676         Print the final schedule timing when sched_verbose.
42678 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
42680         PR rtl-optimization/60292
42681         * sel-sched.c (fill_vec_av_set): Do not reset target availability
42682         bit fot the fence instruction.
42684 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
42686         * calls.h: Fix typo in comment.
42688 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
42690         * config/pa/pa.c (pa_output_move_double): Don't valididate when
42691         adjusting offsetable addresses.
42693 2014-02-24  Guozhi Wei  <carrot@google.com>
42695         * sparseset.h (sparseset_pop): Fix the wrong index.
42697 2014-02-24  Walter Lee  <walt@tilera.com>
42699         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
42700         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
42701         triplet.
42702         * common/config/tilegx/tilegx-common.c
42703         (TARGET_DEFAULT_TARGET_FLAGS): Define.
42704         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
42705         (LINK_SPEC): Ditto.
42706         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
42707         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
42708         (tilegx_gimplify_va_arg_expr): Handle big endian.
42709         (tilegx_expand_unaligned_load): Ditto.
42710         (tilegx_expand_unaligned_store): Ditto.
42711         (TARGET_RETURN_IN_MSB): New.
42712         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
42713         (TARGET_ENDIAN_DEFAULT): New.
42714         (TARGET_BIG_ENDIAN): Handle big endian.
42715         (BYTES_BIG_ENDIAN): Ditto.
42716         (WORDS_BIG_ENDIAN): Ditto.
42717         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
42718         (ENDIAN_SPEC): New.
42719         (EXTRA_SPECS): New.
42720         * config/tilegx/tilegx.md (extv): Handle big endian.
42721         (extzv): Ditto.
42722         (insn_st<n>): Ditto.
42723         (insn_st<n>_add<bitsuffix>): Ditto.
42724         (insn_stnt<n>): Ditto.
42725         (insn_stnt<n>_add<bitsuffix>):Ditto.
42726         (vec_interleave_highv8qi): Handle big endian.
42727         (vec_interleave_highv8qi_be): New.
42728         (vec_interleave_highv8qi_le): New.
42729         (insn_v1int_h): Handle big endian.
42730         (vec_interleave_lowv8qi): Handle big endian.
42731         (vec_interleave_lowv8qi_be): New.
42732         (vec_interleave_lowv8qi_le): New.
42733         (insn_v1int_l): Handle big endian.
42734         (vec_interleave_highv4hi): Handle big endian.
42735         (vec_interleave_highv4hi_be): New.
42736         (vec_interleave_highv4hi_le): New.
42737         (insn_v2int_h): Handle big endian.
42738         (vec_interleave_lowv4hi): Handle big endian.
42739         (vec_interleave_lowv4hi_be): New.
42740         (vec_interleave_lowv4hi_le): New.
42741         (insn_v2int_l): Handle big endian.
42742         (vec_interleave_highv2si): Handle big endian.
42743         (vec_interleave_highv2si_be): New.
42744         (vec_interleave_highv2si_le): New.
42745         (insn_v4int_h): Handle big endian.
42746         (vec_interleave_lowv2si): Handle big endian.
42747         (vec_interleave_lowv2si_be): New.
42748         (vec_interleave_lowv2si_le): New.
42749         (insn_v4int_l): Handle big endian.
42750         * config/tilegx/tilegx.opt (mbig-endian): New option.
42751         (mlittle-endian): New option.
42752         * doc/install.texi: Document tilegxbe-linux.
42753         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
42755 2014-02-24  Martin Jambor  <mjambor@suse.cz>
42757         PR ipa/60266
42758         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
42759         there are no parameter descriptors.
42761 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
42763         PR rtl-optimization/60268
42764         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
42765         initialization to ...
42766         (sched_rgn_init): ... here.
42767         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
42769 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
42771         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
42772         names.
42774 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
42776         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
42777         definition.
42779 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
42781         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
42782         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
42784 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
42786         * config/microblaze/predicates.md: Add cmp_op predicate.
42787         * config/microblaze/microblaze.md: Add branch_compare instruction
42788         which uses cmp_op predicate and emits cmp insn before branch.
42789         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
42790         to microblaze_expand_conditional_branch and consolidate logic.
42791         (microblaze_expand_conditional_branch): emit branch_compare
42792         insn instead of handling cmp op separate from branch insn.
42794 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42796         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
42797         to permit subregs.
42799 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42801         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
42802         define_insn with define_expand and new define_insn
42803         *altivec_lve<VI_char>x_internal.
42804         (altivec_stve<VI_char>x): Replace define_insn with define_expand
42805         and new define_insn *altivec_stve<VI_char>x_internal.
42806         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
42807         prototype.
42808         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
42809         lve*x built-ins.
42810         (altivec_expand_stvex_be): New function.
42812 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
42814         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
42815         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
42816         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
42817         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
42819 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
42821         PR target/60298
42822         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
42823         instead of emit_move_insn.
42825 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42827         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
42828         vspltw with vsldoi.
42829         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
42830         gen_altivec_vsumsws.
42832 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42834         * config/rs6000/altivec.md (altivec_lvxl): Rename as
42835         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
42836         (altivec_lvxl_<mode>): New define_expand incorporating
42837         -maltivec=be semantics where needed.
42838         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
42839         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
42840         semantics where needed.
42841         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
42842         (altivec_stvx_<mode>): New define_expand incorporating
42843         -maltivec=be semantics where needed.
42844         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
42845         VM2 iterator instead of V4SI.
42846         (altivec_stvxl_<mode>): New define_expand incorporating
42847         -maltivec=be semantics where needed.
42848         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
42849         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
42850         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
42851         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
42852         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
42853         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
42854         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
42855         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
42856         ALTIVEC_BUILTIN_STVXL.
42857         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
42858         (altivec_expand_stvx_be): Likewise.
42859         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
42860         (altivec_expand_lvx_be): Likewise.
42861         (altivec_expand_stvx_be): Likewise.
42862         (altivec_expand_builtin): Add cases for
42863         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
42864         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
42865         (altivec_init_builtins): Add definitions for
42866         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
42867         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
42869 2014-02-21  Catherine Moore  <clm@codesourcery.com>
42871         * doc/invoke.texi (mvirt, mno-virt): Document.
42872         * config/mips/mips.opt (mvirt): New option.
42873         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
42875 2014-02-21  Richard Biener  <rguenther@suse.de>
42877         PR tree-optimization/60276
42878         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
42879         (STMT_VINFO_MIN_NEG_DIST): New macro.
42880         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
42881         STMT_VINFO_MIN_NEG_DIST.
42882         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
42883         made for negative dependence distances still hold.
42885 2014-02-21  Richard Biener  <rguenther@suse.de>
42887         PR middle-end/60291
42888         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
42889         DECL_INITIAL for globals not in the current function context.
42891 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
42893         PR tree-optimization/56490
42894         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
42895         * tree-ssa-uninit.c: Include params.h.
42896         (compute_control_dep_chain): Add num_calls argument, return false
42897         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
42898         num_calls to recursive call.
42899         (find_predicates): Change dep_chain into normal array,
42900         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
42901         variable and adjust compute_control_dep_chain caller.
42902         (find_def_preds): Likewise.
42904 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
42906         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
42907         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
42909 2014-02-21  Nick Clifton  <nickc@redhat.com>
42911         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
42912         (pushhi1): Likewise.
42913         (popqi1): Add mode to pre_dec.
42914         (pophi1): Likewise.
42916 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
42918         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
42919         mode for mask of V8SFmode permutation.
42921 2014-02-20  Richard Henderson  <rth@redhat.com>
42923         PR c++/60272
42924         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
42925         a new pseudo for OLDVAL.
42927 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
42929         PR target/57896
42930         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
42931         gen_reg_rtx if d->testing_p.
42932         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
42933         if d->testing_p and we will certainly return true.
42934         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
42935         if d->testing_p.
42937 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
42939         * emit-rtl.c (gen_reg_rtx): Assert that
42940         crtl->emit.regno_pointer_align_length is non-zero.
42942 2014-02-20  Richard Henderson  <rth@redhat.com>
42944         PR c++/60272
42945         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
42946         on failure the store back into EXPECT.
42948 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
42949             Sandra Loosemore  <sandra@codesourcery.com>
42951         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
42952         * config/nios2/nios2.c (nios2_function_profiler): Add
42953         -fPIC (flag_pic == 2) support.
42954         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
42955         (nios2_large_offset_p): New function.
42956         (nios2_unspec_reloc_p): Move up position, update to use
42957         nios2_large_offset_p.
42958         (nios2_unspec_address): Remove function.
42959         (nios2_unspec_offset): New function.
42960         (nios2_large_got_address): New function.
42961         (nios2_got_address): Add large offset support.
42962         (nios2_legitimize_tls_address): Update usage of removed and new
42963         functions.
42964         (nios2_symbol_binds_local_p): New function.
42965         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
42966         (nios2_legitimize_address): Update to use nios2_large_offset_p.
42967         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
42968         (nios2_print_operand): Merge H/L processing, add hiadj/lo
42969         processing for (const (unspec ...)).
42970         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
42972 2014-02-20  Richard Biener  <rguenther@suse.de>
42974         * tree-cfg.c (replace_uses_by): Mark altered BBs before
42975         doing the substitution.
42976         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
42978 2014-02-20  Martin Jambor  <mjambor@suse.cz>
42980         PR ipa/55260
42981         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
42982         info when checking whether lattices are bottom.
42984 2014-02-20  Richard Biener  <rguenther@suse.de>
42986         PR middle-end/60221
42987         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
42988         regions at -O0.
42990 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
42992         PR ipa/58555
42993         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
42994         parameter specifying the scaling.
42995         (inline_call): Update.
42996         (want_inline_recursively): Guard division by zero.
42997         (recursive_inlining): Update.
42998         * ipa-inline.h (clone_inlined_nodes): Update.
43000 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
43002         PR target/60204
43003         * config/i386/i386.c (classify_argument): Pass structures of size
43004         64 bytes or less in register.
43006 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
43007             Kirill Yukhin  <kirill.yukhin@intel.com>
43009         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
43010         (_mm_rcp28_round_ss): Ditto.
43011         (_mm_rsqrt28_round_sd): Ditto.
43012         (_mm_rsqrt28_round_ss): Ditto.
43013         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
43014         (_mm_rcp14_round_ss): Ditto.
43015         (_mm_rsqrt14_round_sd): Ditto.
43016         (_mm_rsqrt14_round_ss): Ditto.
43017         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
43018         the first input operand, get rid of match_dup.
43019         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
43020         attribute to sse.
43021         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
43022         Ditto.
43023         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
43024         operand as the first input operand, set type attribute.
43025         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
43026         Set type attribute.
43027         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
43028         operand as the first input operand, set type attribute.
43030 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43032         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
43033         bit of zero.
43035 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
43037         PR target/60207
43038         * config/i386/i386.c (construct_container): Remove TFmode check
43039         for X86_64_INTEGER_CLASS.
43041 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
43043         PR target/59794
43044         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
43045         only when -Wpsabi is enabled.
43047 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
43049         PR target/59799
43050         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
43051         passing arrays in registers are the same as for structs, so remove the
43052         special case for them.
43054 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
43056         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
43057         destination type, extract only the valid bits if the source type is not
43058         integral and has a different mode.
43060 2014-02-19  Richard Biener  <rguenther@suse.de>
43062         PR ipa/60243
43063         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
43064         for all calls.
43066 2014-02-19  Richard Biener  <rguenther@suse.de>
43068         PR ipa/60243
43069         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
43070         (ipa_modify_call_arguments): Emit an argument load explicitely and
43071         preserve virtual SSA form there and for the replacement call.
43072         Do not update SSA form nor free dominance info.
43074 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
43076         * ipa.c (function_and_variable_visibility): Also clear WEAK
43077         flag when disolving COMDAT_GROUP.
43079 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
43081         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
43082         * ipa-prop.c (ipa_set_jf_known_type): Return early when
43083         not devirtualizing.
43084         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
43085         do more sanity checks.
43086         (detect_type_change): Return true when giving up early.
43087         (compute_complex_assign_jump_func): Fix type parameter of
43088         ipa_set_ancestor_jf.
43089         (compute_complex_ancestor_jump_func): Likewise.
43090         (update_jump_functions_after_inlining): Fix updating of
43091         ancestor function.
43092         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
43094 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
43096         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
43097         inline clones when edge disappears.
43099 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
43101         PR target/60203
43102         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
43103         Split 64-bit moves into 2 patterns.  Do not allow the use of
43104         direct move for TDmode in little endian, since the decimal value
43105         has little endian bytes within a word, but the 64-bit pieces are
43106         ordered in a big endian fashion, and normal subreg's of TDmode are
43107         not allowed.
43108         (mov<mode>_64bit_dm): Likewise.
43109         (movtd_64bit_nodm): Likewise.
43111 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
43113         PR tree-optimization/60174
43114         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
43115         statement of an SSA_NAME that occurs in an abnormal PHI node.
43117 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
43119         PR sanitizer/60142
43120         * final.c (SEEN_BB): Remove.
43121         (SEEN_NOTE, SEEN_EMITTED): Renumber.
43122         (final_scan_insn): Don't force_source_line on second
43123         NOTE_INSN_BASIC_BLOCK.
43125 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
43127         PR target/60205
43128         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
43129         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
43130         (type_natural_mode): Warn ABI change when %zmm register is not
43131         available for AVX512F vector value passing.
43133 2014-02-18  Kai Tietz  <ktietz@redhat.com>
43135         PR target/60193
43136         * config/i386/i386.c (ix86_expand_prologue): Use value in
43137         rax register as displacement when restoring %r10 or %rax.
43138         Fix wrong offset when restoring both registers.
43140 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
43142         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
43143         assertion with conditional return.
43145 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
43146             Uros Bizjak  <ubizjak@gmail.com>
43148         PR driver/60233
43149         * config/i386/driver-i386.c (host_detect_local_cpu): If
43150         YMM state is not saved by the OS, also clear has_f16c.  Move
43151         CPUID 0x80000001 handling before YMM state saving checking.
43153 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
43155         PR rtl-optimization/58960
43156         * haifa-sched.c (alloc_global_sched_pressure_data): New,
43157         factored out from ...
43158         (sched_init): ... here.
43159         (free_global_sched_pressure_data): New, factored out from ...
43160         (sched_finish): ... here.
43161         * sched-int.h (free_global_sched_pressure_data): Declare.
43162         * sched-rgn.c (nr_regions_initial): New static global.
43163         (haifa_find_rgns): Initialize it.
43164         (schedule_region): Disable sched-pressure for the newly
43165         generated regions.
43167 2014-02-17  Richard Biener  <rguenther@suse.de>
43169         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
43170         release SSA defs of pattern stmts.
43172 2014-02-17  Richard Biener  <rguenther@suse.de>
43174         * tree-inline.c (expand_call_inline): Release the virtual
43175         operand defined by the call we are about to inline.
43177 2014-02-17  Richard Biener  <rguenther@suse.de>
43179         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
43181 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
43182             Ilya Tocar  <ilya.tocar@intel.com>
43184         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
43185         arguments order in builtin.
43186         (_mm512_permutexvar_epi64): Ditto.
43187         (_mm512_mask_permutexvar_epi64): Ditto
43188         (_mm512_maskz_permutexvar_epi32): Ditto
43189         (_mm512_permutexvar_epi32): Ditto
43190         (_mm512_mask_permutexvar_epi32): Ditto
43192 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43194         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
43195         (p8_vmrgow): Likewise.
43197 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43199         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
43200         endian targets.
43202 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
43204         PR target/60203
43205         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
43206         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
43207         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
43208         using direct move instructions on ISA 2.07.  Also adjust
43209         instruction length for 64-bit.
43210         (mov<mode>_64bit, TFmode/TDmode): Likewise.
43211         (mov<mode>_32bit, TFmode/TDmode): Likewise.
43213 2014-02-15  Alan Modra  <amodra@gmail.com>
43215         PR target/58675
43216         PR target/57935
43217         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
43218         find_replacement on parts of insn rtl that might be reloaded.
43220 2014-02-15  Richard Biener  <rguenther@suse.de>
43222         PR tree-optimization/60183
43223         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
43224         (tree_ssa_phiprop): Calculate and free post-dominators.
43226 2014-02-14  Jeff Law  <law@redhat.com>
43228         PR rtl-optimization/60131
43229         * ree.c (get_extended_src_reg): New function.
43230         (combine_reaching_defs): Use it rather than assuming location of REG.
43231         (find_and_remove_re): Verify first operand of extension is
43232         a REG before adding the insns to the copy list.
43234 2014-02-14  Roland McGrath  <mcgrathr@google.com>
43236         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
43237         * configure: Regenerated.
43238         * config.in: Regenerated.
43239         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
43240         instead of ASM_SHORT.
43242 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
43243             Richard Earnshaw  <rearnsha@arm.com>
43245         PR rtl-optimization/59535
43246         * lra-constraints.c (process_alt_operands): Encourage alternative
43247         when unassigned pseudo class is superset of the alternative class.
43248         (inherit_reload_reg): Don't inherit when optimizing for code size.
43249         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
43250         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
43251         modes not less than 4 for Thumb1.
43253 2014-02-14  Kyle McMartin  <kyle@redhat.com>
43255         PR pch/60010
43256         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
43258 2014-02-14  Richard Biener  <rguenther@suse.de>
43260         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
43261         (get_frame_arg): Drop the assert with langhook types_compatible_p.
43262         Do not strip INDIRECT_REFs.
43264 2014-02-14  Richard Biener  <rguenther@suse.de>
43266         PR lto/60179
43267         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
43268         DECL_FUNCTION_SPECIFIC_TARGET.
43269         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
43270         * tree-streamer-out.c (pack_ts_target_option): Remove.
43271         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
43272         (write_ts_function_decl_tree_pointers): Do not stream
43273         DECL_FUNCTION_SPECIFIC_TARGET.
43274         * tree-streamer-in.c (unpack_ts_target_option): Remove.
43275         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
43276         (lto_input_ts_function_decl_tree_pointers): Do not stream
43277         DECL_FUNCTION_SPECIFIC_TARGET.
43279 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
43281         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
43282         (get_initial_def_for_induction, vectorizable_induction): Ignore
43283         debug stmts when looking for exit_phi.
43284         (vectorizable_live_operation): Fix up condition.
43286 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
43288         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
43289         nreverse() because it changes the content of original tree list.
43291 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
43293         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
43294         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
43296 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
43298         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
43299         GNU coding standards.
43301 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
43303         PR debug/60152
43304         * dwarf2out.c (gen_subprogram_die): Don't call
43305         add_calling_convention_attribute if subr_die is old_die.
43307 2014-02-13  Sharad Singhai  <singhai@google.com>
43309         * doc/optinfo.texi: Fix order of nodes.
43311 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
43313         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
43314         operands[2], not operands[3].
43316 2014-02-13  Richard Biener  <rguenther@suse.de>
43318         PR bootstrap/59878
43319         * doc/install.texi (ISL): Update recommended version to 0.12.2,
43320         mention the possibility of an in-tree build.
43321         (CLooG): Update recommended version to 0.18.1, mention the
43322         possibility of an in-tree build and clarify that the ISL
43323         bundled with CLooG does not work.
43325 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
43327         PR target/43546
43328         * expr.c (compress_float_constant): If x is a hard register,
43329         extend into a pseudo and then move to x.
43331 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
43333         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
43334         caused by bad second argument to warning_at() with -mhotpatch and
43335         nested functions (e.g. with gfortran).
43337 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
43339         * opts.c (option_name): Remove "enabled by default" rider.
43341 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
43343         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
43345 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
43346             Uros Bizjak  <ubizjak@gmail.com>
43348         PR target/60151
43349         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
43350         * configure: Regenerated.
43352 2014-02-12  Richard Biener  <rguenther@suse.de>
43354         * vec.c (vec_prefix::calculate_allocation): Move as
43355         inline variant to vec.h.
43356         (vec_prefix::calculate_allocation_1): New out-of-line version.
43357         * vec.h (vec_prefix::calculate_allocation_1): Declare.
43358         (vec_prefix::m_has_auto_buf): Rename to ...
43359         (vec_prefix::m_using_auto_storage): ... this.
43360         (vec_prefix::calculate_allocation): Inline the easy cases
43361         and dispatch to calculate_allocation_1 which doesn't need the
43362         prefix address.
43363         (va_heap::reserve): Use gcc_checking_assert.
43364         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
43365         m_using_auto_storage.
43366         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
43367         member and adjust.
43368         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
43369         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
43370         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
43372 2014-02-12  Richard Biener  <rguenther@suse.de>
43374         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
43375         when we found a dependence.
43377 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
43379         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
43380         common code...
43381         (maybe_fold_stmt): ... into this new function.
43382         * omp-low.c (lower_omp): Update comment.
43384         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
43385         last use.
43387         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
43388         dereference.
43390 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
43392         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
43393         identifiers in comments.
43394         (cortexa53_extra_costs): Likewise.
43395         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
43396         (cortexa7_extra_costs): Likewise.
43397         (cortexa12_extra_costs): Likewise.
43398         (cortexa15_extra_costs): Likewise.
43399         (v7m_extra_costs): Likewise.
43401 2014-02-12  Richard Biener  <rguenther@suse.de>
43403         PR middle-end/60092
43404         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
43405         of posix_memalign being successful.
43406         (lower_stmt): Restrict lowering of posix_memalign to when
43407         -ftree-bit-ccp is enabled.
43409 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
43411         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
43412         arg_loc.
43413         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
43415 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
43417         PR rtl-optimization/60116
43418         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
43419         other_insn once the combination has been validated.
43421 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
43423         PR lto/59468
43424         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
43425         and wrapper.
43426         * ipa-devirt.c: Include demangle.h
43427         (odr_violation_reported): New static variable.
43428         (add_type_duplicate): Update odr_violations.
43429         (maybe_record_node): Add completep parameter; update it.
43430         (record_target_from_binfo): Add COMPLETEP parameter;
43431         update it as needed.
43432         (possible_polymorphic_call_targets_1): Likewise.
43433         (struct polymorphic_call_target_d): Add nonconstruction_targets;
43434         rename FINAL to COMPLETE.
43435         (record_targets_from_bases): Sanity check we found the binfo;
43436         fix COMPLETEP updating.
43437         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
43438         parameter, fix computing of COMPLETEP.
43439         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
43440         at LTO time do demangling.
43441         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
43442         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
43443         parameter.
43444         (gimple_get_virt_method_for_binfo): Likewise.
43445         * gimple-fold.h (gimple_get_virt_method_for_binfo,
43446         gimple_get_virt_method_for_vtable): Update prototypes.
43448 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
43450         PR target/49008
43451         * genautomata.c (add_presence_absence): Fix typo with
43452         {final_}presence_list.
43454 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
43456         PR target/60137
43457         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
43458         for VSX/Altivec vectors that land in GPR registers.
43460 2014-02-11  Richard Henderson  <rth@redhat.com>
43461             Jakub Jelinek  <jakub@redhat.com>
43463         PR debug/59776
43464         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
43465         around drhs if type conversion to lacc->type is not useless.
43467 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43469         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
43470         tuning struct.
43471         (cortex-a57.cortex-a53): Likewise.
43472         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
43474 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43476         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
43477         arm_restrict_it.
43479 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
43481         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
43482         add_options_for_arm_vfp3.
43484 2014-02-11  Jeff Law  <law@redhat.com>
43486         PR middle-end/54041
43487         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
43488         object with an undesirable mode.
43490 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
43492         PR libgomp/60107
43493         * config/i386/sol2-9.h: New file.
43494         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
43495         *-*-solaris2.9*): Use it.
43497 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
43499         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
43500         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
43502 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
43504         * config/microblaze/microblaze.c: Extend mcpu version format
43506 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
43508         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
43510 2014-02-10  Richard Henderson  <rth@redhat.com>
43512         PR target/59927
43513         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
43514         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
43515         ms-abi vs -mno-accumulate-outgoing-args.
43516         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
43517         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
43518         respect to ms-abi.
43520 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43522         PR middle-end/60080
43523         * cfgexpand.c (expand_asm_operands): Attach source location to
43524         ASM_INPUT rtx objects.
43525         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
43527 2014-02-10  Nick Clifton  <nickc@redhat.com>
43529         * config/mn10300/mn10300.c (popcount): New function.
43530         (mn10300_expand_prologue): Include saved registers in stack usage
43531         count.
43533 2014-02-10  Jeff Law  <law@redhat.com>
43535         PR middle-end/52306
43536         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
43537         when changing the SET_DEST of a prior insn to avoid an input reload.
43539 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
43541         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
43542         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
43543         -mcall-openbsd, or -mcall-linux.
43544         (CC1_ENDIAN_BIG_SPEC): Remove.
43545         (CC1_ENDIAN_LITTLE_SPEC): Remove.
43546         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
43547         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
43548         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
43549         and %cc1_endian_default.
43550         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
43552 2014-02-10  Richard Biener  <rguenther@suse.de>
43554         PR tree-optimization/60115
43555         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
43556         MEM_REF handling.  Properly verify that the accesses are not
43557         out of the objects bound.
43559 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43561         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
43562         coretex to cortex.
43564 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
43566         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
43567         proper constants and fix formatting.
43568         (possible_polymorphic_call_targets): Fix formatting.
43570 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
43571             Ilya Tocar  <ilya.tocar@intel.com>
43573         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
43574         (_mm512_loadu_epi32): Renamed into...
43575         (_mm512_loadu_si512): This.
43576         (_mm512_storeu_epi32): Renamed into...
43577         (_mm512_storeu_si512): This.
43578         (_mm512_maskz_ceil_ps): Removed.
43579         (_mm512_maskz_ceil_pd): Ditto.
43580         (_mm512_maskz_floor_ps): Ditto.
43581         (_mm512_maskz_floor_pd): Ditto.
43582         (_mm512_floor_round_ps): Ditto.
43583         (_mm512_floor_round_pd): Ditto.
43584         (_mm512_ceil_round_ps): Ditto.
43585         (_mm512_ceil_round_pd): Ditto.
43586         (_mm512_mask_floor_round_ps): Ditto.
43587         (_mm512_mask_floor_round_pd): Ditto.
43588         (_mm512_mask_ceil_round_ps): Ditto.
43589         (_mm512_mask_ceil_round_pd): Ditto.
43590         (_mm512_maskz_floor_round_ps): Ditto.
43591         (_mm512_maskz_floor_round_pd): Ditto.
43592         (_mm512_maskz_ceil_round_ps): Ditto.
43593         (_mm512_maskz_ceil_round_pd): Ditto.
43594         (_mm512_expand_pd): Ditto.
43595         (_mm512_expand_ps): Ditto.
43596         * config/i386/i386.c (ix86_builtins): Remove
43597         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
43598         (bdesc_args): Ditto.
43599         * config/i386/predicates.md (const1256_operand): New.
43600         (const_1_to_2_operand): Ditto.
43601         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
43602         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
43603         (*avx512pf_gatherpf<mode>sf): Ditto.
43604         (avx512pf_gatherpf<mode>df): Ditto.
43605         (*avx512pf_gatherpf<mode>df_mask): Ditto.
43606         (*avx512pf_gatherpf<mode>df): Ditto.
43607         (avx512pf_scatterpf<mode>sf): Ditto.
43608         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
43609         (*avx512pf_scatterpf<mode>sf): Ditto.
43610         (avx512pf_scatterpf<mode>df): Ditto.
43611         (*avx512pf_scatterpf<mode>df_mask): Ditto.
43612         (*avx512pf_scatterpf<mode>df): Ditto.
43613         (avx512f_expand<mode>): Removed.
43614         (<shift_insn><mode>3<mask_name>): Change predicate type.
43616 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
43618         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
43619         not at the end of datarefs vector use ordered_remove to avoid
43620         reordering datarefs vector.
43622         PR c/59984
43623         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
43624         mark local addressable non-static vars as GOVD_PRIVATE
43625         instead of GOVD_LOCAL.
43626         * omp-low.c (lower_omp_for): Move gimple_bind_vars
43627         and BLOCK_VARS of gimple_bind_block to new_stmt rather
43628         than copying them.
43630         PR middle-end/60092
43631         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
43632         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
43633         assume_aligned or alloc_align attributes.
43634         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
43635         arguments.  Handle also assume_aligned and alloc_align attributes.
43636         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
43637         calls to functions with assume_aligned or alloc_align attributes.
43638         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
43640 2014-02-08  Terry Guo  <terry.guo@arm.com>
43642         * doc/invoke.texi: Document ARM -march=armv7e-m.
43644 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
43646         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
43647         flag on __cilkrts_rethrow builtin.
43649         PR ipa/60026
43650         * ipa-cp.c (determine_versionability): Fail at -O0
43651         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
43652         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
43654         Revert:
43655         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
43657         PR ipa/60026
43658         * tree-inline.c (copy_forbidden): Fail for
43659         __attribute__((optimize (0))) functions.
43661 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
43663         * varpool.c: Include pointer-set.h.
43664         (varpool_remove_unreferenced_decls): Variables in other partitions
43665         will not be output; be however careful to not lose information
43666         about partitioning.
43668 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
43670         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
43671         lookup in the vtable constructor.
43673 2014-02-07  Jeff Law  <law@redhat.com>
43675         PR target/40977
43676         * config/m68k/m68k.md (ashldi_extsi): Turn into a
43677         define_insn_and_split.
43679         * ipa-inline.c (inline_small_functions): Fix typos.
43681 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
43683         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
43684         (s390_can_use_return_insn): Declare.
43685         * config/s390/s390.h (EPILOGUE_USES): Define.
43686         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
43687         instructions.
43688         (s390_chunkify_start): Handle return JUMP_LABELs.
43689         (s390_early_mach): Emit a main_pool instruction on the entry edge.
43690         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
43691         (s390_can_use_return_insn): New functions.
43692         (s390_fix_long_loop_prediction): Handle conditional returns.
43693         (TARGET_SET_UP_BY_PROLOGUE): Define.
43694         * config/s390/s390.md (ANY_RETURN): New code iterator.
43695         (*creturn, *csimple_return, return, simple_return): New patterns.
43697 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
43699         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
43700         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
43701         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
43702         REG_CFA_RESTORE list when deciding not to restore a register.
43704 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
43706         * config/s390/s390.c: Include tree-pass.h and context.h.
43707         (s390_early_mach): New function, split out from...
43708         (s390_emit_prologue): ...here.
43709         (pass_data_s390_early_mach): New pass structure.
43710         (pass_s390_early_mach): New class.
43711         (s390_option_override): Create and register early_mach pass.
43712         Move to end of file.
43714 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
43716         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
43717         to match for the exit block.
43719 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43721         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
43722         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
43723         Reject misaligned operands.
43725 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43727         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
43729 2014-02-07  Richard Biener  <rguenther@suse.de>
43731         PR middle-end/60092
43732         * gimple-low.c (lower_builtin_posix_memalign): New function.
43733         (lower_stmt): Call it to lower posix_memalign in a way
43734         to make alignment info accessible.
43736 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
43738         PR c++/60082
43739         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
43740         __builtin_setjmp_receiver.
43742 2014-02-07  Richard Biener  <rguenther@suse.de>
43744         PR middle-end/60092
43745         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
43746         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
43747         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
43748         Handle BUILT_IN_POSIX_MEMALIGN.
43749         (find_func_clobbers): Likewise.
43750         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
43751         (call_may_clobber_ref_p_1): Likewise.
43753 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
43755         PR ipa/59918
43756         * ipa-devirt.c (record_target_from_binfo): Remove overactive
43757         sanity check.
43759 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
43761         PR ipa/59469
43762         * lto-cgraph.c (lto_output_node): Use
43763         symtab_get_symbol_partitioning_class.
43764         (lto_output_varpool_node): likewise.
43765         (symtab_get_symbol_partitioning_class): Move here from
43766         lto/lto-partition.c
43767         * cgraph.h (symbol_partitioning_class): Likewise.
43768         (symtab_get_symbol_partitioning_class): Declare.
43770 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
43772         * ggc.h (ggc_internal_cleared_alloc): New macro.
43773         * vec.h (vec_safe_copy): Handle memory stats.
43774         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
43775         * target-globals.c (save_target_globals): Likewise.
43777 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
43779         PR target/60077
43780         * expr.c (emit_move_resolve_push): Export; be bit more selective
43781         on when to clear alias set.
43782         * expr.h (emit_move_resolve_push): Declare.
43783         * function.h (struct function): Add tail_call_marked.
43784         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
43785         * config/i386/i386-protos.h (ix86_expand_push): Remove.
43786         * config/i386/i386.md (TImode move expander): De not call
43787         ix86_expand_push.
43788         (FP push expanders): Preserve memory attributes.
43789         * config/i386/sse.md (push<mode>1): Remove.
43790         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
43791         (ix86_expand_push): Remove.
43792         * config/i386/mmx.md (push<mode>1): Remove.
43794 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
43796         PR rtl-optimization/60030
43797         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
43798         lopart with paradoxical subreg before shifting it up by hprec.
43800 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43802         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
43803         Remove extra newline at end of file.
43804         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
43805         (arm_issue_rate): Handle cortexa57.
43806         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
43807         (cortex-a57.cortex-a53): Likewise.
43809 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
43811         PR target/59575
43812         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
43813         don't record in REG_FRAME_RELATED_EXPR registers not set in that
43814         bitmask.
43815         (arm_expand_prologue): Adjust all callers.
43816         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
43817         info, registers also at the lowest numbered registers side.  Use
43818         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
43819         XEXP.
43821         PR debug/59992
43822         * var-tracking.c (adjust_mems): Before adding a SET to
43823         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
43825 2014-02-06  Alan Modra  <amodra@gmail.com>
43827         PR target/60032
43828         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
43829         change SDmode to DDmode when lra_in_progress.
43831 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
43833         PR middle-end/59150
43834         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
43835         free_data_ref on the dr first, and before goto again also set dr
43836         to the next dr.  For simd_lane_access, free old datarefs[i] before
43837         overwriting it.  For get_vectype_for_scalar_type failure, don't
43838         free_data_ref if simd_lane_access.
43840         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
43842         PR target/60062
43843         * tree.h (opts_for_fn): New inline function.
43844         (opt_for_fn): Define.
43845         * config/i386/i386.c (ix86_function_regparm): Use
43846         opt_for_fn (decl, optimize) instead of optimize.
43848 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
43850         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
43851         for SYMBOL_REF in large memory model.
43853 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43855         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
43856         and crypto support.
43857         (cortex-a57): Likewise.
43858         (cortex-a57.cortex-a53): Likewise.
43860 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
43861             Kugan Vivekanandarajah  <kuganv@linaro.org>
43863         * config/arm/arm.c (arm_vector_alignment_reachable): Check
43864         unaligned_access.
43865         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
43867 2014-02-06  Richard Biener  <rguenther@suse.de>
43869         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
43870         set_loop_copy and initialize_original_copy_tables.
43872 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
43874         * config/aarch64/aarch64-simd.md
43875         (aarch64_ashr_simddi): Change QI to SI.
43877 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
43878             Jakub Jelinek  <jakub@redhat.com>
43880         PR middle-end/60013
43881         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
43882         of the dataflow.
43884 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43886         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
43887         CODE_FOR_altivec_vpku[hw]um to
43888         CODE_FOR_altivec_vpku[hw]um_direct.
43889         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
43890         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
43891         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
43892         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
43894 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43896         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
43897         generation for -maltivec=be.
43898         (altivec_vsumsws): Simplify redundant test.
43900 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43902         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
43903         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
43904         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
43905         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
43906         gen_altivec_vpkuwum.
43907         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
43908         BYTES_BIG_ENDIAN.
43909         (altivec_vpks<VI_char>ss): Likewise.
43910         (altivec_vpks<VI_char>us): Likewise.
43911         (altivec_vpku<VI_char>us): Likewise.
43912         (altivec_vpku<VI_char>um): Likewise.
43913         (altivec_vpku<VI_char>um_direct): New (copy of
43914         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
43915         internal use).
43916         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
43917         target is little endian and -maltivec=be is not specified.
43918         (*altivec_vupkhs<VU_char>_direct): New (copy of
43919         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
43920         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
43921         target is little endian and -maltivec=be is not specified.
43922         (*altivec_vupkls<VU_char>_direct): New (copy of
43923         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
43924         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
43925         little endian and -maltivec=be is not specified.
43926         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
43927         little endian and -maltivec=be is not specified.
43929 2014-02-05  Richard Henderson  <rth@redhat.com>
43931         PR debug/52727
43932         * combine-stack-adj.c: Revert r206943.
43933         * sched-int.h (struct deps_desc): Add last_args_size.
43934         * sched-deps.c (init_deps): Initialize it.
43935         (sched_analyze_insn): Add OUTPUT dependencies between insns that
43936         contain REG_ARGS_SIZE notes.
43938 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
43940         * lto-cgraph.c (asm_nodes_output): Make global.
43941         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
43942         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
43943         (driver_handle_option): Handle OPT_fwpa.
43945 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
43947         PR ipa/59947
43948         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
43949         a comment typo and formatting issue.  If odr_hash hasn't been
43950         created, return vNULL and set *completep to false.
43952         PR middle-end/57499
43953         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
43954         bb with no successors.
43956 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
43958         PR target/59718
43959         * doc/invoke.texi (-march): Clarify documentation for ARM.
43960         (-mtune): Likewise.
43961         (-mcpu): Likewise.
43963 2014-02-05  Richard Biener  <rguenther@suse.de>
43965         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
43966         when not vectorizing because of too many alias checks.
43967         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
43968         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
43970 2014-02-05  Nick Clifton  <nickc@redhat.com>
43972         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
43973         accept extended registers in any mode when compiling for the MN10300.
43975 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
43977         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
43978         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
43979         sanitization attributes.
43980         (can_inline_edge_p): Likewise.
43981         (sanitize_attrs_match_for_inline_p): New function.
43983 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
43985         * ipa-prop.c (detect_type_change): Shor circuit testing of
43986         type changes on THIS pointer.
43988 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
43990         PR target/59777
43991         * config/pa/pa.c (legitimize_tls_address): Return original address
43992         if not passed a SYMBOL_REF rtx.
43993         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
43994         addresses.
43995         (pa_emit_move_sequence): Simplify TLS source operands.
43996         (pa_legitimate_constant_p): Reject all TLS constants.
43997         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
43998         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
44000 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
44002         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
44003         groups when we know they are controlled by LTO.
44004         * varasm.c (default_binds_local_p_1): If object is in other partition,
44005         it will be resolved locally.
44007 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
44009         * config/host-linux.c (linux_gt_pch_use_address): Don't
44010         use SSIZE_MAX because it is not always defined.
44012 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
44014         PR bootstrap/59913
44015         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
44016         threshold for pseudo splitting.
44017         (update_ebb_live_info): Process call argument hard registers and
44018         hard registers from insn definition too.
44019         (max_small_class_regs_num): New constant.
44020         (inherit_in_ebb): Update live hard regs through EBBs.  Update
44021         reloads_num only for small register classes.  Don't split for
44022         outputs of jumps.
44024 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
44026         PR ipa/60058
44027         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
44028         is non-null.
44030 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
44032         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
44033         visibility is safe.
44035 2014-02-04  Marek Polacek  <polacek@redhat.com>
44037         * gdbinit.in (pel): Define.
44039 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
44041         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
44042         behavior.
44044 2014-02-04  Richard Biener  <rguenther@suse.de>
44046         PR lto/59723
44047         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
44048         in function context local.
44049         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
44050         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
44051         similar to LTO_imported_decl_ref.
44053 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
44055         PR tree-optimization/60002
44056         * cgraphclones.c (build_function_decl_skip_args): Clear
44057         DECL_LANG_SPECIFIC.
44059         PR tree-optimization/60023
44060         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
44061         false to gsi_replace.
44062         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
44063         has been in some EH region and vec_stmt could throw, add
44064         vec_stmt into the same EH region.
44065         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
44066         has no lhs, ignore it.
44067         * internal-fn.c (expand_MASK_LOAD): Likewise.
44069         PR ipa/60026
44070         * tree-inline.c (copy_forbidden): Fail for
44071         __attribute__((optimize (0))) functions.
44073         PR other/58712
44074         * omp-low.c (simd_clone_struct_copy): If from->inbranch
44075         is set, copy one less argument.
44076         (expand_simd_clones): Don't subtract clone_info->inbranch
44077         from simd_clone_struct_alloc argument.
44079         PR rtl-optimization/57915
44080         * recog.c (simplify_while_replacing): If all unary/binary/relational
44081         operation arguments are constant, attempt to simplify those.
44083         PR middle-end/59261
44084         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
44085         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
44087 2014-02-04  Richard Biener  <rguenther@suse.de>
44089         PR tree-optimization/60012
44090         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
44091         TBAA disambiguation to all DDRs.
44093 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
44095         PR target/59788
44096         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
44097         (LINK_SPEC): Use it for -shared, -shared-libgcc.
44099 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
44101         PR ipa/59882
44102         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
44104 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
44106         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
44107         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
44109 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
44111         PR ipa/59831
44112         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
44113         to figure out targets of polymorphic calls with known decl.
44114         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
44115         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
44116         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
44117         (get_polymorphic_call_info): ... here.
44118         (get_polymorphic_call_info_from_invariant): New function.
44120 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
44122         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
44123         lookup via vtable pointer; check for type consistency
44124         and turn inconsitent facts into UNREACHABLE.
44125         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
44126         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
44127         type inconsistent querries; return UNREACHABLE instead.
44129 2014-02-03  Richard Henderson  <rth@twiddle.net>
44131         PR tree-opt/59924
44132         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
44133         already processed this node.
44134         (normalize_one_pred_1): Pass along mark_set.
44135         (normalize_one_pred): Create and destroy a pointer_set_t.
44136         (normalize_one_pred_chain): Likewise.
44138 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
44140         PR gcov-profile/58602
44141         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
44143 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
44145         PR ipa/59831
44146         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
44147         -fno-devirtualize; try to devirtualize by the knowledge of
44148         virtual table pointer given by aggregate propagation.
44149         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
44150         (ipa_print_node_jump_functions): Dump also offset that
44151         is relevant for polymorphic calls.
44152         (determine_known_aggregate_parts): Add arg_type parameter; use it
44153         instead of determining the type from pointer type.
44154         (ipa_compute_jump_functions_for_edge): Update call of
44155         determine_known_aggregate_parts.
44156         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
44157         (gimple_get_virt_method_for_binfo): ... here; simplify using
44158         vtable_pointer_value_to_vtable.
44159         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
44160         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
44161         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
44162         (vtable_pointer_value_to_vtable): Break out from ...; handle also
44163         POINTER_PLUS_EXPR.
44164         (vtable_pointer_value_to_binfo): ... here.
44165         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
44167 2014-02-03  Teresa Johnson  <tejohnson@google.com>
44169         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
44170         redef of outer loop index variable.
44172 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
44174         PR c++/53017
44175         PR c++/59211
44176         * doc/extend.texi (Function Attributes): Typo.
44178 2014-02-03  Cong Hou  <congh@google.com>
44180         PR tree-optimization/60000
44181         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
44182         if the vectorized statement is a store.  A store statement can only
44183         appear at the end of pattern statements.
44185 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
44187         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
44188         (ix86_option_override_internal): Default long double to 64-bit for
44189         32-bit Bionic and to 128-bit for 64-bit Bionic.
44191         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
44192         TARGET_LONG_DOUBLE_128 is true.
44193         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
44195         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
44196         (mlong-double-64): Negate -mlong-double-128.
44197         (mlong-double-128): New option.
44199         * config/i386/i386-c.c (ix86_target_macros): Define
44200         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
44202         * doc/invoke.texi: Document -mlong-double-128.
44204 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
44206         PR rtl-optimization/60024
44207         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
44209 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
44211         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
44213 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
44215         PR rtl-optimization/57662
44216         * sel-sched.c (code_motion_path_driver): Do not mark already not
44217         existing blocks in the visiting bitmap.
44219 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
44221         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
44222         on the insn being emitted.
44224 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
44225             Will Deacon  <will.deacon@arm.com>
44227         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
44229 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44231         * config/arm/arm-tables.opt: Regenerate.
44233 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44235         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
44236         for vector types other than V16QImode.
44237         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
44238         define_expand, and call altivec_expand_vec_perm_le when producing
44239         code with little endian element order.
44240         (*altivec_vperm_<mode>_internal): New insn having previous
44241         behavior of altivec_vperm_<mode>.
44242         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
44243         altivec_expand_vec_perm_le when producing code with little endian
44244         element order.
44245         (*altivec_vperm_<mode>_uns_internal): New insn having previous
44246         behavior of altivec_vperm_<mode>_uns.
44248 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44250         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
44251         (altivec_vsumsws): Add handling for -maltivec=be with a little
44252         endian target.
44253         (altivec_vsumsws_direct): New.
44254         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
44255         gen_altivec_vsumsws.
44257 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
44259         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
44260         vtable_pointer_value_to_binfo): New functions.
44261         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
44262         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
44264 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
44266         * config/nios2/nios2.md (load_got_register): Initialize GOT
44267         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
44268         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
44270 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
44272         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
44273         preserverd by passthrough, do not propagate the type.
44275 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
44277         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
44278         (mips_atomic_assign_expand_fenv): New function.
44279         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
44281 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
44283         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
44284         (__builtin_mips_set_fcsr): Likewise.
44285         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
44286         MIPS_USI_FTYPE_VOID.
44287         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
44288         (mips16_expand_set_fcsr): Likewise.
44289         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
44290         (mips16_set_fcsr_stub): Likewise.
44291         (mips16_get_fcsr_one_only_stub): New class.
44292         (mips16_set_fcsr_one_only_stub): Likewise.
44293         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
44294         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
44295         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
44296         (hard_float): New availability predicate.
44297         (mips_builtins): Add get_fcsr and set_fcsr.
44298         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
44299         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
44300         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
44301         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
44302         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
44303         patterns.
44305 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
44307         * config/mips/mips.c (mips_one_only_stub): New class.
44308         (mips_need_mips16_rdhwr_p): Replace with...
44309         (mips16_rdhwr_stub): ...this new variable.
44310         (mips16_stub_call_address): New function.
44311         (mips16_rdhwr_one_only_stub): New class.
44312         (mips_expand_thread_pointer): Use mips16_stub_call_address.
44313         (mips_output_mips16_rdhwr): Delete.
44314         (mips_finish_stub): New function.
44315         (mips_code_end): Use it to handle rdhwr stubs.
44317 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
44319         PR target/60017
44320         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
44321         when calculating size of integer atomic types.
44323 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
44325         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
44327 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
44329         PR tree-optimization/60003
44330         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
44331         * profile.c (branch_prob): Use gimple_call_builtin_p
44332         to check for BUILT_IN_SETJMP_RECEIVER.
44333         * tree-inline.c (copy_bb): Call notice_special_calls.
44335 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
44337         PR bootstrap/59985
44338         * lra-constraints.c (process_alt_operands): Update reload_sum only
44339         on the first pass.
44341 2014-01-31  Richard Henderson  <rth@redhat.com>
44343         PR middle-end/60004
44344         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
44345         until after else_eh is processed.
44347 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
44349         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
44350         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
44351         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
44352         in smmintrin.h, remove them.
44353         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
44354         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
44355         * config/i386/i386.md (ROUND_SAE): Fix value.
44356         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
44357         (const48_operand): New.
44358         * config/i386/subst.md (round), (round_expand): Use
44359         const_4_or_8_to_11_operand.
44360         (round_saeonly), (round_saeonly_expand): Use const48_operand.
44362 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
44364         * config/i386/constraints.md (Yk): Swap meaning with k.
44365         * config/i386/i386.md (movhi_internal): Change Yk to k.
44366         (movqi_internal): Ditto.
44367         (*k<logic><mode>): Ditto.
44368         (*andhi_1): Ditto.
44369         (*andqi_1): Ditto.
44370         (kandn<mode>): Ditto.
44371         (*<code>hi_1): Ditto.
44372         (*<code>qi_1): Ditto.
44373         (kxnor<mode>): Ditto.
44374         (kortestzhi): Ditto.
44375         (kortestchi): Ditto.
44376         (kunpckhi): Ditto.
44377         (*one_cmplhi2_1): Ditto.
44378         (*one_cmplqi2_1): Ditto.
44379         * config/i386/sse.md (): Change k to Yk.
44380         (avx512f_load<mode>_mask): Ditto.
44381         (avx512f_blendm<mode>): Ditto.
44382         (avx512f_store<mode>_mask): Ditto.
44383         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
44384         (avx512f_storedqu<mode>_mask): Ditto.
44385         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
44386         Ditto.
44387         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
44388         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
44389         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
44390         (avx512f_maskcmp<mode>3): Ditto.
44391         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
44392         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
44393         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
44394         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
44395         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
44396         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
44397         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
44398         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
44399         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
44400         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
44401         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
44402         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
44403         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
44404         (vec_extract_lo_<mode>_maskm): Ditto.
44405         (vec_extract_hi_<mode>_maskm): Ditto.
44406         (avx512f_vternlog<mode>_mask): Ditto.
44407         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
44408         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
44409         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
44410         (avx512f_<code>v8div16qi2_mask): Ditto.
44411         (avx512f_<code>v8div16qi2_mask_store): Ditto.
44412         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
44413         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
44414         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
44415         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
44416         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
44417         (*avx512pf_gatherpf<mode>df_mask): Ditto.
44418         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44419         (*avx512pf_scatterpf<mode>df_mask): Ditto.
44420         (avx512cd_maskb_vec_dupv8di): Ditto.
44421         (avx512cd_maskw_vec_dupv16si): Ditto.
44422         (avx512f_vpermi2var<mode>3_maskz): Ditto.
44423         (avx512f_vpermi2var<mode>3_mask): Ditto.
44424         (avx512f_vpermi2var<mode>3_mask): Ditto.
44425         (avx512f_vpermt2var<mode>3_maskz): Ditto.
44426         (*avx512f_gathersi<mode>): Ditto.
44427         (*avx512f_gathersi<mode>_2): Ditto.
44428         (*avx512f_gatherdi<mode>): Ditto.
44429         (*avx512f_gatherdi<mode>_2): Ditto.
44430         (*avx512f_scattersi<mode>): Ditto.
44431         (*avx512f_scatterdi<mode>): Ditto.
44432         (avx512f_compress<mode>_mask): Ditto.
44433         (avx512f_compressstore<mode>_mask): Ditto.
44434         (avx512f_expand<mode>_mask): Ditto.
44435         * config/i386/subst.md (mask): Change k to Yk.
44436         (mask_scalar_merge): Ditto.
44437         (sd): Ditto.
44439 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
44441         * doc/extend.texi (Vector Extensions): Document ?: in C++.
44443 2014-01-31  Richard Biener  <rguenther@suse.de>
44445         PR middle-end/59990
44446         * builtins.c (fold_builtin_memory_op): Make sure to not
44447         use a floating-point mode or a boolean or enumeral type for
44448         the copy operation.
44450 2014-01-30  DJ Delorie  <dj@redhat.com>
44452         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
44453         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
44454         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
44455         whenever main() has an epilogue.
44457 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44459         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
44460         unused variable "field".
44461         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
44462         (vsx_mergeh_<mode>): Likewise.
44463         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
44464         (altivec_vmrghh): Likewise.
44465         (altivec_vmrghw): Likewise.
44466         (altivec_vmrglb): Likewise.
44467         (altivec_vmrglh): Likewise.
44468         (altivec_vmrglw): Likewise.
44469         (altivec_vspltb): Add missing uses.
44470         (altivec_vsplth): Likewise.
44471         (altivec_vspltw): Likewise.
44472         (altivec_vspltsf): Likewise.
44474 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
44476         PR target/59923
44477         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
44478         frame related instructions.
44480 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
44482         PR rtl-optimization/59959
44483         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
44484         any reload of register whose subreg is invalid.
44486 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
44488         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
44489         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
44490         Add missing return type - void.
44492 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44494         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
44495         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
44496         remove element index adjustment for endian (now handled in vsx.md
44497         and altivec.md).
44498         (altivec_expand_vec_perm_const): Use
44499         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
44500         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
44501         (vsx_xxspltw_<mode>): Adjust element index for little endian.
44502         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
44503         define_expand and a new define_insn *altivec_vspltb_internal;
44504         adjust for -maltivec=be on a little endian target.
44505         (altivec_vspltb_direct): New.
44506         (altivec_vsplth): Divide into a define_expand and a new
44507         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
44508         little endian target.
44509         (altivec_vsplth_direct): New.
44510         (altivec_vspltw): Divide into a define_expand and a new
44511         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
44512         little endian target.
44513         (altivec_vspltw_direct): New.
44514         (altivec_vspltsf): Divide into a define_expand and a new
44515         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
44516         a little endian target.
44518 2014-01-30  Richard Biener  <rguenther@suse.de>
44520         PR tree-optimization/59993
44521         * tree-ssa-forwprop.c (associate_pointerplus): Check we
44522         can propagate form the earlier stmt and avoid the transform
44523         when the intermediate result is needed.
44525 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
44527         * README.Portability: Fix typo.
44529 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
44531         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
44532         comparison_operator with ordered_comparison_operator.
44534 2014-01-30  Nick Clifton  <nickc@redhat.com>
44536         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
44537         Rename to mn10300_store_multiple_regs.
44538         * config/mn10300/mn10300.c: Likewise.
44539         * config/mn10300/mn10300.md (store_movm): Fix typo: call
44540         store_multiple_regs.
44541         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
44542         Call mn10300_store_multiple_regs.
44544 2014-01-30  Nick Clifton  <nickc@redhat.com>
44545             DJ Delorie  <dj@redhat.com>
44547         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
44548         %fp 2 to keep registers after it properly word-aligned.
44549         (rl78_alloc_physical_registers_umul): Handle the case where both
44550         input operands are the same.
44552 2014-01-30  Richard Biener  <rguenther@suse.de>
44554         PR tree-optimization/59903
44555         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
44556         check properly.
44558 2014-01-30  Jason Merrill  <jason@redhat.com>
44560         PR c++/59633
44561         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
44563         PR c++/59645
44564         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
44566 2014-01-30  Richard Biener  <rguenther@suse.de>
44568         PR tree-optimization/59951
44569         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
44571 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
44573         PR target/59784
44574         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
44575         SFmode to DFmode case.
44577 2014-01-29  DJ Delorie  <dj@redhat.com>
44579         * config/msp430/msp430.opt (-minrt): New.
44580         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
44581         if -minrt given.
44582         (ENDFILE_SPEC): Likewise.
44584 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
44586         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
44587         (estimate_function_body_sizes): Use it.
44589 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
44591         PR c++/58561
44592         * dwarf2out.c (is_cxx_auto): New.
44593         (is_base_type): Use it.
44594         (gen_type_die_with_usage): Likewise.
44596 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44598         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
44599         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
44600         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
44601         -maltivec=be with LE targets.
44602         (vsx_mergeh_<mode>): Likewise.
44603         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
44604         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
44605         (altivec_vmrghb): Replace with define_expand and new
44606         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
44607         (altivec_vmrghb_direct): New define_insn.
44608         (altivec_vmrghh): Replace with define_expand and new
44609         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
44610         (altivec_vmrghh_direct): New define_insn.
44611         (altivec_vmrghw): Replace with define_expand and new
44612         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
44613         (altivec_vmrghw_direct): New define_insn.
44614         (*altivec_vmrghsf): Adjust for endianness.
44615         (altivec_vmrglb): Replace with define_expand and new
44616         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
44617         (altivec_vmrglb_direct): New define_insn.
44618         (altivec_vmrglh): Replace with define_expand and new
44619         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
44620         (altivec_vmrglh_direct): New define_insn.
44621         (altivec_vmrglw): Replace with define_expand and new
44622         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
44623         (altivec_vmrglw_direct): New define_insn.
44624         (*altivec_vmrglsf): Adjust for endianness.
44625         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
44626         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
44627         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
44628         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
44629         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
44630         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
44631         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
44632         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
44634 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
44636         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
44637         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
44638         whitespace.
44640 2014-01-29  Richard Biener  <rguenther@suse.de>
44642         PR tree-optimization/58742
44643         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
44644         associate_pointerplus_align.
44645         (associate_pointerplus_diff): New function.
44646         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
44647         and associate_pointerplus_diff.
44649 2014-01-29  Richard Biener  <rguenther@suse.de>
44651         * lto-streamer.h (LTO_major_version): Bump to 3.
44652         (LTO_minor_version): Reset to 0.
44654 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
44656         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
44657         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
44658         (arm_file_start): Generate correct asm header for armv7ve.
44659         * config/arm/bpabi.h: Add multilib support for armv7ve.
44660         * config/arm/driver-arm.c: Change the architectures of cortex-a7
44661         and cortex-a15 to armv7ve.
44662         * config/arm/t-aprofile: Add multilib support for armv7ve.
44663         * doc/invoke.texi: Document -march=armv7ve.
44665 2014-01-29  Richard Biener  <rguenther@suse.de>
44667         PR tree-optimization/58742
44668         * tree-ssa-forwprop.c (associate_plusminus): Return true
44669         if we changed sth, defer EH cleanup to ...
44670         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
44671         (simplify_mult): New function.
44673 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
44675         PR middle-end/59917
44676         PR tree-optimization/59920
44677         * tree.c (build_common_builtin_nodes): Remove
44678         __builtin_setjmp_dispatcher initialization.
44679         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
44680         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
44681         instead of gsi_after_labels + manually skipping debug stmts.
44682         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
44683         ignore bbs with IFN_ABNORMAL_DISPATCHER.
44684         * tree-inline.c (copy_edges_for_bb): Remove
44685         can_make_abnormal_goto argument, instead add abnormal_goto_dest
44686         argument.  Ignore computed_goto_p stmts.  Don't call
44687         make_abnormal_goto_edges.  If a call might need abnormal edges
44688         for non-local gotos, see if it already has an edge to
44689         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
44690         with true argument, don't do anything then, otherwise add
44691         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
44692         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
44693         caller.
44694         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
44695         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
44696         (lower_stmt): Don't set data->calls_builtin_setjmp.
44697         (lower_builtin_setjmp): Adjust comment.
44698         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
44699         * tree-cfg.c (found_computed_goto): Remove.
44700         (factor_computed_gotos): Remove.
44701         (make_goto_expr_edges): Return bool, true for computed gotos.
44702         Don't call make_abnormal_goto_edges.
44703         (build_gimple_cfg): Don't set found_computed_goto, don't call
44704         factor_computed_gotos.
44705         (computed_goto_p): No longer static.
44706         (make_blocks): Don't set found_computed_goto.
44707         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
44708         (make_edges): If make_goto_expr_edges returns true, push bb
44709         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
44710         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
44711         vector.  Record mapping between bbs and OpenMP regions if there
44712         are any, adjust make_gimple_omp_edges caller.  Call
44713         handle_abnormal_edges.
44714         (make_abnormal_goto_edges): Remove.
44715         * tree-cfg.h (make_abnormal_goto_edges): Remove.
44716         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
44717         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
44718         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
44719         * internal-fn.def (ABNORMAL_DISPATCHER): New.
44720         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
44721         filling *region also set *region_idx to (*region)->entry->index.
44723         PR other/58712
44724         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
44725         For REGs set ORIGINAL_REGNO.
44727 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
44729         * doc/md.texi: Mention that a target shouldn't implement
44730         vec_widen_(s|u)mul_even/odd pair if it is less efficient
44731         than hi/lo pair.
44733 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
44735         PR tree-optimization/59594
44736         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
44737         a copy of the datarefs vector rather than the vector itself.
44739 2014-01-28  Jason Merrill  <jason@redhat.com>
44741         PR c++/53756
44742         * dwarf2out.c (auto_die): New static.
44743         (gen_type_die_with_usage): Handle C++1y 'auto'.
44744         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
44745         on definition.
44747 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
44749         PR target/59672
44750         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
44751         (SPEC_X32): Likewise.
44752         (SPEC_64): Likewise.
44753         * config/i386/i386.c (ix86_option_override_internal): Turn off
44754         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
44755         for TARGET_16BIT.
44756         (x86_file_start): Output .code16gcc for TARGET_16BIT.
44757         * config/i386/i386.h (TARGET_16BIT): New macro.
44758         (TARGET_16BIT_P): Likewise.
44759         * config/i386/i386.opt: Add m16.
44760         * doc/invoke.texi: Document -m16.
44762 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
44764         PR preprocessor/59935
44765         * input.c (location_get_source_line): Bail out on when line number
44766         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
44768 2014-01-28  Richard Biener  <rguenther@suse.de>
44770         PR tree-optimization/58742
44771         * tree-ssa-forwprop.c (associate_plusminus): Handle
44772         pointer subtraction of the form (T)(P + A) - (T)P.
44774 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44776         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
44777         at const_int_cost.
44779 2014-01-28  Richard Biener  <rguenther@suse.de>
44781         Revert
44782         2014-01-28  Richard Biener  <rguenther@suse.de>
44784         PR rtl-optimization/45364
44785         PR rtl-optimization/59890
44786         * var-tracking.c (local_get_addr_clear_given_value): Handle
44787         already cleared slot.
44788         (val_reset): Handle not allocated local_get_addr_cache.
44789         (vt_find_locations): Use post-order on the inverted CFG.
44791 2014-01-28  Richard Biener  <rguenther@suse.de>
44793         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
44795 2014-01-28  Richard Biener  <rguenther@suse.de>
44797         PR rtl-optimization/45364
44798         PR rtl-optimization/59890
44799         * var-tracking.c (local_get_addr_clear_given_value): Handle
44800         already cleared slot.
44801         (val_reset): Handle not allocated local_get_addr_cache.
44802         (vt_find_locations): Use post-order on the inverted CFG.
44804 2014-01-28  Alan Modra  <amodra@gmail.com>
44806         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
44807         * configure.ac <recursive call for build != host>: Define
44808         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
44809         and LD_FOR_BUILD too.
44810         * configure: Regenerate.
44812 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
44814         * config/i386/i386.c (get_builtin_code_for_version): Separate
44815         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
44816         Broadwell from Haswell.
44818 2014-01-27  Steve Ellcey  <sellcey@mips.com>
44820         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
44821         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
44822         * config/mips/mips.c (mips_option_override): Change setting
44823         of TARGET_DSP.
44824         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
44825         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
44826         Change from Mask to Var.
44828 2014-01-27  Jeff Law  <law@redhat.com>
44830         * ipa-inline.c (inline_small_functions): Fix typo.
44832 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
44834         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
44835         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
44836         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
44837         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
44838         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
44839         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
44840         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
44841         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
44842         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
44843         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
44844         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
44845         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
44846         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
44847         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
44848         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
44849         (_mm512_storeu_epi64): Ditto.
44850         (_mm512_cmpge_epi32_mask): Ditto.
44851         (_mm512_cmpge_epu32_mask): Ditto.
44852         (_mm512_cmpge_epi64_mask): Ditto.
44853         (_mm512_cmpge_epu64_mask): Ditto.
44854         (_mm512_cmple_epi32_mask): Ditto.
44855         (_mm512_cmple_epu32_mask): Ditto.
44856         (_mm512_cmple_epi64_mask): Ditto.
44857         (_mm512_cmple_epu64_mask): Ditto.
44858         (_mm512_cmplt_epi32_mask): Ditto.
44859         (_mm512_cmplt_epu32_mask): Ditto.
44860         (_mm512_cmplt_epi64_mask): Ditto.
44861         (_mm512_cmplt_epu64_mask): Ditto.
44862         (_mm512_cmpneq_epi32_mask): Ditto.
44863         (_mm512_cmpneq_epu32_mask): Ditto.
44864         (_mm512_cmpneq_epi64_mask): Ditto.
44865         (_mm512_cmpneq_epu64_mask): Ditto.
44866         (_mm512_expand_pd): Ditto.
44867         (_mm512_expand_ps): Ditto.
44868         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
44869         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
44870         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
44871         * config/i386/i386.c (ix86_builtins): Add
44872         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
44873         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
44874         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
44875         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
44876         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
44877         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
44878         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
44879         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
44880         IX86_BUILTIN_PMOVUSQW512_MEM.
44881         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
44882         __builtin_ia32_pmovsqd512mem_mask,
44883         __builtin_ia32_pmovqd512mem_mask,
44884         __builtin_ia32_pmovusqw512mem_mask,
44885         __builtin_ia32_pmovsqw512mem_mask,
44886         __builtin_ia32_pmovqw512mem_mask,
44887         __builtin_ia32_pmovusdw512mem_mask,
44888         __builtin_ia32_pmovsdw512mem_mask,
44889         __builtin_ia32_pmovdw512mem_mask,
44890         __builtin_ia32_pmovqb512mem_mask,
44891         __builtin_ia32_pmovusqb512mem_mask,
44892         __builtin_ia32_pmovsqb512mem_mask,
44893         __builtin_ia32_pmovusdb512mem_mask,
44894         __builtin_ia32_pmovsdb512mem_mask,
44895         __builtin_ia32_pmovdb512mem_mask.
44896         (bdesc_args): Add __builtin_ia32_expanddf512,
44897         __builtin_ia32_expandsf512.
44898         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
44899         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
44900         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
44901         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
44902         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
44903         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
44904         (avx512f_<code>v8div16qi2_mask_store): This.
44905         (avx512f_expand<mode>): New.
44907 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
44909         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
44910         New.
44911         (_mm512_mask_prefetch_i64gather_pd): Ditto.
44912         (_mm512_prefetch_i32scatter_pd): Ditto.
44913         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
44914         (_mm512_prefetch_i64scatter_pd): Ditto.
44915         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
44916         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
44917         (_mm512_mask_prefetch_i64gather_ps): Ditto.
44918         (_mm512_prefetch_i32scatter_ps): Ditto.
44919         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
44920         (_mm512_prefetch_i64scatter_ps): Ditto.
44921         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
44922         * config/i386/i386-builtin-types.def: Define
44923         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
44924         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
44925         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
44926         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
44927         IX86_BUILTIN_SCATTERPFQPD.
44928         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
44929         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
44930         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
44931         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
44932         __builtin_ia32_scatterpfqps.
44933         (ix86_expand_builtin): Expand new built-ins.
44934         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
44935         fix memory access data type.
44936         (*avx512pf_gatherpf<mode>_mask): Ditto.
44937         (*avx512pf_gatherpf<mode>): Ditto.
44938         (avx512pf_scatterpf<mode>): Ditto.
44939         (*avx512pf_scatterpf<mode>_mask): Ditto.
44940         (*avx512pf_scatterpf<mode>): Ditto.
44941         (GATHER_SCATTER_SF_MEM_MODE): New.
44942         (avx512pf_gatherpf<mode>df): Ditto.
44943         (*avx512pf_gatherpf<mode>df_mask): Ditto.
44944         (*avx512pf_scatterpf<mode>df): Ditto.
44946 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
44948         PR bootstrap/59934
44949         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
44950         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
44951         reached.
44953 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
44955         * common/config/arm/arm-common.c
44956         (arm_rewrite_mcpu): Handle multiple names.
44957         * config/arm/arm.h
44958         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
44960 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
44962         * gimple-builder.h (create_gimple_tmp): Delete.
44964 2014-01-27  Christian Bruel  <christian.bruel@st.com>
44966         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
44967         words comparisons.
44969 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
44971         * config/pa/pa.md (call): Generate indirect long calls to non-local
44972         functions when outputing 32-bit code.
44973         (call_value): Likewise except for special call to buggy powf function.
44975         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
44976         portable runtime and PIC indirect calls.
44977         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
44978         and PIC call sequences.  Use ldo instead of blr to set return register
44979         in PIC call sequence.
44981 2014-01-25  Walter Lee  <walt@tilera.com>
44983         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
44984         avoid clobbering a live register.
44986 2014-01-25  Walter Lee  <walt@tilera.com>
44988         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
44989         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
44990         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
44991         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
44993 2014-01-25  Walter Lee  <walt@tilera.com>
44995         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
44996         arguments on even registers.
44997         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
44998         STACK_BOUNDARY.
44999         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
45000         (BIGGEST_ALIGNMENT): Ditto.
45001         (BIGGEST_FIELD_ALIGNMENT): Ditto.
45003 2014-01-25  Walter Lee  <walt@tilera.com>
45005         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
45006         insns before bundling.
45007         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
45009 2014-01-25  Walter Lee  <walt@tilera.com>
45011         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
45012         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
45013         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
45015 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
45017         * config/mips/constraints.md (kl): Delete.
45018         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
45019         define expands, using...
45020         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
45021         instructions for MIPS16.
45022         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
45023         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
45025 2014-01-25  Walter Lee  <walt@tilera.com>
45027         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
45028         (clzdi2): Ditto.
45029         (ffsdi2): Ditto.
45031 2014-01-25  Walter Lee  <walt@tilera.com>
45033         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
45034         (TARGET_EXPAND_TO_RTL_HOOK): Define.
45036 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
45038         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
45039         Handle XOR.
45041 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
45043         * print-rtl.c (in_call_function_usage): New var.
45044         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
45045         EXPR_LIST mode as mode and not as reg note name.
45047         PR middle-end/59561
45048         * cfgloopmanip.c (copy_loop_info): If
45049         loop->warned_aggressive_loop_optimizations, make sure
45050         the flag is set in target loop too.
45052 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
45054         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
45055         flag_cilkplus.
45056         * builtins.def: Likewise.
45057         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
45058         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
45059         * ira.c (ira_setup_eliminable_regset): Likewise.
45060         * omp-low.c (gate_expand_omp): Likewise.
45061         (execute_lower_omp): Likewise.
45062         (diagnose_sb_0): Likewise.
45063         (gate_diagnose_omp_blocks): Likewise.
45064         (simd_clone_clauses_extract): Likewise.
45065         (gate): Likewise.
45067 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45069         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
45070         correction for little endian...
45071         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
45072         here.
45074 2014-01-24  Jeff Law  <law@redhat.com>
45076         PR tree-optimization/59919
45077         * tree-vrp.c (find_assert_locations_1): Do not register asserts
45078         for non-returning calls.
45080 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
45082         * common/config/aarch64/aarch64-common.c
45083         (aarch64_rewrite_mcpu): Handle multiple names.
45084         * config/aarch64/aarch64.h
45085         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
45087 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
45089         * input.c (add_file_to_cache_tab): Handle the case where fopen
45090         returns NULL.
45092 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
45094         PR target/59929
45095         * config/i386/i386.md (pushsf splitter): Get stack adjustment
45096         from push operand if code of push isn't PRE_DEC.
45098 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
45100         PR target/59909
45101         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
45102         -mquad-memory-atomic.  Update -mquad-memory documentation to say
45103         it is only used for non-atomic loads/stores.
45105         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
45106         -mquad-memory or -mquad-memory-atomic switches.
45108         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
45109         -mquad-memory-atomic to ISA 2.07 support.
45111         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
45112         to separate support of normal quad word memory operations (ldq, stq)
45113         from the atomic quad word memory operations.
45115         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
45116         support to separate non-atomic quad word operations from atomic
45117         quad word operations.  Disable non-atomic quad word operations in
45118         little endian mode so that we don't have to swap words after the
45119         load and before the store.
45120         (quad_load_store_p): Add comment about atomic quad word support.
45121         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
45122         options printed with -mdebug=reg.
45124         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
45125         -mquad-memory-atomic as the test for whether we have quad word
45126         atomic instructions.
45127         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
45128         or -mp8-vector are used, allow byte/half-word atomic operations.
45130         * config/rs6000/sync.md (load_lockedti): Insure that the address
45131         is a proper indexed or indirect address for the lqarx instruction.
45132         On little endian systems, swap the hi/lo registers after the lqarx
45133         instruction.
45134         (load_lockedpti): Use indexed_or_indirect_operand predicate to
45135         insure the address is valid for the lqarx instruction.
45136         (store_conditionalti): Insure that the address is a proper indexed
45137         or indirect address for the stqcrx. instruction.  On little endian
45138         systems, swap the hi/lo registers before doing the stqcrx.
45139         instruction.
45140         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
45141         insure the address is valid for the stqcrx. instruction.
45143         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
45144         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
45145         type of quad memory support is available.
45147 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
45149         PR regression/59915
45150         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
45151         there is a danger of looping.
45153 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
45155         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
45156         force flag_ira_loop_pressure if set via command line.
45158 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
45160         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
45161         (ashr_simd): New builtin handling DI mode.
45162         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
45163         (aarch64_sshr_simddi): New match pattern.
45164         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
45165         (vshrd_n_s64): Likewise.
45166         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
45168 2014-01-23  Nick Clifton  <nickc@redhat.com>
45170         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
45171         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
45172         favour of mcu specific scripts.
45173         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
45174         430x multilibs.
45176 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
45177             Alex Velenko  <Alex.Velenko@arm.com>
45179         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
45180         (vaddv_s16): Likewise.
45181         (vaddv_s32): Likewise.
45182         (vaddv_u8): Likewise.
45183         (vaddv_u16): Likewise.
45184         (vaddv_u32): Likewise.
45185         (vaddvq_s8): Likewise.
45186         (vaddvq_s16): Likewise.
45187         (vaddvq_s32): Likewise.
45188         (vaddvq_s64): Likewise.
45189         (vaddvq_u8): Likewise.
45190         (vaddvq_u16): Likewise.
45191         (vaddvq_u32): Likewise.
45192         (vaddvq_u64): Likewise.
45193         (vaddv_f32): Likewise.
45194         (vaddvq_f32): Likewise.
45195         (vaddvq_f64): Likewise.
45196         (vmaxv_f32): Likewise.
45197         (vmaxv_s8): Likewise.
45198         (vmaxv_s16): Likewise.
45199         (vmaxv_s32): Likewise.
45200         (vmaxv_u8): Likewise.
45201         (vmaxv_u16): Likewise.
45202         (vmaxv_u32): Likewise.
45203         (vmaxvq_f32): Likewise.
45204         (vmaxvq_f64): Likewise.
45205         (vmaxvq_s8): Likewise.
45206         (vmaxvq_s16): Likewise.
45207         (vmaxvq_s32): Likewise.
45208         (vmaxvq_u8): Likewise.
45209         (vmaxvq_u16): Likewise.
45210         (vmaxvq_u32): Likewise.
45211         (vmaxnmv_f32): Likewise.
45212         (vmaxnmvq_f32): Likewise.
45213         (vmaxnmvq_f64): Likewise.
45214         (vminv_f32): Likewise.
45215         (vminv_s8): Likewise.
45216         (vminv_s16): Likewise.
45217         (vminv_s32): Likewise.
45218         (vminv_u8): Likewise.
45219         (vminv_u16): Likewise.
45220         (vminv_u32): Likewise.
45221         (vminvq_f32): Likewise.
45222         (vminvq_f64): Likewise.
45223         (vminvq_s8): Likewise.
45224         (vminvq_s16): Likewise.
45225         (vminvq_s32): Likewise.
45226         (vminvq_u8): Likewise.
45227         (vminvq_u16): Likewise.
45228         (vminvq_u32): Likewise.
45229         (vminnmv_f32): Likewise.
45230         (vminnmvq_f32): Likewise.
45231         (vminnmvq_f64): Likewise.
45233 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
45235         * config/aarch64/aarch64-simd.md
45236         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
45237         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
45238         (*aarch64_mul3_elt<mode>): Likewise.
45239         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
45240         (*aarch64_mul3_elt_to_64v2df): Likewise.
45241         (*aarch64_mla_elt<mode>): Likewise.
45242         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
45243         (*aarch64_mls_elt<mode>): Likewise.
45244         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
45245         (*aarch64_fma4_elt<mode>): Likewise.
45246         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
45247         (*aarch64_fma4_elt_to_64v2df): Likewise.
45248         (*aarch64_fnma4_elt<mode>): Likewise.
45249         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
45250         (*aarch64_fnma4_elt_to_64v2df): Likewise.
45251         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
45252         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
45253         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
45254         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
45255         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
45256         (aarch64_sqdmull_lane<mode>_internal): Likewise.
45257         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
45259 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
45261         * config/aarch64/aarch64-simd.md
45262         (aarch64_be_checked_get_lane<mode>): New define_expand.
45263         * config/aarch64/aarch64-simd-builtins.def
45264         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
45265         New builtin definition.
45266         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
45267         Use new safe be builtin.
45269 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
45271         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
45272         New define_insn.
45273         (aarch64_be_st1<mode>): Likewise.
45274         (aarch_ld1<VALL:mode>): Define_expand modified.
45275         (aarch_st1<VALL:mode>): Likewise.
45276         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
45277         (UNSPEC_ST1): Likewise.
45279 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
45281         * config/microblaze/microblaze.md: Add trap insn and attribute
45283 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
45285         PR preprocessor/58580
45286         * input.h (location_get_source_line): Take an additional line_size
45287         parameter.
45288         (void diagnostics_file_cache_fini): Declare new function.
45289         * input.c (struct fcache): New type.
45290         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
45291         New static constants.
45292         (diagnostic_file_cache_init, total_lines_num)
45293         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
45294         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
45295         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
45296         (get_next_line, read_next_line, goto_next_line, read_line_num):
45297         New static function definitions.
45298         (diagnostic_file_cache_fini): New function.
45299         (location_get_source_line): Take an additional output line_len
45300         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
45301         read_line_num.
45302         * diagnostic.c (diagnostic_finish): Call
45303         diagnostic_file_cache_fini.
45304         (adjust_line): Take an additional input parameter for the length
45305         of the line, rather than calculating it with strlen.
45306         (diagnostic_show_locus): Adjust the use of
45307         location_get_source_line and adjust_line with respect to their new
45308         signature.  While displaying a line now, do not stop at the first
45309         null byte.  Rather, display the zero byte as a space and keep
45310         going until we reach the size of the line.
45311         * Makefile.in: Add vec.o to OBJS-libcommon
45313 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
45314             Ilya Tocar  <ilya.tocar@intel.com>
45316         * config/i386/avx512fintrin.h (_mm512_kmov): New.
45317         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
45318         (__builtin_ia32_kmov16): Ditto.
45319         * config/i386/i386.md (UNSPEC_KMOV): New.
45320         (kmovw): Ditto.
45322 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
45324         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
45325         (_mm512_storeu_si512): Ditto.
45327 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
45329         PR target/52125
45330         * rtl.h (get_referenced_operands): Declare.
45331         * recog.c (get_referenced_operands): New function.
45332         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
45333         operands have been referenced when recording LO_SUM references.
45335 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
45337         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
45339 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
45341         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
45342         Enable for generic and recent AMD targets.
45344 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
45346         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
45347         ARG_SIZE note when adjustment was eliminated.
45349 2014-01-22  Jeff Law  <law@redhat.com>
45351         PR tree-optimization/59597
45352         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
45353         in file.  Accept new argument REGISTERING and use it to modify
45354         dump output appropriately.
45355         (register_jump_thread): Corresponding changes.
45356         (mark_threaded_blocks): Reinstate code to cancel unprofitable
45357         thread paths involving joiner blocks.  Add code to dump cancelled
45358         jump threading paths.
45360 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
45362         PR rtl-optimization/59477
45363         * lra-constraints.c (inherit_in_ebb): Process call for living hard
45364         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
45366 2014-01-22  Tom Tromey  <tromey@redhat.com>
45368         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
45369         PARAMS.
45370         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
45372 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
45374         PR rtl-optimization/59896
45375         * lra-constraints.c (process_alt_operands): Check unused note for
45376         matched operands of insn with no output reloads.
45378 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
45380         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
45381         (mips_move_from_gpr_cost): Likewise.
45383 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
45385         PR rtl-optimization/59858
45386         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
45387         ira_class_hard_regs_num.
45388         (process_alt_operands): Increase reject for dying matched operand.
45390 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
45392         PR target/59003
45393         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
45394         smaller than size, perform several stores or loads and stores
45395         at dst + count - size to store or copy all of size bytes, rather
45396         than just last modesize bytes.
45398 2014-01-20  DJ Delorie  <dj@redhat.com>
45400         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
45401         that CLOBBERs are REGs before propogating their values.
45403 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
45405         PR middle-end/59789
45406         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
45407         (cgraph_inline_failed_type): New function.
45408         * cgraph.h (DEFCIFCODE): Add type.
45409         (cgraph_inline_failed_type_t): New enum.
45410         (cgraph_inline_failed_type): New prototype.
45411         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
45412         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
45413         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
45414         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
45415         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
45416         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
45417         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
45418         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
45419         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
45420         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
45421         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
45422         OPTIMIZATION_MISMATCH.
45423         * tree-inline.c (expand_call_inline): Emit errors during
45424         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
45426 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
45428         PR target/59685
45429         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
45430         mode attribute in insn output.
45432 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
45434         * output.h (output_constant): Delete.
45435         * varasm.c (output_constant): Make private.
45437 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
45439         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
45441 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
45443         PR middle-end/59860
45444         * tree.h (fold_builtin_strcat): New prototype.
45445         * builtins.c (fold_builtin_strcat): No longer static.  Add len
45446         argument, if non-NULL, don't call c_strlen.  Optimize
45447         directly into __builtin_memcpy instead of __builtin_strcpy.
45448         (fold_builtin_2): Adjust fold_builtin_strcat caller.
45449         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
45451 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
45453         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
45454         for SImode_address_operand operands, having only a REG argument.
45456 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
45458         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
45459         loader name using mbig-endian.
45460         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
45462 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
45464         * doc/invoke.texi (-march): Clarify documentation for AArch64.
45465         (-mtune): Likewise.
45466         (-mcpu): Likewise.
45468 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
45470         * config/aarch64/aarch64-protos.h
45471         (aarch64_cannot_change_mode_class_ptr): Declare.
45472         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
45473         aarch64_cannot_change_mode_class_ptr): New.
45474         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
45475         backend hook aarch64_cannot_change_mode_class.
45477 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
45479         * common/config/aarch64/aarch64-common.c
45480         (aarch64_handle_option): Don't handle any option order logic here.
45481         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
45482         selected_cpu, warn on architecture version mismatch.
45483         (aarch64_override_options): Fix parsing order for option strings.
45485 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
45486             Iain Sandoe  <iain@codesourcery.com>
45488         PR bootstrap/59496
45489         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
45490         warning.  Amend comment to reflect current functionality.
45492 2014-01-20  Richard Biener  <rguenther@suse.de>
45494         PR middle-end/59860
45495         * builtins.c (fold_builtin_strcat): Remove case better handled
45496         by tree-ssa-strlen.c.
45498 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
45500         * config/aarch64/aarch64.opt
45501         (mcpu, march, mtune): Make case-insensitive.
45503 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
45505         PR target/59880
45506         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
45507         if operands[1] is a REG or ZERO_EXTEND of a REG.
45509 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
45511         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
45513 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
45515         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
45516         long non-pic millicode calls.
45518 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
45520         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
45522 2014-01-19  Kito Cheng  <kito@0xlab.org>
45524         * builtins.c (expand_movstr): Check movstr expand done or fail.
45526 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
45527             H.J. Lu  <hongjiu.lu@intel.com>
45529         PR target/59379
45530         * config/i386/i386.md (*lea<mode>): Zero-extend return register
45531         to DImode for zero-extended addresses.
45533 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
45535         PR rtl-optimization/57763
45536         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
45537         on the new indirect jump_insn and increment LABEL_NUSES (label).
45539 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
45541         PR bootstrap/59580
45542         PR bootstrap/59583
45543         * config.gcc (x86_archs): New variable.
45544         (x86_64_archs): Likewise.
45545         (x86_cpus): Likewise.
45546         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
45547         --with-arch/--with-cpu= options.
45548         Support --with-arch=/--with-cpu={nehalem,westmere,
45549         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
45551 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
45553         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
45554         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
45556 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
45558         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
45560 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
45562         PR target/58944
45563         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
45564         clear cpp_get_options (parse_in)->warn_unused_macros for
45565         ix86_target_macros_internal with cpp_define.
45567 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
45569         * jump.c (delete_related_insns): Keep (use (insn))s.
45570         * reorg.c (redundant_insn): Check for barriers too.
45572 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
45574         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
45576 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
45578         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
45579         call to $$dyncall when TARGET_LONG_CALLS is true.
45581 2014-01-17  Jeff Law  <law@redhat.com>
45583         * ree.c (combine_set_extension): Temporarily disable test for
45584         changing number of hard registers.
45586 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
45588         PR middle-end/58125
45589         * ipa-inline-analysis.c (inline_free_summary):
45590         Do not free summary of aliases.
45592 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
45594         PR middle-end/59706
45595         * gimplify.c (gimplify_expr): Use create_tmp_var
45596         instead of create_tmp_var_raw.  If cond doesn't have
45597         integral type, don't add the IFN_ANNOTATE builtin at all.
45599 2014-01-17  Martin Jambor  <mjambor@suse.cz>
45601         PR ipa/59736
45602         * ipa-cp.c (prev_edge_clone): New variable.
45603         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
45604         Also resize prev_edge_clone vector.
45605         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
45606         (ipcp_edge_removal_hook): New function.
45607         (ipcp_driver): Register ipcp_edge_removal_hook.
45609 2014-01-17  Andrew Pinski  <apinski@cavium.com>
45610             Steve Ellcey  <sellcey@mips.com>
45612         PR target/59462
45613         * config/mips/mips.c (mips_print_operand): Check operand mode instead
45614         of operator mode.
45616 2014-01-17  Jeff Law  <law@redhat.com>
45618         PR middle-end/57904
45619         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
45620         so that pass_ccp runs first.
45622 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
45624         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
45625         (ix86_adjust_cost): Use !TARGET_XXX.
45626         (do_reorder_for_imul): Likewise.
45627         (swap_top_of_ready_list): Likewise.
45628         (ix86_sched_reorder): Likewise.
45630 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
45632         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
45633         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
45634         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
45635         (intel_memset): New.  Duplicate slm_memset.
45636         (intel_cost): New.  Duplicate slm_cost.
45637         (m_INTEL): New macro.
45638         (processor_target_table): Add "intel".
45639         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
45640         with PROCESSOR_INTEL for "intel".
45641         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
45642         PROCESSOR_SILVERMONT.
45643         (ix86_issue_rate): Likewise.
45644         (ix86_adjust_cost): Likewise.
45645         (ia32_multipass_dfa_lookahead): Likewise.
45646         (swap_top_of_ready_list): Likewise.
45647         (ix86_sched_reorder): Likewise.
45648         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
45649         instead of TARGET_OPT_AGU.
45650         * config/i386/i386.h (TARGET_INTEL): New.
45651         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
45652         (processor_type): Add PROCESSOR_INTEL.
45653         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
45654         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
45656 2014-01-17  Marek Polacek  <polacek@redhat.com>
45658         PR c/58346
45659         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
45660         size is zero.
45662 2014-01-17  Richard Biener  <rguenther@suse.de>
45664         PR tree-optimization/46590
45665         * opts.c (default_options_table): Add entries for
45666         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
45667         all enabled at -O1 but not for -Og.
45668         * common.opt (fbranch-count-reg): Remove Init(1).
45669         (fmove-loop-invariants): Likewise.
45670         (ftree-pta): Likewise.
45672 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
45674         * config/i386/i386.c (ix86_data_alignment): For compatibility with
45675         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
45676         decls to at least the GCC 4.8 used alignments.
45678         PR fortran/59440
45679         * tree-nested.c (convert_nonlocal_reference_stmt,
45680         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
45681         of GIMPLE_BIND stmts, adjust associated decls.
45683 2014-01-17  Richard Biener  <rguenther@suse.de>
45685         PR tree-optimization/46590
45686         * vec.h (vec<>::bseach): New member function implementing
45687         binary search according to C89 bsearch.
45688         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
45689         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
45690         bitmap pointer again.  Make accesses_in_loop a flat array.
45691         (mem_ref_obstack): New global.
45692         (outermost_indep_loop): Adjust for mem_ref->stored changes.
45693         (mark_ref_stored): Likewise.
45694         (ref_indep_loop_p_2): Likewise.
45695         (set_ref_stored_in_loop): New helper function.
45696         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
45697         (memref_free): Adjust.
45698         (record_mem_ref_loc): Simplify.
45699         (gather_mem_refs_stmt): Adjust.
45700         (sort_locs_in_loop_postorder_cmp): New function.
45701         (analyze_memory_references): Sort accesses_in_loop after
45702         loop postorder number.
45703         (find_ref_loc_in_loop_cmp): New function.
45704         (for_all_locs_in_loop): Find relevant cluster of locs in
45705         accesses_in_loop and iterate without recursion.
45706         (execute_sm): Avoid uninit warning.
45707         (struct ref_always_accessed): Simplify.
45708         (ref_always_accessed::operator ()): Likewise.
45709         (ref_always_accessed_p): Likewise.
45710         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
45711         loop postorder numbers here.
45712         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
45713         numbers.
45715 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
45717         PR c++/57945
45718         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
45719         on decls for which assemble_alias has been called.
45721 2014-01-17  Nick Clifton  <nickc@redhat.com>
45723         * config/msp430/msp430.opt: (mcpu): New option.
45724         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
45725         (msp430_option_override): Parse target_cpu.  If the MCU name
45726         matches a generic string, clear target_mcu.
45727         (msp430_attr): Allow numeric interrupt values up to 63.
45728         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
45729         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
45730         option.
45731         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
45732         Add mcpu matches.
45733         * config/msp430/msp430.md (popm): Use %J rather than %I.
45734         (addsi3): Use msp430_nonimmediate_operand for operand 2.
45735         (addhi_cy_i): Use immediate_operand for operand 2.
45736         * doc/invoke.texi: Document -mcpu option.
45738 2014-01-17  Richard Biener  <rguenther@suse.de>
45740         PR rtl-optimization/38518
45741         * df.h (df_analyze_loop): Declare.
45742         * df-core.c: Include cfgloop.h.
45743         (df_analyze_1): Split out main part of df_analyze.
45744         (df_analyze): Adjust.
45745         (loop_inverted_post_order_compute): New function.
45746         (loop_post_order_compute): Likewise.
45747         (df_analyze_loop): New function avoiding whole-function
45748         postorder computes.
45749         * loop-invariant.c (find_defs): Use df_analyze_loop.
45750         (find_invariants): Adjust.
45751         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
45753 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
45755         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
45756         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
45758 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
45760         * ipa-ref.c (ipa_remove_stmt_references): Fix references
45761         traversal when removing references.
45763 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
45765         PR ipa/59775
45766         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
45768 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
45770         PR middle-end/56791
45771         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
45772         pushing a reload for an autoinc when we had previously reloaded an
45773         inner part of the address.
45775 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
45777         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
45778         field.
45779         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
45780         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
45781         when not giving up or versioning for alias only because of
45782         loop->safelen.
45783         (vect_analyze_data_ref_dependences): Set to true.
45784         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
45785         is a GIMPLE_PHI.
45786         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
45787         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
45788         to the condition.
45790         PR middle-end/58344
45791         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
45793         PR target/59839
45794         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
45795         operand 0 predicate for gathers, use a new pseudo as subtarget.
45797 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
45799         PR middle-end/59609
45800         * lra-constraints.c (process_alt_operands): Add printing debug info.
45801         Check absence of input/output reloads for matched operands too.
45803 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
45805         PR rtl-optimization/59835
45806         * ira.c (ira_init_register_move_cost): Increase cost for
45807         impossible modes.
45809 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
45811         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
45813 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
45815         PR target/59780
45816         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
45817         non-register objects.  Use gen_(high/low)part more consistently.
45818         Fix assertions.
45820 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
45822         PR target/59844
45823         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
45824         endian support, remove tests for WORDS_BIG_ENDIAN.
45825         (p8_mfvsrd_3_<mode>): Likewise.
45826         (reload_gpr_from_vsx<mode>): Likewise.
45827         (reload_gpr_from_vsxsf): Likewise.
45828         (p8_mfvsrd_4_disf): Likewise.
45830 2014-01-16  Richard Biener  <rguenther@suse.de>
45832         PR rtl-optimization/46590
45833         * lcm.c (compute_antinout_edge): Use postorder iteration.
45834         (compute_laterin): Use inverted postorder iteration.
45836 2014-01-16  Nick Clifton  <nickc@redhat.com>
45838         PR middle-end/28865
45839         * varasm.c (output_constant): Return the number of bytes actually
45840         emitted.
45841         (output_constructor_array_range): Update the field size with the
45842         number of bytes emitted by output_constant.
45843         (output_constructor_regular_field): Likewise.  Also do not
45844         complain if the total number of bytes emitted is now greater
45845         than the expected fieldpos.
45846         * output.h (output_constant): Update prototype and descriptive comment.
45848 2014-01-16  Marek Polacek  <polacek@redhat.com>
45850         PR middle-end/59827
45851         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
45852         it is error_mark_node.
45854 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
45856         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
45857         VALID_AVX256_REG_OR_OI_MODE.
45859 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
45861         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
45862         current procedure should be profiled.
45864 2014-01-15  Andrew Pinski  <apinski@cavium.com>
45866         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
45867         of moving from/to the STACK_REG register class.
45869 2014-01-15  Richard Henderson  <rth@redhat.com>
45871         PR debug/54694
45872         * reginfo.c (global_regs_decl): Globalize.
45873         * rtl.h (global_regs_decl): Declare.
45874         * ira.c (do_reload): Diagnose frame_pointer_needed and it
45875         reserved via global_regs.
45877 2014-01-15  Teresa Johnson  <tejohnson@google.com>
45879         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
45881 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
45883         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
45884         and vmulosh rather than call gen_vec_widen_smult_*.
45885         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
45886         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
45887         (vec_widen_smult_even_v16qi): Likewise.
45888         (vec_widen_umult_even_v8hi): Likewise.
45889         (vec_widen_smult_even_v8hi): Likewise.
45890         (vec_widen_umult_odd_v16qi): Likewise.
45891         (vec_widen_smult_odd_v16qi): Likewise.
45892         (vec_widen_umult_odd_v8hi): Likewise.
45893         (vec_widen_smult_odd_v8hi): Likewise.
45894         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
45895         vmuloub rather than call gen_vec_widen_umult_*.
45896         (vec_widen_umult_lo_v16qi): Likewise.
45897         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
45898         vmulosb rather than call gen_vec_widen_smult_*.
45899         (vec_widen_smult_lo_v16qi): Likewise.
45900         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
45901         rather than call gen_vec_widen_umult_*.
45902         (vec_widen_umult_lo_v8hi): Likewise.
45903         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
45904         rather than call gen_vec_widen_smult_*.
45905         (vec_widen_smult_lo_v8hi): Likewise.
45907 2014-01-15  Jeff Law  <law@redhat.com>
45909         PR tree-optimization/59747
45910         * ree.c (find_and_remove_re): Properly handle case where a second
45911         eliminated extension requires widening a copy created for elimination
45912         of a prior extension.
45913         (combine_set_extension): Ensure that the number of hard regs needed
45914         for a destination register does not change when we widen it.
45916 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
45918         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
45919         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
45920         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
45921         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
45922         (avr-*-rtems*): Likewise.
45923         (bfin*-rtems*): Likewise.
45924         (moxie-*-rtems*): Likewise.
45925         (h8300-*-rtems*): Likewise.
45926         (i[34567]86-*-rtems*): Likewise.
45927         (lm32-*-rtems*): Likewise.
45928         (m32r-*-rtems*): Likewise.
45929         (m68k-*-rtems*): Likewise.
45930         (microblaze*-*-rtems*): Likewise.
45931         (mips*-*-rtems*): Likewise.
45932         (powerpc-*-rtems*): Likewise.
45933         (sh-*-rtems*): Likewise.
45934         (sparc-*-rtems*): Likewise.
45935         (sparc64-*-rtems*): Likewise.
45936         (v850-*-rtems*): Likewise.
45937         (m32c-*-rtems*): Likewise.
45939 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
45941         PR rtl-optimization/59511
45942         * ira.c (ira_init_register_move_cost): Use memory costs for some
45943         cases of register move cost calculations.
45944         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
45945         instead of BB frequency.
45946         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
45947         * lra-assigns.c (find_hard_regno_for): Ditto.
45949 2014-01-15  Richard Biener  <rguenther@suse.de>
45951         PR tree-optimization/59822
45952         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
45953         (vectorizable_load): Use it to hoist defs of uses of invariant
45954         loads out of the loop.
45956 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
45957             Kugan Vivekanandarajah  <kuganv@linaro.org>
45959         PR target/59695
45960         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
45961         truncation.
45963 2014-01-15  Richard Biener  <rguenther@suse.de>
45965         PR rtl-optimization/59802
45966         * lcm.c (compute_available): Use inverted postorder to seed
45967         the initial worklist.
45969 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45971         PR target/59803
45972         * config/s390/s390.c (s390_preferred_reload_class): Don't return
45973         ADDR_REGS for invalid symrefs in non-PIC code.
45975 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
45977         PR other/58712
45978         * builtins.c (determine_block_size): Initialize *probable_max_size
45979         even if len_rtx is CONST_INT.
45981 2014-01-14  Andrew Pinski  <apinski@cavium.com>
45983         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
45984         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
45985         (cortexa53_tunings): Likewise.
45986         (aarch64_sched_issue_rate): New function.
45987         (TARGET_SCHED_ISSUE_RATE): Define.
45989 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
45991         * ira-costs.c (find_costs_and_classes): Add missed
45992         ira_init_register_move_cost_if_necessary.
45994 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
45996         PR target/59787
45997         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
45999 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
46001         PR target/59794
46002         * config/i386/i386.c (type_natural_mode): Add a bool parameter
46003         to indicate if type is used for function return value.  Warn ABI
46004         change if the vector mode isn't available for function return value.
46005         (ix86_function_arg_advance): Pass false to type_natural_mode.
46006         (ix86_function_arg): Likewise.
46007         (ix86_gimplify_va_arg): Likewise.
46008         (function_arg_32): Don't warn ABI change.
46009         (ix86_function_value): Pass true to type_natural_mode.
46010         (ix86_return_in_memory): Likewise.
46011         (ix86_struct_value_rtx): Removed.
46012         (TARGET_STRUCT_VALUE_RTX): Likewise.
46014 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
46016         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
46017         converting a conditional jump into a conditional return.
46019 2014-01-14  Richard Biener  <rguenther@suse.de>
46021         PR tree-optimization/58921
46022         PR tree-optimization/59006
46023         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
46024         hoisting invariant stmts.
46025         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
46026         invariant loads on the preheader edge if possible.
46028 2014-01-14  Joey Ye  <joey.ye@arm.com>
46030         * doc/plugin.texi (Building GCC plugins): Update to C++.
46032 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
46034         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
46035         (_mm_rcp28_round_ss): Ditto.
46036         (_mm_rsqrt28_round_sd): Ditto.
46037         (_mm_rsqrt28_round_ss): Ditto.
46038         (_mm_rcp28_sd): Ditto.
46039         (_mm_rcp28_ss): Ditto.
46040         (_mm_rsqrt28_sd): Ditto.
46041         (_mm_rsqrt28_ss): Ditto.
46042         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
46043         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
46044         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
46045         (IX86_BUILTIN_RCP28SD): Ditto.
46046         (IX86_BUILTIN_RCP28SS): Ditto.
46047         (IX86_BUILTIN_RSQRT28SD): Ditto.
46048         (IX86_BUILTIN_RSQRT28SS): Ditto.
46049         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
46050         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
46051         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
46052         (ix86_expand_special_args_builtin): Expand new FTYPE.
46053         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
46054         (srcp14<mode>): Make insn unary.
46055         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
46056         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
46057         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
46058         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
46059         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
46060         Fix rounding: make it SAE only.
46061         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
46062         Ditto.
46063         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
46064         Ditto.
46065         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
46066         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
46067         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
46068         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
46069         (round_saeonly_mask_scalar_operand4): Ditto.
46070         (round_saeonly_mask_scalar_op3): Ditto.
46071         (round_saeonly_mask_scalar_op4): Ditto.
46073 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
46075         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
46076         Implement -maltivec=be for vec_insert and vec_extract.
46078 2014-01-10  DJ Delorie  <dj@redhat.com>
46080         * config/msp430/msp430.md (call_internal): Don't allow memory
46081         references with SP as the base register.
46082         (call_value_internal): Likewise.
46083         * config/msp430/constraints.md (Yc): New.  For memory references
46084         that don't use SP as a base register.
46086         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
46087         "an integer without a # prefix"
46088         * config/msp430/msp430.md (epilogue_helper): Use it.
46090 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
46092         PR target/59617
46093         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
46094         AVX512F gather builtins.
46095         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
46096         on gather decls with INTEGER_TYPE masktype.
46097         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
46098         directly into the builtin rather than hoisting it before loop.
46100         PR tree-optimization/59387
46101         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
46102         (scev_const_prop): If folded_casts and type has undefined overflow,
46103         use force_gimple_operand instead of force_gimple_operand_gsi and
46104         for each added stmt if it is assign with
46105         arith_code_with_undefined_signed_overflow, call
46106         rewrite_to_defined_overflow.
46107         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
46108         gimple-fold.h instead.
46109         (arith_code_with_undefined_signed_overflow,
46110         rewrite_to_defined_overflow): Moved to ...
46111         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
46112         rewrite_to_defined_overflow): ... here.  No longer static.
46113         Include gimplify-me.h.
46114         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
46115         rewrite_to_defined_overflow): New prototypes.
46117 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
46119         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
46121 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
46123         * builtins.c (get_object_alignment_2): Minor tweak.
46124         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
46126 2014-01-13  Christian Bruel  <christian.bruel@st.com>
46128         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
46129         optimized non constant lengths.
46131 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
46133         PR libgomp/59194
46134         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
46135         load as __atomic_load_N if possible.
46137 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
46139         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
46140         target parameter.
46141         (rs6000_expand_builtin): Adjust call.
46143 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
46145         PR target/58115
46146         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
46147         * config/rs6000/rs6000.c: Include target-globals.h.
46148         (rs6000_set_current_function): Instead of doing target_reinit
46149         unconditionally, use save_target_globals_default_opts and
46150         restore_target_globals.
46152         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
46153         FPSCR.
46154         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
46155         (rs6000_expand_builtin): Handle mffs and mtfsf.
46156         (rs6000_init_builtins): Define mffs and mtfsf.
46157         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
46158         (rs6000_mffs): New pattern.
46159         (rs6000_mtfsf): New pattern.
46161 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
46163         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
46164         Start narrowing with START.  Apply candidate-use pair
46165         and check overall cost in narrowing.
46166         (iv_ca_prune): Pass new argument.
46168 2014-01-10  Jeff Law  <law@redhat.com>
46170         PR middle-end/59743
46171         * ree.c (combine_reaching_defs): Ensure the defining statement
46172         occurs before the extension when optimizing extensions with
46173         different source and destination hard registers.
46175 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
46177         PR ipa/58585
46178         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
46179         vtables into the type inheritance graph.
46181 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
46183         PR rtl-optimization/59754
46184         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
46185         modes in the REGNO != REGNO case.
46187 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
46189         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
46191 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
46193         PR tree-optimization/59745
46194         * tree-predcom.c (tree_predictive_commoning_loop): Call
46195         free_affine_expand_cache if giving up because components is NULL.
46197         * target-globals.c (save_target_globals): Allocate < 4KB structs using
46198         GC in payload of target_globals struct instead of allocating them on
46199         the heap and the larger structs separately using GC.
46200         * target-globals.h (struct target_globals): Make regs, hard_regs,
46201         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
46202         of GTY((skip)) and change type to void *.
46203         (reset_target_globals): Cast loads from those fields to corresponding
46204         types.
46206 2014-01-10  Steve Ellcey  <sellcey@mips.com>
46208         PR plugins/59335
46209         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
46210         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
46211         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
46213 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
46215         PR target/59744
46216         * aarch64-modes.def (CC_Zmode): New flags mode.
46217         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
46218         represents an equality.
46219         (aarch64_get_condition_code): Handle CC_Zmode.
46220         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
46222 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46224         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
46225         extraction in good case.
46227 2014-01-10  Richard Biener  <rguenther@suse.de>
46229         PR tree-optimization/59374
46230         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
46231         checking after SLP discovery.  Mark stmts not participating
46232         in any SLP instance properly.
46234 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
46236         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
46237         when handling a SET rtx.
46239 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
46241         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
46242         (cortex-a57): Likewise.
46243         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
46245 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
46247         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
46248         non-iwmmxt builtins.
46250 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
46252         PR ipa/58252
46253         PR ipa/59226
46254         * ipa-devirt.c record_target_from_binfo): Take as argument
46255         stack of binfos and lookup matching one for virtual inheritance.
46256         (possible_polymorphic_call_targets_1): Update.
46258 2014-01-10  Huacai Chen  <chenhc@lemote.com>
46260         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
46261         kernel strings for Loongson-2E/2F/3A.
46263 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
46265         PR middle-end/59670
46266         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
46267         is_gimple_call before calling gimple_call_internal_p.
46269 2014-01-09  Steve Ellcey  <sellcey@mips.com>
46271         * Makefile.in (TREE_FLOW_H): Remove.
46272         (TREE_SSA_H): Add file names from tree-flow.h.
46273         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
46274         * tree.h: Remove tree-flow.h reference.
46275         * hash-table.h: Remove tree-flow.h reference.
46276         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
46277         reference with tree-ssa-loop.h.
46279 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
46281         * doc/invoke.texi: Add -maltivec={be,le} options, and document
46282         default element-order behavior for -maltivec.
46283         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
46284         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
46285         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
46286         when targeting big endian, at least for now.
46287         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
46289 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
46291         PR middle-end/47735
46292         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
46293         var satisfies use_register_for_decl, just take into account type
46294         alignment, rather than decl alignment.
46296         PR tree-optimization/59622
46297         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
46298         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
46299         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
46300         Don't devirtualize for inplace at all.  For targets.length () == 1,
46301         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
46303 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
46305         * config/i386/i386.md (cpu): Remove the unused btver1.
46307 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
46309         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
46311 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
46313         PR target/58115
46314         * tree-core.h (struct target_globals): New forward declaration.
46315         (struct tree_target_option): Add globals field.
46316         * tree.h (TREE_TARGET_GLOBALS): Define.
46317         (prepare_target_option_nodes_for_pch): New prototype.
46318         * target-globals.h (struct target_globals): Define even if
46319         !SWITCHABLE_TARGET.
46320         * tree.c (prepare_target_option_node_for_pch,
46321         prepare_target_option_nodes_for_pch): New functions.
46322         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
46323         * config/i386/i386.c: Include target-globals.h.
46324         (ix86_set_current_function): Instead of doing target_reinit
46325         unconditionally, use save_target_globals_default_opts and
46326         restore_target_globals.
46328 2014-01-09  Richard Biener  <rguenther@suse.de>
46330         PR tree-optimization/59715
46331         * tree-cfg.h (split_critical_edges): Declare.
46332         * tree-cfg.c (split_critical_edges): Export.
46333         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
46335 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
46337         * cfgexpand.c (expand_stack_vars): Optionally disable
46338         asan stack protection.
46339         (expand_used_vars): Likewise.
46340         (partition_stack_vars): Likewise.
46341         * asan.c (asan_emit_stack_protection): Optionally disable
46342         after return stack usage.
46343         (instrument_derefs): Optionally disable memory access instrumentation.
46344         (instrument_builtin_call): Likewise.
46345         (instrument_strlen_call): Likewise.
46346         (asan_protect_global): Optionally disable global variables protection.
46347         * doc/invoke.texi: Added doc for new options.
46348         * params.def: Added new options.
46349         * params.h: Likewise.
46351 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
46353         PR rtl-optimization/59724
46354         * ifcvt.c (cond_exec_process_if_block): Don't call
46355         flow_find_head_matching_sequence with 0 longest_match.
46356         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
46357         non-active insns if !stop_after.
46358         (try_head_merge_bb): Revert 2014-01-07 changes.
46360 2014-01-08  Jeff Law  <law@redhat.com>
46362         * ree.c (get_sub_rtx): New function, extracted from...
46363         (merge_def_and_ext): Here.
46364         (combine_reaching_defs): Use get_sub_rtx.
46366 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
46368         * cgraph.h (varpool_variable_node): Do not choke on null node.
46370 2014-01-08  Catherine Moore  <clm@codesourcery.com>
46372         * config/mips/mips.md (simple_return): Attempt to use JRC
46373         for microMIPS.
46374         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
46376 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
46378         PR rtl-optimization/59137
46379         * reorg.c (steal_delay_list_from_target): Call update_block for
46380         elided insns.
46381         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
46383 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
46385         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
46386         two duplicate entries.
46388 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
46390         Revert:
46391         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
46393         * config/mips/mips.c (mips_truncated_op_cost): New function.
46394         (mips_rtx_costs): Adjust test for BADDU.
46395         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
46397         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
46399         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
46400         (*baddu_si): ...this new pattern.
46402 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
46404         PR ipa/59722
46405         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
46407 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
46409         PR middle-end/57748
46410         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
46411         inner_reference_p.
46412         (expand_expr, expand_normal): Adjust.
46413         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
46414         inner_reference_p. Use inner_reference_p to expand inner references.
46415         (store_expr): Adjust.
46416         * cfgexpand.c (expand_call_stmt): Adjust.
46418 2014-01-08  Rong Xu  <xur@google.com>
46420         * gcov-io.c (gcov_var): Move from gcov-io.h.
46421         (gcov_position): Ditto.
46422         (gcov_is_error): Ditto.
46423         (gcov_rewrite): Ditto.
46424         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
46425         only part to libgcc/libgcov.h.
46427 2014-01-08  Marek Polacek  <polacek@redhat.com>
46429         PR middle-end/59669
46430         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
46432 2014-01-08  Marek Polacek  <polacek@redhat.com>
46434         PR sanitizer/59667
46435         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
46437 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
46439         PR rtl-optimization/59649
46440         * stor-layout.c (get_mode_bounds): For BImode return
46441         0 and STORE_FLAG_VALUE.
46443 2014-01-08  Richard Biener  <rguenther@suse.de>
46445         PR middle-end/59630
46446         * gimple.h (is_gimple_builtin_call): Remove.
46447         (gimple_builtin_call_types_compatible_p): New.
46448         (gimple_call_builtin_p): New overload.
46449         * gimple.c (is_gimple_builtin_call): Remove.
46450         (validate_call): Rename to ...
46451         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
46452         check return types.
46453         (validate_type): New static function.
46454         (gimple_call_builtin_p): New overload and adjust.
46455         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
46456         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
46457         (gimple_fold_stmt_to_constant_1): Likewise.
46458         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
46460 2014-01-08  Richard Biener  <rguenther@suse.de>
46462         PR middle-end/59471
46463         * gimplify.c (gimplify_expr): Gimplify register-register type
46464         VIEW_CONVERT_EXPRs to separate stmts.
46466 2014-01-07  Jeff Law  <law@redhat.com>
46468         PR middle-end/53623
46469         * ree.c (combine_set_extension): Handle case where source
46470         and destination registers in an extension insn are different.
46471         (combine_reaching_defs): Allow source and destination registers
46472         in extension to be different under limited circumstances.
46473         (add_removable_extension): Remove restriction that the
46474         source and destination registers in the extension are the same.
46475         (find_and_remove_re): Emit a copy from the extension's
46476         destination to its source after the defining insn if
46477         the source and destination registers are different.
46479         PR middle-end/59285
46480         * ifcvt.c (merge_if_block): If we are merging a block with more than
46481         one successor with a block with no successors, remove any BARRIER
46482         after the second block.
46484 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
46486         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
46488 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
46490         PR target/59652
46491         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
46492         for 14-bit register offsets when INT14_OK_STRICT is false.
46494 2014-01-07  Roland Stigge  <stigge@antcom.de>
46495             Michael Meissner  <meissner@linux.vnet.ibm.com>
46497         PR 57386/target
46498         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
46499         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
46501 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
46503         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
46504         -mcpu.
46506 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
46508         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
46509         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
46510         rtx is const0_rtx or not.
46512 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
46514         PR target/58115
46515         * target-globals.c (save_target_globals): Remove this_fn_optab
46516         handling.
46517         * toplev.c: Include optabs.h.
46518         (target_reinit): Temporarily restore the global options if another
46519         set of options are in force.
46521 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
46523         PR rtl-optimization/58668
46524         * cfgcleanup.c (flow_find_cross_jump): Don't count
46525         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
46526         to determine what is counted.
46527         (flow_find_head_matching_sequence): Use active_insn_p to determine
46528         what is counted.
46529         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
46530         counting change.
46531         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
46532         determine what is counted.
46534         PR tree-optimization/59643
46535         * tree-predcom.c (split_data_refs_to_components): If one dr is
46536         read and one write, determine_offset fails and the write isn't
46537         in the bad component, just put the read into the bad component.
46539 2014-01-07  Mike Stump  <mikestump@comcast.net>
46540             Jakub Jelinek  <jakub@redhat.com>
46542         PR pch/59436
46543         * tree-core.h (struct tree_optimization_option): Change optabs
46544         type from unsigned char * to void *.
46545         * optabs.c (init_tree_optimization_optabs): Adjust
46546         TREE_OPTIMIZATION_OPTABS initialization.
46548 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
46550         PR target/59644
46551         * config/i386/i386.h (struct machine_function): Add
46552         no_drap_save_restore field.
46553         * config/i386/i386.c (ix86_save_reg): Use
46554         !cfun->machine->no_drap_save_restore instead of
46555         crtl->stack_realign_needed.
46556         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
46557         this function clears frame_pointer_needed.  Set
46558         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
46559         and DRAP reg is needed.
46561 2014-01-06  Marek Polacek  <polacek@redhat.com>
46563         PR c/57773
46564         * doc/implement-c.texi: Mention that other integer types are
46565         permitted as bit-field types in strictly conforming mode.
46567 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
46569         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
46570         is newly allocated.
46572 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
46574         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
46576 2014-01-06  Martin Jambor  <mjambor@suse.cz>
46578         PR ipa/59008
46579         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
46580         to int.
46581         * ipa-prop.c (ipa_print_node_params): Fix indentation.
46583 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
46585         PR debug/59350
46586         PR debug/59510
46587         * var-tracking.c (add_stores): Preserve the value of the source even if
46588         we don't record the store.
46590 2014-01-06  Terry Guo  <terry.guo@arm.com>
46592         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
46594 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
46596         PR bootstrap/59541
46597         * config/darwin.c (darwin_function_section): Adjust return values to
46598         correspond to optimisation changes made in r206070.
46600 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
46602         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
46603         from prefetch_block tune setting.
46604         (nocona_cost): Correct size of prefetch block to 64.
46606 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
46608         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
46609         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
46610         used to save the static chain register in the computation of the offset
46611         from which the FP registers need to be restored.
46613 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
46615         PR tree-optimization/59519
46616         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
46617         ICE if get_current_def (current_new_name) is already non-NULL, as long
46618         as it is a phi result of some other phi in *new_exit_bb that has
46619         the same argument.
46621         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
46622         or vmovdqu* for misaligned_operand.
46623         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
46624         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
46625         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
46626         aligned_mem for AVX512F masked aligned load and store builtins and for
46627         non-temporal moves.
46629 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
46631         PR tree-optimization/59651
46632         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
46633         Address range for negative step should be added by TYPE_SIZE_UNIT.
46635 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
46637         * config/m68k/m68k.c (handle_move_double): Handle pushes with
46638         overlapping registers also for registers other than the stack pointer.
46640 2014-01-03  Marek Polacek  <polacek@redhat.com>
46642         PR other/59661
46643         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
46644         __builtin_FILE.
46646 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
46648         PR target/59625
46649         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
46650         asm goto as jump.
46652         * config/i386/i386.md (MODE_SIZE): New mode attribute.
46653         (push splitter): Use <P:MODE_SIZE> instead of
46654         GET_MODE_SIZE (<P:MODE>mode).
46655         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
46656         (mov -1, reg peephole2): Likewise.
46657         * config/i386/sse.md (*mov<mode>_internal,
46658         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
46659         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
46660         *<code><mode>3, *andnot<mode>3<mask_name>,
46661         <mask_codefor><code><mode>3<mask_name>): Likewise.
46662         * config/i386/subst.md (mask_mode512bit_condition,
46663         sd_mask_mode512bit_condition): Likewise.
46665 2014-01-02  Xinliang David Li  <davidxl@google.com>
46667         PR tree-optimization/59303
46668         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
46669         (dump_predicates): Better output format.
46670         (pred_equal_p): New function.
46671         (is_neq_relop_p): Ditto.
46672         (is_neq_zero_form_p): Ditto.
46673         (pred_expr_equal_p): Ditto.
46674         (pred_neg_p): Ditto.
46675         (simplify_pred): Ditto.
46676         (simplify_preds_2): Ditto.
46677         (simplify_preds_3): Ditto.
46678         (simplify_preds_4): Ditto.
46679         (simplify_preds): Ditto.
46680         (push_pred): Ditto.
46681         (push_to_worklist): Ditto.
46682         (get_pred_info_from_cmp): Ditto.
46683         (is_degenerated_phi): Ditto.
46684         (normalize_one_pred_1): Ditto.
46685         (normalize_one_pred): Ditto.
46686         (normalize_one_pred_chain): Ditto.
46687         (normalize_preds): Ditto.
46688         (normalize_cond_1): Remove function.
46689         (normalize_cond): Ditto.
46690         (is_gcond_subset_of): Ditto.
46691         (is_subset_of_any): Ditto.
46692         (is_or_set_subset_of): Ditto.
46693         (is_and_set_subset_of): Ditto.
46694         (is_norm_cond_subset_of): Ditto.
46695         (pred_chain_length_cmp): Ditto.
46696         (convert_control_dep_chain_into_preds): Type change.
46697         (find_predicates): Ditto.
46698         (find_def_preds): Ditto.
46699         (destroy_predicates_vecs): Ditto.
46700         (find_matching_predicates_in_rest_chains): Ditto.
46701         (use_pred_not_overlap_with_undef_path_pred): Ditto.
46702         (is_pred_expr_subset): Ditto.
46703         (is_pred_chain_subset_of): Ditto.
46704         (is_included_in): Ditto.
46705         (is_superset_of): Ditto.
46707 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
46709         Update copyright years.
46711 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
46713         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
46714         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
46715         config/arc/arc.md, config/arc/arc.opt,
46716         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
46717         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
46718         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
46719         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
46720         config/linux-protos.h, config/linux.c, config/winnt-c.c,
46721         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
46722         vtable-verify.c, vtable-verify.h: Use the standard form for the
46723         copyright notice.
46725 2014-01-02  Tobias Burnus  <burnus@net-b.de>
46727         * gcc.c (process_command): Update copyright notice dates.
46728         * gcov-dump.c: Ditto.
46729         * gcov.c: Ditto.
46730         * doc/cpp.texi: Bump @copying's copyright year.
46731         * doc/cppinternals.texi: Ditto.
46732         * doc/gcc.texi: Ditto.
46733         * doc/gccint.texi: Ditto.
46734         * doc/gcov.texi: Ditto.
46735         * doc/install.texi: Ditto.
46736         * doc/invoke.texi: Ditto.
46738 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
46740         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
46742 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
46744         * config/i386/sse.md (*mov<mode>_internal): Guard
46745         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
46747         PR rtl-optimization/59647
46748         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
46749         new_rtx into UNSIGNED_FLOAT rtxes.
46751 Copyright (C) 2014 Free Software Foundation, Inc.
46753 Copying and distribution of this file, with or without modification,
46754 are permitted in any medium without royalty provided the copyright
46755 notice and this notice are preserved.