* doc/invoke.texi (Warning Options): Fix spelling and grammar.
[official-gcc.git] / gcc / ChangeLog
blob676ffaebced19745779a74d0eab0b3199da97c03
1 2014-12-07  Jonathan Wakely  <jwakely@redhat.com>
3         * doc/invoke.texi (Warning Options): Fix spelling and grammar.
5 2014-12-06  James Greenhalgh  <james.greenhalgh@arm.com>
6             Sebastian Pop  <s.pop@samsung.com>
7             Brian Rzycki  <b.rzycki@samsung.com>
9         PR tree-optimization/54742
10         * params.def (max-fsm-thread-path-insns, max-fsm-thread-length,
11         max-fsm-thread-paths): New.
13         * doc/invoke.texi (max-fsm-thread-path-insns, max-fsm-thread-length,
14         max-fsm-thread-paths): Documented.
16         * tree-cfg.c (split_edge_bb_loc): Export.
17         * tree-cfg.h (split_edge_bb_loc): Declared extern.
19         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Restore the
20         original value of cond when simplification fails.
21         (fsm_find_thread_path): New.
22         (fsm_find_control_statement_thread_paths): New.
23         (thread_through_normal_block): Call find_control_statement_thread_paths.
25         * tree-ssa-threadupdate.c (dump_jump_thread_path): Pretty print
26         EDGE_FSM_THREAD.
27         (verify_seme): New.
28         (duplicate_seme_region): New.
29         (thread_through_all_blocks): Generate code for EDGE_FSM_THREAD edges
30         calling duplicate_seme_region.
32         * tree-ssa-threadupdate.h (jump_thread_edge_type): Add EDGE_FSM_THREAD.
34 2014-12-06  H.J. Lu  <hongjiu.lu@intel.com>
36         PR target/64200
37         * config/i386/i386.c (decide_alg): Don't assert "alg != libcall"
38         for TARGET_INLINE_STRINGOPS_DYNAMICALLY.
40 2014-12-05  Jakub Jelinek  <jakub@redhat.com>
42         PR sanitizer/64170
43         * sanopt.c (maybe_optimize_asan_check_ifn): If base_checks is
44         non-NULL, call maybe_get_dominating_check on it even if g is
45         non-NULL.
47 2014-12-05  Jeff Law  <law@redhat.com>
49         * doc/md.texi: Note problems using function calls to determine
50         insn lengths and point readers to a potential workaround.
52 2014-12-05  Andreas Schwab  <schwab@linux-m68k.org>
54         * combine.c (is_parallel_of_n_reg_sets)
55         (can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.
57 2014-12-05  Andrew Pinski  <apinski@cavium.com>
59         * config/aarch64/aarch64-simd-builtins.def (bswap): Use CF2 rather
60         than CF10 so 2 is appended on the code.
61         * config/aarch64/aarch64-simd.md (bswap<mode>): Rename to ...
62         (bswap<mode>2): This so it matches for the optabs.
64 2014-12-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
66         * regrename.c (find_best_rename_reg): Rename to ...
67         (find_rename_reg): This. Also add a parameter to skip tick check.
68         * regrename.h: Likewise.
69         * config/c6x/c6x.c (try_rename_operands): Adapt to above renaming.
71 2014-12-05  Martin Jambor  <mjambor@suse.cz>
73         PR ipa/64192
74         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Convert alignment
75         from bits to bytes after checking they are byte-aligned.
77 2014-12-05  Renlin Li  <renlin.li@arm.com>
79         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
80         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
81         * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT,
82         IDENT to SCHED.
84 2014-12-05  Bin Cheng  <bin.cheng@arm.com>
86         * config/aarch64/aarch64.md (load_pair<mode>): Split to
87         load_pairsi, load_pairdi, load_pairsf and load_pairdf.
88         (load_pairsi, load_pairdi, load_pairsf, load_pairdf): Split
89         from load_pair<mode>.  New alternative to support int/fp
90         registers in fp/int mode patterns.
91         (store_pair<mode>:): Split to store_pairsi, store_pairdi,
92         store_pairsf and store_pairdi.
93         (store_pairsi, store_pairdi, store_pairsf, store_pairdf): Split
94         from store_pair<mode>.  New alternative to support int/fp
95         registers in fp/int mode patterns.
96         (*load_pair_extendsidi2_aarch64): New pattern.
97         (*load_pair_zero_extendsidi2_aarch64): New pattern.
98         (aarch64-ldpstp.md): Include.
99         * config/aarch64/aarch64-ldpstp.md: New file.
100         * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
101         New.
102         (extract_base_offset_in_addr): New.
103         (aarch64_operands_ok_for_ldpstp): New.
104         (aarch64_operands_adjust_ok_for_ldpstp): New.
105         * config/aarch64/aarch64.c (enum sched_fusion_type): New enum.
106         (TARGET_SCHED_FUSION_PRIORITY): New hook.
107         (fusion_load_store): New functon.
108         (extract_base_offset_in_addr): New function.
109         (aarch64_gen_adjusted_ldpstp): New function.
110         (aarch64_sched_fusion_priority): New function.
111         (aarch64_operands_ok_for_ldpstp): New function.
112         (aarch64_operands_adjust_ok_for_ldpstp): New function.
114 2014-12-05  Olivier Hainque  <hainque@adacore.com>
116         * defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default.
117         * dwarf2cfi.c (init_one_dwarf_reg_size): Honor
118         DWARF_REG_TO_UNWIND_COLUMN.
120 2014-12-05  Olivier Hainque  <hainque@adacore.com>
122         * dwarf2cfi.c (init_one_dwarf_reg_size): New helper, processing
123         one particular reg for expand_builtin_init_dwarf_reg_sizes.
124         (expand_builtin_init_dwarf_reg_sizes): Rework to use helper and
125         account for dwarf register spans.
127 2014-12-05  Ilya Enkovich  <ilya.enkovich@intel.com>
129         PR target/64003
130         * config/i386/i386.md (*jcc_1_bnd): New.
131         (*jcc_2_bnd): New.
132         (jump_bnd): New.
133         (*jcc_1): Remove bnd prefix.
134         (*jcc_2): Likewise.
135         (jump): Likewise.
137 2014-12-05  Renlin Li  <renlin.li@arm.com>
139         * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define
140         selected_tune.
141         (aarch64_override_options): Use selected_cpu's tuning.
143 2014-12-05  David Edelsohn  <dje.gcc@gmail.com>
145         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append
146         alignment to section name. Increase default alignment to word.
148 2014-12-05  Martin Jambor  <mjambor@suse.cz>
150         * cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
151         (cgraph_edge): New method redirect_callee_duplicating_thunks.
152         * cgraphclones.c (duplicate_thunk_for_node): Donot expand newly
153         created thunks.
154         (redirect_edge_duplicating_thunks): Turned into edge method
155         redirect_callee_duplicating_thunks.
156         (cgraph_node::expand_all_artificial_thunks): New method.
157         (create_clone): Call expand_all_artificial_thunks.
158         * ipa-cp.c (perhaps_add_new_callers): Call
159         redirect_callee_duplicating_thunks instead of redirect_callee.
160         Also call expand_all_artificial_thunks.
162 2014-12-05  Ilya Enkovich  <ilya.enkovich@intel.com>
164         PR target/64056
165         * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target Keywords.
167 2014-12-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
169         * diagnostic.h (diagnostic_expand_location): New inline function.
170         * diagnostic.c (diagnostic_build_prefix): Use it.
171         (diagnostic_show_locus): Likewise.
173 2014-12-04  H.J. Lu  <hongjiu.lu@intel.com>
175         PR bootstrap/64189
176         * configure.ac (HAVE_LD_PIE_COPYRELOC): Always define.
177         * configure: Regenerated.
179 2014-12-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
181         * diagnostic.c (diagnostic_color_init): New.
182         * diagnostic.h: Declare.
183         * gcc.c (driver::global_initializations): Use it.
184         (driver_handle_option): Handle -fdiagnostics-color_.
185         * toplev.c: Do not include diagnostic-color.h.
186         (process_options): Do not initialize color diagnostics here.
187         * common.opt (fdiagnostics-color=): Add Driver.
188         * opts-global.c (init_options_once): Initialize color here.
189         * opts.c (common_handle_option): Use diagnostics_color_init.
190         * diagnostic-color.h: Fix comment.
192 2014-12-04  David Malcolm  <dmalcolm@redhat.com>
194         * tree-pretty-print.c (INDENT): Rename "buffer" to "pp".
195         (NIY): Likewise.
196         (buffer): Rename this variable to...
197         (tree_pp): ...this.
199         (do_niy): Rename param from "buffer" to "pp".
200         (dump_decl_name): Likewise.
201         (dump_function_name): Likewise.
202         (dump_function_declaration): Likewise.
203         (dump_array_domain): Likewise.
204         (dump_omp_clause): Likewise.
205         (dump_omp_clauses): Likewise.
206         (dump_location): Likewise.
207         (dump_block_node): Likewise.
208         (dump_generic_node): Likewise.
209         (print_declaration): Likewise.
210         (print_struct_decl): Likewise.
211         (print_call_name): Likewise.
212         (pretty_print_string): Likewise.
213         (newline_and_indent): Likewise.
215         (print_generic_decl): Update for renaming of "buffer" to
216         "tree_pp".
217         (print_generic_stmt): Likewise.
218         (print_generic_stmt_indented): Likewise.
219         (print_generic_expr): Likewise.
220         (maybe_init_pretty_print): Likewise.
222 2014-12-04  David Malcolm  <dmalcolm@redhat.com>
224         PR jit/63854
225         * tree-pretty-print.c: Eliminate include of <new>.
226         (buffer): Convert this variable from a pretty_printer to a
227         pretty_printer *.
228         (initialized): Eliminate this variable in favor of the NULL-ness
229         of "buffer".
230         (print_generic_decl): Update for "buffer" becoming a pointer.
231         (print_generic_stmt): Likewise.
232         (print_generic_stmt_indented): Likewise.
233         (print_generic_expr): Likewise.
234         (maybe_init_pretty_print): Likewise, allocating "buffer" on the
235         heap and using its non-NULL-ness to ensure idempotency.
237 2014-12-04  David Malcolm  <dmalcolm@redhat.com>
239         PR jit/63854
240         * ipa-prop.c (ipa_register_cgraph_hooks): Guard insertion of
241         ipa_add_new_function on function_insertion_hook_holder being
242         non-NULL.
243         * ipa-reference.c (ipa_reference_c_finalize): Remove
244         node_removal_hook_holder and node_duplication_hook_holder if
245         they've been added to symtab.
246         * toplev.c (toplev::finalize): Call ipa_reference_c_finalize
247         before cgraph_c_finalize so that the former can access "symtab".
249 2014-12-04  David Malcolm  <dmalcolm@redhat.com>
251         * doc/cfg.texi (GIMPLE statement iterators): Add note about
252         gphi_iterator, and use one in the example.
253         * doc/gimple.texi (Tuple specific accessors): Add missing
254         GIMPLE_GOTO section and menu item.
255         (gimple_build_asm, gimple gimple_build_assign_with_ops)
256         gimple_call_mark_uninlinable, gimple_call_cannot_inline_p): Remove
257         description of removed functions.
258         (gimple_build_assign, gimple_build_bind, gimple_build_call,
259         gimple_build_call_from_tree, gimple_build_call_vec,
260         gimple_build_catch, gimple_build_cond,
261         gimple_build_cond_from_tree, gimple_build_debug_bind,
262         gimple_build_eh_filter, gimple_build_label, gimple_build_goto,
263         gimple_build_omp_atomic_load, gimple_build_omp_atomic_store,
264         gimple_build_omp_continue, gimple_build_omp_critical,
265         gimple_build_omp_for, gimple_build_omp_parallel,
266         gimple_build_omp_sections, gimple_build_omp_single,
267         gimple_build_return, gimple_build_resx, gimple_build_switch,
268         gimple_build_try): Update return type within description to
269         reflect changes in gimple.h to using gimple subclasses.
270         (gimple_build_asm_vec): Update return type, params and
271         description.
272         (gimple_asm_ninputs): Update param.
273         (gimple_asm_noutputs, gimple_asm_nclobbers, gimple_asm_input_op
274         gimple_asm_set_input_op, gimple_asm_output_op
275         gimple_asm_set_output_op, gimple_asm_clobber_op,
276         gimple_asm_set_clobber_op, gimple_asm_string,
277         gimple_asm_volatile_p, gimple_asm_set_volatile, gimple_bind_vars,
278         gimple_bind_set_vars, gimple_bind_append_vars, gimple_bind_body,
279         gimple_bind_set_body, gimple_bind_add_stmt, gimple_bind_add_seq,
280         gimple_bind_block, gimple_bind_set_block, gimple_call_set_fn,
281         gimple_call_return_type, gimple_call_set_chain,
282         gimple_call_set_tail, gimple_call_tail_p,
283         gimple_call_copy_skip_args, gimple_catch_types,
284         gimple_catch_types_ptr, gimple_catch_handler,
285         gimple_catch_set_types, gimple_catch_set_handler,
286         gimple_cond_set_code, gimple_cond_set_lhs, gimple_cond_set_rhs,
287         gimple_cond_true_label, gimple_cond_set_true_label,
288         gimple_cond_set_false_label, gimple_cond_false_label,
289         gimple_cond_make_false, gimple_cond_make_true,
290         gimple_eh_filter_set_types, gimple_eh_filter_set_failure,
291         gimple_eh_must_not_throw_fndecl,
292         gimple_eh_must_not_throw_set_fndecl, gimple_label_label,
293         gimple_label_set_label, gimple_goto_set_dest,
294         gimple_omp_atomic_load_set_lhs, gimple_omp_atomic_load_lhs,
295         gimple_omp_atomic_load_set_rhs, gimple_omp_atomic_load_rhs,
296         gimple_omp_atomic_store_set_val, gimple_omp_atomic_store_val,
297         gimple_omp_continue_control_def,
298         gimple_omp_continue_control_def_ptr,
299         gimple_omp_continue_set_control_def,
300         gimple_omp_continue_control_use,
301         gimple_omp_continue_control_use_ptr,
302         gimple_omp_continue_set_control_use, gimple_omp_critical_name,
303         gimple_omp_critical_name_ptr, gimple_omp_critical_set_name,
304         gimple_omp_parallel_clauses_ptr, gimple_omp_parallel_set_clauses,
305         gimple_omp_parallel_child_fn, gimple_omp_parallel_child_fn_ptr,
306         gimple_omp_parallel_set_child_fn, gimple_omp_parallel_data_arg,
307         gimple_omp_parallel_data_arg_ptr,
308         gimple_omp_parallel_set_data_arg, gimple_omp_single_set_clauses,
309         gimple_phi_set_result, gimple_phi_set_arg, gimple_resx_region,
310         gimple_resx_set_region, gimple_return_retval,
311         gimple_return_set_retval, gimple_switch_num_labels,
312         gimple_switch_set_num_labels, gimple_switch_index,
313         gimple_switch_set_index, gimple_switch_label,
314         gimple_switch_set_label, gimple_switch_default_label,
315         gimple_switch_set_default_label, gimple_try_set_eval,
316         gimple_try_set_cleanup): Update initial param within description
317         to reflect changes in gimple.h to using gimple subclasses.
318         (Adding a new GIMPLE statement code): Update to reflect gimple
319         statement subclassing.
321 2014-12-04  Sriraman Tallam  <tmsriram@google.com>
322             H.J. Lu  <hongjiu.lu@intel.com>
324         * configure.ac (HAVE_LD_PIE_COPYRELOC): Defined to 1 if
325         Linux/x86-64 linker supports PIE with copy reloc.
326         * config.in: Regenerated.
327         * configure: Likewise.
329         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
330         pc-relative address for undefined, non-weak, non-function
331         symbol reference in 64-bit PIE if linker supports PIE with
332         copy reloc.
334         * doc/sourcebuild.texi: Document pie_copyreloc target.
336 2014-12-04  Marek Polacek  <polacek@redhat.com>
338         PR middle-end/56917
339         * fold-const.c (fold_unary_loc): Perform the negation in A's type
340         when transforming ~ (A - 1) or ~ (A + -1) to -A.
342 2014-12-04  Tobias Burnus  <burnus@net-b.de>
344         * Makefile.in: Remove CLOOGLIB and CLOOGINC.
346 2014-12-04  Richard Biener  <rguenther@suse.de>
348         * doc/match-and-simplify.texi: Update for recent changes.
350 2014-12-04  Martin Jambor  <mjambor@suse.cz>
352         * ipa-prop.h (ipa_alignment): New type.
353         (ipa_jump_func): New field alignment.
354         (ipcp_transformation_summary) New type.
355         (ipcp_grow_transformations_if_necessary): Declare.
356         (ipa_node_agg_replacements): Removed.
357         (ipcp_transformations): Declare.
358         (ipcp_get_transformation_summary): New function.
359         (ipa_get_agg_replacements_for_node): Use it.
360         * ipa-cp.c (ipcp_param_lattices): New field alignment.
361         (print_all_lattices): Also print alignment.
362         (alignment_bottom_p): New function.
363         (set_alignment_to_bottom): Likewise.
364         (set_all_contains_variable): Also set alignment to bottom.
365         (initialize_node_lattices): Likewise.
366         (propagate_alignment_accross_jump_function): New function.
367         (propagate_constants_accross_call): Call it.
368         (ipcp_store_alignment_results): New function.
369         (ipcp_driver): Call it.
370         * ipa-prop.c (ipa_node_agg_replacements): Removed.
371         (ipcp_transformations): New.
372         (ipa_print_node_jump_functions_for_edge): Also print alignment.
373         (ipa_set_jf_unknown): New function.
374         (detect_type_change_from_memory_writes): Use ipa_set_jf_unknown.
375         (ipa_compute_jump_functions_for_edge): Also calculate alignment.
376         (update_jump_functions_after_inlining): Use ipa_set_jf_unknown.
377         (ipcp_grow_transformations_if_necessary): New function.
378         (ipa_set_node_agg_value_chain): Use ipcp_transformations.
379         (ipa_node_removal_hook): Likewise.
380         (ipa_node_duplication_hook): Also duplicate alignment results.
381         (ipa_write_jump_function): Also stream alignments.
382         (ipa_read_jump_function): Use ipa_set_jf_unknown, also stream
383         alignments.
384         (write_agg_replacement_chain): Renamed to
385         write_ipcp_transformation_info, also stream alignments.
386         (read_agg_replacement_chain): Renamed to
387         read_ipcp_transformation_info, also stream alignments.
388         (ipa_prop_write_all_agg_replacement): Renamed to
389         ipcp_write_transformation_summaries. Stream always.
390         (ipa_prop_read_all_agg_replacement): Renamed to
391         ipcp_read_transformation_summaries.
392         (ipcp_update_alignments): New function.
393         (ipcp_transform_function): Call it, free also alignments.
395 2014-12-04  Richard Biener  <rguenther@suse.de>
397         * gimple-fold.c (replace_stmt_with_simplification): Properly
398         fail when maybe_push_res_to_seq fails.
400 2014-12-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
402         * config/aarch64/aarch64.md (define_insn "prefetch"): New.
404 2014-12-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
406         * doc/install.texi: Remove mentions of cloog and ppl.
407         * doc/invoke.texi: Likewise
409 2014-12-04  Jakub Jelinek  <jakub@redhat.com>
411         PR c++/56493
412         * convert.c (convert_to_real, convert_to_expr, convert_to_complex):
413         Handle COMPOUND_EXPR.
415 2014-12-04  Richard Biener  <rguenther@suse.de>
417         * builtins.c (target_newline): Export.
418         (target_percent_s_newline): Likewise.
419         (fold_builtin_1): Do not fold printf functions here.
420         (fold_builtin_2): Likewise.
421         (fold_builtin_3): Likewise, do not fold strncat.
422         (fold_builtin_strncat): Move to gimple-fold.c.
423         (fold_builtin_printf): Likewise.
424         * builtins.h (target_newline): Declare.
425         (target_percent_s_newline): Likewise.
426         * gimple-fold.c (gimple_fold_builtin_strncat): Move from
427         builtins.c and gimplify.
428         (gimple_fold_builtin_printf): Likewise.
429         (gimple_fold_builtin): Fold strncat, printf, printf_unlocked,
430         vprintf, printf_chk and vprintf_chk here.
432 2014-12-03  David Edelsohn  <dje.gcc@gmail.com>
434         * config/rs6000/rs6000.md (floatsidf2_internal): Use std::swap.
435         (floatunssidf2_internal): Same.
436         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Same.
437         (rs6000_emit_int_cmove): Same.
438         (rs6000_sched_reorder): Same.
439         (altivec_expand_vec_perm_const): Same.
440         (rs6000_expand_vec_perm_const_1): Same.
442 2014-12-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
444         PR rtl-optimization/64010
445         * reload.c (push_reload): Before reusing a register contained
446         in an operand as input reload register, ensure that it is not
447         used in CALL_INSN_FUNCTION_USAGE.
449 2014-12-03  Ulrich Drepper  <drepper@gmail.com>
451         * Makefile.in: Use $(LN_S) instead of $(LN) -s and remove file first
452         if it exists.
454 2014-12-03  Jakub Jelinek  <jakub@redhat.com>
456         * expmed.c (expand_mult): Use std::swap.
458         PR c/59708
459         * expmed.c (expand_widening_mult): Return const0_rtx if
460         coeff is 0.
462         * doc/gimple.texi (gimple_build_assign_with_ops): Remove.
463         (gimple_build_assign): Document the new overloads.
465 2014-12-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
467         PR target/64019
468         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
469         not create LO_SUM address for constant addresses if the type can
470         go in Altivec registers.
472 2014-12-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
474         PR fortran/44054
475         * pretty-print.c (output_buffer::output_buffer): Init flush_p to true.
476         (pp_flush): Flush only if flush_p.
477         (pp_really_flush): New.
478         * pretty-print.h (struct output_buffer): Add flush_p.
479         (pp_really_flush): Declare.
481 2014-12-03  Jakub Jelinek  <jakub@redhat.com>
483         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
484         gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
485         (GENGTYPE_OBJS): New.
486         (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
487         Remove explicit dependencies.
488         (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
489         CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
490         instead of -DGENERATOR_FILE.
491         (CFLAGS-errors.o): New.
492         * gengtype.c: Instead of testing GENERATOR_FILE define, test
493         HOST_GENERATOR_FILE.  If defined, include config.h and define
494         GENERATOR_FILE afterwards, otherwise include bconfig.h.
495         * gengtype-parse.c: Likewise.
496         * gengtype-state.c: Likewise.
497         * gengtype-lex.l: Likewise.
498         * errors.c: Likewise.
500 2014-12-03  Joern Rennecke  <joern.rennecke@embecosm.com>
502         * config/epiphany/epiphany.c (epiphany_override_options):
503         If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
504         * config/epiphany/epiphany.md (mov<mode>cc): Don't use
505         reverse_condition_maybe_unordered if flag_finite_math_only is set.
507 2014-12-03  Andrew Stubbs  <ams@codesourcery.com>
509         Revert:
511         2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
512         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
513         when architecture is older than ARMv7.
515 2014-12-03  Richard Biener  <rguenther@suse.de>
517         * builtins.c (target_percent_c): Export.
518         (fold_builtin_fprintf): Move to gimple-fold.c.
519         (fold_builtin_2): Do not fold fprintf functions.
520         (fold_builtin_3): Likewise.
521         (fold_builtin_4): Remove.
522         (fold_builtin_n): Do not call fold_builtin_4.
523         * builtins.h (target_percent_c): Declare.
524         * gimple-fold.c (gimple_fold_builtin_fprintf): Move from
525         builtins.c and gimplify.
526         (gimple_fold_builtin): Fold fprintf, fprintf_unlocked, vfprintf,
527         fprintf_chk and vfprintf_chk here.
529 2014-12-03  Martin Jambor  <mjambor@suse.cz>
531         PR ipa/64153
532         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check
533         type sizes before view_converting.
535 2014-12-03  H.J. Lu  <hongjiu.lu@intel.com>
537         PR rtl-optimization/64151
538         PR rtl-optimization/64156
539         * ira-costs.c (scan_one_insn): Revert r218266.
541 2014-12-03  Richard Biener  <rguenther@suse.de>
543         * builtins.c (fold_builtin_fpclassify): Change to take
544         array of arguments instead of CALL_EXPR tree.
545         (MAX_ARGS_TO_FOLD_BUILTIN): Remove.
546         (fold_builtin_n): Dispatch to fold_builtin_varargs.
547         (fold_call_expr): Always use fold_builtin_n.
548         (fold_builtin_call_array): Change to not build the unfolded call,
549         always use fold_builtin_n.
550         (fold_builtin_varargs): Change to take array of arguments instead
551         of CALL_EXPR tree.
552         (fold_call_stmt): Always use fold_builtin_n.
553         * tree.c (build_call_expr_loc_array): Use fold_build_call_array_loc.
554         * fold-const.c (fold_build_call_array_loc): Build the call
555         if fold_builtin_call_array returned NULL_TREE.
556         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Do not build
557         a CALL_EXPR and use fold_builtin_call_array instead of
558         fold_call_expr.
560 2014-12-03  Alan Lawrence  <alan.lawrence@arm.com>
562         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>, orn<mode>3,
563         bic<mode>3, add<mode>3, sub<mode>3, neg<mode>2, abs<mode>2, and<mode>3,
564         ior<mode>3, xor<mode>3, one_cmpl<mode>2,
565         aarch64_simd_lshr<mode> ,arch64_simd_ashr<mode>,
566         aarch64_simd_imm_shl<mode>, aarch64_simd_reg_sshl<mode>,
567         aarch64_simd_reg_shl<mode>_unsigned, aarch64_simd_reg_shr<mode>_signed,
568         ashl<mode>3, lshr<mode>3, ashr<mode>3, vashl<mode>3,
569         reduc_plus_scal_<mode>, aarch64_vcond_internal<mode><mode>,
570         vcondu<mode><mode>, aarch64_cm<optab><mode>, aarch64_cmtst<mode>):
571         Change VDQ to VDQ_I.
573         (mul<mode>3): Change VDQM to VDQ_BHSI.
574         (aarch64_simd_vec_set<mode>,vashr<mode>3, vlshr<mode>3, vec_set<mode>,
575         aarch64_mla<mode>, aarch64_mls<mode>, <su><maxmin><mode>3,
576         aarch64_<sur>h<addsub><mode>): Change VQ_S to VDQ_BHSI.
577         
578         (*aarch64_<su>mlal<mode>, *aarch64_<su>mlsl<mode>,
579         aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>,
580         aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>, aarch64_<sur>shll_n<mode>):
581         Change VDW to VD_BHSI.
582         (*aarch64_combinez<mode>, *aarch64_combinez_be<mode>):
583         Change VDIC to VD_BHSI.
585         * config/aarch64/aarch64-simd-builtins.def (saddl, uaddl, ssubl, usubl,
586         saddw, uaddw, ssubw, usubw, shadd, uhadd, srhadd, urhadd, sshll_n,
587         ushll_n): Change BUILTIN_VDW to BUILTIN_VD_BHSI.
589         * config/aarch64/iterators.md (SDQ_I, VDQ, VQ_S, VSDQ_I_BHSI, VDQM, VDW,
590         VDIC, VDQQHS): Remove.
591         (Vwtype): Update comment (changing VDW to VD_BHSI).
593 2014-12-03  Richard Biener  <rguenther@suse.de>
595         PR middle-end/14541
596         * builtins.c (fold_builtin_logarithm): Implement simplifications ...
597         * match.pd: ... here as patterns.
599 2014-12-03  Prachi Godbole  <prachi.godbole@imgtec.com>
601         * config/mips/p5600.md (define_automaton, define_cpu_unit): Replace
602         p5600_agen_pipe and p5600_alu_pipe with p5600_agen_alq_pipe.
603         (p5600_int_arith_1, p5600_int_arith_2, p5600_int_arith_4): Change
604         reservation order.
606 2014-12-03  Tom de Vries  <tom@codesourcery.com>
608         PR rtl-optimization/63957
609         * doc/invoke.texi: Replace -fuse-caller-save with -fipa-ra.
610         * final.c (rest_of_handle_final): Replace flag_use_caller_save with
611         flag_ipa_ra.
612         (get_call_reg_set_usage): Same.
613         * lra-assigns.c (lra_assign): Same.
614         * lra-constraints.c (need_for_call_save_p): Same.
615         * lra-lives.c (process_bb_lives): Same.
616         * lra.c (lra): Same.
617         * calls.c (expand_call): Same.
618         (emit_library_call_value_1): Same.
619         * config/arm/arm.c (arm_option_override): Same.
620         * opts.c (default_options_table): Replace OPT_fuse_caller_save with
621         OPT_fipa_ra.
622         * target.def (call_fusage_contains_non_callee_clobbers): Replace
623         fuse-caller-save with fipa-ra.
624         * doc/tm.texi (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Same.
625         * common.opt: Same.
627 2014-12-03  Yury Gribov  <y.gribov@samsung.com>
629         * sanopt.c (maybe_get_single_definition): New function.
630         (maybe_get_dominating_check): Ditto.
631         (can_remove_asan_check): Ditto.
632         (struct tree_map_traits): New struct.
633         (struct sanopt_ctx): Use custom traits for asan_check_map.
634         (maybe_optimize_ubsan_null_ifn): Move code to
635         maybe_get_dominating_check.
636         (maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
637         into account when optimizing.
638         (sanopt_optimize_walker): Optimize ASan checks even when
639         recovering.
641 2014-12-03  Ilya Enkovich  <ilya.enkovich@intel.com>
643         * config/i386/constraints.md (Yr): New.
644         * config/i386/i386.h (reg_class): Add NO_REX_SSE_REGS.
645         (REG_CLASS_NAMES): Likewise.
646         (REG_CLASS_CONTENTS): Likewise.
647         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add alternatives
648         which use only NO_REX_SSE_REGS.
649         (vec_set<mode>_0): Likewise.
650         (*vec_setv4sf_sse4_1): Likewise.
651         (sse4_1_insertps): Likewise.
652         (*sse4_1_extractps): Likewise.
653         (*sse4_1_mulv2siv2di3<mask_name>): Likewise.
654         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Likewise.
655         (*sse4_1_<code><mode>3<mask_name>): Likewise.
656         (*sse4_1_<code><mode>3): Likewise.
657         (*sse4_1_eqv2di3): Likewise.
658         (sse4_2_gtv2di3): Likewise.
659         (*vec_extractv4si): Likewise.
660         (*vec_concatv2si_sse4_1): Likewise.
661         (vec_concatv2di): Likewise.
662         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Likewise.
663         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Likewise.
664         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Likewise.
665         (<vi8_sse4_1_avx2_avx512>_movntdqa): Likewise.
666         (<sse4_1_avx2>_mpsadbw): Likewise.
667         (<sse4_1_avx2>packusdw<mask_name>): Likewise.
668         (<sse4_1_avx2>_pblendvb): Likewise.
669         (sse4_1_pblendw): Likewise.
670         (sse4_1_phminposuw): Likewise.
671         (sse4_1_<code>v8qiv8hi2<mask_name>): Likewise.
672         (sse4_1_<code>v4qiv4si2<mask_name>): Likewise.
673         (sse4_1_<code>v4hiv4si2<mask_name>): Likewise.
674         (sse4_1_<code>v2qiv2di2<mask_name>): Likewise.
675         (sse4_1_<code>v2hiv2di2<mask_name>): Likewise.
676         (sse4_1_<code>v2siv2di2<mask_name>): Likewise.
677         (sse4_1_ptest): Likewise.
678         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Likewise.
679         (sse4_1_round<ssescalarmodesuffix>): Likewise.
680         * config/i386/subst.md (mask_prefix4): New.
681         * config/i386/x86-tune.def (X86_TUNE_AVOID_4BYTE_PREFIXES): New.
683 2014-12-03  Segher Boessenkool  <segher@kernel.crashing.org>
685         PR rtl-optimization/52714
686         * combine.c (try_combine): Allow combining two insns into two
687         new insns if at least one of those is a noop.
689 2014-12-03  Bin Cheng  <bin.cheng@arm.com>
691         * target.def (fusion_priority): Wrap code with @smallexample.
692         * doc/tm.texi: Regenerated.
694 2014-12-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
696         * diagnostic.c (diagnostic_show_locus): Honor override_column when
697         placing the caret.
699 2014-12-02  Dmitry Vyukov  <dvyukov@google.com>
701         * asan.c: (asan_finish_file): Use default priority for constructors
702         in kernel mode.
704 2014-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
706         PR target/64115
707         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
708         invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
710 2014-12-02  H.J. Lu  <hongjiu.lu@intel.com>
712         PR target/64108
713         * config/i386/i386.c (decide_alg): Stop only if there aren't
714         any usable algorithms.
716 2014-12-02  Tom de Vries  <tom@codesourcery.com>
718         PR rtl-optimization/63718
719         * config/arm/arm.c (arm_option_override): Disable fuse-caller-save for
720         Thumb1.
722 2014-12-02  Richard Biener  <rguenther@suse.de>
724         * match.pd: When combining divisions exclude the degenerate
725         case involving INT_MIN from overflow handling.
727 2014-12-02  Wilco Dijkstra  <wilco.dijkstra@arm.com>
729         * ira-costs.c (scan_one_insn): Improve spill cost adjustment.
731 2014-12-02  Martin Jambor  <mjambor@suse.cz>
733         PR ipa/63814
734         * ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
735         (cgraph_edge_brings_value_p): New parameter dest, use
736         same_node_or_its_all_contexts_clone_p and check availability.
737         (cgraph_edge_brings_value_p): Likewise.
738         (get_info_about_necessary_edges): New parameter dest, pass it to
739         cgraph_edge_brings_value_p.  Update caller.
740         (gather_edges_for_value): Likewise.
741         (perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
742         both the destination and availability.
744 2014-12-02  Uros Bizjak  <ubizjak@gmail.com>
746         PR target/64113
747         * config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
748         using post-reload splitter.  Use peephole2 pass instead.
749         (call_value_osf_tlsldm): Ditto.
750         (TLS_CALL): New int iterator.
751         (tls): New int attribute.
752         (call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
753         and call_value_tlsldm using TLS_CALL int iterator.
755 2014-12-02  Richard Biener  <rguenther@suse.de>
756             Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
758         * genmatch.c: Include hash-set.h.
759         (fatal_at): Add source_location overload.
760         (parser::record_operlist): New method.
761         (parser::push_simplify): Likewise.
762         (parser::oper_lists_set): New member.
763         (parser::oper_lists): Likewise.
764         (parser::parse_operation): Record seen operator list references.
765         (parser::parse_c_expr): Likewise.
766         (parser::parse_simplify): Init oper_lists_set and oper_lists
767         and use push_simplify.
768         (parser::parser): Init oper_lists_set and oper_lists.
770 2014-12-02  Richard Biener  <rguenther@suse.de>
772         * match.pd: Restrict division combining to trunc_div and
773         exact_div.
775 2014-12-02  Jakub Jelinek  <jakub@redhat.com>
777         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
778         Remove NULL last argument from create_tmp_var calls.
779         * config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
780         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
781         * config/i386/i386.c (add_condition_to_bb,
782         ix86_atomic_assign_expand_fenv): Likewise.
783         * config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
784         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
785         * config/aarch64/aarch64-builtins.c
786         (aarch64_atomic_assign_expand_fenv): Likewise.
787         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
788         Likewise.
789         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
790         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
791         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
793         * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
794         gimple_build_assign instead of gimple_build_assign_with_ops and swap
795         the order of first two arguments.
796         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
797         Likewise.  Remove last NULL_TREE argument.
799 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
801         PR rtl-optimization/59278
802         * combine (reg_dead_at_p): Consider REG_UNUSED notes.
804 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
806         * combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
808 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
810         * combine.c (is_parallel_of_n_reg_sets): New function.
811         (can_split_parallel_of_n_reg_sets): New function.
812         (try_combine): If I2 is a PARALLEL of two SETs, split it into
813         two insns if possible.
815 2014-12-01  Tobias Burnus  <burnus@net-b.de>
816             Jack Howarth  <howarth@bromo.med.uc.edu>
818         PR middle-end/64017
819         * configure.ac (ac_has_isl_schedule_constraints_compute_schedule):
820         New check.
821         * doc/install.texi (ISL): Permit ISL 0.14.
822         * graphite-optimize-isl.c (getScheduleForBandList, optimize_isl):
823         Conditionally use ISL 0.13+ functions.
824         * graphite-interchange.c: Make 'extern "C"' conditional.
825         * graphite-isl-ast-to-gimple.c: Ditto.
826         * graphite-poly.c: Ditto.
827         * graphite-sese-to-poly.c: Ditto.
828         * config.in: Regenerate.
829         * gcc/configure: Regenerate.
831 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
833         * combine.c (distribute_links): Handle multiple SETs.
835 2014-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
837         * combine.c (struct insn_link): New field `regno'.
838         (alloc_insn_link): New parameter `regno'.  Use it.
839         (find_single_use): Check the new field.
840         (can_combine_def_p, can_combine_use_p): New functions.  Split
841         off from ...
842         (create_log_links): ... here.  Correct data type of `regno'.
843         Adjust call to alloc_insn_link.
844         (adjust_for_new_dest): Find regno, use it in call to
845         alloc_insn_link.
846         (try_combine): Check reg_used_between_p when combining a PARALLEL
847         as earlier insn.  Adjust call to alloc_insn_link.
848         (distribute_links): Check the new field.
850 2014-12-01  David Malcolm  <dmalcolm@redhat.com>
852         PR jit/63854
853         * real.c (real_from_string): Add missing mpfr_clear.
855 2014-12-01  David Malcolm  <dmalcolm@redhat.com>
857         PR jit/63854
858         * tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
859         release of stmts by converting it to an auto_vec.
861 2014-12-01  Richard Biener  <rguenther@suse.de>
863         * Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
864         -Wno-unused-variable and -Wno-unused-but-set-variable to restore
865         bootstrap with old GCC.
866         (generic-match.o-warn): Likewise.
868 2014-12-01  Richard Biener  <rguenther@suse.de>
870         * fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
871         Properly handle FIXED_CST shifts by INTEGER_CST.
872         (const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
873         VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
874         VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
875         VEC_WIDEN_MULT_ODD_EXPR handling here from ...
876         (fold_binary_loc): ... here.  Call const_binop overload
877         with result type.
879 2014-12-01  Marek Polacek  <polacek@redhat.com>
880             Jakub Jelinek  <jakub@redhat.com>
882         PR sanitizer/64121
883         * ubsan.c (instrument_object_size): Stop searching if the base
884         occurs in abnormal phi.
886 2014-12-01  Marek Polacek  <polacek@redhat.com>
888         PR sanitizer/63956
889         * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
891 2014-12-01  Jakub Jelinek  <jakub@redhat.com>
893         * gimple.h (gimple_build_assign_stat): Remove prototype.
894         (gimple_build_assign): Remove define.  Add overload prototypes
895         with tree lhs and either a tree rhs, or enum tree_code and
896         1, 2 or 3 tree operands.
897         * gimple.c (gimple_build_assign_stat): Renamed to...
898         (gimple_build_assign): ... this.  Add overloads with
899         enum tree_code and 1, 2 or 3 tree operands.
900         (gimple_build_assign_with_ops): Remove 1 and 2 operand overloads.
901         Rename the 3 operand overload to ...
902         (gimple_build_assign_1): ... this.  Make it static inline.
903         * tree-ssa-strlen.c (get_string_length): Use gimple_build_assign
904         instead of gimple_build_assign_with_ops, swap the order of first
905         two arguments and adjust formatting where necessary.
906         * tree-vect-slp.c (vect_get_constant_vectors,
907         vect_create_mask_and_perm): Likewise.
908         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
909         * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
910         maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
911         * tsan.c (instrument_builtin_call): Likewise.
912         * tree-chkp.c (chkp_compute_bounds_for_assignment,
913         chkp_generate_extern_var_bounds): Likewise.
914         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
915         * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
916         * gimple-builder.c (build_assign, build_type_cast): Likewise.
917         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
918         * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
919         gimple_mod_subtract): Likewise.
920         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
921         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
922         vect_recog_sad_pattern, vect_handle_widen_op_by_const,
923         vect_recog_widen_mult_pattern, vect_recog_pow_pattern,
924         vect_recog_widen_sum_pattern, vect_operation_fits_smaller_type,
925         vect_recog_over_widening_pattern, vect_recog_widen_shift_pattern,
926         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
927         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
928         adjust_bool_pattern_cast, adjust_bool_pattern,
929         vect_recog_bool_pattern): Likewise.
930         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
931         insert_initializers, introduce_cast_before_cand,
932         replace_one_candidate): Likewise.
933         * tree-ssa-math-opts.c (insert_reciprocals, powi_as_mults_1,
934         powi_as_mults, build_and_insert_binop, build_and_insert_cast,
935         pass_cse_sincos::execute, bswap_replace, convert_mult_to_fma):
936         Likewise.
937         * tree-tailcall.c (adjust_return_value_with_ops,
938         update_accumulator_with_ops): Likewise.
939         * tree-predcom.c (reassociate_to_the_same_stmt): Likewise.
940         * tree-ssa-reassoc.c (build_and_add_sum,
941         optimize_range_tests_to_bit_test, update_ops,
942         maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
943         negate_value, repropagate_negates, attempt_builtin_powi,
944         reassociate_bb): Likewise.
945         * tree-vect-loop.c (vect_is_simple_reduction_1,
946         get_initial_def_for_induction, vect_create_epilog_for_reduction):
947         Likewise.
948         * ipa-split.c (split_function): Likewise.
949         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
950         abs_replacement, neg_replacement): Likewise.
951         * tree-profile.c (gimple_gen_edge_profiler): Likewise.
952         * tree-vrp.c (simplify_truth_ops_using_ranges,
953         simplify_float_conversion_using_ranges,
954         simplify_internal_call_using_ranges): Likewise.
955         * gimple-fold.c (rewrite_to_defined_overflow, gimple_build): Likewise.
956         * tree-vect-generic.c (expand_vector_divmod,
957         optimize_vector_constructor): Likewise.
958         * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn,
959         instrument_bool_enum_load): Likewise.
960         * tree-ssa-loop-manip.c (create_iv): Likewise.
961         * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
962         expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
963         expand_cilk_for, simd_clone_adjust): Likewise.
964         * trans-mem.c (expand_transaction): Likewise.
965         * tree-vect-data-refs.c (bump_vector_ptr, vect_permute_store_chain,
966         vect_setup_realignment, vect_permute_load_chain,
967         vect_shift_permute_load_chain): Likewise.
968         * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
969         vectorizable_simd_clone_call, vect_gen_widened_results_half,
970         vect_create_vectorized_demotion_stmts, vectorizable_conversion,
971         vectorizable_shift, vectorizable_operation, vectorizable_store,
972         permute_vec_elements, vectorizable_load): Likewise.
974 2014-12-01  Richard Biener  <rguenther@suse.de>
976         PR middle-end/64111
977         * tree.c (int_cst_hasher::hash): Use TYPE_UID instead of
978         htab_hash_pointer to not break PCH.
980 2014-12-01  Richard Biener  <rguenther@suse.de>
982         PR tree-optimization/15346
983         * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter,
984         add -Wno-unused-but-set-variable.
985         * match.pd: Combine two successive divisions.
987 2014-12-01  Richard Biener  <rguenther@suse.de>
989         PR middle-end/64126
990         * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A
991         and -1 - A -> ~A.
992         * fold-const.c (fold_binary_loc): Remove transforms here.
994 2014-12-01  Maciej W. Rozycki  <macro@codesourcery.com>
996         * config/mips/mips.c (mips16_build_call_stub): Move the save of
997         the return address in $18 ahead of passing arguments to FPRs.
999 2014-12-01  Ilya Enkovich  <ilya.enkovich@intel.com>
1001         PR target/64055
1002         * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
1003         values in array domain.
1005 2014-12-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
1007         PR tree-optimization/63941
1008         * tree-if-conv.c (add_to_predicate_list): Delete wrong assertion that
1009         DOM_BB has non-true predicate, conditionally set non-true predicate
1010         for BB.
1012 2014-12-01  Martin Jambor  <mjambor@suse.cz>
1014         PR ipa/63551
1015         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
1016         value of the argument to the type of the value in the condition.
1018 2014-12-01  Oleg Endo  <olegendo@gcc.gnu.org>
1020         PR target/63986
1021         PR target/51244
1022         * config/sh/sh.c (sh_unspec_insn_p,
1023         sh_insn_operands_modified_between_p): New functions.
1024         (sh_split_movrt_negc_to_movt_xor): Do not delete insn if its operands
1025         are modified or if it has side effects, may trap or is volatile.
1027 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
1029         * gimple-expr.h (create_tmp_var_raw, create_tmp_var,
1030         create_tmp_reg): Add default NULL value to last argument.
1031         * tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
1032         * gimple-low.c (lower_builtin_posix_memalign): Remove NULL
1033         last argument from create_tmp_var_raw, create_tmp_var,
1034         create_tmp_reg, make_ssa_name and copy_ssa_name calls.
1035         * tree-ssa-strlen.c (get_string_length): Likewise.
1036         * tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
1037         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1038         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1039         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1040         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
1041         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1042         * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
1043         maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
1044         * tsan.c (instrument_expr, instrument_builtin_call,
1045         instrument_func_entry): Likewise.
1046         * varpool.c (add_new_static_var): Likewise.
1047         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
1048         * gimplify.c (internal_get_tmp_var, gimplify_return_expr,
1049         gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
1050         gimplify_init_ctor_eval_range, gimplify_init_constructor,
1051         gimplify_omp_atomic, gimplify_expr): Likewise.
1052         * gimple-builder.c (build_assign, build_type_cast): Likewise.
1053         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
1054         slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
1055         vect_loop_versioning): Likewise.
1056         * tree-if-conv.c (version_loop_for_if_conversion): Likewise.
1057         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
1058         * tree-vect-patterns.c (vect_handle_widen_op_by_const,
1059         vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
1060         vect_recog_over_widening_pattern): Likewise.
1061         * tree-sra.c (build_ref_for_offset, create_access_replacement):
1062         Likewise.
1063         * tree-cfg.c (make_blocks): Likewise.
1064         * tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
1065         Likewise.
1066         * tree-ssa-propagate.c (update_call_from_tree): Likewise.
1067         * tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
1068         Likewise.
1069         * tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
1070         * tree-tailcall.c (update_accumulator_with_ops): Likewise.
1071         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
1072         execute_load_motion, reassociate_to_the_same_stmt): Likewise.
1073         * tree-ssa-reassoc.c (build_and_add_sum,
1074         optimize_range_tests_to_bit_test, update_ops,
1075         maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
1076         negate_value, repropagate_negates): Likewise.
1077         * tree-vect-loop.c (vect_is_simple_reduction_1,
1078         vect_create_epilog_for_reduction): Likewise.
1079         * ipa-split.c (split_function): Likewise.
1080         * tree-inline.c (remap_ssa_name, setup_one_parameter,
1081         declare_return_variable, tree_function_versioning): Likewise.
1082         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
1083         * cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
1084         Likewise.
1085         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
1086         neg_replacement): Likewise.
1087         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1088         Likewise.
1089         * tree-vrp.c (simplify_truth_ops_using_ranges,
1090         simplify_float_conversion_using_ranges,
1091         simplify_internal_call_using_ranges): Likewise.
1092         * tree-switch-conversion.c (emit_case_bit_tests,
1093         build_one_array, build_arrays, gen_def_assigns): Likewise.
1094         * gimple-fold.c (gimple_fold_builtin_memory_op,
1095         gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
1096         * tree-vect-generic.c (expand_vector_divmod,
1097         optimize_vector_constructor): Likewise.
1098         * ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
1099         ubsan_expand_objsize_ifn, instrument_si_overflow,
1100         instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
1101         * tree-outof-ssa.c (insert_backedge_copies): Likewise.
1102         * tree-ssa-loop-manip.c (create_iv,
1103         tree_transform_and_unroll_loop): Likewise.
1104         * omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
1105         lower_rec_input_clauses, lower_lastprivate_clauses,
1106         expand_parallel_call, expand_omp_for_static_chunk,
1107         expand_omp_atomic_pipeline, expand_omp_target,
1108         maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
1109         lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
1110         lower_depend_clauses, lower_omp_target, lower_omp_1,
1111         ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
1112         * tree-parloops.c (take_address_of, create_phi_for_local_result,
1113         create_call_for_reduction_1, separate_decls_in_region,
1114         create_parallel_loop): Likewise.
1115         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
1116         handle_scalar_deps_crossing_scop_limits): Likewise.
1117         * trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
1118         expand_assign_tm, expand_call_tm, expand_transaction,
1119         ipa_tm_insert_gettmclone_call): Likewise.
1120         * tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
1121         Likewise.
1122         * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
1123         vectorizable_call, vectorizable_simd_clone_call,
1124         vectorizable_conversion, vectorizable_store, permute_vec_elements,
1125         vectorizable_load): Likewise.
1127 2014-11-29  Tobias Burnus  <burnus@net-b.de>
1128             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1130         * opt-functions.awk (lang_enabled_by): Support || for
1131         enabled-by.
1132         * optc-gen.awk: Ditto.
1133         * doc/options.texi (LangEnabledBy, EnabledBy): Document the
1134         || syntax.
1136 2014-11-28  Mike Stump  <mikestump@comcast.net>
1138         * bitmap.c (bitmap_ior): Zap current as it could be deleted.
1139         (bitmap_ior_and_compl): Likewise.
1141 2014-11-28  Vladimir Makarov  <vmakarov@redhat.com>
1143         PR target/64061
1144         * lra.c (lra_substitute_pseudo): Ignore constant with int mode for
1145         subreg.
1147 2014-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
1149         PR target/64093
1150         * config/rs6000/rs6000.md (and<mode>3): Don't generate
1151         and<mode>3_imm unless rs6000_gen_cell_microcode is true.
1153 2014-11-28  Vladimir Makarov  <vmakarov@redhat.com>
1155         PR rtl-optimization/64087
1156         * lra-lives.c (process_bb_lives): Add debug output.
1157         (lra_create_live_ranges): Don't remove dead insn on the second
1158         call of lra_create_live_ranges_1.
1160 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1162         PR rtl-optimization/64037
1163         * combine.c (setup_incoming_promotions): Pass the argument
1164         before any promotions happen to promote_function_mode.
1166 2014-11-28  Evgeny Stupachenko  <evstupac@gmail.com>
1168         * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
1169         permutations to loads group of size 3.
1171 2014-11-28  Jiong Wang  <jiong.wang@arm.com>
1173         * config/arm/arm.md (copysignsf3): New pattern.
1174         (copysigndf3): Likewise.
1176 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
1177             Ilya Verbin  <ilya.verbin@intel.com>
1179         * omp-low.c (lower_omp_critical): Mark critical sections
1180         inside target functions as offloadable.
1182 2014-11-28  Ilya Verbin  <ilya.verbin@intel.com>
1184         * lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
1185         file contains sections with LTO and offload IR, respectively.
1187 2014-11-28  Ilya Verbin  <ilya.verbin@intel.com>
1189         * cgraphunit.c (ipa_passes): Handle flag_generate_offload.
1190         (symbol_table::compile): Set flag_generate_offload if there is something
1191         to offload.
1192         * common.opt (flag_generate_offload): New Variable declaration.
1193         * dwarf2out.c (dwarf2out_finish): Handle flag_generate_offload.
1194         * ipa-inline-analysis.c (inline_generate_summary): Do not skip if
1195         flag_generate_offload is set.
1196         * lto-streamer.c (gate_lto_out): Handle flag_generate_offload.
1197         * passes.c (ipa_write_summaries): Do not skip if flag_generate_offload
1198         is set.
1199         * toplev.c (compile_file): Emit LTO marker if offload info has been
1200         previously emitted.  Do not emit lto_slim marker if
1201         flag_generate_offload is without flag_generate_lto.
1202         * tree.c (free_lang_data): Do not skip if flag_generate_offload is set.
1204 2014-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1206         * config/arm/arm-cores.def (cortex-a17.cortex-a7): New entry.
1207         * config/arm/arm-tables.opt: Regenerate.
1208         * config/arm/arm-tune.md: Regenerate.
1209         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a17.cortex-a7.
1210         * config/arm/t-aprofile: Add cortex-a17.cortex-a7 entry to
1211         MULTILIB_MATCHES.
1213 2014-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1215         * config/arm/arm.md (generic_sched): Specify cortexa17 in 'no' list.
1216         Include cortex-a17.md.
1217         * config/arm/arm.c (arm_issue_rate): Specify 2 for cortexa17.
1218         * config/arm/arm-cores.def (cortex-a17): New entry.
1219         * config/arm/arm-tables.opt: Regenerate.
1220         * config/arm/arm-tune.md: Regenerate.
1221         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=cortex-a17.
1222         * config/arm/cortex-a17.md: New file.
1223         * config/arm/cortex-a17-neon.md: New file.
1224         * config/arm/driver-arm.c (arm_cpu_table): Add entry for cortex-a17.
1225         * config/arm/t-aprofile: Add cortex-a17 entries to MULTILIB_MATCHES.
1227 2014-11-28  Richard Biener  <rguenther@suse.de>
1229         PR middle-end/64084
1230         * genmatch.c (dt_node::gen_kids_1): New function, split out
1231         from dt_node::gen_kids.
1232         (decision_tree::cmp_node): DT_TRUE are generally not equal.
1233         (decision_tree::find_node): Treat DT_TRUE as barrier for
1234         node CSE on the same level.
1235         (dt_node::append_node): Do not keep DT_TRUE last.
1236         (dt_node::gen_kids): Emit code after each DT_TRUE node seen.
1238 2014-11-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1240         * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
1241         -march=armv8-a+crc.
1243 2014-11-27  Uros Bizjak  <ubizjak@gmail.com>
1245         * config/i386/i386.md (preferred_for_size): New attribute
1246         (*pushxf): Split Yx*r constraints to r,*r.  Use preferred_for_size
1247         attribute to conditionally disable alternative 1.
1248         (*pushdf): Split Yd*r constraints to r,*r.  Use preferred_for_size
1249         and prefered_for_speed attributes to conditionally disable
1250         alternative 1.
1251         (*movxf_internal): Split Yx*r constraints to r,*r.  Use
1252         preferred_for_size attribute to conditionally disable
1253         alternatives 3 and 4.
1254         (*movdf_internal): Split Yd*r constraints to r,*r.  Use
1255         preferred_for_size and prefered_for_speed attributes to conditionally
1256         disable alternatives 3 and 4.
1257         * config/i386/constraints.md (Yd, Yx): Remove register constraints.
1259 2014-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1261         * dwarf2out.c (set_block_origin_self): Skip nested functions.
1263 2014-11-27  H.J. Lu  <hongjiu.lu@intel.com>
1265         PR target/63833
1266         * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
1267         R15_REG for 64-bit.
1268         * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
1270 2014-11-27  Martin Liska  <mliska@suse.cz>
1271             David Malcolm  <dmalcolm@redhat.com>
1273         * ipa-icf.c (sem_function::equals_private): int* is replaced with
1274         auto_vec.
1275         (sem_function::bb_dict_test): Likewise.
1276         * ipa-icf.h: Likewise.
1278 2014-11-27  Richard Biener  <rguenther@suse.de>
1280         PR middle-end/64088
1281         * fold-const.c (const_unop): Re-instantiate missing condition
1282         before calling fold_abs_const.
1284         PR tree-optimization/64088
1285         * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
1286         the stmt break from the loop over use operands.
1288 2014-11-27  Ilya Tocar  <ilya.tocar@intel.com>
1290         * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
1291         Define.
1292         * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
1293         (fold_builtin_cpu): Ditto.
1294         * doc/extend.texi: Documment it.
1296 2014-11-27  Jakub Jelinek  <jakub@redhat.com>
1298         PR middle-end/64067
1299         * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
1300         Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
1301         not only if modifier is EXPAND_INITIALIZER, but whenever
1302         COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
1304         PR tree-optimization/64024
1305         * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
1306         field.  Add simd_clone_info field.
1307         (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
1308         (STMT_VINFO_SIMD_CLONE_INFO): Define.
1309         * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
1310         STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
1311         STMT_VINFO_SIMD_CLONE_INFO vector.  For linear arguments, remember
1312         base and linear_step from analysis phase and use it during transform
1313         phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
1314         multiplied by linear_step.
1315         (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
1317         PR lto/64025
1318         * alias.c (find_base_term): Use std::swap.  Prefer tmp2
1319         if it is CONSTANT_P other than CONST_INT.
1321 2014-11-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1323         PR target/59593
1324         * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
1325         based on mode size.
1326         * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
1327         make it TARGET_EITHER.
1328         (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
1329         and move HFmode handling from consttable_4 to it.
1330         (consttable_4): Move HFmode handling to consttable_2 pattern.
1331         * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
1332         (consttable_2): Ditto.
1334 2014-11-27  Richard Biener  <rguenther@suse.de>
1336         * tree-ssa-sccvn.c (try_to_simplify): Allow
1337         gimple_fold_stmt_to_constant_1 to follow SSA edges.
1339 2014-11-27  Richard Biener  <rguenther@suse.de>
1341         PR tree-optimization/64083
1342         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
1343         forcibly mark loop for removal the wrong way.
1345 2014-11-27  Richard Biener  <rguenther@suse.de>
1347         PR middle-end/63704
1348         * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
1349         and instead return false when !fstrict-aliasing.
1351 2014-11-27  Richard Biener  <rguenther@suse.de>
1353         PR tree-optimization/61634
1354         * tree-vect-slp.c: Include gimple-walk.h.
1355         (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
1356         down the SLP tree for one scalar statement.
1357         (vect_detect_hybrid_slp_1): New walker function.
1358         (vect_detect_hybrid_slp_2): Likewise.
1359         (vect_detect_hybrid_slp): Properly handle pattern statements
1360         in a pre-scan over all loop stmts.
1362 2014-11-27  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1364         Revert:
1365         2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1366         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
1367         aarch64_convert_mode, aarch64_gen_ccmp_first,
1368         aarch64_gen_ccmp_next): New functions.
1369         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
1371 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
1373         * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
1374         without -pie or -shared, error on -fsanitize=thread -static instead.
1376 2014-11-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1378         PR ipa/61190
1379         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
1380         (cgraph_node::function_or_virtual_thunk_symbol): New function.
1381         (cgraph_node::call_for_symbol_and_aliases): Fix comment.
1382         (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
1383         Add new optional parameter exclude_virtual_thunks.
1384         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
1385         optional parameter exclude_virtual_thunks.
1386         (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
1387         (cgraph_node::set_pure_flag): Likewise.
1388         (cgraph_node::function_symbol): Simplified.
1389         (cgraph_node::function_or_virtual_thunk_symbol): New function.
1390         * ipa-pure-const.c (analyze_function): For virtual thunks set
1391         pure_const_state to IPA_NEITHER.
1392         (propagate_pure_const): Use function_or_virtual_thunk_symbol.
1394 2014-11-26  Richard Biener  <rguenther@suse.de>
1396         PR middle-end/63738
1397         * tree-data-ref.c (split_constant_offset_1): Do not follow
1398         SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1400 2014-11-26  Richard Biener  <rguenther@suse.de>
1402         * fold-const.h (const_unop): Declare.
1403         (const_binop): Likewise.
1404         * fold-const.c (const_binop): Export overload that expects
1405         a type parameter and dispatches to fold_relational_const as well.
1406         Check both operand kinds for guarding the transforms.
1407         (const_unop): New function, with constant folding from fold_unary_loc.
1408         (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
1409         Remove constant folding done there from the simplifications.
1410         (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
1411         (fold_negate_expr): Remove dead code from the REAL_CST case.
1412         Avoid building garbage in the COMPLEX_CST case.
1413         * gimple-match-head.c (gimple_resimplify1): Dispatch to
1414         const_unop.
1415         (gimple_resimplify2): Dispatch to const_binop.
1416         (gimple_simplify): Likewise.
1418 2014-11-26  Ilya Enkovich  <ilya.enkovich@intel.com>
1420         PR bootstrap/63995
1421         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
1422         debug statement when searching for a new position for
1423         bounds load/creation statement.
1425 2014-11-26  Marek Polacek  <polacek@redhat.com>
1427         PR sanitizer/63788
1428         * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
1429         var.  Conditionally build BUILT_IN_OBJECT_SIZE decl.
1430         (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
1432 2014-11-26  Ilya Enkovich  <ilya.enkovich@intel.com>
1434         PR lto/64075
1435         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
1436         proper size for function_code bitfield.
1437         (pack_ts_function_decl_value_fields): Likewise.
1439 2014-11-21  Mark Wielaard  <mjw@redhat.com>
1441         * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
1442         * opts.c (common_handle_option): Accept -gdwarf-5.
1443         * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
1444         DW_LANG_C_plus_plus_14.
1445         (lower_bound_default): Likewise. Plus DW_LANG_C11.
1446         (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
1447         DW_LANG_C_plus_plus_14 or DW_LANG_C11.
1448         (output_compilation_unit_header): Output at most a DWARFv4 header.
1449         (output_skeleton_debug_sections): Likewise.
1450         (output_line_info): Likewise.
1451         (output_aranges): Document header version number.
1453 2014-11-26  Richard Biener  <rguenther@suse.de>
1455         * gimple-fold.c (get_symbol_constant_value): Allow all
1456         GIMPLE register type zero-constants.
1458 2014-11-26  Mark Wielaard  <mjw@redhat.com>
1460         * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
1461         function decl has TREE_THIS_VOLATILE.
1463 2014-11-26  Richard Biener  <rguenther@suse.de>
1465         PR tree-optimization/62238
1466         * tree-predcom.c (ref_at_iteration): Unshare the expression
1467         before gimplifying it.
1468         (prepare_initializers_chain): Discard unused seq.
1470 2014-11-25  Vladimir Makarov  <vmakarov@redhat.com>
1472         * ira-lives.c (process_bb_node_lives): Make code with conditional
1473         REAL_PIC_OFFSET_TABLE_REGNUM.
1475 2014-11-25  Vladimir Makarov  <vmakarov@redhat.com>
1477         PR target/63527
1478         * ira-lives.c (process_bb_node_lives): Check and remove conflict
1479         of pic pseudo with pic hard reg.
1481 2014-11-25  Rohit  <rohitarulraj@freescale.com>
1483         PR bootstrap/63703
1484         * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
1485         added GCC hard register numbers for SPE high registers.
1487 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
1489         * bt-load.c (migrate_btr_defs): Get the key of a heap entry
1490         before removing it, not after.
1492 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
1494         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
1495         PATTERN call.
1497 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
1499         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
1500         of addic.
1502 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
1504         * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
1505         (rest of file): Replace those with code resp. CODE.
1507 2014-11-25  Tom de Vries  <tom@codesourcery.com>
1509         * tree-cfg.c (verify_sese): New function.
1510         (move_sese_region_to_fn): Call verify_sese.
1511         * tree-cfg.h (verify_sese): Declare.
1513 2014-11-25  Richard Biener  <rguenther@suse.de>
1515         PR lto/64065
1516         * lto-streamer-out.c (output_struct_function_base): Stream
1517         last_clique field.
1518         * lto-streamer-in.c (input_struct_function_base): Likewise.
1520 2014-11-25  Martin Liska  <mliska@suse.cz>
1522         PR bootstrap/64050
1523         PR ipa/64060
1524         * sreal.c (sreal::operator+): Addition fixed.
1525         (sreal::signedless_plus): Negative numbers are
1526         handled correctly.
1527         (sreal::operator-): Subtraction is fixed.
1528         (sreal::signedless_minus): Negative numbers are
1529         handled correctly.
1530         * sreal.h (sreal::operator<): Equal negative numbers
1531         are compared correctly.
1532         (sreal::shift): New checking asserts are introduced.
1533         Operation is fixed.
1535 2014-11-25  Richard Biener  <rguenther@suse.de>
1537         PR tree-optimization/61927
1538         * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
1539         of group and pattern analysis to the one in GCC 4.8.
1541 2014-11-25  Ilya Tocar  <ilya.tocar@intel.com>
1542             Jakub Jelinek  <jakub@redhat.com>
1544         * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
1545         strlen, strncpy.
1546         * lto-wrapper.c (append_offload_options): Likewise.
1548 2014-11-25  Eric Botcazou  <ebotcazou@adacore.com>
1550         * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
1551         load the static chain if the call was originally direct.
1553 2014-11-25  Jan Hubicka  <hubicka@ucw.cz>
1555         PR ipa/64059
1556         * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
1557         devirtualization is disabled.
1559 2014-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1561         PR target/63965
1562         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
1563         Altivec & -16 mask if the type is not valid for Altivec registers.
1564         (rs6000_secondary_reload_memory): Add support for ((reg + const) +
1565         reg) that occurs during push_reload processing.
1567         * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
1568         alternative for moving constant vectors which are easy altivec
1569         constants to GPRs.  Set the length attribute each of the
1570         alternatives.
1572         * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
1573         work in progress patch was committed instead of the fixes for
1574         63965.
1575         * config/rs6000/rs6000.c: Likewise.
1577 2014-11-22  Jan Hubicka  <hubicka@ucw.cz>
1579         PR ipa/63671
1580         * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
1581         and -fno-devirtualize more carefully.
1582         (can_remove_node_now_p): Update.
1584 2014-11-24  Andrew Pinski  <apinski@cavium.com>
1586         PR rtl-opt/63972
1587         * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
1589 2014-11-24  Alan Lawrence  <alan.lawrence@arm.com>
1591         * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
1593 2014-11-24  Alan Lawrence  <alan.lawrence@arm.com>
1595         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
1596         Refactor by combining switch statements and make arrays into scalars.
1598 2014-11-24  David Edelsohn  <dje.gcc@gmail.com>
1600         PR c++/58561
1601         * dbxout.c: Include stringpool.h
1602         (dbxout_type) [default]: Ignore auto type.
1604 2014-11-24  Richard Biener  <rguenther@suse.de>
1606         PR tree-optimization/63679
1607         * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
1608         (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
1609         to properly leave off at -1.
1610         (fully_constant_vn_reference_p): Generalize folding from
1611         constant initializers.
1612         (vn_reference_lookup_3): When looking through aggregate copies
1613         handle offsetted reads and try simplifying the result to
1614         a constant.
1615         * gimple-fold.h (fold_ctor_reference): Export.
1616         * gimple-fold.c (fold_ctor_reference): Likewise.
1618 2014-11-24  Petr Murzin  <petr.murzin@intel.com>
1620         * simplify-rtx.c (simplify_ternary_operation): Simplify
1621         vec_merge (vec_duplicate (vec_select)).
1623 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1625         * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
1626         (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
1627         (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
1629 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1631         * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
1632         (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
1633         (cortexa57_tunings): Likewise.
1634         (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
1636 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1638         * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
1639         in the not conditional jump case.
1640         * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
1641         * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
1643 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1645         * config/aarch64/aarch64.c: Include tm-constrs.h
1646         (AARCH64_FUSE_ADRP_ADD): Define.
1647         (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
1648         (cortexa53_tunings): Likewise.
1649         (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
1651 2014-11-24  Martin Liska  <mliska@suse.cz>
1653         * ipa-inline.c (edge_badness): long is replaced by sreal
1654         as fibonacci_heap template type.
1655         (update_edge_key): Likewise.
1656         (inline_small_functions): Likewise.
1658 2014-11-24  Martin Liska  <mliska@suse.cz>
1660         * predict.c (propagate_freq): More elegant sreal API is used.
1661         (estimate_bb_frequencies): Precomputed constants replaced by integer
1662         constants.
1663         * sreal.c (sreal::normalize): New function.
1664         (sreal::to_int): Likewise.
1665         (sreal::operator+): Likewise.
1666         (sreal::operator-): Likewise.
1667         (sreal::signedless_plus): Likewise.
1668         (sreal::signedless_minus): Likewise.
1669         (sreal::operator/): Negative number support is added.
1670         * sreal.h: Definition of new functions added.
1671         (inline sreal operator<<): New function.
1672         (inline sreal operator>>): Likewise.
1674 2014-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1676         * config/aarch64/aarch64-protos.h (struct tune_params): Add
1677         fuseable_ops field.
1678         * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
1679         (cortexa53_tunings): Likewise.
1680         (cortexa57_tunings): Likewise.
1681         (thunderx_tunings): Likewise.
1682         (aarch64_macro_fusion_p): New function.
1683         (aarch_macro_fusion_pair_p): Likewise.
1684         (TARGET_SCHED_MACRO_FUSION_P): Define.
1685         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
1686         (AARCH64_FUSE_MOV_MOVK): Likewise.
1687         (AARCH64_FUSE_NOTHING): Likewise.
1689 2014-11-24  Martin Liska  <mliska@suse.cz>
1691         PR lto/63968
1692         * bb-reorder.c (find_traces_1_round): decreate_key is replaced
1693         with replace_key method.
1694         * fibonacci_heap.h (fibonacci_heap::insert): New argument.
1695         (fibonacci_heap::replace_key_data): Likewise.
1696         (fibonacci_heap::replace_key): New method that can even increment key,
1697         this operation costs O(log N).
1698         (fibonacci_heap::extract_min): New argument.
1699         (fibonacci_heap::delete_node): Likewise.
1701 2014-11-24  Richard Biener  <rguenther@suse.de>
1703         PR tree-optimization/55334
1704         * function.h (struct function): Add last_clique member.
1705         * tree-inline.c (remap_dependence_clique): New function.
1706         (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
1707         (copy_tree_body_r): Likewise.
1708         (copy_cfg_body): Free dependence map.
1709         (copy_gimple_seq_and_replace_locals): Likewise.
1710         * tree-pretty-print.c (dump_generic_node): Dump
1711         dependence info.
1712         * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
1713         to answer alias query.
1714         * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
1715         tree-pretty-print.h and gimple-walk.h.
1716         (struct variable_info): Add is_restrict_var flag and ruid
1717         member.
1718         (new_var_info): Initialize is_restrict_var.
1719         (make_constraint_from_restrict): Likewise.
1720         (create_variable_info_for): Exclude restricts from global vars
1721         from new handling.
1722         (intra_create_variable_infos): But not those from parameters.
1723         (visit_loadstore): New function.
1724         (maybe_set_dependence_info): Likewise.
1725         (compute_dependence_clique): Likewise.
1726         (compute_may_aliases): Call compute_dependence_clique.
1727         * tree-data-ref.c (dr_analyze_indices): Copy dependence info
1728         to fake MEM_REF.
1729         (dr_may_alias_p): Use recorded dependence info to answer
1730         alias query.
1731         * tree-core.h (struct tree_base): Add clique, base struct in
1732         union.
1733         * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
1734         (MR_DEPENDENCE_BASE): Likewise.
1735         * tree-inline.h (dependence_hasher): New hash-map kind.
1736         (struct copy_body_data): Add dependence_map pointer.
1737         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
1738         throwing away dependence info.
1739         * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
1740         * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
1742 2014-11-23  Oleg Endo  <olegendo@gcc.gnu.org>
1744         PR target/53976
1745         * config/sh/sh_optimize_sett_clrt.cc
1746         (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
1747         of void.  Abort at complex edges.
1748         (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
1749         returned false.
1751 2014-11-22  John David Anglin  <danglin@gcc.gnu.org>
1753         PR other/63694
1754         * configure.ac: Check for strtol, strtoul, strtoll and strtoull
1755         declarations.
1756         * configure: Regenerated.
1757         * config.in: Regenerated.
1759 2014-11-22  Jan Hubicka  <hubicka@ucw.cz>
1761         * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
1762         clones as having abstract origin used.
1763         * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
1764         origin check.
1765         (clone_inlined_nodes): Copy abstract originflag.
1766         * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
1767         abstract origin node.
1769 2014-11-22  Uros Bizjak  <ubizjak@gmail.com>
1771         * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
1772         * config/i386/i386.c (ix86_option_override_internal): Do not increase
1773         PARAM_MAX_COMPLETELY_PEELED_INSNS.
1775 2014-11-22  Oleg Endo  <olegendo@gcc.gnu.org>
1777         PR target/63783
1778         PR target/51244
1779         * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
1780         Do not emit bitwise not insn.  Emit logical not insn sequence instead.
1781         Adjust related comments throughout the file.
1783 2014-11-22  Oleg Endo  <olegendo@gcc.gnu.org>
1785         PR target/63986
1786         PR target/51244
1787         * config/sh/sh.c (sh_is_logical_t_store_expr,
1788         sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
1789         (sh_split_movrt_negc_to_movt_xor): New function.
1790         (sh_find_set_of_reg): Move to ...
1791         * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
1792         to template function.
1793         (set_of_reg): Use rtx_insn* for insn member.
1794         (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
1795         rtx_insn* for insn argument.
1796         * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
1797         sequence using new sh_split_movrt_negc_to_movt_xor function.
1798         (movrt_xor): Allow also for SH2A.
1799         (*movt_movrt): Delete insns and splits.
1801 2014-11-22  Marc Glisse  <marc.glisse@inria.fr>
1803         PR tree-optimization/60770
1804         * tree-sra.c (clobber_subtree): New function.
1805         (sra_modify_constructor_assign): Call it.
1807 2014-11-21  Vladimir Makarov  <vmakarov@redhat.com>
1809         PR target/63897
1810         * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
1811         argument.
1812         (process_bb_lives): Rename dead_insn_p on remove_p
1813         and global_live_info_p on dead_insn_p.  Calculate local live info
1814         unconditionally.  Remove last argument in calls mark_regno_live and
1815         mark_regno_dead.  Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
1816         (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
1817         Return bool.  Rename global_live_info_p on dead_insn_p.  Return
1818         flag of live info change.
1819         (lra_create_live_ranges): New.
1821 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
1823         PR target/63848
1824         PR target/63975
1825         * internal-fn.c (expand_arith_overflow_result_store,
1826         expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
1827         do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
1828         adjust arguments to those functions.  Use unsignedp = true for
1829         EQ, NE, GEU, LEU, LTU and GTU comparisons.
1831         PR tree-optimization/64006
1832         * tree-vrp.c (stmt_interesting_for_vrp): Return true
1833         for {ADD,SUB,MUL}_OVERFLOW internal calls.
1834         (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
1835         internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
1836         immediate uses would change their value ranges and return
1837         SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
1838         if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
1839         interesting for vrp.
1841 2014-11-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1843         PR target/63965
1844         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
1845         Altivec & -16 mask if the type is not valid for Altivec registers.
1846         (rs6000_secondary_reload_memory): Add support for ((reg + const) +
1847         reg) that occurs during push_reload processing.
1849         * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
1850         alternative for moving constant vectors which are easy altivec
1851         constants to GPRs.  Set the length attribute each of the
1852         alternatives.
1854 2014-11-21  Matthew Fortune  <matthew.fortune@imgtec.com>
1856         * configure.ac: When checking for MIPS .module support ensure that
1857         o32 FPXX is supported to avoid a second configure check.
1858         * configure: Regenerate.
1860 2014-11-21  Jiong Wang  <jiong.wang@arm.com>
1862         * config/aarch64/iterators.md (VS): New mode iterator.
1863         (vsi2qi): New mode attribute.
1864         (VSI2QI): Likewise.
1865         * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
1866         * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
1867         * config/aarch64/aarch64-builtins.c
1868         (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
1870 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1872         PR bootstrap/63784
1873         * configure: Regenerated.
1875 2014-11-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1877         * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
1879 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
1881         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1882         OPTION_MASK_ISA_PCOMMIT_SET): New.
1883         (ix86_handle_option): Handle OPT_mpcommit.
1884         * config.gcc: Add pcommitintrin.h
1885         * config/i386/pcommitintrin.h: New file.
1886         * config/i386/cpuid.h (bit_PCOMMIT): Define.
1887         * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
1888         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1889         __PCOMMIT__.
1890         * config/i386/i386.c (ix86_target_string): Add -mpcommit.
1891         (PTA_PCOMMIT): Define.
1892         (ix86_option_override_internal): Handle new option.
1893         (ix86_valid_target_attribute_inner_p): Add pcommit.
1894         (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
1895         (bdesc_special_args): Add __builtin_ia32_pcommit.
1896         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
1897         * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
1898         (pcommit): New instruction.
1899         * config/i386/i386.opt: Add mpcommit.
1900         * config/i386/x86intrin.h: Include pcommitintrin.h.
1902 2014-11-20  Mark Wielaard  <mjw@redhat.com>
1904         PR debug/38757
1905         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
1906         * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
1907         (darwin_override_options): Likewise.
1908         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
1909         Likewise.
1910         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1911         Likewise.
1912         * dbxout.c (get_lang_number): Likewise.
1913         (dbxout_type): Likewise.
1914         (dbxout_symbol_location): Likewise.
1915         * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
1916         also for DW_LANG_{C,C99,ObjC}.
1917         (highest_c_language): New function.
1918         (gen_compile_unit_die): Call highest_c_language to merge LTO
1919         TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
1920         determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
1921         * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
1922         * langhooks.h (struct lang_hooks): Add version comment to name.
1923         (lang_GNU_C): New function declaration.
1924         (lang_GNU_CXX): Likewise.
1925         * langhooks.c (lang_GNU_C): New function.
1926         (lang_GNU_CXX): Likewise.
1927         * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
1929 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
1931         * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
1932         OPTION_MASK_ISA_CLWB_SET): New.
1933         (ix86_handle_option): Handle OPT_mclwb.
1934         * config.gcc: Add clwbintrin.h.
1935         * config/i386/clwbintrin.h: New file.
1936         * config/i386/cpuid.h (bit_CLWB): Define.
1937         * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
1938         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1939         __CLWB__.
1940         * config/i386/i386.c (ix86_target_string): Add -mclwb.
1941         (PTA_CLWB): Define.
1942         (ix86_option_override_internal): Handle new option.
1943         (ix86_valid_target_attribute_inner_p): Add clwb.
1944         (ix86_builtins): Add IX86_BUILTIN_CLWB.
1945         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
1946         (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
1947         * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
1948         * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
1949         (clwb): New instruction.
1950         * config/i386/i386.opt: Add mclwb.
1951         * config/i386/x86intrin.h: Include clwbintrin.h.
1953 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
1955         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
1956         OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
1957         (ix86_handle_option): Handle OPT_mavx512vbmi.
1958         * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
1959         * config/i386/avx512vbmiintrin.h: New file.
1960         * config/i386/avx512vbmivlintrin.h: Ditto.
1961         * config/i386/cpuid.h (bit_AVX512VBMI): New.
1962         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
1963         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1964         __AVX512VBMI__.
1965         * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
1966         (PTA_AVX512VBMI): Define.
1967         (ix86_option_override_internal): Handle new options.
1968         (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
1969         (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
1970         IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
1971         IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
1972         IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
1973         IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
1974         IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
1975         IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
1976         IX86_BUILTIN_VPERMI2VARQI128.
1977         (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
1978         __builtin_ia32_vpmultishiftqb256_mask,
1979         __builtin_ia32_vpmultishiftqb128_mask,
1980         __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
1981         __builtin_ia32_vpermt2varqi512_maskz,
1982         __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
1983         __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
1984         __builtin_ia32_vpermt2varqi256_maskz,
1985         __builtin_ia32_vpermt2varqi128_mask,
1986         __builtin_ia32_vpermt2varqi128_maskz,
1987         __builtin_ia32_vpermi2varqi256_mask,
1988         __builtin_ia32_vpermi2varqi128_mask.
1989         (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
1990         * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
1991         * config/i386/i386.opt: Add mavx512vbmi.
1992         * config/i386/immintrin.h: Include avx512vbmiintrin.h,
1993         avx512vbmivlintrin.h.
1994         * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
1995         (VI1_AVX512VL): New iterator.
1996         (<avx512>_permvar<mode><mask_name>): Use it.
1997         (<avx512>_vpermi2var<mode>3_maskz): Ditto.
1998         (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
1999         (<avx512>_vpermi2var<mode>3_mask): Ditto.
2000         (<avx512>_vpermt2var<mode>3_maskz): Ditto.
2001         (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
2002         (<avx512>_vpermt2var<mode>3_mask): Ditto.
2003         (vpmultishiftqb<mode><mask_name>): Ditto.
2005 2014-11-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2007         PR rtl-optimization/63952
2008         * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
2009         * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
2010         Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
2012 2014-11-21  Ilya Tocar  <ilya.tocar@intel.com>
2014         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
2015         OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
2016         (ix86_handle_option): Handle OPT_mavx512ifma.
2017         * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
2018         * config/i386/avx512ifmaintrin.h: New file.
2019         * config/i386/avx512ifmaivlntrin.h: Ditto.
2020         * config/i386/cpuid.h (bit_AVX512IFMA): New.
2021         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2022         avx512ifma.
2023         * config/i386/i386-c.c (ix86_target_macros_internal): Define
2024         __AVX512IFMA__.
2025         * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
2026         (PTA_AVX512IFMA): Define.
2027         (ix86_option_override_internal): Handle new options.
2028         (ix86_valid_target_attribute_inner_p): Add avx512ifma.
2029         (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
2030         IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
2031         IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
2032         IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
2033         IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
2034         IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
2035         IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
2036         (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
2037         __builtin_ia32_vpmadd52luq512_maskz,
2038         __builtin_ia32_vpmadd52huq512_mask,
2039         __builtin_ia32_vpmadd52huq512_maskx,
2040         __builtin_ia32_vpmadd52luq256_mask,
2041         __builtin_ia32_vpmadd52luq256_maskz,
2042         __builtin_ia32_vpmadd52huq256_mask,
2043         __builtin_ia32_vpmadd52huq256_maskz,
2044         __builtin_ia32_vpmadd52luq128_mask,
2045         __builtin_ia32_vpmadd52luq128_maskz,
2046         __builtin_ia32_vpmadd52huq128_mask,
2047         __builtin_ia32_vpmadd52huq128_maskz,
2048         * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
2049         * config/i386/i386.opt: Add mavx512ifma.
2050         * config/i386/immintrin.h: Include avx512ifmaintrin.h,
2051         avx512ifmavlintrin.h.
2052         * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
2053         UNSPEC_VPMADD52HUQ.
2054         (VPMADD52): New iterator.
2055         (vpmadd52type): New attribute.
2056         (vpamdd52huq<mode>_maskz): New.
2057         (vpamdd52luq<mode>_maskz): Ditto.
2058         (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
2059         (vpamdd52<vpmadd52type><mode>_mask): Ditto.
2061 2014-11-21  Alan Lawrence  <alan.lawrence@arm.com>
2063         Revert:
2064         2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
2065         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
2067 2014-11-21  Andrew Bennett  <andrew.bennett@imgtec.com>
2069         * config/mips/mips.c (mips_process_sync_loop): Place a 
2070         nop in the delay slot of the branch likely instruction.
2071         (mips_output_sync_loop): Ensure mips_branch_likely is 
2072         set before calling mips_output_sync_loop.
2073         (mips_sync_loop_insns): Likewise.
2075 2014-11-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2077         PR/target 63673
2078         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
2079         the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
2080         double.
2082 2014-11-21  Georg-Johann Lay  <avr@gjlay.de>
2084         Forward-port from 2014-10-30 4_9-branch r216934
2086         PR target/63633
2087         * config/avr/avr-protos.h (regmask): New inline function.
2088         (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
2089         * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
2090         (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
2091         * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
2092         (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
2093         (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
2094         * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
2095         (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
2096         (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
2097         * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
2098         (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
2099         (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
2100         (fmul, fmuls, fmulsu): Fix operands.  Turn insn into expander as
2101         needed.
2103 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
2105         PR target/61137
2106         * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
2107         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
2109 2014-11-21  James Greenhalgh  <james.greenhalgh@arm.com>
2111         * config/aarch64/aarch64-simd.md
2112         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
2113         output mnemonic and operands.
2114         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
2115         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
2117 2014-11-21  Evgeny Stupachenko  <evstupac@gmail.com>
2119         * config/i386/i386.c (ix86_option_override_internal): Increase
2120         PARAM_MAX_COMPLETELY_PEELED_INSNS.
2122 2014-11-21  Evgeny Stupachenko  <evstupac@gmail.com>
2124         PR target/60451
2125         * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
2126         (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
2127         replace for V16QI, V16HI and V32QI modes.
2128         (ix86_expand_vec_perm_const_1): Add new expand.
2130 2014-11-21  Nick Clifton  <nickc@redhat.com>
2132         * config/rl78/rl78-real.md (movqi_from_es): New pattern.
2133         * config/rl78/rl78.c (struct machine_function): Add uses_es field.
2134         (rl78_expand_prologue): Save the ES register in interrupt handlers
2135         that use it.
2136         (rl78_expand_epilogue): Restore the ES register if necessary.
2137         (rl78_start_function): Mention if the function uses the ES
2138         register.
2139         (rl78_lo16): Record the use of the ES register.
2140         (transcode_memory_rtx): Likewise.
2142 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
2144         PR tree-optimization/61773
2145         * tree-ssa-strlen.c (get_string_length): Don't assert
2146         stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
2148         PR target/63910
2149         * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
2150         modes wider than MAX_BITSIZE_MODE_ANY_INT.  If not using
2151         CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
2153 2014-11-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
2155         * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
2156         HOST_WIDE_INT_M1U instead of ~0.
2157         (includes_rldicr_lshift_p): Likewise.
2159 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
2161         * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
2162         we need to look into its operand to determine if it is a valid
2163         address.
2165 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
2167         * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
2168         vaarg_p argument and create correct CFI info.
2169         (nds32_expand_prologue): Pass true or false to
2170         nds32_emit_stack_push_multiple function.
2172 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
2174         * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
2175         as RTX_FRAME_RELATED_P rtx.
2177 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
2179         * config/nds32/nds32.opt (march): Add help message.
2181 2014-11-20  Patrick Palka  <ppalka@gcc.gnu.org>
2183         * tree-vrp.c (test_for_singularity): New parameter
2184         strict_overflow_p.  Set *strict_overflow_p to true if signed
2185         overflow must be undefined for the return value to satisfy the
2186         conditional.
2187         (simplify_cond_using_ranges): Don't perform the simplification
2188         if it violates overflow rules.
2190 2014-11-20  Marek Polacek  <polacek@redhat.com>
2192         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
2194 2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
2196         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
2197         condition would be removed due to undefined behaviour.
2199 2014-11-20  Andrew Pinski  <apinski@cavium.com>
2201         PR ipa/63981
2202         PR ipa/63982
2203         * ipa-polymorphic-call.c (possible_placement_new):
2204         Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
2205         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
2206         (extr_type_from_vtbl_ptr_store): Likewise.
2208 2014-11-20  Markus Trippelsdorf  <markus@trippelsdorf.de>
2210         * config/rs6000/constraints.md: Avoid signed integer overflows.
2211         * config/rs6000/predicates.md: Likewise.
2212         * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
2213         (includes_rldic_lshift_p): Likewise.
2214         (includes_rldicr_lshift_p): Likewise. 
2215         * emit-rtl.c (const_wide_int_htab_hash): Likewise.
2216         * loop-iv.c (determine_max_iter): Likewise.
2217         (iv_number_of_iterations): Likewise.
2218         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
2219         * varasm.c (get_section_anchor): Likewise.
2221 2014-11-20  Charles Baylis  <charles.baylis@linaro.org>
2223         PR target/63870
2224         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
2225         expression to aarch64_simd_lane_bounds.
2226         * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
2227         prototype.
2228         * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
2229         call to aarch64_simd_lane_bounds.
2230         (aarch64_get_lanedi): Likewise.
2231         (aarch64_ld2_lane<mode>): Likewise.
2232         (aarch64_ld3_lane<mode>): Likewise.
2233         (aarch64_ld4_lane<mode>): Likewise.
2234         (aarch64_im_lane_boundsi): Likewise.
2235         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
2236         parameter. Report calling function in error message if exp is non-NULL.
2238 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
2240         PR target/60111
2241         * config/sh/sh.c: Use signed char for signed field.
2243 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2245         * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
2246         hash_table.
2248 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2250         * ipa-utils.c, lto-section-in.c, lto-streamer.h,
2251         tree-scalar-evolution.c: Replace htab with hash_table.
2253 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2255         * lto-section-in.c (lto_delete_in_decl_state): Adjust.
2256         (lto_free_function_in_decl_state): Likewise.
2257         * lto-streamer-out.c (copy_function_or_variable): Likewise.
2258         * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
2259         (lto_file_decl_data_num_ ## name ## s): Likewise.
2260         (struct lto_tree_ref_table): Remove.
2261         (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
2263 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2265         * hash-map.h (hash_map::iterator): New class.
2266         (hash_map::begin): New method.
2267         (hash_map::end): Likewise.
2268         * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
2269         replace splay_tree with hash_map.
2271 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2273         * hash-table.h (hash_table::hash_table): Call alloc_entries.
2274         (hash_table::alloc_entries): new method.
2275         (hash_table::expand): Call alloc_entries.
2276         (hash_table::empty): Likewise.
2278 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2280         * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
2281         tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
2283 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
2285         * doc/gty.texi: Document the new cache gty attribute.
2286         * gengtype.c (finish_cache_funcs): New function.
2287         (write_roots): Call gt_clear_cache on global variables with the cache
2288         gty attribute.
2289         * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
2290         * ggc.h (gt_clear_caches): New declaration.
2291         * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
2292         memory.
2293         (gt_cleare_cache): New function.
2294         * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
2296 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
2298         * combine.c (try_combine): Prefer to delete dead SETs inside
2299         a PARALLEL over keeping them.
2301 2014-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
2303         * combine.c (combine_validate_cost): Always print the insn costs
2304         to the dump file.
2306 2014-11-20  Richard Henderson <rth@redhat.com>
2308         PR target/63977
2309         * config/i386/i386.c (ix86_static_chain): Reinstate the check
2310         for DECL_STATIC_CHAIN.
2312 2014-11-20  Tejas Belagod  <tejas.belagod@arm.com>
2314         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
2315         Fixup prototype.
2316         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
2317         aarch64_cannot_force_const_mem, aarch64_classify_address,
2318         aarch64_classify_symbolic_expression): Fixup call to
2319         aarch64_classify_symbol.
2320         (aarch64_classify_symbol): Add range-checking for
2321         symbol + offset addressing for tiny and small models.
2323 2014-11-20  Richard Biener  <rguenther@suse.de>
2325         PR middle-end/63962
2326         * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
2327         Guard with single-use operand 0.
2329 2014-11-20   Richard Biener  <rguenther@suse.de>
2331         PR tree-optimization/63677
2332         * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
2333         (avail_exprs_stack): Make a vector of pairs.
2334         (struct hash_expr_elt): Replace stmt member with vop member.
2335         (expr_elt_hasher::equal): Simplify.
2336         (initialize_hash_element): Adjust.
2337         (initialize_hash_element_from_expr): Likewise.
2338         (dom_opt_dom_walker::thread_across_edge): Likewise.
2339         (record_cond): Likewise.
2340         (dom_opt_dom_walker::before_dom_children): Likewise.
2341         (print_expr_hash_elt): Likewise.
2342         (remove_local_expressions_from_table): Restore previous state
2343         if requested.
2344         (record_equivalences_from_stmt): Record &x + CST as constant
2345         &MEM[&x, CST] for further propagation.
2346         (vuse_eq): New function.
2347         (lookup_avail_expr): For loads use the alias oracle to see
2348         whether a candidate from the expr hash is usable.
2349         (avail_expr_hash): Do not hash VUSEs.
2351 2014-11-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2353         PR target/59593
2354         * config/arm/arm.md (*movhi_insn): Use right formatting
2355         for immediate.
2357 2014-11-20  Igor Zamyatin  <igor.zamyatin@intel.com>
2359         PR sanitizer/63845
2360         * function.c (assign_parms): Move init of pic_offset_table_rtx
2361         from here to...
2362         * cfgexpand.c (expand_used_vars): ...here.
2364 2014-11-19  Jan Hubicka  <hubicka@ucw.cz>
2366         * tree.c (free_lang_data_in_type): If BINFO has no important
2367         information in it, set it to NULL.
2368         (get_binfo_at_offset): Do not walk fields, only bases.
2369         * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
2370         to be NULL.
2371         * ipa-polymorphic-call.c (record_known_type): Likewise.
2373 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2375         PR jit/63854
2376         * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
2377         congruence_class_group *.
2379 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
2381         PR target/63947
2382         * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
2383         Output "b" and "nb" suffix for FP mode.
2385 2014-11-19  Jan Hubicka  <hubicka@ucw.cz>
2387         PR bootstrap/63963
2388         * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream out
2389         DECL_FUNCTION_SPECIFIC_TARGET
2390         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream in
2391         DECL_FUNCTION_SPECIFIC_TARGET.
2393 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2395         PR jit/63854
2396         * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
2398 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2400         PR jit/63854
2401         * lra.c (lra): After creating live ranges in preparation for call
2402         to lra_inheritance, set live_p to true.
2404 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2406         PR jit/63854
2407         * tree-ssa-threadedge.c (thread_across_edge): Don't just release
2408         "path", delete it.
2409         * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
2411 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2413         PR jit/63854
2414         * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
2415         vec<> to auto_vec<> to fix a leak.
2417 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2419         PR jit/63854
2420         * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
2422 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2424         PR jit/63854
2425         * ira-costs.c (ira_costs_c_finalize): New function.
2426         * ira.h (ira_costs_c_finalize): New prototype.
2427         * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
2429 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2431         PR jit/63854
2432         * ipa-reference.c (ipa_reference_c_finalize): Release
2433         optimization_summary_obstack.
2435 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2437         PR jit/63854
2438         * toplev.c (toplev::finalize): Free opts_obstack.
2440 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2442         PR jit/63854
2443         * toplev.c (toplev::finalize): Clean up save_decoded_options.
2445 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2447         PR jit/63854
2448         * bb-reorder.c
2449         (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
2450         local bbs_in_hot_partition from vec<> to auto_vec<>.
2452 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2454         PR jit/63854
2455         * config/alpha/alpha.c (alpha_option_override): Remove static from
2456         "handle_trap_shadows_info" and "align_insns_info".
2457         * config/i386/i386.c (ix86_option_override): Likewise for
2458         "insert_vzeroupper_info".
2459         * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
2460         "rl78_devirt_info" and "rl78_move_elim_info".
2461         * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
2462         "analyze_swaps_info".
2463         * context.c (gcc::context::~context): New.
2464         * context.h (gcc::context::~context): New.
2465         * dumpfile.c (dump_files): Add "false" initializers for new field
2466         "owns_strings".
2467         (gcc::dump_manager::~dump_manager): New.
2468         (gcc::dump_manager::dump_register): Add param "take_ownership".
2469         * dumpfile.h (struct dump_file_info): Add field "owns_strings".
2470         (gcc::dump_manager::~dump_manager): New.
2471         (gcc::dump_manager::dump_register): Add param "take_ownership".
2472         * pass_manager.h (gcc::pass_manager::operator delete): New.
2473         (gcc::pass_manager::~pass_manager): New.
2474         * passes.c (pass_manager::register_one_dump_file): Pass "true" to
2475         new "owns_strings" argument to dump_register.
2476         (pass_manager::operator delete): New.
2477         (delete_pass_tree): New function.
2478         (pass_manager::~pass_manager): New.
2479         * statistics.c (statistics_early_init): Pass "false" to
2480         new "owns_strings" argument to dump_register.
2481         * toplev.c (toplev::finalize): Clean up the context and thus the
2482         things it owns.
2484 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2486         PR jit/63854
2487         * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
2488         obstack_free when cleaning up valid_mode_changes_obstack.
2490 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2492         PR jit/63854
2493         * opts.c (finalize_options_struct): New.
2494         * opts.h (finalize_options_struct): New.
2495         * toplev.c (toplev::finalize): Call finalize_options_struct
2496         on global_options and global_options_set.
2498 2014-11-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2499             Jakub Jelinek  <jakub@redhat.com>
2501         PR driver/36312
2502         PR driver/63837
2503         * gcc.c (process_command): Don't check for input/output
2504         filename equality if output is HOST_BIT_BUCKET.
2505         * toplev.c (init_asm_output): Likewise.
2507 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
2509         Merger of git branch "gimple-classes-v2-option-3".
2511         * ChangeLog.gimple-classes: New.
2513         * coretypes.h (struct gcond): Add forward decl.
2514         (struct gdebug): Likewise.
2515         (struct ggoto): Likewise.
2516         (struct glabel): Likewise.
2517         (struct gswitch): Likewise.
2518         (struct gassign): Likewise.
2519         (struct gasm): Likewise.
2520         (struct gcall): Likewise.
2521         (struct gtransaction): Likewise.
2522         (struct greturn): Likewise.
2523         (struct gbind): Likewise.
2524         (struct gcatch): Likewise.
2525         (struct geh_filter): Likewise.
2526         (struct geh_mnt): Likewise.
2527         (struct geh_else): Likewise.
2528         (struct gresx): Likewise.
2529         (struct geh_dispatch): Likewise.
2530         (struct gphi): Likewise.
2531         (struct gtry): Likewise.
2532         (struct gomp_atomic_load): Likewise.
2533         (struct gomp_atomic_store): Likewise.
2534         (struct gomp_continue): Likewise.
2535         (struct gomp_critical): Likewise.
2536         (struct gomp_for): Likewise.
2537         (struct gomp_parallel): Likewise.
2538         (struct gomp_task): Likewise.
2539         (struct gomp_sections): Likewise.
2540         (struct gomp_single): Likewise.
2541         (struct gomp_target): Likewise.
2542         (struct gomp_teams): Likewise.
2544         * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
2545         for renaming of gimple subclasses.
2547         * gdbhooks.py: Update.
2549         * gimple-iterator.c (gsi_for_phi): New.
2550         (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
2551         to gphi_iterator.
2552         * gimple-iterator.h (struct gphi_iterator): New subclass of
2553         gimple_stmt_iterator.
2554         (gsi_for_phi): New prototype.
2555         (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
2556         to gphi_iterator.
2557         (gsi_next_nonvirtual_phi): Strengthen param from
2558         gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
2559         gimple to gphi *.
2561         * gsstruct.def: Update for renamings of classes.
2563         * gimple.c (gimple_build_return): Strengthen return type from
2564         gimple to greturn *.
2565         (gimple_call_reset_alias_info): Strengthen param to gcall *.
2566         (gimple_build_call_1): Strengthen return type from gimple to
2567         gcall *.
2568         (gimple_build_call_vec): Likewise.
2569         (gimple_build_call): Likewise.
2570         (gimple_build_call_valist): Likewise.
2571         (gimple_build_call_internal_1): Likewise.
2572         (gimple_build_call_internal): Likewise.
2573         (gimple_build_call_internal_vec): Likewise.
2574         (gimple_build_call_from_tree): Likewise.
2575         (gimple_build_assign_stat): Strengthen return type from gimple to
2576         gassign *.
2577         (gimple_build_assign_with_ops): Likewise.
2578         (gimple_build_assign_with_ops): Likewise.
2579         (gimple_build_cond): Strengthen return type from gimple to
2580         gcond *.
2581         (gimple_build_cond_from_tree): Likewise.
2582         (gimple_cond_set_condition_from_tree): Require a gcond *.
2583         (gimple_build_label): Strengthen return type from gimple to
2584         glabel *.
2585         (gimple_build_goto): Strengthen return type from gimple to
2586         ggoto *.
2587         (gimple_build_bind): Strengthen return type from gimple to
2588         gbind *.
2589         (gimple_build_asm_1): Strengthen return type from gimple to
2590         gasm *.
2591         (gimple_build_asm_vec): Likewise.
2592         (gimple_build_catch): Strengthen return type from gimple to
2593         gcatch *.
2594         (gimple_build_eh_filter): Strengthen return type from gimple to
2595         geh_filter *.
2596         (gimple_build_eh_must_not_throw): Strengthen return type from
2597         gimple to geh_mnt *.
2598         (gimple_build_eh_else): Strengthen return type from gimple to
2599         geh_else *.
2600         (gimple_build_try): Update for renaming of gimple_statement_try to
2601         gtry.
2602         (gimple_build_resx): Strengthen return type from gimple to
2603         gresx *.
2604         (gimple_build_switch_nlabels): Strengthen return type from gimple
2605         to gswitch *.
2606         (gimple_build_switch): Likewise.
2607         (gimple_build_eh_dispatch): Strengthen return type from gimple to
2608         geh_dispatch *.
2609         (gimple_build_debug_bind_stat): Strengthen return type from gimple
2610         to gdebug *.
2611         (gimple_build_debug_source_bind_stat): Strengthen return type from
2612         gimple to gdebug *.
2613         (gimple_build_omp_critical): Strengthen return type from gimple to
2614         gomp_critical *.
2615         (gimple_build_omp_for): Strengthen return type from gimple to
2616         gomp_for *.
2617         (gimple_build_omp_parallel): Strengthen return type from gimple to
2618         gomp_parallel *.
2619         (gimple_build_omp_task): Strengthen return type from gimple to
2620         gomp_task *.
2621         (gimple_build_omp_continue): Strengthen return type from gimple to
2622         gomp_continue *.
2623         (gimple_build_omp_sections): Strengthen return type from gimple to
2624         gomp_sections *.
2625         (gimple_build_omp_single): Strengthen return type from gimple to
2626         gomp_single *.
2627         (gimple_build_omp_target): Strengthen return type from gimple to
2628         gomp_target *.
2629         (gimple_build_omp_teams): Strengthen return type from gimple to
2630         gomp_teams *.
2631         (gimple_build_omp_atomic_load): Strengthen return type from gimple
2632         to gomp_atomic_load *.
2633         (gimple_build_omp_atomic_store): Strengthen return type from gimple
2634         to gomp_atomic_store *.
2635         (gimple_build_transaction): Strengthen return type from gimple
2636         to gtransaction *.
2637         (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
2638         (gimple_call_fnspec): Require a const gcall *.
2639         (gimple_call_arg_flags): Likewise.
2640         (gimple_call_return_flags): Likewise.
2641         (gimple_set_bb): Add a checked cast.
2642         (gimple_copy): Within the cases, add locals of the appropriate
2643         subclass and use in place of "stmt" and "copy" for typesafety.
2644         (gimple_has_side_effects): Add a checked cast.
2645         (gimple_could_trap_p_1): Likewise.
2646         (gimple_call_copy_skip_args): Require a gcall *, and return one.
2647         (gimple_asm_clobbers_memory_p): Require a const gasm *.
2648         (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
2649         dyn_cast, introducing local "return_stmt" and using ti in place
2650         of "stmt".
2652         * gimple.h (gimple_vec): Eliminate this typedef.
2653         (struct gimple_statement_call): Rename to...
2654         (struct gcall): ...this.
2655         (struct gimple_statement_bind): Rename to...
2656         (struct gbind): ...this.
2657         (struct gimple_statement_catch): Rename to...
2658         (struct gcatch): ...this.
2659         (struct gimple_statement_eh_filter): Rename to...
2660         (struct geh_filter): ...this.
2661         (struct gimple_statement_eh_else): Rename to...
2662         (struct geh_else): ...this.
2663         (struct gimple_statement_eh_mnt): Rename to...
2664         (struct geh_mnt): ...this.
2665         (struct gimple_statement_phi): Rename to...
2666         (struct gphi): ...this.
2667         (struct gimple_statement_resx): Rename to...
2668         (struct gresx): ...this.
2669         (struct gimple_statement_eh_dispatch): Rename to...
2670         (struct geh_dispatch): ...this.
2671         (struct gimple_statement_try): Rename to...
2672         (struct gtry): ...this.
2673         (struct gimple_statement_asm): Rename to...
2674         (struct gasm): ...this.
2675         (struct gimple_statement_omp_critical): Rename to...
2676         (struct gomp_critical): ...this.
2677         (struct gimple_statement_omp_for): Rename to...
2678         (struct gomp_for): ...this.
2679         (struct gimple_statement_omp_parallel): Rename to...
2680         (struct gomp_parallel): ...this.
2681         (struct gimple_statement_omp_target): Rename to...
2682         (struct gomp_target): ...this.
2683         (struct gimple_statement_omp_task): Rename to...
2684         (struct gomp_task): ...this.
2685         (struct gimple_statement_omp_sections): Rename to...
2686         (struct gomp_sections): ...this.
2687         (struct gimple_statement_omp_continue): Rename to...
2688         (struct gomp_continue): ...this.
2689         (struct gimple_statement_omp_single): Rename to...
2690         (struct gomp_single): ...this.
2691         (struct gimple_statement_omp_teams): Rename to...
2692         (struct gomp_teams): ...this.
2693         (struct gimple_statement_omp_atomic_load): Rename to...
2694         (struct gomp_atomic_load): ...this.
2695         (struct gimple_statement_omp_atomic_store :): Rename to...
2696         (struct gomp_atomic_store :): ...this.
2697         (struct gimple_statement_transaction): Rename to...
2698         (struct gtransaction): ...this.
2699         (struct gcond): New subclass.
2700         (struct gdebug): New subclass.
2701         (struct ggoto): New subclass.
2702         (struct glabel): New subclass.
2703         (struct gswitch): New subclass.
2704         (struct gassign): New subclass.
2705         (struct greturn): New subclass.
2706         (is_a_helper <gimple_statement_asm *>::test): Rename to...
2707         (is_a_helper <gasm *>::test): ...this.
2708         (is_a_helper <gimple_statement_bind *>::test): Rename to...
2709         (is_a_helper <gbind *>::test): ...this.
2710         (is_a_helper <gassign *>::test): New.
2711         (is_a_helper <gimple_statement_call *>::test): Rename to...
2712         (is_a_helper <gcall *>::test): ...this.
2713         (is_a_helper <gimple_statement_catch *>::test): Rename to...
2714         (is_a_helper <gcatch *>::test): ...this.
2715         (is_a_helper <gimple_statement_resx *>::test): Rename to...
2716         (is_a_helper <gresx *>::test): ...this.
2717         (is_a_helper <gcond *>::test): New.
2718         (is_a_helper <gdebug *>::test): New.
2719         (is_a_helper <ggoto *>::test): New.
2720         (is_a_helper <glabel *>::test): New.
2721         (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
2722         (is_a_helper <geh_dispatch *>::test): ...this.
2723         (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
2724         (is_a_helper <geh_else *>::test): ...this.
2725         (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
2726         (is_a_helper <geh_filter *>::test): ...this.
2727         (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
2728         (is_a_helper <geh_mnt *>::test): ...this.
2729         (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
2730         (is_a_helper <gomp_atomic_load *>::test): ...this.
2731         (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
2732         (is_a_helper <gomp_atomic_store *>::test): ...this.
2733         (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
2734         (is_a_helper <gomp_continue *>::test): ...this.
2735         (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
2736         (is_a_helper <gomp_critical *>::test): ...this.
2737         (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
2738         (is_a_helper <gomp_for *>::test): ...this.
2739         (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
2740         (is_a_helper <gomp_parallel *>::test): ...this.
2741         (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
2742         (is_a_helper <gomp_target *>::test): ...this.
2743         (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
2744         (is_a_helper <gomp_sections *>::test): ...this.
2745         (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
2746         (is_a_helper <gomp_single *>::test): ...this.
2747         (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
2748         (is_a_helper <gomp_teams *>::test): ...this.
2749         (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
2750         (is_a_helper <gomp_task *>::test): ...this.
2751         (is_a_helper <gimple_statement_phi *>::test): Rename to...
2752         (is_a_helper <gphi *>::test): ...this.
2753         (is_a_helper <gimple_statement_transaction *>::test): Rename to...
2754         (is_a_helper <gtransaction *>::test): ...this.
2755         (is_a_helper <greturn *>::test): New.
2756         (is_a_helper <gswitch *>::test): New.
2757         (is_a_helper <gimple_statement_try *>::test): Rename to...
2758         (is_a_helper <gtry *>::test): ...this.
2759         (is_a_helper <const gimple_statement_asm *>::test): Rename to...
2760         (is_a_helper <const gasm *>::test): ...this.
2761         (is_a_helper <const gimple_statement_bind *>::test): Rename to...
2762         (is_a_helper <const gbind *>::test): ...this.
2763         (is_a_helper <const gimple_statement_call *>::test): Rename to...
2764         (is_a_helper <const gcall *>::test): ...this.
2765         (is_a_helper <const gimple_statement_catch *>::test): Rename to...
2766         (is_a_helper <const gcatch *>::test): ...this.
2767         (is_a_helper <const gimple_statement_resx *>::test): Rename to...
2768         (is_a_helper <const gresx *>::test): ...this.
2769         (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
2770         (is_a_helper <const geh_dispatch *>::test): ...this.
2771         (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
2772         (is_a_helper <const geh_filter *>::test): ...this.
2773         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
2774         Rename to...
2775         (is_a_helper <const gomp_atomic_load *>::test): ...this.
2776         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
2777         Rename to...
2778         (is_a_helper <const gomp_atomic_store *>::test): ...this.
2779         (is_a_helper <const gimple_statement_omp_continue *>::test):
2780         Rename to...
2781         (is_a_helper <const gomp_continue *>::test): ...this.
2782         (is_a_helper <const gimple_statement_omp_critical *>::test):
2783         Rename to...
2784         (is_a_helper <const gomp_critical *>::test): ...this.
2785         (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
2786         (is_a_helper <const gomp_for *>::test): ...this.
2787         (is_a_helper <const gimple_statement_omp_parallel *>::test):
2788         Rename to...
2789         (is_a_helper <const gomp_parallel *>::test): ...this.
2790         (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
2791         (is_a_helper <const gomp_target *>::test): ...this.
2792         (is_a_helper <const gimple_statement_omp_sections *>::test):
2793         Rename to...
2794         (is_a_helper <const gomp_sections *>::test): ...this.
2795         (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
2796         (is_a_helper <const gomp_single *>::test): ...this.
2797         (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
2798         (is_a_helper <const gomp_teams *>::test): ...this.
2799         (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
2800         (is_a_helper <const gomp_task *>::test): ...this.
2801         (is_a_helper <const gimple_statement_phi *>::test): Rename to...
2802         (is_a_helper <const gphi *>::test): ...this.
2803         (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
2804         (is_a_helper <const gtransaction *>::test): ...this.
2805         (gimple_build_return): Strengthen return type to greturn *.
2806         (gimple_call_reset_alias_info): Require a gcall *.
2807         (gimple_build_call_vec): Return a gcall *.
2808         (gimple_build_call): Likewise.
2809         (gimple_build_call_valist): Likewise.
2810         (gimple_build_call_internal): Likewise.
2811         (gimple_build_call_internal_vec): Likewise.
2812         (gimple_build_call_from_tree): Likewise.
2813         (gimple_build_assign_stat): Return a gassign *.
2814         (gimple_build_assign_with_ops): Likewise.
2815         (gimple_build_cond): Return a gcond *.
2816         (gimple_build_cond_from_tree): Likewise.
2817         (gimple_cond_set_condition_from_tree): Require a gcond *.
2818         (gimple_build_label): Return a glabel *.
2819         (gimple_build_goto): Return a ggoto *.
2820         (gimple_build_bind): Return a gbind *.
2821         (gimple_build_asm_vec): Return a gasm *.
2822         (gimple_build_catch): Return a gcatch *.
2823         (gimple_build_eh_filter): Return a geh_filter *.
2824         (gimple_build_eh_must_not_throw): Return a geh_mnt *.
2825         (gimple_build_eh_else): Return a geh_else *.
2826         (gimple_build_try): Return a gtry *.
2827         (gimple_build_resx): Return a gresx *.
2828         (gimple_build_switch_nlabels): Return a gswitch *.
2829         (gimple_build_switch): Return a gswitch *.
2830         (gimple_build_eh_dispatch): Return a geh_dispatch *.
2831         (gimple_build_debug_bind_stat): Return a gdebug *.
2832         (gimple_build_debug_source_bind_stat): Return a gdebug *.
2833         (gimple_build_omp_critical): Return a gomp_critical *.
2834         (gimple_build_omp_for): Return a gomp_for *.
2835         (gimple_build_omp_parallel): Return a gomp_parallel *.
2836         (gimple_build_omp_task): Return a gomp_task *.
2837         (gimple_build_omp_continue): Return a gomp_continue *.
2838         (gimple_build_omp_sections): Return a gomp_sections *.
2839         (gimple_build_omp_single): Return a gomp_single *.
2840         (gimple_build_omp_target): Return a gomp_target *.
2841         (gimple_build_omp_teams): Return a gomp_teams *.
2842         (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
2843         (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
2844         (gimple_build_transaction): Return a gtransaction *.
2845         (gimple_call_arg_flags): Require a const gcall *.
2846         (gimple_call_return_flags): Likewise.
2847         (gimple_call_copy_skip_args): Require and return a gcall *.
2848         (gimple_asm_clobbers_memory_p): Require a const gasm *.
2849         (gimple_seq_first_stmt_as_a_bind): New.
2850         (gimple_assign_nontemporal_move_p): Require a const gassign *
2851         rather than a const_gimple.
2852         (gimple_call_internal_fn): Update for renaming to gcall.
2853         (gimple_call_fntype): Likewise.
2854         (gimple_call_set_fntype): Require a gcall * rather than a gimple.
2855         (gimple_call_set_fn): Likewise.
2856         (gimple_call_set_internal_fn): Likewise.
2857         (gimple_call_set_chain): Likewise.
2858         (gimple_call_set_tail): Likewise.
2859         (gimple_call_tail_p): Likewise.
2860         (gimple_call_set_return_slot_opt): Likewise.
2861         (gimple_call_return_slot_opt_p): Likewise.
2862         (gimple_call_set_from_thunk): Likewise.
2863         (gimple_call_from_thunk_p): Likewise.
2864         (gimple_call_set_va_arg_pack): Likewise.
2865         (gimple_call_va_arg_pack_p): Likewise.
2866         (gimple_call_set_nothrow): Likewise.
2867         (gimple_call_nothrow_p): Likewise.
2868         (gimple_call_set_alloca_for_var): Likewise.
2869         (gimple_call_alloca_for_var_p): Likewise.
2870         (gimple_call_use_set): Likewise.
2871         (gimple_call_clobber_set): Likewise.
2872         (gimple_call_return_type): Require a const gcall * rather than a
2873         const_gimple.
2874         (gimple_call_chain_ptr): Likewise.
2875         (gimple_call_copy_flags): Require a pair of gcall *.
2876         (gimple_cond_set_code): Require a gcond * rather than a gimple
2877         (gimple_cond_set_lhs): Likewise.
2878         (gimple_cond_set_rhs): Likewise.
2879         (gimple_cond_set_true_label): Likewise.
2880         (gimple_cond_set_false_label): Likewise.
2881         (gimple_cond_make_false): Likewise.
2882         (gimple_cond_make_true): Likewise.
2883         (gimple_cond_lhs_ptr): Require a const gcond * rather than a
2884         const_gimple.
2885         (gimple_cond_rhs_ptr): Likewise.
2886         (gimple_cond_true_label): Likewise.
2887         (gimple_cond_false_label): Likewise.
2888         (gimple_cond_true_p): Likewise.
2889         (gimple_cond_false_p): Likewise.
2890         (gimple_cond_set_condition): Likewise.
2891         (gimple_label_label): Require a const glabel *.
2892         (gimple_label_set_label): Require a glabel *.
2893         (gimple_goto_set_dest): Require a ggoto *.
2894         (gimple_bind_vars): Require a const gbind *.
2895         (gimple_bind_block): Likewise.
2896         (gimple_bind_set_vars): Require a gbind *.
2897         (gimple_bind_append_vars): Likewise.
2898         (gimple_bind_body_ptr): Likewise.
2899         (gimple_bind_body): Likewise.
2900         (gimple_bind_set_body): Likewise.
2901         (gimple_bind_add_stmt): Likewise.
2902         (gimple_bind_add_seq): Likewise.
2903         (gimple_bind_set_block): Likewise.
2904         (gimple_asm_ninputs): Require a const gasm *.
2905         (gimple_asm_noutputs): Likewise.
2906         (gimple_asm_nclobbers): Likewise.
2907         (gimple_asm_nlabels): Likewise.
2908         (gimple_asm_input_op): Likewise.
2909         (gimple_asm_input_op_ptr): Likewise.
2910         (gimple_asm_output_op): Likewise.
2911         (gimple_asm_output_op_ptr): Likewise.
2912         (gimple_asm_clobber_op): Likewise.
2913         (gimple_asm_label_op): Likewise.
2914         (gimple_asm_string): Likewise.
2915         (gimple_asm_volatile_p): Likewise.
2916         (gimple_asm_input_p): Likewise.
2917         (gimple_asm_set_input_op): Require a gasm *.
2918         (gimple_asm_set_output_op): Likewise.
2919         (gimple_asm_set_clobber_op): Likewise.
2920         (gimple_asm_set_label_op): Likewise.
2921         (gimple_asm_set_volatile): Likewise.
2922         (gimple_asm_set_input): Likewise.
2923         (gimple_catch_types): Require a const gcatch *.
2924         (gimple_catch_types_ptr): Require a gcatch *.
2925         (gimple_catch_handler_ptr): Likewise.
2926         (gimple_catch_handler): Likewise.
2927         (gimple_catch_set_types): Likewise.
2928         (gimple_catch_set_handler): Likewise.
2929         (gimple_eh_filter_types): Update for renaming of subclass to
2930         geh_filter.
2931         (gimple_eh_filter_types_ptr): Likewise.
2932         (gimple_eh_filter_failure_ptr): Likewise.
2933         (gimple_eh_filter_set_types): Require a geh_filter *.
2934         (gimple_eh_filter_set_failure): Likewise.
2935         (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
2936         (gimple_eh_must_not_throw_set_fndecl): Likewise.
2937         (gimple_eh_else_n_body_ptr): Require a geh_else *.
2938         (gimple_eh_else_n_body): Likewise.
2939         (gimple_eh_else_e_body_ptr): Likewise.
2940         (gimple_eh_else_e_body): Likewise.
2941         (gimple_eh_else_set_n_body): Likewise.
2942         (gimple_eh_else_set_e_body): Likewise.
2943         (gimple_try_set_kind): Require a gtry *.
2944         (gimple_try_set_catch_is_cleanup): Likewise.
2945         (gimple_try_set_eval): Likewise.
2946         (gimple_try_set_cleanup): Likewise.
2947         (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
2948         (gimple_try_cleanup_ptr): Likewise.
2949         (gimple_phi_capacity): Update for renaming of subclass to gphi.
2950         (gimple_phi_num_args): Likewise.
2951         (gimple_phi_result): Likewise.
2952         (gimple_phi_result_ptr): Likewise.
2953         (gimple_phi_arg): Likewise.
2954         (gimple_phi_set_result): Require a gphi *.
2955         (gimple_phi_set_arg): Likewise.
2956         (gimple_phi_arg_def_ptr): Likewise.
2957         (gimple_phi_arg_edge): Likewise.
2958         (gimple_phi_arg_location): Likewise.
2959         (gimple_phi_arg_location_from_edge): Likewise.
2960         (gimple_phi_arg_set_location): Likewise.
2961         (gimple_phi_arg_has_location): Likewise.
2962         (gimple_resx_region): Require a const gresx *.
2963         (gimple_resx_set_region): Require a gresx *.
2964         (gimple_eh_dispatch_region): Require a const geh_dispatch *.
2965         (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
2966         (gimple_switch_num_labels): Require a const gswitch *.
2967         (gimple_switch_set_num_labels): Likewise.
2968         (gimple_switch_index): Likewise.
2969         (gimple_switch_index_ptr): Likewise.
2970         (gimple_switch_label): Likewise.
2971         (gimple_switch_default_label): Likewise.
2972         (gimple_switch_set_index): Require a gswitch *.
2973         (gimple_switch_set_label): Likewise.
2974         (gimple_switch_set_default_label): Likewise.
2975         (gimple_omp_critical_name): Require a const gomp_critical *.
2976         (gimple_omp_critical_name_ptr): Require a gomp_critical *.
2977         (gimple_omp_critical_set_name): Likewise.
2978         (gimple_omp_for_set_kind): Require a gomp_for *.
2979         (gimple_omp_for_set_combined_p): Likewise.
2980         (gimple_omp_for_set_combined_into_p): Likewise.
2981         (gimple_omp_for_clauses): Update for renaming of subclass to
2982         gomp_for.
2983         (gimple_omp_for_clauses_ptr): Likewise.
2984         (gimple_omp_for_set_clauses): Likewise.
2985         (gimple_omp_for_collapse): Likewise.
2986         (gimple_omp_for_index): Likewise.
2987         (gimple_omp_for_index_ptr): Likewise.
2988         (gimple_omp_for_set_index): Likewise.
2989         (gimple_omp_for_initial): Likewise.
2990         (gimple_omp_for_initial_ptr): Likewise.
2991         (gimple_omp_for_set_initial): Likewise.
2992         (gimple_omp_for_final): Likewise.
2993         (gimple_omp_for_final_ptr): Likewise.
2994         (gimple_omp_for_set_final): Likewise.
2995         (gimple_omp_for_incr): Likewise.
2996         (gimple_omp_for_incr_ptr): Likewise.
2997         (gimple_omp_for_set_incr): Likewise.
2998         (gimple_omp_for_pre_body): Likewise.
2999         (gimple_omp_for_set_pre_body): Likewise.
3000         (gimple_omp_parallel_clauses): Update for renaming of subclass to
3001         gomp_parallel.
3002         (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
3003         (gimple_omp_parallel_set_clauses): Likewise.
3004         (gimple_omp_parallel_child_fn_ptr): Likewise.
3005         (gimple_omp_parallel_set_child_fn): Likewise.
3006         (gimple_omp_parallel_data_arg_ptr): Likewise.
3007         (gimple_omp_parallel_set_data_arg): Likewise.
3008         (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
3009         (gimple_omp_parallel_data_arg): Likewise.
3010         (gimple_omp_task_clauses): Update for renaming of subclass to
3011         gomp_task.
3012         (gimple_omp_task_clauses_ptr): Likewise.
3013         (gimple_omp_task_set_clauses): Likewise.
3014         (gimple_omp_task_child_fn): Likewise.
3015         (gimple_omp_task_child_fn_ptr): Likewise.
3016         (gimple_omp_task_set_child_fn): Likewise.
3017         (gimple_omp_task_data_arg): Likewise.
3018         (gimple_omp_task_data_arg_ptr): Likewise.
3019         (gimple_omp_task_set_data_arg): Likewise.
3020         (gimple_omp_taskreg_clauses): Whitespace fixes.
3021         (gimple_omp_taskreg_clauses_ptr): Likewise.
3022         (gimple_omp_taskreg_set_clauses): Likewise.
3023         (gimple_omp_taskreg_child_fn): Likewise.
3024         (gimple_omp_taskreg_child_fn_ptr): Likewise.
3025         (gimple_omp_taskreg_set_child_fn): Likewise.
3026         (gimple_omp_taskreg_data_arg): Likewise.
3027         (gimple_omp_taskreg_data_arg_ptr): Likewise.
3028         (gimple_omp_taskreg_set_data_arg): Likewise.
3029         (gimple_omp_task_copy_fn): Update for renaming of subclass to
3030         gomp_task.
3031         (gimple_omp_task_copy_fn_ptr): Likewise.
3032         (gimple_omp_task_set_copy_fn): Likewise.
3033         (gimple_omp_task_arg_size): Likewise.
3034         (gimple_omp_task_arg_size_ptr): Likewise.
3035         (gimple_omp_task_set_arg_size): Likewise.
3036         (gimple_omp_task_arg_align): Likewise.
3037         (gimple_omp_task_arg_align_ptr): Likewise.
3038         (gimple_omp_task_set_arg_align): Likewise.
3039         (gimple_omp_single_clauses): Update for renaming of subclass to
3040         gomp_single.
3041         (gimple_omp_single_clauses_ptr): Likewise.
3042         (gimple_omp_single_set_clauses): Likewise.
3043         (gimple_omp_target_clauses): Update for renaming of subclass to
3044         gomp_target.
3045         (gimple_omp_target_clauses_ptr): Likewise.
3046         (gimple_omp_target_set_clauses): Require a gomp_target *.
3047         (gimple_omp_target_set_kind): Likewise.
3048         (gimple_omp_target_child_fn_ptr): Likewise.
3049         (gimple_omp_target_set_child_fn): Likewise.
3050         (gimple_omp_target_data_arg_ptr): Likewise.
3051         (gimple_omp_target_set_data_arg): Likewise.
3052         (gimple_omp_target_child_fn): Require a const gomp_target *.
3053         (gimple_omp_target_data_arg): Likewise.
3054         (gimple_omp_teams_clauses): Update for renaming of subclass to
3055         gomp_teams.
3056         (gimple_omp_teams_clauses_ptr): Likewise.
3057         (gimple_omp_teams_set_clauses): Require a gomp_teams *.
3058         (gimple_omp_sections_clauses): Update for renaming of subclass to
3059         gomp_sections.
3060         (gimple_omp_sections_clauses_ptr): Likewise.
3061         (gimple_omp_sections_set_clauses): Likewise.
3062         (gimple_omp_sections_control): Likewise.
3063         (gimple_omp_sections_control_ptr): Likewise.
3064         (gimple_omp_sections_set_control): Likewise.
3065         (gimple_omp_for_set_cond): Likewise.
3066         (gimple_omp_for_cond): Likewise.
3067         (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
3068         (gimple_omp_atomic_store_val_ptr): Likewise.
3069         (gimple_omp_atomic_load_set_lhs): Likewise.
3070         (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
3071         (gimple_omp_atomic_load_lhs): Likewise.
3072         (gimple_omp_atomic_load_rhs): Likewise.
3073         (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
3074         (gimple_omp_atomic_load_set_rhs): Likewise.
3075         (gimple_omp_atomic_load_rhs_ptr): Likewise.
3076         (gimple_omp_continue_control_def): Require a const gomp_continue *.
3077         (gimple_omp_continue_control_use): Likewise.
3078         (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
3079         (gimple_omp_continue_set_control_def): Likewise.
3080         (gimple_omp_continue_control_use_ptr): Likewise.
3081         (gimple_omp_continue_set_control_use): Likewise.
3082         (gimple_transaction_body_ptr): Require a gtransaction *.
3083         (gimple_transaction_body): Likewise.
3084         (gimple_transaction_label_ptr): Likewise.
3085         (gimple_transaction_label): Require a const gtransaction *.
3086         (gimple_transaction_subcode): Likewise.
3087         (gimple_transaction_set_body): Require a gtransaction *.
3088         (gimple_transaction_set_label): Likewise.
3089         (gimple_transaction_set_subcode): Likewise.
3090         (gimple_return_retval_ptr): Require a const greturn *.
3091         (gimple_return_retval): Likewise.
3092         (gimple_return_set_retval): Require a greturn *.
3093         (gimple_expr_type): Introduce local "call_stmt" and use in place of
3094         "stmt" for typesafety.
3096         * asan.c: Use gimple subclasses.
3097         * auto-profile.c: Likewise.
3098         * builtins.c: Likewise.
3099         * builtins.h: Likewise.
3100         * cfgexpand.c: Likewise.
3101         * cfgloop.c: Likewise.
3102         * cfgloopmanip.c: Likewise.
3103         * cgraph.c: Likewise.
3104         * cgraph.h: Likewise.
3105         * cgraphbuild.c: Likewise.
3106         * cgraphclones.c: Likewise.
3107         * cgraphunit.c: Likewise.
3108         * expr.h: Likewise.
3109         * gimple-builder.c: Likewise.
3110         * gimple-builder.h: Likewise.
3111         * gimple-fold.c: Likewise.
3112         * gimple-low.c: Likewise.
3113         * gimple-pretty-print.c: Likewise.
3114         * gimple-ssa-isolate-paths.c: Likewise.
3115         * gimple-ssa-strength-reduction.c: Likewise.
3116         * gimple-streamer-in.c: Likewise.
3117         * gimple-streamer-out.c: Likewise.
3118         * gimple-walk.c: Likewise.
3119         * gimplify-me.c: Likewise.
3120         * gimplify.c: Likewise.
3121         * gimplify.h: Likewise.
3122         * graphite-scop-detection.c: Likewise.
3123         * graphite-sese-to-poly.c: Likewise.
3124         * internal-fn.c: Likewise.
3125         * internal-fn.def:: Likewise.
3126         * internal-fn.h: Likewise.
3127         * ipa-icf-gimple.c: Likewise.
3128         * ipa-icf-gimple.h: Likewise.
3129         * ipa-icf.c: Likewise.
3130         * ipa-inline-analysis.c: Likewise.
3131         * ipa-prop.c: Likewise.
3132         * ipa-prop.h: Likewise.
3133         * ipa-pure-const.c: Likewise.
3134         * ipa-split.c: Likewise.
3135         * lto-streamer-in.c: Likewise.
3136         * lto-streamer-out.c: Likewise.
3137         * omp-low.c: Likewise.
3138         * predict.c: Likewise.
3139         * sanopt.c: Likewise.
3140         * sese.c: Likewise.
3141         * ssa-iterators.h: Likewise.
3142         * stmt.c: Likewise.
3143         * trans-mem.c: Likewise.
3144         * tree-call-cdce.c: Likewise.
3145         * tree-cfg.c: Likewise.
3146         * tree-cfg.h: Likewise.
3147         * tree-cfgcleanup.c: Likewise.
3148         * tree-chkp.c: Likewise.
3149         * tree-chkp.h: Likewise.
3150         * tree-complex.c: Likewise.
3151         * tree-data-ref.c: Likewise.
3152         * tree-dfa.c: Likewise.
3153         * tree-eh.c: Likewise.
3154         * tree-eh.h: Likewise.
3155         * tree-emutls.c: Likewise.
3156         * tree-if-conv.c: Likewise.
3157         * tree-inline.c: Likewise.
3158         * tree-inline.h: Likewise.
3159         * tree-into-ssa.c: Likewise.
3160         * tree-into-ssa.h: Likewise.
3161         * tree-loop-distribution.c: Likewise.
3162         * tree-nrv.c: Likewise.
3163         * tree-object-size.c: Likewise.
3164         * tree-outof-ssa.c: Likewise.
3165         * tree-parloops.c: Likewise.
3166         * tree-phinodes.c: Likewise.
3167         * tree-phinodes.h: Likewise.
3168         * tree-predcom.c: Likewise.
3169         * tree-profile.c: Likewise.
3170         * tree-scalar-evolution.c: Likewise.
3171         * tree-scalar-evolution.h
3172         * tree-sra.cn_function):
3173         * tree-ssa-alias.c: Likewise.
3174         * tree-ssa-alias.h: Likewise.
3175         * tree-ssa-ccp.c: Likewise.
3176         * tree-ssa-coalesce.c: Likewise.
3177         * tree-ssa-copy.c: Likewise.
3178         * tree-ssa-copyrename.c: Likewise.
3179         * tree-ssa-dce.c: Likewise.
3180         * tree-ssa-dom.c: Likewise.
3181         * tree-ssa-forwprop.c: Likewise.
3182         * tree-ssa-ifcombine.c: Likewise.
3183         * tree-ssa-live.c: Likewise.
3184         * tree-ssa-loop-im.c: Likewise.
3185         * tree-ssa-loop-ivcanon.c: Likewise.
3186         * tree-ssa-loop-ivopts.c: Likewise.
3187         * tree-ssa-loop-manip.c: Likewise.
3188         * tree-ssa-loop-niter.c: Likewise.
3189         * tree-ssa-loop-prefetch.c: Likewise.
3190         * tree-ssa-loop-unswitch.c: Likewise.
3191         * tree-ssa-math-opts.c: Likewise.
3192         * tree-ssa-operands.c: Likewise.
3193         * tree-ssa-phiopt.c: Likewise.
3194         * tree-ssa-phiprop.c: Likewise.
3195         * tree-ssa-pre.c: Likewise.
3196         * tree-ssa-propagate.c: Likewise.
3197         * tree-ssa-propagate.h: Likewise.
3198         * tree-ssa-reassoc.c: Likewise.
3199         * tree-ssa-sccvn.c: Likewise.
3200         * tree-ssa-sccvn.h: Likewise.
3201         * tree-ssa-sink.c: Likewise.
3202         * tree-ssa-strlen.c
3203         * tree-ssa-structalias.c
3204         * tree-ssa-tail-merge.c: Likewise.
3205         * tree-ssa-ter.c: Likewise.
3206         * tree-ssa-threadedge.c: Likewise.
3207         * tree-ssa-threadedge.h: Likewise.
3208         * tree-ssa-threadupdate.c: Likewise.
3209         * tree-ssa-uncprop.c: Likewise.
3210         * tree-ssa-uninit.c: Likewise.
3211         * tree-ssa.c: Likewise.
3212         * tree-stdarg.c: Likewise.
3213         * tree-switch-conversion.c: Likewise.
3214         * tree-tailcall.c: Likewise.
3215         * tree-vect-data-refs.c: Likewise.
3216         * tree-vect-generic.c: Likewise.
3217         * tree-vect-loop-manip.c: Likewise.
3218         * tree-vect-loop.c: Likewise.
3219         * tree-vect-patterns.c: Likewise.
3220         * tree-vect-slp.c: Likewise.
3221         * tree-vect-stmts.c: Likewise.
3222         * tree-vectorizer.h: Likewise.
3223         * tree-vrp.c: Likewise.
3224         * tree.c: Likewise.
3225         * ubsan.c: Likewise.
3226         * value-prof.c: Likewise.
3227         * value-prof.h: Likewise.
3228         * vtable-verify.c: Likewise.
3230 2014-11-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
3232         * config/rs6000/constraints.md: Avoid signed integer overflows.
3233         * config/rs6000/predicates.md: Likewise.
3235 2014-11-19  Renlin Li  <Renlin.Li@arm.com>
3237         PR target/63424
3238         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
3240 2014-11-19  Renlin Li  <Renlin.Li@arm.com>
3242         PR middle-end/63762
3243         * ira.c (ira): Update preferred class.
3245 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
3247         * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
3248         (gimple_assign_set_rhs_with_ops_1): Renamed to ...
3249         (gimple_assign_set_rhs_with_ops): ... this.  Adjust binary arg
3250         inline overload to use it.  Add unary arg overload.
3251         * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
3252         (gimple_assign_set_rhs_from_tree): Use
3253         gimple_assign_set_rhs_with_ops instead of
3254         gimple_assign_set_rhs_with_ops_1.
3255         (gimple_assign_set_rhs_with_ops_1): Renamed to ...
3256         (gimple_assign_set_rhs_with_ops): ... this.
3257         * ipa-split.c (split_function): Remove last NULL argument
3258         from gimple_build_assign_with_ops call.
3259         * tree-ssa-loop-im.c
3260         (move_computations_dom_walker::before_dom_children): Likewise.
3261         * tsan.c (instrument_builtin_call): Likewise.
3262         * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
3263         vectorizable_conversion, vectorizable_load): Likewise.
3264         * tree-vect-loop.c (vect_is_simple_reduction_1,
3265         get_initial_def_for_induction): Likewise.
3266         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
3267         * tree-vect-patterns.c (vect_handle_widen_op_by_const,
3268         vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
3269         vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
3270         vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
3271         vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
3272         adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
3273         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
3274         neg_replacement): Likewise.
3275         * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
3276         maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
3277         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3278         * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
3279         expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
3280         simd_clone_adjust): Likewise.
3281         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
3282         * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
3283         replace_one_candidate): Likewise.
3284         * gimple-builder.c (build_type_cast): Likewise.
3285         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
3286         (forward_propagate_addr_expr_1): Remove last NULL argument
3287         from gimple_assign_set_rhs_with_ops call.
3288         (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
3289         instead of gimple_assign_set_rhs_with_ops_1.
3290         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
3291         argument from gimple_build_assign_with_ops call.
3292         (repropagate_negates): Remove last NULL argument from
3293         gimple_assign_set_rhs_with_ops call.
3294         * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
3295         last NULL argument from gimple_build_assign_with_ops call.
3296         (instrument_bool_enum_load): Likewise.  Remove last NULL argument
3297         from gimple_assign_set_rhs_with_ops call.
3298         * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
3299         Remove last NULL argument from gimple_build_assign_with_ops call.
3300         (bswap_replace): Likewise.  Use gimple_assign_set_rhs_with_ops instead
3301         of gimple_assign_set_rhs_with_ops_1.
3302         (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
3303         instead of gimple_assign_set_rhs_with_ops_1.
3304         * gimple-fold.c (replace_stmt_with_simplification): Likewise.
3305         (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
3306         from gimple_build_assign_with_ops call.
3307         * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
3308         from gimple_assign_set_rhs_with_ops call.
3309         * tree-vrp.c (simplify_truth_ops_using_ranges,
3310         simplify_bit_ops_using_ranges): Remove last NULL argument from
3311         gimple_assign_set_rhs_with_ops call.
3312         (simplify_float_conversion_using_ranges,
3313         simplify_internal_call_using_ranges): Remove last NULL argument from
3314         gimple_build_assign_with_ops call.
3316 2014-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
3318         PR target/61915
3319         * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
3320         cost.
3322 2014-11-19  Marek Polacek  <polacek@redhat.com>
3324         PR sanitizer/63690
3325         * ubsan.c (instrument_object_size): Check for MEM_REF.
3327 2014-11-19  Ilya Verbin  <ilya.verbin@intel.com>
3329         PR regression/63868
3330         * cgraph.c (cgraph_node::create): Guard g->have_offload with
3331         ifdef ENABLE_OFFLOADING.
3332         * omp-low.c (create_omp_child_function): Likewise.
3333         (expand_omp_target): Guard node->mark_force_output and offload_funcs
3334         with ifdef ENABLE_OFFLOADING.
3335         * varpool.c (varpool_node::get_create): Guard g->have_offload and
3336         offload_vars with ifdef ENABLE_OFFLOADING.
3338 2014-11-19  Felix Yang  <felix.yang@huawei.com>
3339             Shanyao Chen  <chenshanyao@huawei.com>
3341         PR target/59593
3342         * config/arm/arm.md (define_attr "arch"): Add v6t2.
3343         (define_attr "arch_enabled"): Add test for the above.
3344         (*movhi_insn_arch4): Add new alternative.
3346 2014-11-19  Richard Henderson  <rth@redhat.com>
3348         * c-family/c-common.c (c_common_reswords): Add
3349         __builtin_call_with_static_chain.
3350         * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
3351         * c/c-parser.c (c_parser_postfix_expression): Handle it.
3352         * doc/extend.texi (__builtin_call_with_static_chain): Document it.
3354         * calls.c (prepare_call_address): Allow decl or type for first arg.
3355         (expand_call): Pass type to prepare_call_address if no decl.
3356         * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
3357         the function doesn't use it; fold it otherwise.
3358         * gimplify.c (gimplify_call_expr): Gimplify the static chain.
3359         * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
3360         function calls.
3362         * targhooks.c (default_static_chain): Remove check for
3363         DECL_STATIC_CHAIN.
3364         * config/moxie/moxie.c (moxie_static_chain): Likewise.
3365         * config/i386/i386.c (ix86_static_chain): Allow decl or type
3366         as the first argument.
3367         * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
3368         of the unused first parameter.
3369         * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
3370         may be a type.
3371         * target.def (static_chain): Likewise.
3373 2014-11-19  Renlin Li  <renlin.li@arm.com>
3375     * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_FP_FAST,
3376         __ARM_FEATURE_FMA, __ARM_FP, __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
3378 2014-11-19  Marek Polacek  <polacek@redhat.com>
3380         PR sanitizer/63879
3381         * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
3382         !TYPE_OVERFLOW_SANITIZED.
3383         (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
3384         does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
3385         is 0.
3387 2014-11-19  Ilya Tocar  <ilya.tocar@intel.com>
3389         * collect2.c (main): Don't call fatal_error before
3390         diagnostic_initialize.
3391         * lto-wrapper.c (main): Likewise.
3393 2014-11-19  Tom de Vries  <tom@codesourcery.com>
3395         PR tree-optimization/62167
3396         * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
3397         conservatively.
3398         (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
3399         assigns.
3401 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
3403         PR tree-optimization/63915
3404         * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
3405         true instead of false as last argument to gsi_replace.
3407         PR sanitizer/63520
3408         * internal-fn.c (expand_ubsan_result_store): New function.
3409         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
3410         Use it instead of just emit_move_insn.
3412 2014-11-19  Richard Biener  <rguenther@suse.de>
3414         PR tree-optimization/63844
3415         * omp-low.c (fixup_child_record_type): Use a restrict qualified
3416         referece type for the receiver parameter.
3418 2014-11-19  Jakub Jelinek  <jakub@redhat.com>
3420         PR sanitizer/63913
3421         * ubsan.c: Include tree-eh.h.
3422         (instrument_bool_enum_load): Handle loads that can throw.
3424         PR rtl-optimization/63843
3425         * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
3426         optimization of ashiftrt of subreg of lshiftrt, check that code
3427         is ASHIFTRT.
3429 2014-11-18  Andrew MacLeod  <amacleod@redhat.com>
3431         * attribs.c (decl_attributes): Remove always true condition,
3432         TREE_TYPE(x) will never compare equal to a TYPE_DECL.
3434 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3436         PR target/63937
3437         * target.def (use_by_pieces_infrastructure_p): Take unsigned
3438         HOST_WIDE_INT as the size parameter.
3439         * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
3440         * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
3441         * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
3442         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
3443         * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
3444         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
3445         * config/aarch64/aarch64.c
3446         (aarch64_use_by_pieces_infrastructure_p)): Likewise.
3447         * doc/tm.texi: Regenerate.
3449 2014-11-18  Jan Hubicka  <hubicka@ucw.cz>
3451         * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
3452         (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
3453         (ipa_get_indirect_edge_target_1): Use opt_for_fn.
3454         (good_cloning_opportunity_p): Likewise.
3455         (ipa-cp gate): Enable ipa-cp with LTO.
3456         * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
3457         * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
3458         inheritance.
3459         * ipa-inline-transform.c (inline_transform): Check if there are inlines
3460         to apply even at -O0.
3461         * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
3462         (analyze_functions): Build type inheritance graph.
3463         * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
3464         (want_early_inline_function_p, want_inline_small_function_p):
3465         Likewise.
3466         (check_callers): Likewise.
3467         (edge_badness): Likewise.
3468         (inline_small_functions): Always be ready for indirect inlining
3469         to happend.
3470         (ipa_inline): Always use want_inline_function_to_all_callers_p.
3471         (early_inline_small_functions): Use opt_for_fn.
3472         * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
3473         (estimate_function_body_sizes): Likewise.
3474         (compute_inline_parameters): Likewise.
3475         (estimate_edge_devirt_benefit): Likewise.
3476         (inline_analyze_function): Likewise.
3477         * ipa-devirt.c (ipa_devirt): Likewise.
3478         (gate): Use in_lto_p.
3479         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
3480         (try_make_edge_direct_virtual_call): Likewise.
3481         (update_indirect_edges_after_inlining): Likewise.
3482         (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
3483         * common.opt (findirect-inlining): Turn into optimization.
3484         * ipa-pure-const.c (add_new_function): Use opt_for_fn.
3485         (pure_const_generate_summary): Likewise.
3486         (gate_pure_const): Always enable with in_lto_p.
3488 2014-11-18  Maciej W. Rozycki  <macro@codesourcery.com>
3490         * config/mips/mips.md (compression): Add `micromips32' setting.
3491         (enabled, length): Handle it.
3492         (shift_compression): Replace `micromips' with `micromips32' in
3493         the `compression' attribute.
3494         (*add<mode>3, sub<mode>3): Likewise.
3496 2014-11-18  Maciej W. Rozycki  <macro@codesourcery.com>
3498         * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
3499         range, a jump otherwise.
3501 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3503         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
3504         Split into...
3505         (cortex_a15_gp_to_vfp): ...This.
3506         (cortex_a15_fp_to_gp): ...And this.
3507         Define and comment bypass from vfp operations to fp->gp moves.
3509 2014-11-18  Martin Liska  <mliska@suse.cz>
3511         * var-tracking.c (vt_find_locations): New fibonacci_node is used.
3513 2014-11-18  Martin Liska  <mliska@suse.cz>
3515         * bt-load.c (add_btr_def): New fibonacci_heap is used.
3516         (migrate_btr_defs): Likewise.
3518 2014-11-18  Martin Liska  <mliska@suse.cz>
3520         * tracer.c (tail_duplicate): New fibonacci_heap class is used.
3522 2014-11-18  Martin Liska  <mliska@suse.cz>
3524         * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
3525         (find_traces): Likewise.
3526         (find_traces_1_round): Likewise.
3528 2014-11-18  Martin Liska  <mliska@suse.cz>
3530         * fibonacci_heap.h: New file.
3531         (fibonacci_heap::insert): Created from fibheap_insert.
3532         (fibonacci_heap::empty): Created from fibheap_empty.
3533         (fibonacci_heap::nodes): Created from fibheap_nodes.
3534         (fibonacci_heap::min_key): Created from fibheap_min_key.
3535         (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
3536         (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
3537         (fibonacci_heap::extract_min): Created from fibheap_extract_min.
3538         (fibonacci_heap::min): Created from fibheap_min.
3539         (fibonacci_heap::replace_data): Created from fibheap_replace_data.
3540         (fibonacci_heap::delete_node): Created from fibheap_delete_node.
3541         (fibonacci_heap::union_with): Created from fibheap_union.
3542         * ipa-inline.c (update_edge_key): New heap API is used.
3543         (update_caller_keys): Likewise.
3544         (update_callee_keys): Likewise.
3545         (lookup_recursive_calls): Likewise.
3546         (recursive_inlining): Likewise.
3547         (add_new_edges_to_heap): Likewise.
3548         (heap_edge_removal_hook): Likewise.
3549         (inline_small_functions): Likewise.
3551 2014-11-18  Marek Polacek  <polacek@redhat.com>
3553         PR sanitizer/63866
3554         * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
3555         put it into TYPE_NAME and TYPE_STUB_DECL.
3556         * ubsan.c (ubsan_type_descriptor_type): New variable.
3557         Function renamed to ...
3558         (ubsan_get_type_descriptor_type): ... this.  Cache
3559         return value in ubsan_type_descriptor_type variable.
3560         Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
3561         TYPE_NAME and TYPE_STUB_DECL.
3562         (ubsan_get_source_location_type): Create a TYPE_DECL for
3563         "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
3564         (ubsan_type_descriptor, ubsan_create_data): Call
3565         ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
3566         Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
3568 2014-11-18  Felix Yang  <felix.yang@huawei.com>
3570         * config/aarch64/aarch64.c (doloop_end): New pattern.
3571         * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
3573 2014-11-18  Jason Merrill  <jason@redhat.com>
3575         * tree.c (warn_deprecated_use): Show declaration with inform.
3577 2014-11-18  Richard Biener  <rguenther@suse.de>
3579         PR tree-optimization/63914
3580         * tree-ssa-ccp.c (canonicalize_value): Remove float value
3581         canonicalization.
3582         (valid_lattice_transition): Allow (partial) transition
3583         from NaN to non-NaN if !HONOR_NANS.
3584         (set_lattice_value): Check for valid lattice transitions
3585         only when checking is enabled.
3587 2014-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3589         * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
3591 2014-11-18  Christophe Lyon  <christophe.lyon@linaro.org>
3593         * config/arm/neon-testgen.ml (emit_prologue): Handle new
3594         compile_test_optim argument.
3595         (emit_automatics): Rename to emit_variables. Support variable
3596         indentation of its output.
3597         (compile_test_optim): New function.
3598         (test_intrinsic): Call compile_test_optim.
3599         * config/arm/neon.ml (features): Add Compiler_optim.
3600         (ops): Add Compiler_optim feature to Vbic and Vorn.
3601         (type_in_crypto_only): Replace 'or' by '||'.
3602         (reinterp): Likewise.
3603         (reinterpq): Likewise.
3605 2014-11-18  Alan Lawrence  <alan.lawrence@arm.com>
3607         * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
3608         vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
3609         vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
3610         vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
3611         vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
3612         vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
3613         pointer dereference.
3615 2014-11-18  Marc Glisse  <marc.glisse@inria.fr>
3617         * tree.c (element_mode, integer_truep): New functions.
3618         * tree.h (element_mode, integer_truep): Declare them.
3619         * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
3620         fold_cond_expr_with_comparison, fold_real_zero_addition_p,
3621         fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
3622         fold_strip_sign_ops): Use element_mode.
3623         (fold_binary_loc): Use element_mode and element_precision.
3624         * match.pd: Use integer_truep, element_mode, element_precision,
3625         VECTOR_TYPE_P and build_one_cst. Extend some transformations to
3626         vectors. Simplify A/-A.
3628 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3630         * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
3631         manual swapping implementation.
3632         (movcond_addsi): Likewise.
3633         * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
3634         (arm_select_dominance_cc_mode): Likewise.
3635         (arm_reload_out_hi): Likewise.
3636         (gen_operands_ldrd_strd): Likewise.
3637         (output_move_double): Likewise.
3638         (arm_print_operand_address): Likewise.
3639         (thumb_output_move_mem_multiple): Likewise.
3640         (SWAP_RTX): Delete.
3642 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3644         * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
3645         (COPYSIGNF_QUALIFIERS): Likewise.
3646         (CREATE_QUALIFIERS): Likewise.
3647         (DUP_QUALIFIERS): Likewise.
3648         (FLOAT_WIDEN_QUALIFIERS): Likewise.
3649         (FLOAT_NARROW_QUALIFIERS): Likewise.
3650         (REINTERP_QUALIFIERS): Likewise.
3651         (RINT_QUALIFIERS): Likewise.
3652         (SPLIT_QUALIFIERS): Likewise.
3653         (FIXCONV_QUALIFIERS): Likewise.
3654         (SCALARMUL_QUALIFIERS): Likewise.
3655         (SCALARMULL_QUALIFIERS): Likewise.
3656         (SCALARMULH_QUALIFIERS): Likewise.
3657         (SELECT_QUALIFIERS): Likewise.
3658         (VTBX_QUALIFIERS): Likewise.
3659         (SHIFTIMM_QUALIFIERS): Likewise.
3660         (SCALARMAC_QUALIFIERS): Likewise.
3661         (LANEMUL_QUALIFIERS): Likewise.
3662         (LANEMULH_QUALIFIERS): Likewise.
3663         (LANEMULL_QUALIFIERS): Likewise.
3664         (SHIFTACC_QUALIFIERS): Likewise.
3665         (SHIFTINSERT_QUALIFIERS): Likewise.
3666         (VTBL_QUALIFIERS): Likewise.
3667         (LOADSTRUCT_QUALIFIERS): Likewise.
3668         (LOADSTRUCTLANE_QUALIFIERS): Likewise.
3669         (STORESTRUCT_QUALIFIERS): Likewise.
3670         (STORESTRUCTLANE_QUALIFIERS): Likewise.
3671         (neon_builtin_type_mode): Delete.
3672         (v8qi_UP): Map to V8QImode.
3673         (v8qi_UP): Map to V8QImode.
3674         (v4hi_UP): Map to V4HImode.
3675         (v4hf_UP): Map to V4HFmode.
3676         (v2si_UP): Map to V2SImode.
3677         (v2sf_UP): Map to V2SFmode.
3678         (di_UP): Map to DImode.
3679         (v16qi_UP): Map to V16QImode.
3680         (v8hi_UP): Map to V8HImode.
3681         (v4si_UP): Map to V4SImode.
3682         (v4sf_UP): Map to V4SFmode.
3683         (v2di_UP): Map to V2DImode.
3684         (ti_UP): Map to TImode.
3685         (ei_UP): Map to EImode.
3686         (oi_UP): Map to OImode.
3687         (neon_itype): Delete.
3688         (neon_builtin_datum): Remove itype, make mode a machine_mode.
3689         (VAR1): Update accordingly.
3690         (arm_init_neon_builtins): Use machine_mode directly.
3691         (neon_dereference_pointer): Likewise.
3692         (arm_expand_neon_args): Use qualifiers to decide operand types.
3693         (arm_expand_neon_builtin): Likewise.
3694         * config/arm/arm_neon_builtins.def: Remap operation type for
3695         many builtins.
3697 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3699         * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
3700         (enum arm_simd_type): Likewise.
3701         (struct arm_simd_type_info): Likewise
3702         (arm_mangle_builtin_scalar_type): Likewise.
3703         (arm_mangle_builtin_vector_type): Likewise.
3704         (arm_mangle_builtin_type): Likewise.
3705         (arm_simd_builtin_std_type): Likewise.
3706         (arm_lookup_simd_builtin_type): Likewise.
3707         (arm_simd_builtin_type): Likewise.
3708         (arm_init_simd_builtin_types): Likewise.
3709         (arm_init_simd_builtin_scalar_types): Likewise.
3710         (arm_init_neon_builtins): Rewrite using qualifiers.
3711         * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
3712         * config/arm/arm-simd-builtin-types.def: New file.
3713         * config/arm/t-arm (arm-builtins.o): Depend on it.
3714         * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
3715         * config/arm/arm_neon.h (int8x8_t): Use new internal type.
3716         (int16x4_t): Likewise.
3717         (int32x2_t): Likewise.
3718         (float16x4_t): Likewise.
3719         (float32x2_t): Likewise.
3720         (poly8x8_t): Likewise.
3721         (poly16x4_t): Likewise.
3722         (uint8x8_t): Likewise.
3723         (uint16x4_t): Likewise.
3724         (uint32x2_t): Likewise.
3725         (int8x16_t): Likewise.
3726         (int16x8_t): Likewise.
3727         (int32x4_t): Likewise.
3728         (int64x2_t): Likewise.
3729         (float32x4_t): Likewise.
3730         (poly8x16_t): Likewise.
3731         (poly16x8_t): Likewise.
3732         (uint8x16_t): Likewise.
3733         (uint16x8_t): Likewise.
3734         (uint32x4_t): Likewise.
3735         (uint64x2_t): Likewise.
3737 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3739         * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
3740         (neon_itype): Add new types corresponding to the types used in
3741         qualifiers names.
3742         (arm_unop_qualifiers): New.
3743         (arm_bswap_qualifiers): Likewise.
3744         (arm_binop_qualifiers): Likewise.
3745         (arm_ternop_qualifiers): Likewise.
3746         (arm_getlane_qualifiers): Likewise.
3747         (arm_lanemac_qualifiers): Likewise.
3748         (arm_setlane_qualifiers): Likewise.
3749         (arm_combine_qualifiers): Likewise.
3750         (arm_load1_qualifiers): Likewise.
3751         (arm_load1_lane_qualifiers): Likewise.
3752         (arm_store1_qualifiers): Likewise.
3753         (arm_storestruct_lane_qualifiers): Likewise.
3754         (UNOP_QUALIFIERS): Likewise.
3755         (DUP_QUALIFIERS): Likewise.
3756         (SPLIT_QUALIFIERS): Likewise.
3757         (CONVERT_QUALIFIERS): Likewise.
3758         (FLOAT_WIDEN_QUALIFIERS): Likewise.
3759         (FLOAT_NARROW_QUALIFIERS): Likewise.
3760         (RINT_QUALIFIERS): Likewise.
3761         (COPYSIGNF_QUALIFIERS): Likewise.
3762         (CREATE_QUALIFIERS): Likewise.
3763         (REINTERP_QUALIFIERS): Likewise.
3764         (BSWAP_QUALIFIERS): Likewise.
3765         (BINOP_QUALIFIERS): Likewise.
3766         (FIXCONV_QUALIFIERS): Likewise.
3767         (SCALARMUL_QUALIFIERS): Likewise.
3768         (SCALARMULL_QUALIFIERS): Likewise.
3769         (SCALARMULH_QUALIFIERS): Likewise.
3770         (TERNOP_QUALIFIERS): Likewise.
3771         (SELECT_QUALIFIERS): Likewise.
3772         (VTBX_QUALIFIERS): Likewise.
3773         (GETLANE_QUALIFIERS): Likewise.
3774         (SHIFTIMM_QUALIFIERS): Likewise.
3775         (LANEMAC_QUALIFIERS): Likewise.
3776         (SCALARMAC_QUALIFIERS): Likewise.
3777         (SETLANE_QUALIFIERS): Likewise.
3778         (SHIFTINSERT_QUALIFIERS): Likewise.
3779         (SHIFTACC_QUALIFIERS): Likewise.
3780         (LANEMUL_QUALIFIERS): Likewise.
3781         (LANEMULL_QUALIFIERS): Likewise.
3782         (LANEMULH_QUALIFIERS): Likewise.
3783         (COMBINE_QUALIFIERS): Likewise.
3784         (VTBL_QUALIFIERS): Likewise.
3785         (LOAD1_QUALIFIERS): Likewise.
3786         (LOADSTRUCT_QUALIFIERS): Likewise.
3787         (LOAD1LANE_QUALIFIERS): Likewise.
3788         (LOADSTRUCTLANE_QUALIFIERS): Likewise.
3789         (STORE1_QUALIFIERS): Likewise.
3790         (STORESTRUCT_QUALIFIERS): Likewise.
3791         (STORE1LANE_QUALIFIERS): Likewise.
3792         (STORESTRUCTLANE_QUALIFIERS): Likewise.
3793         (neon_builtin_datum): Keep track of qualifiers.
3794         (VAR1): Likewise.
3796 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3798         * config/arm/arm-builtins.c (VAR1): Add a comma.
3799         (VAR2): Rewrite in terms of VAR1.
3800         (VAR3-10): Likewise.
3801         (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
3802         * config/arm/arm_neon_builtins.def: Remove trailing commas.
3804 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3806         * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
3807         (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
3808         * config/arm/arm-builtins.c: New.
3809         * config/arm/t-arm (arm_builtins.o): New.
3810         * config/arm/arm-protos.h (arm_expand_builtin): New.
3811         (arm_builtin_decl): Likewise.
3812         (arm_init_builtins): Likewise.
3813         (arm_atomic_assign_expand_fenv): Likewise.
3814         * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
3815         (arm_init_builtins): Likewise.
3816         (arm_init_iwmmxt_builtins): Likewise
3817         (safe_vector_operand): Likewise
3818         (arm_expand_binop_builtin): Likewise
3819         (arm_expand_unop_builtin): Likewise
3820         (arm_expand_builtin): Likewise
3821         (arm_builtin_decl): Likewise
3822         (insn_flags): Remove static.
3823         (tune_flags): Likewise.
3824         (enum arm_builtins): Move to config/arm/arm-builtins.c.
3825         (arm_init_neon_builtins): Likewise.
3826         (struct builtin_description): Likewise.
3827         (arm_init_iwmmxt_builtins): Likewise.
3828         (arm_init_fp16_builtins): Likewise.
3829         (arm_init_crc32_builtins): Likewise.
3830         (arm_init_builtins): Likewise.
3831         (arm_builtin_decl): Likewise.
3832         (safe_vector_operand): Likewise.
3833         (arm_expand_ternop_builtin): Likewise.
3834         (arm_expand_binop_builtin): Likewise.
3835         (arm_expand_unop_builtin): Likewise.
3836         (neon_dereference_pointer): Likewise.
3837         (arm_expand_neon_args): Likewise.
3838         (arm_expand_neon_builtin): Likewise.
3839         (neon_split_vcombine): Likewise.
3840         (arm_expand_builtin): Likewise.
3841         (arm_builtin_vectorized_function): Likewise.
3842         (arm_atomic_assign_expand_fenv): Likewise.
3844 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3846         * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
3847         * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
3848         (FL_ARCH3M): Likewise.
3849         (FL_MODE26): Likewise.
3850         (FL_MODE32): Likewise.
3851         (FL_ARCH4): Likewise.
3852         (FL_ARCH5): Likewise.
3853         (FL_THUMB): Likewise.
3854         (FL_LDSCHED): Likewise.
3855         (FL_STRONG): Likewise.
3856         (FL_ARCH5E): Likewise.
3857         (FL_XSCALE): Likewise.
3858         (FL_ARCH6): Likewise.
3859         (FL_VFPV2): Likewise.
3860         (FL_WBUF): Likewise.
3861         (FL_ARCH6K): Likewise.
3862         (FL_THUMB2): Likewise.
3863         (FL_NOTM): Likewise.
3864         (FL_THUMB_DIV): Likewise.
3865         (FL_VFPV3): Likewise.
3866         (FL_NEON): Likewise.
3867         (FL_ARCH7EM): Likewise.
3868         (FL_ARCH7): Likewise.
3869         (FL_ARM_DIV): Likewise.
3870         (FL_ARCH8): Likewise.
3871         (FL_CRC32): Likewise.
3872         (FL_SMALLMUL): Likewise.
3873         (FL_IWMMXT): Likewise.
3874         (FL_IWMMXT2): Likewise.
3875         (FL_TUNE): Likewise.
3876         (FL_FOR_ARCH2): Likewise.
3877         (FL_FOR_ARCH3): Likewise.
3878         (FL_FOR_ARCH3M): Likewise.
3879         (FL_FOR_ARCH4): Likewise.
3880         (FL_FOR_ARCH4T): Likewise.
3881         (FL_FOR_ARCH5): Likewise.
3882         (FL_FOR_ARCH5T): Likewise.
3883         (FL_FOR_ARCH5E): Likewise.
3884         (FL_FOR_ARCH5TE): Likewise.
3885         (FL_FOR_ARCH5TEJ): Likewise.
3886         (FL_FOR_ARCH6): Likewise.
3887         (FL_FOR_ARCH6J): Likewise.
3888         (FL_FOR_ARCH6K): Likewise.
3889         (FL_FOR_ARCH6Z): Likewise.
3890         (FL_FOR_ARCH6ZK): Likewise.
3891         (FL_FOR_ARCH6T2): Likewise.
3892         (FL_FOR_ARCH6M): Likewise.
3893         (FL_FOR_ARCH7): Likewise.
3894         (FL_FOR_ARCH7A): Likewise.
3895         (FL_FOR_ARCH7VE): Likewise.
3896         (FL_FOR_ARCH7R): Likewise.
3897         (FL_FOR_ARCH7M): Likewise.
3898         (FL_FOR_ARCH7EM): Likewise.
3899         (FL_FOR_ARCH8A): Likewise.
3900         * config/arm/arm-protos.h: Take definitions moved from arm.c.
3902 2014-11-18  James Greenhalgh  <james.greenhalgh@arm.com>
3904         * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
3905         parameter, rearrange switch statement accordingly.
3906         (arm_evpc_neon_vrev): Remove "Magic Word".
3907         * config/arm/unspecs.md (unspec): Split many UNSPECs to
3908         rounding, or signed/unsigned variants.
3909         * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
3910         (vcondu<mode><mode>): Likewise.
3911         (neon_vadd): Remove "Magic Word" operand.
3912         (neon_vaddl): Remove "Magic Word" operand, convert to use
3913         signed/unsigned iterator.
3914         (neon_vaddw): Likewise.
3915         (neon_vhadd): Likewise, also iterate over "rounding" forms.
3916         (neon_vqadd): Remove "Magic Word" operand, convert to use
3917         signed/unsigned iterator.
3918         (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
3919         over "rounding" forms.
3920         (neon_vmul): Remove "Magic Word" operand, iterate over
3921         polynomial/float instruction forms.
3922         (neon_vmla): Remove "Magic Word" operand.
3923         (neon_vfma): Likewise.
3924         (neon_vfms): Likewise.
3925         (neon_vmls): Likewise.
3926         (neon_vmlal): Remove "Magic Word" operand, iterate over
3927         signed/unsigned forms.
3928         (neon_vmlsl): Likewise.
3929         (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
3930         forms.
3931         (neon_vqdmlal): Remove "Magic Word" operand, iterate over
3932         signed/unsigned forms.
3933         (neon_vqdmlsl): Likewise.
3934         (neon_vmull): Likewise.
3935         (neon_vqdmull): Remove "Magic Word" operand.
3936         (neon_vsub): Remove "Magic Word" operand.
3937         (neon_vsubl): Remove "Magic Word" operand, convert to use
3938         signed/unsigned iterator.
3939         (neon_vsubw): Likewise.
3940         (neon_vhsub): Likewise.
3941         (neon_vqsub): Likewise.
3942         (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
3943         over "rounding" forms.
3944         (neon_vceq): Remove "Magic Word" operand.
3945         (neon_vcge): Likewise.
3946         (neon_vcgeu): Likewise.
3947         (neon_vcgt): Likewise.
3948         (neon_vcgtu): Likewise.
3949         (neon_vcle): Likewise.
3950         (neon_vclt): Likewise.
3951         (neon_vcage): Likewise.
3952         (neon_vcagt): Likewise.
3953         (neon_vabd): Remove "Magic Word" operand, iterate over
3954         signed/unsigned forms, and split out...
3955         (neon_vabdf): ...this as new.
3956         (neon_vabdl): Remove "Magic Word" operand, iterate over
3957         signed/unsigned forms.
3958         (neon_vaba): Likewise.
3959         (neon_vmax): Remove "Magic Word" operand, iterate over
3960         signed/unsigned and max/min forms, and split out...
3961         (neon_v<maxmin>f): ...this as new.
3962         (neon_vmin): Delete.
3963         (neon_vpadd): Remove "Magic Word" operand.
3964         (neon_vpaddl): Remove "Magic Word" operand, iterate over
3965         signed/unsigned variants.
3966         (neon_vpadal): Likewise.
3967         (neon_vpmax): Remove "Magic Word" operand, iterate over
3968         signed/unsigned and max/min forms, and split out...
3969         (neon_vp<maxmin>f): ...this as new.
3970         (neon_vpmin): Delete.
3971         (neon_vrecps): Remove "Magic Word" operand.
3972         (neon_vrsqrts): Likewise.
3973         (neon_vabs): Likewise.
3974         (neon_vqabs): Likewise.
3975         (neon_vneg): Likewise.
3976         (neon_vqneg): Likewise.
3977         (neon_vcls): Likewise.
3978         (neon_vcnt): Likewise.
3979         (neon_vrecpe): Likewise.
3980         (neon_vrsqrte): Likewise.
3981         (neon_vmvn): Likewise.
3982         (neon_vget_lane): Likewise.
3983         (neon_vget_laneu): New.
3984         (neon_vget_lanedi): Remove "Magic Word" operand.
3985         (neon_vget_lanev2di): Likewise.
3986         (neon_vcvt): Remove "Magic Word" operand, iterate over
3987         signed/unsigned variants.
3988         (neon_vcvt_n): Likewise.
3989         (neon_vmovn): Remove "Magic Word" operand.
3990         (neon_vqmovn): Remove "Magic Word" operand, iterate over
3991         signed/unsigned variants.
3992         (neon_vmovun): Remove "Magic Word" operand.
3993         (neon_vmovl): Remove "Magic Word" operand, iterate over
3994         signed/unsigned variants.
3995         (neon_vmul_lane): Remove "Magic Word" operand.
3996         (neon_vmull_lane): Remove "Magic Word" operand, iterate over
3997         signed/unsigned variants.
3998         (neon_vqdmull_lane): Remove "Magic Word" operand.
3999         (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
4000         rounding variants.
4001         (neon_vmla_lane): Remove "Magic Word" operand.
4002         (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
4003         signed/unsigned variants.
4004         (neon_vqdmlal_lane): Remove "Magic Word" operand.
4005         (neon_vmls_lane): Likewise.
4006         (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
4007         signed/unsigned variants.
4008         (neon_vqdmlsl_lane): Remove "Magic Word" operand.
4009         (neon_vmul_n): Remove "Magic Word" operand.
4010         (neon_vmull_n): Rename to...
4011         (neon_vmulls_n): ...this, remove "Magic Word" operand.
4012         (neon_vmullu_n): New.
4013         (neon_vqdmull_n): Remove "Magic Word" operand.
4014         (neon_vqdmulh_n): Likewise.
4015         (neon_vqrdmulh_n): New.
4016         (neon_vmla_n): Remove "Magic Word" operand.
4017         (neon_vmls_n): Likewise.
4018         (neon_vmlal_n): Rename to...
4019         (neon_vmlals_n): ...this, remove "Magic Word" operand.
4020         (neon_vmlalu_n): New.
4021         (neon_vqdmlal_n): Remove "Magic Word" operand.
4022         (neon_vmlsl_n): Rename to...
4023         (neon_vmlsls_n): ...this, remove "Magic Word" operand.
4024         (neon_vmlslu_n): New.
4025         (neon_vqdmlsl_n): Remove "Magic Word" operand.
4026         (neon_vrev64): Remove "Magic Word" operand.
4027         (neon_vrev32): Likewise.
4028         (neon_vrev16): Likewise.
4029         (neon_vshl): Remove "Magic Word" operand, iterate over
4030         signed/unsigned and "rounding" forms.
4031         (neon_vqshl): Likewise.
4032         (neon_vshr_n): Likewise.
4033         (neon_vshrn_n): Remove "Magic Word" operand, iterate over
4034         "rounding" forms.
4035         (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
4036         signed/unsigned and "rounding" forms.
4037         (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
4038         "rounding" forms.
4039         (neon_vshl_n): Remove "Magic Word" operand.
4040         (neon_vqshl_n): Remove "Magic Word" operand, iterate over
4041         signed/unsigned variants.
4042         (neon_vqshlu_n): Remove "Magic Word" operand.
4043         (neon_vshll_n): Remove "Magic Word" operand, iterate over
4044         signed/unsigned variants.
4045         (neon_vsra_n): Remove "Magic Word" operand, iterate over
4046         signed/unsigned and "rounding" forms.
4047         * config/arm/iterators.md (VPF): New.
4048         (VADDL): Likewise.
4049         (VADDW): Likewise.
4050         (VHADD): Likewise.
4051         (VQADD): Likewise.
4052         (VADDHN): Likewise.
4053         (VMLAL): Likewise.
4054         (VMLAL_LANE): Likewise.
4055         (VLMSL): Likewise.
4056         (VMLSL_LANE): Likewise.
4057         (VQDMULH): Likewise,
4058         (VQDMULH_LANE): Likewise.
4059         (VMULL): Likewise.
4060         (VMULL_LANE): Likewise.
4061         (VSUBL): Likewise.
4062         (VSUBW): Likewise.
4063         (VHSUB): Likewise.
4064         (VQSUB): Likewise.
4065         (VSUBHN): Likewise.
4066         (VABD): Likewise.
4067         (VABDL): Likewise.
4068         (VMAXMIN): Likewise.
4069         (VMAXMINF): Likewise.
4070         (VPADDL): Likewise.
4071         (VPADAL): Likewise.
4072         (VPMAXMIN): Likewise.
4073         (VPMAXMINF): Likewise.
4074         (VCVT_US): Likewise.
4075         (VCVT_US_N): Likewise.
4076         (VQMOVN): Likewise.
4077         (VMOVL): Likewise.
4078         (VSHL): Likewise.
4079         (VQSHL): Likewise.
4080         (VSHR_N): Likewise.
4081         (VSHRN_N): Likewise.
4082         (VQSHRN_N): Likewise.
4083         (VQSHRUN_N): Likewise.
4084         (VQSHL_N): Likewise.
4085         (VSHLL_N): Likewise.
4086         (VSRA_N): Likewise.
4087         (pf): Likewise.
4088         (sup): Likewise.
4089         (r): Liekwise.
4090         (maxmin): Likewise.
4091         (shift_op): Likewise.
4092         * config/arm/arm_neon_builtins.def (vaddl): Split to...
4093         (vaddls): ...this and...
4094         (vaddlu): ...this.
4095         (vaddw): Split to...
4096         (vaddws): ...this and...
4097         (vaddwu): ...this.
4098         (vhadd): Split to...
4099         (vhadds): ...this and...
4100         (vhaddu): ...this and...
4101         (vrhadds): ...this and...
4102         (vrhaddu): ...this.
4103         (vqadd): Split to...
4104         (vqadds): ...this and...
4105         (vqaddu): ...this.
4106         (vaddhn): Split to itself and...
4107         (vraddhn): ...this.
4108         (vmul): Split to...
4109         (vmulf): ...this and...
4110         (vmulp): ...this.
4111         (vmlal): Split to...
4112         (vmlals): ...this and...
4113         (vmlalu): ...this.
4114         (vmlsl): Split to...
4115         (vmlsls): ...this and...
4116         (vmlslu): ...this.
4117         (vqdmulh): Split to itself and...
4118         (vqrdmulh): ...this.
4119         (vmull): Split to...
4120         (vmullp): ...this and...
4121         (vmulls): ...this and...
4122         (vmullu): ...this.
4123         (vmull_n): Split to...
4124         (vmulls_n): ...this and...
4125         (vmullu_n): ...this.
4126         (vmull_lane): Split to...
4127         (vmulls_lane): ...this and...
4128         (vmullu_lane): ...this.
4129         (vqdmulh_n): Split to itself and...
4130         (vqrdmulh_n): ...this.
4131         (vqdmulh_lane): Split to itself and...
4132         (vqrdmulh_lane): ...this.
4133         (vshl): Split to...
4134         (vshls): ...this and...
4135         (vshlu): ...this and...
4136         (vrshls): ...this and...
4137         (vrshlu): ...this.
4138         (vqshl): Split to...
4139         (vqshls): ...this and...
4140         (vqrshlu): ...this and...
4141         (vqrshls): ...this and...
4142         (vqrshlu): ...this.
4143         (vshr_n): Split to...
4144         (vshrs_n): ...this and...
4145         (vshru_n): ...this and...
4146         (vrshrs_n): ...this and...
4147         (vrshru_n): ...this.
4148         (vshrn_n): Split to itself and...
4149         (vrshrn_n): ...this.
4150         (vqshrn_n): Split to...
4151         (vqshrns_n): ...this and...
4152         (vqshrnu_n): ...this and...
4153         (vqrshrns_n): ...this and...
4154         (vqrshrnu_n): ...this.
4155         (vqshrun_n): Split to itself and...
4156         (vqrshrun_n): ...this.
4157         (vqshl_n): Split to...
4158         (vqshl_s_n): ...this and...
4159         (vqshl_u_n): ...this.
4160         (vshll_n): Split to...
4161         (vshlls_n): ...this and...
4162         (vshllu_n): ...this.
4163         (vsra_n): Split to...
4164         (vsras_n): ...this and...
4165         (vsrau_n): ...this and.
4166         (vrsras_n): ...this and...
4167         (vrsrau_n): ...this and.
4168         (vsubl): Split to...
4169         (vsubls): ...this and...
4170         (vsublu): ...this.
4171         (vsubw): Split to...
4172         (vsubws): ...this and...
4173         (vsubwu): ...this.
4174         (vqsub): Split to...
4175         (vqsubs): ...this and...
4176         (vqsubu): ...this.
4177         (vhsub): Split to...
4178         (vhsubs): ...this and...
4179         (vhsubu): ...this.
4180         (vsubhn): Split to itself and...
4181         (vrsubhn): ...this.
4182         (vabd): Split to...
4183         (vabds): ...this and...
4184         (vabdu): ...this and...
4185         (vabdf): ...this.
4186         (vabdl): Split to...
4187         (vabdls): ...this and...
4188         (vabdlu): ...this.
4189         (vaba): Split to...
4190         (vabas): ...this and...
4191         (vabau): ...this and...
4192         (vabal): Split to...
4193         (vabals): ...this and...
4194         (vabalu): ...this.
4195         (vmax): Split to...
4196         (vmaxs): ...this and...
4197         (vmaxu): ...this and...
4198         (vmaxf): ...this.
4199         (vmin): Split to...
4200         (vmins): ...this and...
4201         (vminu): ...this and...
4202         (vminf): ...this.
4203         (vpmax): Split to...
4204         (vpmaxs): ...this and...
4205         (vpmaxu): ...this and...
4206         (vpmaxf): ...this.
4207         (vpmin): Split to...
4208         (vpmins): ...this and...
4209         (vpminu): ...this and...
4210         (vpminf): ...this.
4211         (vpaddl): Split to...
4212         (vpaddls): ...this and...
4213         (vpaddlu): ...this.
4214         (vpadal): Split to...
4215         (vpadals): ...this and...
4216         (vpadalu): ...this.
4217         (vget_laneu): New.
4218         (vqmovn): Split to...
4219         (vqmovns): ...this and...
4220         (vqmovnu): ...this.
4221         (vmovl): Split to...
4222         (vmovls): ...this and...
4223         (vmovlu): ...this.
4224         (vmlal_lane): Split to...
4225         (vmlals_lane): ...this and...
4226         (vmlalu_lane): ...this.
4227         (vmlsl_lane): Split to...
4228         (vmlsls_lane): ...this and...
4229         (vmlslu_lane): ...this.
4230         (vmlal_n): Split to...
4231         (vmlals_n): ...this and...
4232         (vmlalu_n): ...this.
4233         (vmlsl_n): Split to...
4234         (vmlsls_n): ...this and...
4235         (vmlslu_n): ...this.
4236         (vext): Make type "SHIFTINSERT".
4237         (vcvt): Split to...
4238         (vcvts): ...this and...
4239         (vcvtu): ...this.
4240         (vcvt_n): Split to...
4241         (vcvts_n): ...this and...
4242         (vcvtu_n): ...this.
4243         * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
4244         (vaddl_s16): Likewise.
4245         (vaddl_s32): Likewise.
4246         (vaddl_u8): Likewise.
4247         (vaddl_u16): Likewise.
4248         (vaddl_u32): Likewise.
4249         (vaddw_s8): Likewise.
4250         (vaddw_s16): Likewise.
4251         (vaddw_s32): Likewise.
4252         (vaddw_u8): Likewise.
4253         (vaddw_u16): Likewise.
4254         (vaddw_u32): Likewise.
4255         (vhadd_s8): Likewise.
4256         (vhadd_s16): Likewise.
4257         (vhadd_s32): Likewise.
4258         (vhadd_u8): Likewise.
4259         (vhadd_u16): Likewise.
4260         (vhadd_u32): Likewise.
4261         (vhaddq_s8): Likewise.
4262         (vhaddq_s16): Likewise.
4263         (vhaddq_s32): Likewise.
4264         (vhaddq_u8): Likewise.
4265         (vhaddq_u16): Likewise.
4266         (vrhadd_s8): Likewise.
4267         (vrhadd_s16): Likewise.
4268         (vrhadd_s32): Likewise.
4269         (vrhadd_u8): Likewise.
4270         (vrhadd_u16): Likewise.
4271         (vrhadd_u32): Likewise.
4272         (vrhaddq_s8): Likewise.
4273         (vrhaddq_s16): Likewise.
4274         (vrhaddq_s32): Likewise.
4275         (vrhaddq_u8): Likewise.
4276         (vrhaddq_u16): Likewise.
4277         (vrhaddq_u32): Likewise.
4278         (vqadd_s8): Likewise.
4279         (vqadd_s16): Likewise.
4280         (vqadd_s32): Likewise.
4281         (vqadd_s64): Likewise.
4282         (vqadd_u8): Likewise.
4283         (vqadd_u16): Likewise.
4284         (vqadd_u32): Likewise.
4285         (vqadd_u64): Likewise.
4286         (vqaddq_s8): Likewise.
4287         (vqaddq_s16): Likewise.
4288         (vqaddq_s32): Likewise.
4289         (vqaddq_s64): Likewise.
4290         (vqaddq_u8): Likewise.
4291         (vqaddq_u16): Likewise.
4292         (vqaddq_u32): Likewise.
4293         (vqaddq_u64): Likewise.
4294         (vaddhn_s16): Likewise.
4295         (vaddhn_s32): Likewise.
4296         (vaddhn_s64): Likewise.
4297         (vaddhn_u16): Likewise.
4298         (vaddhn_u32): Likewise.
4299         (vaddhn_u64): Likewise.
4300         (vraddhn_s16): Likewise.
4301         (vraddhn_s32): Likewise.
4302         (vraddhn_s64): Likewise.
4303         (vraddhn_u16): Likewise.
4304         (vraddhn_u32): Likewise.
4305         (vraddhn_u64): Likewise.
4306         (vmul_p8): Likewise.
4307         (vmulq_p8): Likewise.
4308         (vqdmulh_s16): Likewise.
4309         (vqdmulh_s32): Likewise.
4310         (vqdmulhq_s16): Likewise.
4311         (vqdmulhq_s32): Likewise.
4312         (vqrdmulh_s16): Likewise.
4313         (vqrdmulh_s32): Likewise.
4314         (vqrdmulhq_s16): Likewise.
4315         (vqrdmulhq_s32): Likewise.
4316         (vmull_s8): Likewise.
4317         (vmull_s16): Likewise.
4318         (vmull_s32): Likewise.
4319         (vmull_u8): Likewise.
4320         (vmull_u16): Likewise.
4321         (vmull_u32): Likewise.
4322         (vmull_p8): Likewise.
4323         (vqdmull_s16): Likewise.
4324         (vqdmull_s32): Likewise.
4325         (vmla_s8): Likewise.
4326         (vmla_s16): Likewise.
4327         (vmla_s32): Likewise.
4328         (vmla_f32): Likewise.
4329         (vmla_u8): Likewise.
4330         (vmla_u16): Likewise.
4331         (vmla_u32): Likewise.
4332         (vmlaq_s8): Likewise.
4333         (vmlaq_s16): Likewise.
4334         (vmlaq_s32): Likewise.
4335         (vmlaq_f32): Likewise.
4336         (vmlaq_u8): Likewise.
4337         (vmlaq_u16): Likewise.
4338         (vmlaq_u32): Likewise.
4339         (vmlal_s8): Likewise.
4340         (vmlal_s16): Likewise.
4341         (vmlal_s32): Likewise.
4342         (vmlal_u8): Likewise.
4343         (vmlal_u16): Likewise.
4344         (vmlal_u32): Likewise.
4345         (vqdmlal_s16): Likewise.
4346         (vqdmlal_s32): Likewise.
4347         (vmls_s8): Likewise.
4348         (vmls_s16): Likewise.
4349         (vmls_s32): Likewise.
4350         (vmls_f32): Likewise.
4351         (vmls_u8): Likewise.
4352         (vmls_u16): Likewise.
4353         (vmls_u32): Likewise.
4354         (vmlsq_s8): Likewise.
4355         (vmlsq_s16): Likewise.
4356         (vmlsq_s32): Likewise.
4357         (vmlsq_f32): Likewise.
4358         (vmlsq_u8): Likewise.
4359         (vmlsq_u16): Likewise.
4360         (vmlsq_u32): Likewise.
4361         (vmlsl_s8): Likewise.
4362         (vmlsl_s16): Likewise.
4363         (vmlsl_s32): Likewise.
4364         (vmlsl_u8): Likewise.
4365         (vmlsl_u16): Likewise.
4366         (vmlsl_u32): Likewise.
4367         (vqdmlsl_s16): Likewise.
4368         (vqdmlsl_s32): Likewise.
4369         (vfma_f32): Likewise.
4370         (vfmaq_f32): Likewise.
4371         (vfms_f32): Likewise.
4372         (vfmsq_f32): Likewise.
4373         (vsubl_s8): Likewise.
4374         (vsubl_s16): Likewise.
4375         (vsubl_s32): Likewise.
4376         (vsubl_u8): Likewise.
4377         (vsubl_u16): Likewise.
4378         (vsubl_u32): Likewise.
4379         (vsubw_s8): Likewise.
4380         (vsubw_s16): Likewise.
4381         (vsubw_s32): Likewise.
4382         (vsubw_u8): Likewise.
4383         (vsubw_u16): Likewise.
4384         (vsubw_u32): Likewise.
4385         (vhsub_s8): Likewise.
4386         (vhsub_s16): Likewise.
4387         (vhsub_s32): Likewise.
4388         (vhsub_u8): Likewise.
4389         (vhsub_u16): Likewise.
4390         (vhsub_u32): Likewise.
4391         (vhsubq_s8): Likewise.
4392         (vhsubq_s16): Likewise.
4393         (vhsubq_s32): Likewise.
4394         (vhsubq_u8): Likewise.
4395         (vhsubq_u16): Likewise.
4396         (vhsubq_u32): Likewise.
4397         (vqsub_s8): Likewise.
4398         (vqsub_s16): Likewise.
4399         (vqsub_s32): Likewise.
4400         (vqsub_s64): Likewise.
4401         (vqsub_u8): Likewise.
4402         (vqsub_u16): Likewise.
4403         (vqsub_u32): Likewise.
4404         (vqsub_u64): Likewise.
4405         (vqsubq_s8): Likewise.
4406         (vqsubq_s16): Likewise.
4407         (vqsubq_s32): Likewise.
4408         (vqsubq_s64): Likewise.
4409         (vqsubq_u8): Likewise.
4410         (vqsubq_u16): Likewise.
4411         (vqsubq_u32): Likewise.
4412         (vqsubq_u64): Likewise.
4413         (vsubhn_s16): Likewise.
4414         (vsubhn_s32): Likewise.
4415         (vsubhn_s64): Likewise.
4416         (vsubhn_u16): Likewise.
4417         (vsubhn_u32): Likewise.
4418         (vsubhn_u64): Likewise.
4419         (vrsubhn_s16): Likewise.
4420         (vrsubhn_s32): Likewise.
4421         (vrsubhn_s64): Likewise.
4422         (vrsubhn_u16): Likewise.
4423         (vrsubhn_u32): Likewise.
4424         (vrsubhn_u64): Likewise.
4425         (vceq_s8): Likewise.
4426         (vceq_s16): Likewise.
4427         (vceq_s32): Likewise.
4428         (vceq_f32): Likewise.
4429         (vceq_u8): Likewise.
4430         (vceq_u16): Likewise.
4431         (vceq_u32): Likewise.
4432         (vceq_p8): Likewise.
4433         (vceqq_s8): Likewise.
4434         (vceqq_s16): Likewise.
4435         (vceqq_s32): Likewise.
4436         (vceqq_f32): Likewise.
4437         (vceqq_u8): Likewise.
4438         (vceqq_u16): Likewise.
4439         (vceqq_u32): Likewise.
4440         (vceqq_p8): Likewise.
4441         (vcge_s8): Likewise.
4442         (vcge_s16): Likewise.
4443         (vcge_s32): Likewise.
4444         (vcge_f32): Likewise.
4445         (vcge_u8): Likewise.
4446         (vcge_u16): Likewise.
4447         (vcge_u32): Likewise.
4448         (vcgeq_s8): Likewise.
4449         (vcgeq_s16): Likewise.
4450         (vcgeq_s32): Likewise.
4451         (vcgeq_f32): Likewise.
4452         (vcgeq_u8): Likewise.
4453         (vcgeq_u16): Likewise.
4454         (vcgeq_u32): Likewise.
4455         (vcle_s8): Likewise.
4456         (vcle_s16): Likewise.
4457         (vcle_s32): Likewise.
4458         (vcle_f32): Likewise.
4459         (vcle_u8): Likewise.
4460         (vcle_u16): Likewise.
4461         (vcle_u32): Likewise.
4462         (vcleq_s8): Likewise.
4463         (vcleq_s16): Likewise.
4464         (vcleq_s32): Likewise.
4465         (vcleq_f32): Likewise.
4466         (vcleq_u8): Likewise.
4467         (vcleq_u16): Likewise.
4468         (vcleq_u32): Likewise.
4469         (vcgt_s8): Likewise.
4470         (vcgt_s16): Likewise.
4471         (vcgt_s32): Likewise.
4472         (vcgt_f32): Likewise.
4473         (vcgt_u8): Likewise.
4474         (vcgt_u16): Likewise.
4475         (vcgt_u32): Likewise.
4476         (vcgtq_s8): Likewise.
4477         (vcgtq_s16): Likewise.
4478         (vcgtq_s32): Likewise.
4479         (vcgtq_f32): Likewise.
4480         (vcgtq_u8): Likewise.
4481         (vcgtq_u16): Likewise.
4482         (vcgtq_u32): Likewise.
4483         (vclt_s8): Likewise.
4484         (vclt_s16): Likewise.
4485         (vclt_s32): Likewise.
4486         (vclt_f32): Likewise.
4487         (vclt_u8): Likewise.
4488         (vclt_u16): Likewise.
4489         (vclt_u32): Likewise.
4490         (vcltq_s8): Likewise.
4491         (vcltq_s16): Likewise.
4492         (vcltq_s32): Likewise.
4493         (vcltq_f32): Likewise.
4494         (vcltq_u8): Likewise.
4495         (vcltq_u16): Likewise.
4496         (vcltq_u32): Likewise.
4497         (vcage_f32): Likewise.
4498         (vcageq_f32): Likewise.
4499         (vcale_f32): Likewise.
4500         (vcaleq_f32): Likewise.
4501         (vcagt_f32): Likewise.
4502         (vcagtq_f32): Likewise.
4503         (vcalt_f32): Likewise.
4504         (vcaltq_f32): Likewise.
4505         (vtst_s8): Likewise.
4506         (vtst_s16): Likewise.
4507         (vtst_s32): Likewise.
4508         (vtst_u8): Likewise.
4509         (vtst_u16): Likewise.
4510         (vtst_u32): Likewise.
4511         (vtst_p8): Likewise.
4512         (vtstq_s8): Likewise.
4513         (vtstq_s16): Likewise.
4514         (vtstq_s32): Likewise.
4515         (vtstq_u8): Likewise.
4516         (vtstq_u16): Likewise.
4517         (vtstq_u32): Likewise.
4518         (vtstq_p8): Likewise.
4519         (vabd_s8): Likewise.
4520         (vabd_s16): Likewise.
4521         (vabd_s32): Likewise.
4522         (vabd_f32): Likewise.
4523         (vabd_u8): Likewise.
4524         (vabd_u16): Likewise.
4525         (vabd_u32): Likewise.
4526         (vabdq_s8): Likewise.
4527         (vabdq_s16): Likewise.
4528         (vabdq_s32): Likewise.
4529         (vabdq_f32): Likewise.
4530         (vabdq_u8): Likewise.
4531         (vabdq_u16): Likewise.
4532         (vabdq_u32): Likewise.
4533         (vabdl_s8): Likewise.
4534         (vabdl_s16): Likewise.
4535         (vabdl_s32): Likewise.
4536         (vabdl_u8): Likewise.
4537         (vabdl_u16): Likewise.
4538         (vabdl_u32): Likewise.
4539         (vaba_s8): Likewise.
4540         (vaba_s16): Likewise.
4541         (vaba_s32): Likewise.
4542         (vaba_u8): Likewise.
4543         (vaba_u16): Likewise.
4544         (vaba_u32): Likewise.
4545         (vabaq_s8): Likewise.
4546         (vabaq_s16): Likewise.
4547         (vabaq_s32): Likewise.
4548         (vabaq_u8): Likewise.
4549         (vabaq_u16): Likewise.
4550         (vabaq_u32): Likewise.
4551         (vabal_s8): Likewise.
4552         (vabal_s16): Likewise.
4553         (vabal_s32): Likewise.
4554         (vabal_u8): Likewise.
4555         (vabal_u16): Likewise.
4556         (vabal_u32): Likewise.
4557         (vmax_s8): Likewise.
4558         (vmax_s16): Likewise.
4559         (vmax_s32): Likewise.
4560         (vmax_f32): Likewise.
4561         (vmax_u8): Likewise.
4562         (vmax_u16): Likewise.
4563         (vmax_u32): Likewise.
4564         (vmaxq_s8): Likewise.
4565         (vmaxq_s16): Likewise.
4566         (vmaxq_s32): Likewise.
4567         (vmaxq_f32): Likewise.
4568         (vmaxq_u8): Likewise.
4569         (vmaxq_u16): Likewise.
4570         (vmaxq_u32): Likewise.
4571         (vmin_s8): Likewise.
4572         (vmin_s16): Likewise.
4573         (vmin_s32): Likewise.
4574         (vmin_f32): Likewise.
4575         (vmin_u8): Likewise.
4576         (vmin_u16): Likewise.
4577         (vmin_u32): Likewise.
4578         (vminq_s8): Likewise.
4579         (vminq_s16): Likewise.
4580         (vminq_s32): Likewise.
4581         (vminq_f32): Likewise.
4582         (vminq_u8): Likewise.
4583         (vminq_u16): Likewise.
4584         (vminq_u32): Likewise.
4585         (vpadd_s8): Likewise.
4586         (vpadd_s16): Likewise.
4587         (vpadd_s32): Likewise.
4588         (vpadd_f32): Likewise.
4589         (vpadd_u8): Likewise.
4590         (vpadd_u16): Likewise.
4591         (vpadd_u32): Likewise.
4592         (vpaddl_s8): Likewise.
4593         (vpaddl_s16): Likewise.
4594         (vpaddl_s32): Likewise.
4595         (vpaddl_u8): Likewise.
4596         (vpaddl_u16): Likewise.
4597         (vpaddl_u32): Likewise.
4598         (vpaddlq_s8): Likewise.
4599         (vpaddlq_s16): Likewise.
4600         (vpaddlq_s32): Likewise.
4601         (vpaddlq_u8): Likewise.
4602         (vpaddlq_u16): Likewise.
4603         (vpaddlq_u32): Likewise.
4604         (vpadal_s8): Likewise.
4605         (vpadal_s16): Likewise.
4606         (vpadal_s32): Likewise.
4607         (vpadal_u8): Likewise.
4608         (vpadal_u16): Likewise.
4609         (vpadal_u32): Likewise.
4610         (vpadalq_s8): Likewise.
4611         (vpadalq_s16): Likewise.
4612         (vpadalq_s32): Likewise.
4613         (vpadalq_u8): Likewise.
4614         (vpadalq_u16): Likewise.
4615         (vpadalq_u32): Likewise.
4616         (vpmax_s8): Likewise.
4617         (vpmax_s16): Likewise.
4618         (vpmax_s32): Likewise.
4619         (vpmax_f32): Likewise.
4620         (vpmax_u8): Likewise.
4621         (vpmax_u16): Likewise.
4622         (vpmax_u32): Likewise.
4623         (vpmin_s8): Likewise.
4624         (vpmin_s16): Likewise.
4625         (vpmin_s32): Likewise.
4626         (vpmin_f32): Likewise.
4627         (vpmin_u8): Likewise.
4628         (vpmin_u16): Likewise.
4629         (vpmin_u32): Likewise.
4630         (vrecps_f32): Likewise.
4631         (vrecpsq_f32): Likewise.
4632         (vrsqrts_f32): Likewise.
4633         (vrsqrtsq_f32): Likewise.
4634         (vshl_s8): Likewise.
4635         (vshl_s16): Likewise.
4636         (vshl_s32): Likewise.
4637         (vshl_s64): Likewise.
4638         (vshl_u8): Likewise.
4639         (vshl_u16): Likewise.
4640         (vshl_u32): Likewise.
4641         (vshl_u64): Likewise.
4642         (vshlq_s8): Likewise.
4643         (vshlq_s16): Likewise.
4644         (vshlq_s32): Likewise.
4645         (vshlq_s64): Likewise.
4646         (vshlq_u8): Likewise.
4647         (vshlq_u16): Likewise.
4648         (vshlq_u32): Likewise.
4649         (vshlq_u64): Likewise.
4650         (vrshl_s8): Likewise.
4651         (vrshl_s16): Likewise.
4652         (vrshl_s32): Likewise.
4653         (vrshl_s64): Likewise.
4654         (vrshl_u8): Likewise.
4655         (vrshl_u16): Likewise.
4656         (vrshl_u32): Likewise.
4657         (vrshl_u64): Likewise.
4658         (vrshlq_s8): Likewise.
4659         (vrshlq_s16): Likewise.
4660         (vrshlq_s32): Likewise.
4661         (vrshlq_s64): Likewise.
4662         (vrshlq_u8): Likewise.
4663         (vrshlq_u16): Likewise.
4664         (vrshlq_u32): Likewise.
4665         (vrshlq_u64): Likewise.
4666         (vqshl_s8): Likewise.
4667         (vqshl_s16): Likewise.
4668         (vqshl_s32): Likewise.
4669         (vqshl_s64): Likewise.
4670         (vqshl_u8): Likewise.
4671         (vqshl_u16): Likewise.
4672         (vqshl_u32): Likewise.
4673         (vqshl_u64): Likewise.
4674         (vqshlq_s8): Likewise.
4675         (vqshlq_s16): Likewise.
4676         (vqshlq_s32): Likewise.
4677         (vqshlq_s64): Likewise.
4678         (vqshlq_u8): Likewise.
4679         (vqshlq_u16): Likewise.
4680         (vqshlq_u32): Likewise.
4681         (vqshlq_u64): Likewise.
4682         (vqrshl_s8): Likewise.
4683         (vqrshl_s16): Likewise.
4684         (vqrshl_s32): Likewise.
4685         (vqrshl_s64): Likewise.
4686         (vqrshl_u8): Likewise.
4687         (vqrshl_u16): Likewise.
4688         (vqrshl_u32): Likewise.
4689         (vqrshl_u64): Likewise.
4690         (vqrshlq_s8): Likewise.
4691         (vqrshlq_s16): Likewise.
4692         (vqrshlq_s32): Likewise.
4693         (vqrshlq_s64): Likewise.
4694         (vqrshlq_u8): Likewise.
4695         (vqrshlq_u16): Likewise.
4696         (vqrshlq_u32): Likewise.
4697         (vqrshlq_u64): Likewise.
4698         (vshr_n_s8): Likewise.
4699         (vshr_n_s16): Likewise.
4700         (vshr_n_s32): Likewise.
4701         (vshr_n_s64): Likewise.
4702         (vshr_n_u8): Likewise.
4703         (vshr_n_u16): Likewise.
4704         (vshr_n_u32): Likewise.
4705         (vshr_n_u64): Likewise.
4706         (vshrq_n_s8): Likewise.
4707         (vshrq_n_s16): Likewise.
4708         (vshrq_n_s32): Likewise.
4709         (vshrq_n_s64): Likewise.
4710         (vshrq_n_u8): Likewise.
4711         (vshrq_n_u16): Likewise.
4712         (vshrq_n_u32): Likewise.
4713         (vshrq_n_u64): Likewise.
4714         (vrshr_n_s8): Likewise.
4715         (vrshr_n_s16): Likewise.
4716         (vrshr_n_s32): Likewise.
4717         (vrshr_n_s64): Likewise.
4718         (vrshr_n_u8): Likewise.
4719         (vrshr_n_u16): Likewise.
4720         (vrshr_n_u32): Likewise.
4721         (vrshr_n_u64): Likewise.
4722         (vrshrq_n_s8): Likewise.
4723         (vrshrq_n_s16): Likewise.
4724         (vrshrq_n_s32): Likewise.
4725         (vrshrq_n_s64): Likewise.
4726         (vrshrq_n_u8): Likewise.
4727         (vrshrq_n_u16): Likewise.
4728         (vrshrq_n_u32): Likewise.
4729         (vrshrq_n_u64): Likewise.
4730         (vshrn_n_s16): Likewise.
4731         (vshrn_n_s32): Likewise.
4732         (vshrn_n_s64): Likewise.
4733         (vshrn_n_u16): Likewise.
4734         (vshrn_n_u32): Likewise.
4735         (vshrn_n_u64): Likewise.
4736         (vrshrn_n_s16): Likewise.
4737         (vrshrn_n_s32): Likewise.
4738         (vrshrn_n_s64): Likewise.
4739         (vrshrn_n_u16): Likewise.
4740         (vrshrn_n_u32): Likewise.
4741         (vrshrn_n_u64): Likewise.
4742         (vqshrn_n_s16): Likewise.
4743         (vqshrn_n_s32): Likewise.
4744         (vqshrn_n_s64): Likewise.
4745         (vqshrn_n_u16): Likewise.
4746         (vqshrn_n_u32): Likewise.
4747         (vqshrn_n_u64): Likewise.
4748         (vqrshrn_n_s16): Likewise.
4749         (vqrshrn_n_s32): Likewise.
4750         (vqrshrn_n_s64): Likewise.
4751         (vqrshrn_n_u16): Likewise.
4752         (vqrshrn_n_u32): Likewise.
4753         (vqrshrn_n_u64): Likewise.
4754         (vqshrun_n_s16): Likewise.
4755         (vqshrun_n_s32): Likewise.
4756         (vqshrun_n_s64): Likewise.
4757         (vqrshrun_n_s16): Likewise.
4758         (vqrshrun_n_s32): Likewise.
4759         (vqrshrun_n_s64): Likewise.
4760         (vshl_n_s8): Likewise.
4761         (vshl_n_s16): Likewise.
4762         (vshl_n_s32): Likewise.
4763         (vshl_n_s64): Likewise.
4764         (vshl_n_u8): Likewise.
4765         (vshl_n_u16): Likewise.
4766         (vshl_n_u32): Likewise.
4767         (vshl_n_u64): Likewise.
4768         (vshlq_n_s8): Likewise.
4769         (vshlq_n_s16): Likewise.
4770         (vshlq_n_s32): Likewise.
4771         (vshlq_n_s64): Likewise.
4772         (vshlq_n_u8): Likewise.
4773         (vshlq_n_u16): Likewise.
4774         (vshlq_n_u32): Likewise.
4775         (vshlq_n_u64): Likewise.
4776         (vqshl_n_s8): Likewise.
4777         (vqshl_n_s16): Likewise.
4778         (vqshl_n_s32): Likewise.
4779         (vqshl_n_s64): Likewise.
4780         (vqshl_n_u8): Likewise.
4781         (vqshl_n_u16): Likewise.
4782         (vqshl_n_u32): Likewise.
4783         (vqshl_n_u64): Likewise.
4784         (vqshlq_n_s8): Likewise.
4785         (vqshlq_n_s16): Likewise.
4786         (vqshlq_n_s32): Likewise.
4787         (vqshlq_n_s64): Likewise.
4788         (vqshlq_n_u8): Likewise.
4789         (vqshlq_n_u16): Likewise.
4790         (vqshlq_n_u32): Likewise.
4791         (vqshlq_n_u64): Likewise.
4792         (vqshlu_n_s8): Likewise.
4793         (vqshlu_n_s16): Likewise.
4794         (vqshlu_n_s32): Likewise.
4795         (vqshlu_n_s64): Likewise.
4796         (vqshluq_n_s8): Likewise.
4797         (vqshluq_n_s16): Likewise.
4798         (vqshluq_n_s32): Likewise.
4799         (vqshluq_n_s64): Likewise.
4800         (vshll_n_s8): Likewise.
4801         (vshll_n_s16): Likewise.
4802         (vshll_n_s32): Likewise.
4803         (vshll_n_u8): Likewise.
4804         (vshll_n_u16): Likewise.
4805         (vshll_n_u32): Likewise.
4806         (vsra_n_s8): Likewise.
4807         (vsra_n_s16): Likewise.
4808         (vsra_n_s32): Likewise.
4809         (vsra_n_s64): Likewise.
4810         (vsra_n_u8): Likewise.
4811         (vsra_n_u16): Likewise.
4812         (vsra_n_u32): Likewise.
4813         (vsra_n_u64): Likewise.
4814         (vsraq_n_s8): Likewise.
4815         (vsraq_n_s16): Likewise.
4816         (vsraq_n_s32): Likewise.
4817         (vsraq_n_s64): Likewise.
4818         (vsraq_n_u8): Likewise.
4819         (vsraq_n_u16): Likewise.
4820         (vsraq_n_u32): Likewise.
4821         (vsraq_n_u64): Likewise.
4822         (vrsra_n_s8): Likewise.
4823         (vrsra_n_s16): Likewise.
4824         (vrsra_n_s32): Likewise.
4825         (vrsra_n_s64): Likewise.
4826         (vrsra_n_u8): Likewise.
4827         (vrsra_n_u16): Likewise.
4828         (vrsra_n_u32): Likewise.
4829         (vrsra_n_u64): Likewise.
4830         (vrsraq_n_s8): Likewise.
4831         (vrsraq_n_s16): Likewise.
4832         (vrsraq_n_s32): Likewise.
4833         (vrsraq_n_s64): Likewise.
4834         (vrsraq_n_u8): Likewise.
4835         (vrsraq_n_u16): Likewise.
4836         (vrsraq_n_u32): Likewise.
4837         (vrsraq_n_u64): Likewise.
4838         (vabs_s8): Likewise.
4839         (vabs_s16): Likewise.
4840         (vabs_s32): Likewise.
4841         (vabs_f32): Likewise.
4842         (vabsq_s8): Likewise.
4843         (vabsq_s16): Likewise.
4844         (vabsq_s32): Likewise.
4845         (vabsq_f32): Likewise.
4846         (vqabs_s8): Likewise.
4847         (vqabs_s16): Likewise.
4848         (vqabs_s32): Likewise.
4849         (vqabsq_s8): Likewise.
4850         (vqabsq_s16): Likewise.
4851         (vqabsq_s32): Likewise.
4852         (vneg_s8): Likewise.
4853         (vneg_s16): Likewise.
4854         (vneg_s32): Likewise.
4855         (vneg_f32): Likewise.
4856         (vnegq_s8): Likewise.
4857         (vnegq_s16): Likewise.
4858         (vnegq_s32): Likewise.
4859         (vnegq_f32): Likewise.
4860         (vqneg_s8): Likewise.
4861         (vqneg_s16): Likewise.
4862         (vqneg_s32): Likewise.
4863         (vqnegq_s8): Likewise.
4864         (vqnegq_s16): Likewise.
4865         (vqnegq_s32): Likewise.
4866         (vmvn_s8): Likewise.
4867         (vmvn_s16): Likewise.
4868         (vmvn_s32): Likewise.
4869         (vmvn_u8): Likewise.
4870         (vmvn_u16): Likewise.
4871         (vmvn_u32): Likewise.
4872         (vmvn_p8): Likewise.
4873         (vmvnq_s8): Likewise.
4874         (vmvnq_s16): Likewise.
4875         (vmvnq_s32): Likewise.
4876         (vmvnq_u8): Likewise.
4877         (vmvnq_u16): Likewise.
4878         (vmvnq_u32): Likewise.
4879         (vmvnq_p8): Likewise.
4880         (vcls_s8): Likewise.
4881         (vcls_s16): Likewise.
4882         (vcls_s32): Likewise.
4883         (vclsq_s8): Likewise.
4884         (vclsq_s16): Likewise.
4885         (vclsq_s32): Likewise.
4886         (vclz_s8): Likewise.
4887         (vclz_s16): Likewise.
4888         (vclz_s32): Likewise.
4889         (vclz_u8): Likewise.
4890         (vclz_u16): Likewise.
4891         (vclz_u32): Likewise.
4892         (vclzq_s8): Likewise.
4893         (vclzq_s16): Likewise.
4894         (vclzq_s32): Likewise.
4895         (vclzq_u8): Likewise.
4896         (vclzq_u16): Likewise.
4897         (vclzq_u32): Likewise.
4898         (vcnt_s8): Likewise.
4899         (vcnt_u8): Likewise.
4900         (vcnt_p8): Likewise.
4901         (vcntq_s8): Likewise.
4902         (vcntq_u8): Likewise.
4903         (vcntq_p8): Likewise.
4904         (vrecpe_f32): Likewise.
4905         (vrecpe_u32): Likewise.
4906         (vrecpeq_f32): Likewise.
4907         (vrecpeq_u32): Likewise.
4908         (vrsqrte_f32): Likewise.
4909         (vrsqrte_u32): Likewise.
4910         (vrsqrteq_f32): Likewise.
4911         (vrsqrteq_u32): Likewise.
4912         (vget_lane_s8): Likewise.
4913         (vget_lane_s16): Likewise.
4914         (vget_lane_s32): Likewise.
4915         (vget_lane_f32): Likewise.
4916         (vget_lane_u8): Likewise.
4917         (vget_lane_u16): Likewise.
4918         (vget_lane_u32): Likewise.
4919         (vget_lane_p8): Likewise.
4920         (vget_lane_p16): Likewise.
4921         (vget_lane_s64): Likewise.
4922         (vget_lane_u64): Likewise.
4923         (vgetq_lane_s8): Likewise.
4924         (vgetq_lane_s16): Likewise.
4925         (vgetq_lane_s32): Likewise.
4926         (vgetq_lane_f32): Likewise.
4927         (vgetq_lane_u8): Likewise.
4928         (vgetq_lane_u16): Likewise.
4929         (vgetq_lane_u32): Likewise.
4930         (vgetq_lane_p8): Likewise.
4931         (vgetq_lane_p16): Likewise.
4932         (vgetq_lane_s64): Likewise.
4933         (vgetq_lane_u64): Likewise.
4934         (vcvt_s32_f32): Likewise.
4935         (vcvt_f32_s32): Likewise.
4936         (vcvt_f32_u32): Likewise.
4937         (vcvt_u32_f32): Likewise.
4938         (vcvtq_s32_f32): Likewise.
4939         (vcvtq_f32_s32): Likewise.
4940         (vcvtq_f32_u32): Likewise.
4941         (vcvtq_u32_f32): Likewise.
4942         (vcvt_n_s32_f32): Likewise.
4943         (vcvt_n_f32_s32): Likewise.
4944         (vcvt_n_f32_u32): Likewise.
4945         (vcvt_n_u32_f32): Likewise.
4946         (vcvtq_n_s32_f32): Likewise.
4947         (vcvtq_n_f32_s32): Likewise.
4948         (vcvtq_n_f32_u32): Likewise.
4949         (vcvtq_n_u32_f32): Likewise.
4950         (vmovn_s16): Likewise.
4951         (vmovn_s32): Likewise.
4952         (vmovn_s64): Likewise.
4953         (vmovn_u16): Likewise.
4954         (vmovn_u32): Likewise.
4955         (vmovn_u64): Likewise.
4956         (vqmovn_s16): Likewise.
4957         (vqmovn_s32): Likewise.
4958         (vqmovn_s64): Likewise.
4959         (vqmovn_u16): Likewise.
4960         (vqmovn_u32): Likewise.
4961         (vqmovn_u64): Likewise.
4962         (vqmovun_s16): Likewise.
4963         (vqmovun_s32): Likewise.
4964         (vqmovun_s64): Likewise.
4965         (vmovl_s8): Likewise.
4966         (vmovl_s16): Likewise.
4967         (vmovl_s32): Likewise.
4968         (vmovl_u8): Likewise.
4969         (vmovl_u16): Likewise.
4970         (vmovl_u32): Likewise.
4971         (vmul_lane_s16): Likewise.
4972         (vmul_lane_s32): Likewise.
4973         (vmul_lane_f32): Likewise.
4974         (vmul_lane_u16): Likewise.
4975         (vmul_lane_u32): Likewise.
4976         (vmulq_lane_s16): Likewise.
4977         (vmulq_lane_s32): Likewise.
4978         (vmulq_lane_f32): Likewise.
4979         (vmulq_lane_u16): Likewise.
4980         (vmulq_lane_u32): Likewise.
4981         (vmla_lane_s16): Likewise.
4982         (vmla_lane_s32): Likewise.
4983         (vmla_lane_f32): Likewise.
4984         (vmla_lane_u16): Likewise.
4985         (vmla_lane_u32): Likewise.
4986         (vmlaq_lane_s16): Likewise.
4987         (vmlaq_lane_s32): Likewise.
4988         (vmlaq_lane_f32): Likewise.
4989         (vmlaq_lane_u16): Likewise.
4990         (vmlaq_lane_u32): Likewise.
4991         (vmlal_lane_s16): Likewise.
4992         (vmlal_lane_s32): Likewise.
4993         (vmlal_lane_u16): Likewise.
4994         (vmlal_lane_u32): Likewise.
4995         (vqdmlal_lane_s16): Likewise.
4996         (vqdmlal_lane_s32): Likewise.
4997         (vmls_lane_s16): Likewise.
4998         (vmls_lane_s32): Likewise.
4999         (vmls_lane_f32): Likewise.
5000         (vmls_lane_u16): Likewise.
5001         (vmls_lane_u32): Likewise.
5002         (vmlsq_lane_s16): Likewise.
5003         (vmlsq_lane_s32): Likewise.
5004         (vmlsq_lane_f32): Likewise.
5005         (vmlsq_lane_u16): Likewise.
5006         (vmlsq_lane_u32): Likewise.
5007         (vmlsl_lane_s16): Likewise.
5008         (vmlsl_lane_s32): Likewise.
5009         (vmlsl_lane_u16): Likewise.
5010         (vmlsl_lane_u32): Likewise.
5011         (vqdmlsl_lane_s16): Likewise.
5012         (vqdmlsl_lane_s32): Likewise.
5013         (vmull_lane_s16): Likewise.
5014         (vmull_lane_s32): Likewise.
5015         (vmull_lane_u16): Likewise.
5016         (vmull_lane_u32): Likewise.
5017         (vqdmull_lane_s16): Likewise.
5018         (vqdmull_lane_s32): Likewise.
5019         (vqdmulhq_lane_s16): Likewise.
5020         (vqdmulhq_lane_s32): Likewise.
5021         (vqdmulh_lane_s16): Likewise.
5022         (vqdmulh_lane_s32): Likewise.
5023         (vqrdmulhq_lane_s16): Likewise.
5024         (vqrdmulhq_lane_s32): Likewise.
5025         (vqrdmulh_lane_s16): Likewise.
5026         (vqrdmulh_lane_s32): Likewise.
5027         (vmul_n_s16): Likewise.
5028         (vmul_n_s32): Likewise.
5029         (vmul_n_f32): Likewise.
5030         (vmul_n_u16): Likewise.
5031         (vmul_n_u32): Likewise.
5032         (vmulq_n_s16): Likewise.
5033         (vmulq_n_s32): Likewise.
5034         (vmulq_n_f32): Likewise.
5035         (vmulq_n_u16): Likewise.
5036         (vmulq_n_u32): Likewise.
5037         (vmull_n_s16): Likewise.
5038         (vmull_n_s32): Likewise.
5039         (vmull_n_u16): Likewise.
5040         (vmull_n_u32): Likewise.
5041         (vqdmull_n_s16): Likewise.
5042         (vqdmull_n_s32): Likewise.
5043         (vqdmulhq_n_s16): Likewise.
5044         (vqdmulhq_n_s32): Likewise.
5045         (vqdmulh_n_s16): Likewise.
5046         (vqdmulh_n_s32): Likewise.
5047         (vqrdmulhq_n_s16): Likewise.
5048         (vqrdmulhq_n_s32): Likewise.
5049         (vqrdmulh_n_s16): Likewise.
5050         (vqrdmulh_n_s32): Likewise.
5051         (vmla_n_s16): Likewise.
5052         (vmla_n_s32): Likewise.
5053         (vmla_n_f32): Likewise.
5054         (vmla_n_u16): Likewise.
5055         (vmla_n_u32): Likewise.
5056         (vmlaq_n_s16): Likewise.
5057         (vmlaq_n_s32): Likewise.
5058         (vmlaq_n_f32): Likewise.
5059         (vmlaq_n_u16): Likewise.
5060         (vmlaq_n_u32): Likewise.
5061         (vmlal_n_s16): Likewise.
5062         (vmlal_n_s32): Likewise.
5063         (vmlal_n_u16): Likewise.
5064         (vmlal_n_u32): Likewise.
5065         (vqdmlal_n_s16): Likewise.
5066         (vqdmlal_n_s32): Likewise.
5067         (vmls_n_s16): Likewise.
5068         (vmls_n_s32): Likewise.
5069         (vmls_n_f32): Likewise.
5070         (vmls_n_u16): Likewise.
5071         (vmls_n_u32): Likewise.
5072         (vmlsq_n_s16): Likewise.
5073         (vmlsq_n_s32): Likewise.
5074         (vmlsq_n_f32): Likewise.
5075         (vmlsq_n_u16): Likewise.
5076         (vmlsq_n_u32): Likewise.
5077         (vmlsl_n_s16): Likewise.
5078         (vmlsl_n_s32): Likewise.
5079         (vmlsl_n_u16): Likewise.
5080         (vmlsl_n_u32): Likewise.
5081         (vqdmlsl_n_s16): Likewise.
5082         (vqdmlsl_n_s32): Likewise.
5084 2014-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5086         * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
5087         Add cost of alu.arith in simple SImode case.
5089 2014-11-18  Jiong Wang  <jiong.wang@arm.com>
5091         * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
5092         registers.
5094 2014-11-18  Marat Zakirov  <m.zakirov@samsung.com>
5096         * opts.c (finish_options): Disable aggressive opts for sanitizer.  
5097         (common_handle_option): Move code to finish_options.  
5099 2014-11-18  Yury Gribov  <y.gribov@samsung.com>
5101         PR sanitizer/63802
5102         * stor-layout.c (min_align_of_type): Respect user alignment
5103         more.
5105 2014-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
5107         * passes.c (remove_cgraph_node_from_order): New.
5108         (do_per_function_toporder): Register cgraph removal
5109         hook.
5111 2014-11-17  Terry Guo  <terry.guo@arm.com>
5113         * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
5114         * config/arm/arm.md (generic_sched): Exclude cortex-m7.
5115         (generic_vfp): Likewise.
5116         * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
5118 2014-11-17  Vladimir Makarov  <vmakarov@redhat.com>
5120         PR rtl-optimization/63906
5121         * lra-remat.c (operand_to_remat): Check SP and
5122         frame_pointer_required.
5124 2014-11-17  Mircea Namolaru  <mircea.namolaru@inria.fr>
5126         * doc/invoke.texi (floop-unroll-and-jam): Document
5127         (loop-unroll-jam-size): Likewise.
5128         (loop-unroll-jam-depth): Likewise.
5129         * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
5130         (getScheduleForBandList): Replaced unsafe union_map reuse.
5132 2014-11-17  Andrew Pinski  <apinski@cavium.com>
5134         * config/aarch64/thunderx.md: Remove copyright which should not
5135         have been there.
5137 2014-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
5138             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5140         * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
5141         Altivec style vector loads that ignore the bottom 3 bits of the
5142         address.
5143         (rs6000_debug_addr_mask): New function to print the addr_mask
5144         values if debugging.
5145         (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
5146         out addr_mask.
5147         (rs6000_setup_reg_addr_masks): Add support for Altivec style
5148         vector loads that ignore the bottom 3 bits of the address.  Allow
5149         pre-increment and pre-decrement on floating point, even if the
5150         -mupper-regs-{sf,df} options were used.
5151         (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
5152         -mupper-regs-df.  Add support for -mupper-regs-sf.  Rearrange code
5153         placement for direct move support.
5154         (rs6000_option_override_internal): Add checks for -mupper-regs-df
5155         requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
5156         If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
5157         depending on the underlying cpu.
5158         (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
5159         (rs6000_secondary_reload_toc_costs): Helper function to identify
5160         costs of a TOC load for secondary reload support.
5161         (rs6000_secondary_reload_memory): Helper function for secondary
5162         reload, to determine if a particular memory operation is directly
5163         handled by the hardware, or if it needs support from secondary
5164         reload to create a valid address.
5165         (rs6000_secondary_reload): Rework code, to be clearer.  If the
5166         appropriate -mupper-regs-{sf,df} is used, use FPR registers to
5167         reload scalar values, since the FPR registers have D-form
5168         addressing. Move most of the code handling memory to the function
5169         rs6000_secondary_reload_memory, and use the reg_addr structure to
5170         determine what type of address modes are supported.  Print more
5171         debug information if -mdebug=addr.
5172         (rs6000_secondary_reload_inner): Rework entire function to be more
5173         general.  Use the reg_addr bits to determine what type of
5174         addressing is supported.
5175         (rs6000_preferred_reload_class): Rework.  Move constant handling
5176         into a single place.  Prefer using FLOAT_REGS for scalar floating
5177         point.
5178         (rs6000_secondary_reload_class): Use a FPR register to move a
5179         value from an Altivec register to a GPR, and vice versa.  Move VSX
5180         handling above traditional floating point.
5182         * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
5183         Delete some spaces in the constraints.
5184         (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
5185         allow using FPR registers to load/store an Altivec register for
5186         scalar floating point types.
5187         (SF->SF move peephole2): Likewise.
5188         (DFmode splitter): Add a define_split to move floating point
5189         constants to the constant pool before register allocation.
5190         Normally constants are put into the pool immediately, but
5191         -ffast-math delays putting them into the constant pool for the
5192         reciprocal approximation support.
5193         (SFmode splitter): Likewise.
5195         * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
5196         (-mupper-regs-sf): Likewise.
5198         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5199         __UPPER_REGS_DF__ if -mupper-regs-df.  Define __UPPER_REGS_SF__ if
5200         -mupper-regs-sf.
5201         (-mupper-regs): New combination option that sets -mupper-regs-sf
5202         and -mupper-regs-df by default if the cpu supports the instructions.
5204         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5205         -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
5207         * config/rs6000/predicates.md (memory_fp_constant): New predicate
5208         to return true if the operand is a floating point constant that
5209         must be put into the constant pool, before register allocation
5210         occurs.
5212         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
5213         -mupper-regs-df by default.
5214         (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
5215         (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
5216         various -mcpu=... options.
5217         (power7 cpu): Enable -mupper-regs-df by default.
5219         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5220         -mupper-regs.
5222 2014-11-17  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5224         * ira-conflicts.c (build_conflict_bit_table): Add the current
5225         object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
5227 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5229         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
5230         (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
5231         (devirtualization_time_bonus): Use it.
5232         (ipcp_discover_new_direct_edges): Likewise.
5233         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
5234         * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
5236 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5238         * tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
5239         to optimization_default_node.
5241 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5243         * cgraphunit.c (analyze_functions): Use opt_for_fn.
5244         * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
5246 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5248         * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
5249         (cgraph_node::cannot_return_p): Likewise.
5250         (cgraph_edge::cannot_lead_to_return_p): Likewise.
5251         (cgraph_edge::maybe_hot_p): Likewise.
5253 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5255         * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
5256         (optimize_function_for_size_p): Likewise.
5257         (probably_never_executed): Likewise; replace cfun by fun.
5259 2014-11-17  Alan Lawrence  <alan.lawrence@arm.com>
5261         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
5262         variant reading from memory and assembling to ld1.
5264         * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
5265         vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
5266         vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
5267         vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
5268         vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
5269         vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
5270         vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
5272 2014-11-17  Jason Merrill  <jason@redhat.com>
5274         * tree-inline.c (copy_fn): New.
5275         * tree-inline.h: Declare it.
5277 2014-11-17  Alan Lawrence  <alan.lawrence@arm.com>
5279         * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
5280         * config/aarch64/aarch64-simd-builtins.def (create): Remove.
5281         * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
5282         * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
5283         vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
5284         * config/aarch64/iterators.md (VD1): Remove.
5286 2014-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5288         * config/aarch64/aarch64-cores.def (cortex-a53): Remove
5289         AARCH64_FL_CRYPTO from feature flags.
5290         (cortex-a57): Likewise.
5291         (cortex-a57.cortex-a53): Likewise.
5293 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
5295         * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
5296         DECL_FUNCTION_SPECIFIC_TARGET.
5297         * i386.c (ix86_set_current_function): Handle explicit default options.
5299 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5301         * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
5302         instead of BNDmode.
5303         (expand_builtin_mempcpy_with_bounds): Likewise.
5304         (expand_builtin_memset_with_bounds): Likewise.
5306 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5308         * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
5309         ipa-ref.h, plugin-api.h.
5310         (get_string_length): Handle calls with bounds.
5311         (adjust_last_stmt): Likewise.
5312         (handle_builtin_strchr): Likewise.
5313         (handle_builtin_strcpy): Likewise.
5314         (handle_builtin_memcpy): Likewise.
5315         (handle_builtin_strcat): Likewise.
5317 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5319         * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
5320         (chkp_get_nochk_fndecl): New.
5321         (chkp_optimize_string_function_calls): New.
5322         (chkp_opt_execute): Call chkp_optimize_string_function_calls.
5323         * tree-cfg.h (insert_cond_bb): New.
5324         * tree-cfg.c (insert_cond_bb): New.
5326 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5328         * tree-core.h (built_in_class): Add builtin codes to be used
5329         by Pointer Bounds Checker for instrumented builtin functions.
5330         * tree-streamer-in.c: Include ipa-chkp.h.
5331         (streamer_get_builtin_tree): Created instrumented decl if
5332         required.
5333         * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
5334         * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
5335         function decls.
5336         (chkp_maybe_clone_builtin_fndecl): New.
5337         (chkp_maybe_create_clone): Support builtin function decls.
5338         (chkp_versioning): Clone builtin functions.
5339         * tree-chkp.c (chkp_instrument_normal_builtin): New.
5340         (chkp_add_bounds_to_call_stmt): Support builtin functions.
5341         (chkp_replace_function_pointer): Likewise.
5342         * builtins.c (expand_builtin_memcpy_args): New.
5343         (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
5344         (expand_builtin_memcpy_with_bounds): New.
5345         (expand_builtin_mempcpy_with_bounds): New.
5346         (expand_builtin_mempcpy_args): Add orig_exp arg. Support
5347         BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
5348         (expand_builtin_memset_with_bounds): New.
5349         (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
5350         (expand_builtin_with_bounds): New.
5351         * builtins.h (expand_builtin_with_bounds): New.
5352         * expr.c (expand_expr_real_1): Support instrumented builtin calls.
5354 2014-11-17  Dodji Seketeli  <dodji@redhat.com>
5356         * gimple.h (gimple_set_visited, gimple_visited_p)
5357         (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
5358         comments to these accessors.
5360 2014-11-17  Georg-Johann Lay  <avr@gjlay.de>
5362         * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
5363         Set avr_log_details to "all".
5365 2014-11-17  Richard Biener  <rguenther@suse.de>
5367         PR middle-end/63898
5368         * match.pd: Guard X / CST -> X * CST' transform against
5369         zero CST.
5371 2014-11-17  Terry Guo  <terry.guo@arm.com>
5373         * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
5374         format.
5376 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
5378         * ifcvt.c (HAVE_cbranchcc4): Define.
5379         (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
5380         Use HAVE_cbranchcc4.
5382 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5384         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
5385         aarch64_convert_mode, aarch64_gen_ccmp_first,
5386         aarch64_gen_ccmp_next): New functions.
5387         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
5389 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5391         * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
5392         * aarch64.c (aarch64_nzcv_codes): New data.
5393         (aarch64_ccmp_mode_to_code): New.
5394         (aarch64_print_operand): Output nzcv.
5395         config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
5396         New patterns.
5397         (cstore<mode>4): Handle ccmp_cc_register.
5398         * config/aarch64/predicates.md (const0_operand): New.
5400 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5402         * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
5403         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
5404         extacted from aarch64_get_condition_code.
5405         (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
5406         config/aarch64/predicates.md (ccmp_cc_register): New predicate.
5408 014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5410         * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
5411         aarch64_ccmp_operand): New constraints.
5413 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5415         * Makefile.in: Add ccmp.o.
5416         * ccmp.c: New file.
5417         * ccmp.h: New file.
5418         * expr.c: include "ccmp.h"
5419         (expand_cond_expr_using_cmove): Handle VOIDmode.
5420         (expand_expr_real_1): Try to expand ccmp.
5422 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5424         * cfgexpand.c (expand_gimple_cond): Check ccmp.
5425         * expmed.c (emit_cstore): Make it global.
5426         * expmed.h: #include "insn-codes.h"
5427         (emit_cstore): New prototype.
5428         * expr.c (expand_operands): Make it global.
5429         * expr.h (expand_operands): New prototype.
5430         * optabs.c (get_rtx_code): Make it global.
5431         * optabs.h (get_rtx_code): New prototype.
5433 2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5435         * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
5436         * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
5437         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
5439 2014-11-16  Patrick Palka  <ppalka@gcc.gnu.org>
5441         PR middle-end/63790
5442         * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
5443         Always combine comparisons or conversions from booleans.
5445 2014-11-16  Jan Hubicka  <hubicka@ucw.cz>
5447         * ipa-polymorphic-call.c
5448         (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
5449         (ipa_polymorphic_call_context::meet_speculation_with): New function.
5450         (ipa_polymorphic_call_context::combine_with): Handle types in construction
5451         better.
5452         (ipa_polymorphic_call_context::equal_to): Do not bother about useless
5453         speculation.
5454         (ipa_polymorphic_call_context::meet_with): New function.
5455         * cgraph.h (class ipa_polymorphic_call_context): Add
5456         meet_width, meet_speculation_with; constify speculation_consistent_p.
5457         * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine with incomming
5458         context.
5459         (propagate_context_accross_jump_function): Likewise; be more cureful.
5460         about set_contains_variable.
5461         (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
5462         (find_more_scalar_values_for_callers_subset): Fix.
5463         (find_more_contexts_for_caller_subset): Perform meet operation.
5465 2014-11-16  Jan Hubicka  <hubicka@ucw.cz>
5467         * passes.c (execute_one_pass): Do not apply all transforms prior
5468         every simple IPA pass.
5469         * cgraphunit.c: Do not include fibheap.h
5470         (expand_thunk): Use get_untransformed_body.
5471         (cgraph_node::expand): Likewise.
5472         * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
5473         * cgraph.c (release_function_body): Do not push cfun when CFG is not there.
5474         (cgraph_node::get_untransformed_body): Break out from ...
5475         (cgraph_node::get_body): ... here; add code to apply all transforms.
5476         * cgraph.h (cgraph_node): Add get_untransformed_body.
5477         * ipa-icf.c (sem_function::init): Use get_untransformed_body.
5478         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5479         * tree-inline.c (expand_call_inline): LIkewise.
5480         * i386.c (ix86_reset_to_default_globals): Break out from ...
5481         (ix86_set_current_function): ... here;
5482         (ix86_reset_previous_fndecl): Use it.
5483         (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
5485 2014-11-16  Eric Botcazou  <ebotcazou@adacore.com>
5487         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
5488         * doc/tm.texi: Regenerate.
5490 2014-11-16  Uros Bizjak  <ubizjak@gmail.com>
5492         * config/sh/sh.c: Do not include algorithm.
5493         (sh_emit_scc_to_t): Replace open-coded swap with std::swap
5494         to swap values.
5495         (sh_emit_compare_and_branch): Ditto.
5496         (sh_emit_compare_and_set): Ditto.
5497         * config/sh/sh.md (replacement peephole2): Ditto.
5498         (cstore4_media): Ditto.
5499         (*fmasf4): Ditto.
5501 2014-11-15  Vladimir Makarov  <vmakarov@redhat.com>
5503         * lra-remat.c (cand_transf_func): Process regno for
5504         rematerialization too.
5505         * lra.c (lra): Switch on rematerialization pass.
5507 2014-11-15  Vladimir Makarov  <vmakarov@redhat.com>
5509         * lra.c (lra): Switch off rematerialization pass.
5511 2014-11-15  Marc Glisse  <marc.glisse@inria.fr>
5513         * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
5514         _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
5515         instead of builtins.
5516         * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
5517         typedefs.
5518         (_mm_sqrt_sd): Fix comment.
5519         (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
5520         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
5521         _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
5522         _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
5523         _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
5524         _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
5525         _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
5526         _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
5527         Use vector extensions instead of builtins.
5528         * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
5529         _mm_mullo_epi32): Likewise.
5530         * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
5531         New typedefs.
5532         (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
5533         _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
5534         Use vector extensions instead of builtins.
5535         * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
5536         _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
5537         _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
5538         _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
5539         _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
5540         _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
5541         _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
5542         * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
5543         New typedefs.
5544         (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
5545         _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
5546         _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
5547         _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
5548         _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
5549         _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
5550         _mm512_div_ps): Use vector extensions instead of builtins.
5551         * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
5552         _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
5553         * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
5554         * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
5555         Likewise.
5557 2014-11-15  Jan Hubicka <hubicka@ucw.cz>
5559         * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
5560         * lto-streamer.h (cl_optimization_stream_out, cl_optimization_stream_in): Declare.
5561         * optc-save-gen.awk: Generate cl_optimization LTO streaming and hashing routines.
5562         * opth-gen.awk: Add prototype of cl_optimization_hash.
5563         * tree-streamer-in.c (unpack_ts_optimization): Remove.
5564         (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
5565         * tree-streamer-out.c (pack_ts_optimization): Remove.
5566         (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
5568 2014-11-15  Mircea Namolaru  <mircea.namolaru@inria.fr>
5570         * common.opt (flag_loop_unroll_and_jam): New flag.
5571         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
5572         jam flag.
5573         (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
5574         * graphite-poly.h (struct poly_bb:map_sepclass): New field
5575         * graphite-poly.c (new_poly_bb): Initialization for new field.
5576         (apply_poly_transforms): Support for unroll and jam flag.
5577         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
5578         separation class.
5579         (generate_luj_sepclass_opt): Build the separation class option.
5580         (generate_luj_options): Set unroll and jam options.
5581         (set_options): Support for unroll and jam options.
5582         (scop_to_isl_ast): Likewise
5583         * graphite-optimize-isl.c (getPrevectorMap_full): New function for
5584         computing the separating class map.
5585         (optimize_isl): Support for the separating class map.
5586         (apply_schedule_map_to_scop): Likewise.
5587         (getScheduleMap): Likewise.
5588         (getScheduleForBand): Likewise.
5589         (getScheduleForBandList): Likewise.
5590         * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
5591         * toplev.c (process_options) Likewise.
5593 2014-11-15  Eric Botcazou  <ebotcazou@adacore.com>
5595         * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
5596         from...
5597         (replace_loop_annotate): ...here.  Call it on the header and on the
5598         latch block, if any.  Restore proper behavior of final cleanup.
5600 2014-11-15  Eric Botcazou  <ebotcazou@adacore.com>
5602         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
5603         for max-completely-peeled-insns limit.
5605 2014-11-14  Jan Hubicka  <hubicka@ucw.cz>
5607         * ipa-prop.h (ipa_known_type_data): Remove.
5608         (ipa_binfo_from_known_type_jfunc): Remove.
5610 2014-11-14  Andrew Pinski  <apinski@cavium.com>
5612         * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
5613         over to thunderx.
5614         * config/aarch64/aarch64.md: Include thunderx.md.
5615         (generic_sched): Set to no for thunderx.
5616         * config/aarch64/thunderx.md: New file.
5618 2014-11-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5620         * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
5621         tests for 0.0.
5623         * config/rs6000/vector.md (VEC_R): Move secondary reload support
5624         insns to rs6000.md from vector.md.
5625         (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
5626         (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
5627         (vec_reload_and_plus_<mptrsize>): Likewise.
5629         * config/rs6000/rs6000.md (Fa): New mode attribute to give
5630         constraint for the Altivec registers for a type.
5631         (RELOAD): New mode iterator for all of the types that have
5632         secondary reload address support to load up a base register.
5633         (extendsfdf2_fpr): Use correct constraint.
5634         (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
5635         instruction.
5636         (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
5637         Generate the non-VSX instruction if all registers were FPRs.  Do
5638         not use the patterns in vsx.md for scalar operations.
5639         (floatsi<mode>2_lfiwax_mem): Likewise.
5640         (floatunssi<mode>2_lfiwzx): Likewise.
5641         (floatunssi<mode>2_lfiwzx_mem): Likewise.
5642         (fix_trunc<mode>di2_fctidz): Likewise.
5643         (fixuns_trunc<mode>di2_fctiduz): Likewise.
5644         (fctiwz_<mode>): Likewise.
5645         (fctiwuz_<mode>): Likewise.
5646         (friz): Likewise.
5647         (floatdidf2_fpr): Likewise.
5648         (floatdidf2_mem): Likewise.
5649         (floatunsdidf2): Likewise.
5650         (floatunsdidf2_fcfidu): Likewise.
5651         (floatunsdidf2_mem): Likewise.
5652         (floatdisf2_fcfids): Likewise.
5653         (floatdisf2_mem): Likewise.
5654         (floatdisf2_internal1): Add explicit test for not FCFIDS to make
5655         it more obvious that the code is for pre-ISA 2.06 machines.
5656         (floatdisf2_internal2): Likewise.
5657         (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
5658         Generate the non-VSX instruction if all registers were FPRs.  Do
5659         not use the patterns in vsx.md for scalar operations.
5660         (floatunsdisf2_mem): Likewise.
5661         (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
5662         handlers here from vector.md, and expand the types we generate
5663         reload handlers for.
5664         (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
5665         (vec_reload_and_plus_<mptrsize>): Likewise.
5667         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
5668         vector forms of the instructions.  Move VSX scalar forms to
5669         rs6000.md, and add support for -mupper-regs-sf.
5670         (vsx_floatuns<VSi><mode>2): Likewise.
5671         (vsx_fix_trunc<mode><VSi>2): Likewise.
5672         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
5673         (vsx_float_fix_<mode>2): Delete DF version, rename to
5674         vsx_float_fix_v2df2.
5675         (vsx_float_fix_v2df2): Likewise.
5677 2014-11-14  Martin Jambor  <mjambor@suse.cz>
5679         * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
5680         (ipa_pass_through_data): Removed field type_preserved.
5681         (ipa_ancestor_jf_data): removed fields type and type_preserved.
5682         (ipa_jump_func): Removed field known_type.
5683         (ipa_get_jf_known_type_offset): Removed.
5684         (ipa_get_jf_known_type_base_type): Likewise.
5685         (ipa_get_jf_known_type_component_type): Likewise.
5686         (ipa_get_jf_ancestor_type): Likewise.
5687         * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
5688         (ipa_get_jf_pass_through_result): Likewise.
5689         (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
5690         (values_equal_for_ipcp_p): Removed BINFO handling.
5691         (ipa_get_indirect_edge_target_1): Updated comment.
5692         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
5693         of IPA_JF_KNOWN_TYPE jump functions.  Do not print removed fields.
5694         (ipa_set_jf_known_type): Removed.
5695         (ipa_set_jf_simple_pass_through): Do not set removed fields.  Update
5696         all callers.
5697         (ipa_set_jf_arith_pass_through): Likewise.
5698         (ipa_set_ancestor_jf): Likewise.
5699         (ipa_binfo_from_known_type_jfunc): Removed.
5700         (prop_type_change_info): Removed fields known_current_type and
5701         multiple_types_encountered.
5702         (extr_type_from_vtbl_ptr_store): Removed.
5703         (check_stmt_for_type_change): Do not attempt to identify changed type.
5704         (detect_type_change_from_memory_writes): Do not set the removed fields,
5705         always set jfunc to unknown.
5706         (compute_complex_assign_jump_func): Do not detect dynamic type change.
5707         (compute_complex_ancestor_jump_func): Likewise.
5708         (compute_known_type_jump_func): Removed.
5709         (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
5710         change.  Do not comute known type jump functions.
5711         (combine_known_type_and_ancestor_jfs): Removed.
5712         (update_jump_functions_after_inlining): Removed handling of
5713         IPA_JF_KNOWN_TYPE jump functions.  Do not set removed fields.
5714         (ipa_write_jump_function): Do not stream removed fields or known type
5715         jump functions.
5716         (ipa_read_jump_function): Likewise.
5718 2014-11-14  Vladimir Makarov  <vmakarov@redhat.com>
5720         * lra-int.h (lra_create_live_ranges): Add parameter.
5721         * lra-lives.c (temp_bitmap): Move higher.
5722         (initiate_live_solver): Move temp_bitmap initialization into
5723         lra_live_ranges_init.
5724         (finish_live_solver): Move temp_bitmap clearing into
5725         live_ranges_finish.
5726         (process_bb_lives): Add parameter.  Use it to control live info
5727         update and dead insn elimination.  Pass it to mark_regno_live and
5728         mark_regno_dead.
5729         (lra_create_live_ranges): Add parameter.  Pass it to
5730         process_bb_lives.
5731         (lra_live_ranges_init, lra_live_ranges_finish): See changes in
5732         initiate_live_solver and finish_live_solver.
5733         * lra-remat.c (do_remat): Process insn non-operand hard regs too.
5734         Use temp_bitmap to update avail_cands.
5735         * lra.c (lra): Pass new parameter to lra_create_live_ranges.  Move
5736         check with lra_need_for_spill_p after live range pass.  Switch on
5737         rematerialization pass.
5739 2014-11-14  Martin Jambor  <mjambor@suse.cz>
5741         * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
5742         agg_preserved flag instead.
5743         (ipa_get_jf_ancestor_type_preserved): Likewise.
5744         (ipa_node_params): Rename known_vals to known_csts, update all users.
5745         New field known_contexts.
5746         (ipa_get_indirect_edge_target): Update prototype.
5747         (ipcp_poly_ctx_values_pool): Declare.
5748         (ipa_context_from_jfunc): Likewise.
5749         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
5750         * cgraph.h (ipa_polymorphic_call_context): New method equal_to.  New
5751         parameter newline of method dump.
5752         * ipa-cp.c (ctxlat): New field.
5753         (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
5754         (ipcp_poly_ctx_values_pool):New variable.
5755         (ipa_get_poly_ctx_lat): New function.
5756         (print_ipcp_constant_value): New overloaded function for contexts.
5757         (print_all_lattices): Also print contexts.
5758         (ipa_topo_info): New field contexts;
5759         (set_all_contains_variable): Also set the flag in the context lattice.
5760         (initialize_node_lattices): Likewise for flag bottom.
5761         (ipa_get_jf_ancestor_result): Removed BINFO handling.
5762         (ipa_value_from_jfunc): Likewise.
5763         (ipa_context_from_jfunc): New function.
5764         (values_equal_for_ipcp_p): New overloaded function for contexts.
5765         (allocate_and_init_ipcp_value): Construct the value.
5766         (allocate_and_init_ipcp_value): New overloaded function for contexts.
5767         (propagate_scalar_accross_jump_function): Removed handling of
5768         KNOWN_TYPE jump functions.
5769         (propagate_context_accross_jump_function): New function.
5770         (propagate_constants_accross_call): Also propagate contexts.
5771         (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
5772         (ipa_get_indirect_edge_target): Likewise.
5773         (devirtualization_time_bonus): Likewise.
5774         (gather_context_independent_values): Create and populate known_contexts
5775         vector rather than known_binfos.
5776         (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
5777         (estimate_local_effects): Likewise.
5778         (add_all_node_vals_to_toposort): Also add contexts to teir topological
5779         sort.
5780         (ipcp_propagate_stage): Also propagate effects of contexts.
5781         (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
5782         ipa_get_indirect_edge_target_1.
5783         (cgraph_edge_brings_value_p): New overloaded function for contexts.
5784         (create_specialized_node): Work on contexts rather than BINFOs.
5785         (find_more_contexts_for_caller_subset): New function.
5786         (known_contexts_useful_p): New function.
5787         (copy_useful_known_contexts): Likewise.
5788         (modify_known_vectors_with_val): Likewise.
5789         (ipcp_val_in_agg_replacements_p): Renamed to
5790         ipcp_val_agg_replacement_ok_p, return true for all offset indicating
5791         non-aggregate.
5792         (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
5793         (decide_about_value): Work on contexts rather than BINFOs.
5794         (decide_whether_version_node): Likewise.
5795         (ipcp_driver): Initialize the new alloc pool.
5796         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
5797         printing of edge contexts.
5798         (ipa_set_ancestor_jf): Replace assert with conditional setting of
5799         type_preserved to false.
5800         (update_jump_functions_after_inlining): Use access function instead of
5801         reading agg_preserved directly.  Store combined context in the ancestor
5802         case.
5803         (try_make_edge_direct_virtual_call): Work on contexts rather than
5804         BINFOs.
5805         (update_indirect_edges_after_inlining): Get context from
5806         ipa_context_from_jfunc.
5807         (ipa_free_node_params_substructures): Free also known_contexts.
5808         (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
5809         (ipa_free_all_structures_after_iinln): Likewise.
5810         * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
5811         contexts rather than BINFOs.
5812         (estimate_edge_devirt_benefit): Likewise.
5813         (estimate_edge_size_and_time): Likewise.
5814         (estimate_calls_size_and_time): Likewise.
5815         (estimate_node_size_and_time): Likewise.
5816         (estimate_ipcp_clone_size_and_time): Likewise.
5817         (do_estimate_edge_time): Likewise.
5818         (do_estimate_edge_size): Likewise.
5819         (do_estimate_edge_hints): Likewise.
5820         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
5821         parameter newline, ouput newline only when it is set.
5822         (ipa_polymorphic_call_context::equal_to): New method.
5824 2014-11-14  Martin Jambor  <mjambor@suse.cz>
5826         * ipa-cp.c (ipcp_value_source): Converted to a template class.  All
5827         users converted to the same specialization as the using class/function
5828         or specialization on tree.
5829         (ipcp_value): Likewise.
5830         (ipcp_lattice): Likewise.
5831         (ipcp_agg_lattice): Now derived from tree specialization of
5832         ipcp_lattice.
5833         (values_topo): Moved to new class value_topo_info.
5834         (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
5835         Updated all callers.
5836         (print_lattice): Turned into ipcp_lattice::print.  Updated all
5837         callers.
5838         (value_topo_info): New class template.
5839         (ipa_topo_info): New field constants.  New constructor.
5840         (build_toporder_info): Do not clear stack_top, only checkign assert
5841         it.
5842         (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
5843         Updated all callers.
5844         (set_lattice_contains_variable): Turned into
5845         ipcp_lattice::set_contains_variable.  Updated all callers.
5846         (add_value_source): Turned into ipcp_value::add_source.  Updated all
5847         callers.
5848         (allocate_and_init_ipcp_value): New function.
5849         (add_value_to_lattice): Turned into ipcp_lattice::add_value.  Last
5850         parameter got default a value.  Updated all callers.
5851         (add_scalar_value_to_lattice): Removed, users converted to using
5852         ipcp_lattice::add_value with default value of the last parameter.
5853         (add_val_to_toposort): Turned to value_topo_info::add_val.  Updated
5854         all callers.
5855         (propagate_effects): Made method of value_topo_info.
5856         (cgraph_edge_brings_value_p): Now a template function.
5857         (get_info_about_necessary_edges): Likewise.
5858         (gather_edges_for_value): Likewise.
5859         (perhaps_add_new_callers): Likewise.
5860         (decide_about_value): Likewise.
5861         * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
5863 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
5865         * doc/install.texi (--with-diagnostics-color=): Document.
5867         * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
5868         IFN_GOMP_SIMD_LANE without lhs as useless.
5870         * ipa-pure-const.c (struct funct_state_d): Add can_free field.
5871         (varying_state): Add true for can_free.
5872         (check_call): For builtin or internal !nonfreeing_call_p set
5873         local->can_free.
5874         (check_stmt): For asm volatile and asm with "memory" set
5875         local->can_free.
5876         (analyze_function): Clear local->can_free initially, continue
5877         calling check_stmt until all flags are computed, dump can_free
5878         flag.
5879         (pure_const_write_summary): Write can_free flag.
5880         (pure_const_read_summary): Read it back.
5881         (propagate_pure_const): Propagate also can_free flag, set
5882         w->nonfreeing_fn if it is false after propagation.
5883         * cgraph.h (cgraph_node): Add nonfreeing_fn member.
5884         * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
5885         (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
5886         Also return true for IFN_ABNORMAL_DISPATCHER.
5887         * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
5888         * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
5889         (input_overwrite_node): Read it back.
5891 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
5892             Marek Polacek  <polacek@redhat.com>
5894         * sanopt.c: Include tree-ssa-operands.h.
5895         (struct sanopt_info): Add has_freeing_call_p,
5896         has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
5897         imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
5898         being_visited_p fields.
5899         (struct sanopt_ctx): Add asan_check_map field.
5900         (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
5901         maybe_optimize_asan_check_ifn): New functions.
5902         (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
5903         internal calls.
5904         (pass_sanopt::execute): Call sanopt_optimize even for
5905         -fsanitize=address.
5906         * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
5907         internal calls.
5909 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
5911         * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
5912         'if (extract_scalar_result)' to the only place that it is true.
5914 2014-11-14  H.J. Lu  <hongjiu.lu@intel.com>
5916         * config.gcc (default_gnu_indirect_function): Set to yes
5917         for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
5918         Android nor uclibc.
5920 2014-11-14  Felix Yang  <felix.yang@huawei.com>
5921             Jiji Jiang  <jiangjiji@huawei.com>
5923         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
5924         VALL mode iterator instead of VALLDI.
5927 2014-11-14  Jan Hubicka  <hubicka@ucw.cz>
5929         * optc-save-gen.awk: Output cl_target_option_eq,
5930         cl_target_option_hash, cl_target_option_stream_out,
5931         cl_target_option_stream_in functions.
5932         * opth-gen.awk: Output prototypes for
5933         cl_target_option_eq and cl_target_option_hash.
5934         * lto-streamer.h (cl_target_option_stream_out,
5935         cl_target_option_stream_in): Declare.
5936         * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
5937         (cl_option_hash_eq): Use cl_target_option_eq.
5938         * tree-streamer-in.c (unpack_value_fields): Stream in
5939         TREE_TARGET_OPTION.
5940         * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
5941         DECL_FUNCTION_SPECIFIC_TARGET.
5942         (hash_tree): Hash TREE_TARGET_OPTION; visit
5943         DECL_FUNCTION_SPECIFIC_TARGET.
5944         * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
5945         TS_TARGET_OPTION.
5946         (streamer_write_tree_body): Output TS_TARGET_OPTION.
5948 2014-11-14  Richard Biener  <rguenther@suse.de>
5950         * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
5951         valueization hook defaulted to no_follow_ssa_edges.
5952         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
5953         2nd valueization hook to gimple_simplify.
5954         * tree-ssa-ccp.c (valueize_op_1): New function to be
5955         used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
5956         (ccp_fold): Adjust.
5957         * tree-vrp.c (vrp_valueize_1): New function to be
5958         used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
5959         (vrp_visit_assignment_or_call): Adjust.
5961 2014-11-14  Marek Polacek  <polacek@redhat.com>
5963         * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
5964         that overflows when SANITIZE_SI_OVERFLOW is on.  Guard -(-A)
5965         folding with TYPE_OVERFLOW_SANITIZED.
5967 2014-11-14  Marek Polacek  <polacek@redhat.com>
5969         PR sanitizer/63839
5970         * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
5971         ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
5972         * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
5973         Define.
5974         * builtins.c (fold_builtin_0): Don't include ubsan.h.  Don't
5975         instrument BUILT_IN_UNREACHABLE here.
5976         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
5977         const.
5978         * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
5979         * tree-ssa-ccp.c (optimize_unreachable): Bail out if
5980         SANITIZE_UNREACHABLE.
5981         * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
5982         * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
5984 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
5986         * config/rs6000/vector.md (vec_shl_<mode>): Remove.
5987         (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
5989 2014-11-14  Alan Lawrence  <alan.lawrence@arm.com>
5991         * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
5992         BYTES_BIG_ENDIAN.
5993         * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
5994         vect_create_epilog_for_reduction): Likewise.
5995         * doc/md.texi (vec_shr_m): Clarify direction of shifting.
5997 2014-11-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5999         PR target/63724
6000         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
6001         numerical immediate handling to...
6002         (aarch64_internal_mov_immediate): ...this. New.
6003         (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
6004         (aarch64_mov_operand_p): Relax predicate.
6005         * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
6006         (*movsi_aarch64): Turn into define_insn_and_split and new alternative
6007         for 'n'.
6008         (*movdi_aarch64): Likewise.
6010 2014-11-14  Richard Biener  <rguenther@suse.de>
6012         * match.pd: Implement more binary patterns exercised by
6013         fold_stmt.
6014         * fold-const.c (sing_bit_p): Export.
6015         (exact_inverse): Likewise.
6016         (fold_binary_loc): Remove patterns here.
6017         (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
6018         * fold-const.h (sing_bit_p): Declare.
6019         (exact_inverse): Likewise.
6021 2014-11-14  Marek Polacek  <polacek@redhat.com>
6023         * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
6025 2014-11-14  Richard Biener  <rguenther@suse.de>
6027         * genmatch.c (add_operator): Allow CONSTRUCTOR.
6028         (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
6029         (parser::parse_op): Allow to iterate over predicates.
6031 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
6033         * configure.ac (--with-diagnostics-color): New configure
6034         option, default to --with-diagnostics-color=auto.
6035         * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
6036         to determine -fdiagnostics-color= option default.
6037         * doc/invoke.texi (-fdiagnostics-color=): Document new
6038         default.
6039         * configure: Regenerated.
6040         * config.in: Regenerated.
6042 2014-11-13  Teresa Johnson  <tejohnson@google.com>
6044         PR tree-optimization/63841
6045         * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
6047 2014-11-14  Bin Cheng  <bin.cheng@arm.com>
6049         * timevar.def (TV_SCHED_FUSION): New time var.
6050         * passes.def (pass_sched_fusion): New pass.
6051         * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
6052         (extract_base_offset_in_addr, fusion_load_store): New.
6053         (arm_sched_fusion_priority): New.
6054         (arm_option_override): Disable scheduling fusion by default
6055         on non-armv7 processors or ldrd/strd isn't preferred.
6056         * sched-int.h (struct _haifa_insn_data): New field.
6057         (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
6058         * sched-rgn.c (rest_of_handle_sched_fusion): New.
6059         (pass_data_sched_fusion, pass_sched_fusion): New.
6060         (make_pass_sched_fusion): New.
6061         * haifa-sched.c (sched_fusion): New.
6062         (insn_cost): Handle sched_fusion.
6063         (priority): Handle sched_fusion by calling target hook.
6064         (enum rfs_decision): New enum value.
6065         (rfs_str): New element for RFS_FUSION.
6066         (rank_for_schedule): Support sched_fusion.
6067         (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
6068         (schedule_block, fix_tick_ready): Handle sched_fusion.
6069         * common.opt (flag_schedule_fusion): New.
6070         * tree-pass.h (make_pass_sched_fusion): New.
6071         * target.def (fusion_priority): New.
6072         * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
6073         * doc/tm.texi: Regenerated.
6074         * doc/invoke.texi (-fschedule-fusion): New.
6076 2014-11-13  Rong Xu  <xur@google.com>
6078         PR debug/63581
6079         * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
6080         footer, instead of unconditionally overwritten.
6082 2014-11-14  Martin Jambor  <mjambor@suse.cz>
6084         * cgraph.h (clear_outer_type): Make public.  Fix comment.
6085         * ipa-devirt.c (possible_polymorphic_call_targets): Use
6086         clear_outer_type when resetting the context.
6088 2014-11-13  Dominique Dhumieres  <dominiq@lps.ens.fr>
6090         PR bootstrap/63853
6091         * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
6092         * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
6094 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
6096         * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
6097         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
6098         * tree-inline.c (estimate_operator_cost): Likewise.
6099         * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
6100         Likewise.
6102         * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
6103         against VEC_RSHIFT_EXPR.
6105         * optabs.h (expand_vec_shift_expr): Remove.
6106         * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
6107         (expand_vec_shift_expr): Remove.
6108         * tree.def (VEC_RSHIFT_EXPR): Remove
6110 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
6112         * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
6113         (shift_amt_for_vec_perm_mask): New.
6114         (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
6115         and mask appropriate.
6117         * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
6118         (have_whole_vector_shift): New.
6119         (vect_model_reduction_cost): Call have_whole_vector_shift instead of
6120         looking for vec_shr_optab.
6121         (vect_create_epilog_for_reduction): Likewise; also rename local variable
6122         have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
6123         instead of VEC_RSHIFT_EXPRs.
6125         * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
6127 2014-11-13  Alan Lawrence  <alan.lawrence@arm.com>
6129         * tree-vectorizer.h (vect_gen_perm_mask): Remove.
6130         (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
6132         * tree_vec_data_refs.c (vect_permute_load_chain,
6133         vec_permute_store_chain, vec_shift_permute_load_chain): Replace
6134         vect_gen_perm_mask & assert with vect_gen_perm_mask_checked.
6136         * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
6137         Likewise.
6138         (vect_gen_perm_mask_checked): New.
6139         (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
6140         (vect_gen_perm_mask_any): ...this.
6141         (perm_mask_for_reverse): Call can_vec_perm_p and
6142         vect_gen_perm_mask_checked.
6144 2014-11-13  Felix Yang  <felix.yang@huawei.com>
6146         * ipa-utils.h: Fix typo in comments.
6147         * ipa-profile.c: Likewise.
6148         * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
6150 2014-11-13  Teresa Johnson  <tejohnson@google.com>
6152         PR tree-optimization/63841
6153         * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
6155 2014-11-13  Teresa Johnson  <tejohnson@google.com>
6157         PR tree-optimization/63841
6158         * tree.c (initializer_zerop): A clobber does not zero initialize.
6160 2014-11-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6162         * optabs.c (prepare_operand): Gracefully fail if the mode of X
6163         does not match the operand mode expected by the insn pattern.
6165 2014-11-13  Richard Biener  <rguenther@suse.de>
6167         * match.pd: Add tcc_comparison, inverted_tcc_comparison
6168         and inverted_tcc_comparison_with_nans operator lists.
6169         Use tcc_comparison in the truth_valued_p predicate definition.
6170         Restrict logical_inverted_value with bit_xor to integral types.
6171         Build a boolean true for simplifying x |^ !x because of
6172         vector types.  Implement patterns from forward_propagate_comparison
6173         * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
6174         (get_prop_dest_stmt): Likewise.
6175         (pass_forwprop::execute): Do not call it.
6176         * fold-const.c (fold_unary_loc): Remove the pattern here.
6178 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
6179             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6181         * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
6182         tmake_file.
6183         (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
6184         accelerator compiler.
6185         * config/i386/intelmic-mkoffload.c: New file.
6186         * config/i386/t-intelmic: Ditto.
6188 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
6189             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6190             Ilya Verbin  <ilya.verbin@intel.com>
6192         * common.opt (foffload, foffload-abi): New options.
6193         * config/i386/i386.c (ix86_offload_options): New static function.
6194         (TARGET_OFFLOAD_OPTIONS): Define.
6195         * coretypes.h (enum offload_abi): New enum.
6196         * doc/tm.texi: Regenerate.
6197         * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
6198         * gcc.c (offload_targets): New static variable.
6199         (handle_foffload_option): New static function.
6200         (driver_handle_option): Handle OPT_foffload_.
6201         (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
6202         according to offload_targets.
6203         * hooks.c (hook_charptr_void_null): New hook.
6204         * hooks.h (hook_charptr_void_null): Declare.
6205         * lto-opts.c: Include lto-section-names.h.
6206         (lto_write_options): Append options from target offload_options hook and
6207         store them to offload_lto section.  Do not store target-specific,
6208         driver and diagnostic options in offload_lto section.
6209         * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
6210         OPT_foffload_abi_.
6211         (append_compiler_options, append_linker_options)
6212         (append_offload_options): New static functions.
6213         (compile_offload_image): Add new arguments with options.
6214         Call append_compiler_options and append_offload_options.
6215         (compile_images_for_offload_targets): Add new arguments with options.
6216         (find_and_merge_options): New static function.
6217         (run_gcc): Outline options handling into the new functions:
6218         find_and_merge_options, append_compiler_options, append_linker_options.
6219         * opts.c (common_handle_option): Don't handle OPT_foffload_.
6220         Forbid OPT_foffload_abi_ for non-offload compiler.
6221         * target.def (offload_options): New target hook.
6223 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
6224             Bernd Schmidt  <bernds@codesourcery.com>
6225             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6226             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6228         * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
6229         (process_command): Tweak path construction for the possibility
6230         of being configured as an offload compiler.
6231         (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
6232         (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
6233         (driver::set_up_specs): Tweak path construction for the possibility of
6234         being configured as an offload compiler.
6235         * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
6236         (offload_names, offloadbegin, offloadend): New static variables.
6237         (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
6238         (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
6239         New static functions.
6240         (run_gcc): Determine whether offload sections are present.  If so, run
6241         compile_images_for_offload_targets and return the names of new generated
6242         objects to linker.  If there are offload sections, but no LTO sections,
6243         then return the copies of input objects without link-time recompilation.
6245 2014-11-13  Richard Biener  <rguenther@suse.de>
6247         * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
6249 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
6250             Bernd Schmidt  <bernds@codesourcery.com>
6251             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6252             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6254         * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
6255         * cgraphunit.c: Include omp-low.h.
6256         * doc/tm.texi: Regenerate.
6257         * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
6258         * gengtype.c (open_base_files): Add omp-low.h to ifiles.
6259         * lto-cgraph.c (output_offload_tables): New function.
6260         (input_offload_tables): Likewise.
6261         * lto-section-in.c (lto_section_name): Add "offload_table".
6262         * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
6263         (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
6264         * lto-streamer-out.c (lto_output): Call output_offload_tables.
6265         * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
6266         (output_offload_tables, input_offload_tables): Declare.
6267         * omp-low.c: Include common/common-target.h and lto-section-names.h.
6268         (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
6269         (expand_omp_target): Add child_fn into offload_funcs vector.
6270         (add_decls_addresses_to_decl_constructor): New function.
6271         (omp_finish_file): Likewise.
6272         * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
6273         * target.def (record_offload_symbol): New DEFHOOK.
6274         * toplev.c: Include omp-low.h.
6275         (compile_file): Call omp_finish_file.
6276         * varpool.c: Include omp-low.h.
6277         (varpool_node::get_create): Add decl into offload_vars vector.
6279 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
6280             Ilya Tocar  <ilya.tocar@intel.com>
6281             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6282             Bernd Schmidt  <bernds@codesourcery.com>
6284         * cgraph.c: Include context.h.
6285         (cgraph_node::create): Set node->offloadable and g->have_offload if
6286         decl have "omp declare target" attribute.
6287         * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
6288         * cgraphunit.c: Include lto-section-names.h.
6289         (ipa_passes): Call ipa_write_summaries if there is something to write to
6290         OFFLOAD_SECTION_NAME_PREFIX sections.
6291         (symbol_table::compile): Set flag_generate_lto if there is something to
6292         offload.
6293         Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
6294         * context.c (gcc::context::context): Initialize have_offload with false.
6295         * context.h (class context): Add have_offload flag.
6296         * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
6297         flag_generate_lto.
6298         (inline_free_summary): Always remove hooks.
6299         * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
6300         from non-offloadable nodes while streaming a node into offload section.
6301         (reachable_from_other_partition_p): Likewise.
6302         (select_what_to_stream): New function.
6303         (compute_ltrans_boundary): Do not call
6304         lto_set_symtab_encoder_in_partition if the node should not be streamed.
6305         * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
6306         (section_name_prefix): Declare.
6307         * lto-streamer.c (section_name_prefix): New variable.
6308         (lto_get_section_name): Use section_name_prefix instead of
6309         LTO_SECTION_NAME_PREFIX.
6310         * lto-streamer.h (select_what_to_stream): Declare.
6311         * omp-low.c: Include context.h.
6312         (is_targetreg_ctx): New function.
6313         (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
6314         (create_omp_child_function, check_omp_nesting_restrictions): Use new
6315         is_targetreg_ctx function.  Replace usage of "omp declare target"
6316         attribute with a cgraph_node flag offloadable.
6317         (expand_omp_target): Set mark_force_output for offloadable functions.
6318         (lower_omp_critical): Set offloadable flag for omp critical symbol.
6319         * passes.c (ipa_write_summaries): New argument offload_lto_mode.  Call
6320         select_what_to_stream.  Do not call lto_set_symtab_encoder_in_partition
6321         if the node should not be streamed out.
6322         * tree-pass.h (ipa_write_summaries): New bool argument.
6323         * varpool.c: Include context.h.
6324         (varpool_node::get_create): Set node->offloadable and g->have_offload if
6325         decl have "omp declare target" attribute.
6327 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
6328             Thomas Schwinge  <thomas@codesourcery.com>
6329             Ilya Verbin  <ilya.verbin@intel.com>
6330             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6332         * Makefile.in (real_target_noncanonical, accel_dir_suffix)
6333         (enable_as_accelerator): New variables substituted by configure.
6334         (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
6335         being configured as an offload compiler.
6336         (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
6337         ACCEL_DIR_SUFFIX.
6338         (install-cpp, install-common, install_driver, install-gcc-ar): Do not
6339         install for the offload compiler.
6340         * config.in: Regenerate.
6341         * configure: Regenerate.
6342         * configure.ac (real_target_noncanonical, accel_dir_suffix)
6343         (enable_as_accelerator): Compute new variables.
6344         (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
6345         (OFFLOAD_TARGETS): List of target names suitable for offloading.
6346         (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
6347         * doc/install.texi (Options specification): Document
6348         --enable-as-accelerator-for and --enable-offload-targets.
6350 2014-11-13  H.J. Lu  <hongjiu.lu@intel.com>
6352         PR tree-optimization/63828
6353         * ipa-polymorphic-call.c (possible_placement_new): Check
6354         POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
6356 2014-11-13  Eric Botcazou  <ebotcazou@adacore.com>
6358         * doc/tm.texi.in (SELECT_CC_MODE): Update example.
6359         (REVERSIBLE_CC_MODE): Fix example.
6360         (REVERSE_CONDITION): Fix typo.
6361         * doc/tm.texi: Regenerate.
6363 2014-11-13  Tom de Vries  <tom@codesourcery.com>
6365         * omp-low.c (pass_data_expand_omp): Set properties_provided to
6366         PROP_gimple_eomp.
6367         (pass_expand_omp::gate): Remove function.  Move gate expression to ...
6368         (pass_expand_omp::execute): ... here, as new variable gate.  Add early
6369         exit if gate is false.
6370         (pass_data pass_data_expand_omp_ssa): New pass_data.
6371         (class pass_expand_omp_ssa): New pass.
6372         (make_pass_expand_omp_ssa): New function.
6373         * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
6374         instead of NEXT_PASS.
6375         (pass_expand_omp_ssa): Add after pass_parallelize_loops.
6376         * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
6377         (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
6378         and TODO_rebuild_alias yet.  Add TODO_update_ssa.  Set
6379         cfun->omp_expand_needed.
6380         * tree-pass.h: Add define PROP_gimple_eomp.
6381         (make_pass_expand_omp_ssa): Declare.
6383 2014-11-13  Marek Polacek  <polacek@redhat.com>
6385         * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
6386         * fold-const.c (fold_binary_loc): Use it.
6387         * match.pd: Likewise.
6389 2014-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
6391         * lra-lives.c (struct bb_data): Rename to ...
6392         (struct bb_data_pseudos): ... this.
6393         (initiate_live_solver): Update struct name.
6395 2014-11-13  Richard Biener  <rguenther@suse.de>
6397         * match.pd: Implement conditional expression patterns.
6398         * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
6399         them here.
6400         (combine_cond_exprs): Remove.
6401         (pass_forwprop::execute): Do not call combine_cond_exprs.
6402         * fold-const.c (fold_ternary_loc): Remove patterns here.
6403         (pedantic_omit_one_operand_loc): Remove.
6405 2014-12-13  Richard Biener  <rguenther@suse.de>
6407         PR middle-end/61559
6408         * match.pd: Implement bswap patterns for transforms checked by
6409         gcc.dg/builtin-bswap-8.c.
6411 2014-11-13  Vladimir Makarov  <vmakarov@redhat.com>
6413         * lra.c (lra): Switch off rematerialization pass.
6415 2014-11-12  Vladimir Makarov  <vmakarov@redhat.com>
6417         * common.opt (flra-remat): New.
6418         * opts.c (default_options_table): Add entry for flra_remat.
6419         * timevar_def (TV_LRA_REMAT): New.
6420         * doc/invoke.texi (-flra-remat): Add description of the new
6421         option.
6422         * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
6423         lra-saves.c.  Add lra-remat.c.
6424         * Makefile.in (OBJS): Add lra-remat.o.
6425         * lra-remat.c: New file.
6426         * lra.c: Add info about the rematerialization pass in the top
6427         comment.
6428         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
6429         Process unallocatable regs too.
6430         (lra_constraint_new_insn_uid_start): Remove.
6431         (lra): Add code for calling rematerialization sub-pass.
6432         * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
6433         (lra_constrain_insn, lra_remat): New prototypes.
6434         (lra_eliminate_regs_1): Add parameter.
6435         * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
6436         Process unallocatable hard regs too.
6437         (process_bb_lives): Ditto.
6438         * lra-spills.c (remove_pseudos): Add argument to
6439         lra_eliminate_regs_1 call.
6440         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter.  Use it
6441         for sp offset calculation.
6442         (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
6443         (eliminate_regs_in_insn): Add parameter.  Use it for sp offset
6444         calculation.
6445         (process_insn_for_elimination): Add argument for
6446         eliminate_regs_in_insn call.
6447         * lra-constraints.c (get_equiv_with_elimination):  Add argument
6448         for lra_eliminate_regs_1 call.
6449         (process_addr_reg): Add parameter.  Use it.
6450         (process_address_1): Ditto.  Add argument for process_addr_reg
6451         call.
6452         (process_address): Ditto.
6453         (curr_insn_transform): Add parameter.  Use it.  Add argument for
6454         process_address calls.
6455         (lra_constrain_insn): New function.
6456         (lra_constraints): Add argument for curr_insn_transform call.
6458 2014-11-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6460         * opts-global.c (postpone_unknown_option_warning): Fix spelling.
6461         (print_ignored_options): Fix quoting.
6462         * opts.c (common_handle_option): Likewise.
6463         (set_debug_level): Likewise.
6464         * toplev.c (process_options): Likewise.
6466 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
6468         PR ipa/63838
6469         * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
6470         chain instead of node->indirect_calls.  Put !can_throw into
6471         conditions of all the loops.
6473 2014-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6475         * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
6476         set pic_offset_table_rtx.
6478 2014-11-12  Matthew Fortune  <matthew.fortune@imgtec.com>
6480         * common/config/mips/mips-common.c (mips_handle_option): Ensure
6481         that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
6482         * config.gcc (--with-fp-32): New option.
6483         (--with-odd-spreg-32): Likewise.
6484         * config.in (HAVE_AS_DOT_MODULE): New config define.
6485         * config/mips/mips-protos.h
6486         (mips_secondary_memory_needed): New prototype.
6487         (mips_hard_regno_caller_save_mode): Likewise.
6488         * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
6489         (mips_get_arg_info): Assert that V2SFmode is only handled specially
6490         with TARGET_PAIRED_SINGLE_FLOAT.
6491         (mips_return_mode_in_fpr_p): Likewise.
6492         (mips16_call_stub_mode_suffix): Likewise.
6493         (mips_get_reg_raw_mode): New static function.
6494         (mips_return_fpr_pair): O32 return values span two registers.
6495         (mips16_build_call_stub): Likewise.
6496         (mips_function_value_regno_p): Support both FP return registers.
6497         (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1.  Add
6498         specific cases for TARGET_FPXX to move via memory.
6499         (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
6500         than UNITS_PER_FPREG 'span' one register.
6501         (mips_dwarf_frame_reg_mode): New static function.
6502         (mips_file_start): Switch to using .module instead of .gnu_attribute.
6503         No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
6504         Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
6505         (mips_save_reg, mips_restore_reg): Always represent DFmode frame
6506         slots with two CFI directives even for O32 FP64.
6507         (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
6508         saving/restoring callee-saved registers.
6509         (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
6510         (mips_secondary_memory_needed): New function.
6511         (mips_option_override): ABI check for TARGET_FLOATXX.  Disable
6512         odd-numbered single-precision registers when using TARGET_FLOATXX.
6513         Implement -modd-spreg and defaults.
6514         (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
6515         callee-saved behaviour.
6516         (mips_hard_regno_caller_save_mode): Implement.
6517         (TARGET_GET_RAW_RESULT_MODE): Define target hook.
6518         (TARGET_GET_RAW_ARG_MODE): Define target hook.
6519         (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
6520         * config/mips/mips.h (TARGET_FLOAT32): New macro.
6521         (TARGET_O32_FP64A_ABI): Likewise.
6522         (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
6523         _MIPS_SPFPSET builtin define.
6524         (MIPS_FPXX_OPTION_SPEC): New macro.
6525         (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
6526         --with-odd-spreg-32=* to -m[no-]odd-spreg.
6527         (ISA_HAS_ODD_SPREG): New macro.
6528         (ISA_HAS_MXHC1): True for anything other than -mfp32.
6529         (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
6530         (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
6531         (HARD_REGNO_CALLER_SAVE_MODE): Define.  Implement O32 FPXX extension
6532         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
6533         (SECONDARY_MEMORY_NEEDED): Likewise.
6534         (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
6535         * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
6536         FP64A ABI extensions.
6537         (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
6538         TARGET_FLOAT64.
6539         * config/mips/mips.opt (mfpxx): New target option.
6540         (modd-spreg): Likewise.
6541         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
6542         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
6543         fp64 sysroot.
6544         * config/mips/t-mti-elf: Remove fp64 multilib.
6545         * config/mips/t-mti-linux: Likewise.
6546         * configure.ac: Detect .module support.
6547         * configure: Regenerate.
6548         * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
6549         * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
6550         options.
6552 2014-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6554         PR target/63815
6555         * config/i386/i386.c (ix86_init_large_pic_reg): New.  Extracted
6556         from ...
6557         (ix86_init_pic_reg): Here.  Use ix86_init_large_pic_reg.
6558         (x86_output_mi_thunk): Set PIC register to %r11.  Call
6559         ix86_init_large_pic_reg to initialize PIC register.
6561 2014-11-12  Kai Tietz  <ktietz@redhat.com>
6563         * sdbout.c (sdbout_symbol): Eliminate register only
6564         if decl isn't a global variable.
6566 2014-11-12  Alan Lawrence  <alan.lawrence@arm.com>
6568         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
6570         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
6571         qualifier_lane_index.
6572         (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
6573         (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
6574         (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
6576         (aarch64_types_getlane_qualifiers): Rename to...
6577         (aarch64_types_binop_imm_qualifiers): ...this.
6578         (TYPES_SHIFTIMM): Follow renaming.
6579         (TYPES_GETLANE): Rename to...
6580         (TYPE_GETREG): ...this.
6582         (aarch64_types_setlane_qualifiers): Rename to...
6583         (aarch64_type_ternop_imm_qualifiers): ...this.
6584         (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
6585         (TYPES_SETLANE): Follow renaming above, and rename self to...
6586         (TYPE_SETREG): ...this.
6588         (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
6589         (aarch64_simd_expand_args): Add range check and endianness-flip.
6591         (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
6593         * config/aarch64/aarch64-simd.md
6594         (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
6595         (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
6596         (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
6598         (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
6599         (aarch64_sq<r>dmulh_lane<mode>): ...this.
6601         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
6602         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
6604         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
6605         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
6607         (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
6608         (aarch64_sqdmull_lane<mode>): ...this.
6610         (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
6611         (aarch64_sqdmull_laneq<mode>): ...this.
6613         (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
6614         (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
6615         aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
6616         aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
6618         (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
6619         aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
6620         aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
6621         bounds check and lane flip.
6623         * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
6624         get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
6625         set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
6627         (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
6628         sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
6629         renaming of TERNOP_LANE to QUADOP_LANE.
6631         (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
6632         sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
6633         qualifiers to TERNOP_LANE.
6635 2014-11-12  Tobias Burnus  <burnus@net-b.de>
6637         * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
6638         * configure.ac: Ditto.
6639         * graphite-interchange.c: Remove HAVE_CLOOG block.
6640         * config.in: Regenerate.
6641         * configure: Regenerate.
6643 2014-11-12  Jiong Wang  <jiong.wang@arm.com>
6645         * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
6646         caller-save.
6647         (EPILOGUE_USES): Guard the check by epilogue_completed.
6648         * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
6649         LR.
6650         (aarch64_can_eliminate): Check LR_REGNUM liveness.
6652 2014-11-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6654         * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
6656 2014-11-12  Marek Polacek  <polacek@redhat.com>
6658         * fold-const.c (fold_binary_loc): Don't fold if the result
6659         is undefined.
6660         * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
6661         -(-A) -> A): Likewise.
6663 2014-11-12  Richard Biener  <rguenther@suse.de>
6665         Merge from match-and-simplify branch
6666         2014-11-04  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
6668         * genmatch.c (user_id): Add new member is_oper_list.
6669         (user_id::user_id): Add new default argument.
6670         (parser::parse_operator_list): New function.
6671         (parser::parse_for): Allow operator-list.
6672         (parser::parse_pattern): Call parser::parse_operator_list.
6673         (parser::parse_operation): Reject operator-list.
6674         * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
6676         2014-10-31  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
6678         * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
6680         2014-10-30  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
6682         * genmatch.c (parser::parse_op): Check if predicate is used in
6683         result operand.
6685         2014-10-29  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
6687         * genmatch.c (parser::parse_for): Make sure to have a valid
6688         token to report errors at.
6690         2014-10-28  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
6692         * genmatch.c (parser): Add new member parsing_match_operand.
6693         (parser::parse_operation): Check for conditional convert in result
6694         operand.
6695         (parser::parse_expr): Check for commutative operator in result operand.
6696         Check for :type in match operand.
6697         (parser::parse_simplify): Set/unset parsing_match_operand.
6698         (parser::parser): Initialize parsing_match_operand.
6700         2014-10-28  Richard Biener  <rguenther@suse.de>
6702         * genmatch.c (parser::parse_for): Properly check for already
6703         defined operators.
6705         2014-10-28  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
6707         * genmatch.c (error_cb): Adjust for printing warnings.
6708         (warning_at): New function.
6709         (user_id): Add new member used.
6710         (get_operator): Mark user_id as used.
6711         (parse_for): Warn for unused operators.
6713 2014-11-12  Richard Biener  <rguenther@suse.de>
6715         * match.pd: Implement simple complex operations cancelling.
6716         * fold-const.c (fold_unary_loc): Remove them here.
6718 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
6720         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
6721         Define __NO_MATH_ERRNO__ if -fno-math-errno.
6722         * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
6724 2014-11-12  Richard Biener  <rguenther@suse.de>
6726         * genmatch.c (::gen_transform): Add capture_info and
6727         expand_compares arguments.
6728         (struct expr): Add is_generic flag.
6729         (lower_cond): New functions lowering [VEC_]COND_EXPR
6730         conditions to a GENERIC and a GIMPLE variant.
6731         (lower): Call lower_cond.
6732         (cmp_operand): Also compare the is_generic flag.
6733         (capture_info::cinfo): Add cond_expr_cond_p flag.
6734         (capture_info::capture_info): Pass down whether the
6735         expression argument is a COND_EXPR condition.
6736         (capture_info::walk_match): Likewise, mark captures
6737         capturing COND_EXPR conditions with cond_expr_cond_p.
6738         (expr::gen_transform): Pass down whether we need to
6739         expand compares from COND_EXPR conditions.
6740         (capture::gen_transform): Expand compares substituted
6741         from COND_EXPR conditions into non-COND_EXPR conditions.
6742         (dt_operand::gen_gimple_expr): Handle explicitely marked
6743         GENERIC expressions as generic.
6744         (dt_simplify::gen): Pass whether we need to expand
6745         conditions to gen_transform.  Handle capture results
6746         which are from COND_EXPR conditions.
6747         (main): Pass gimple flag down to lower.
6749 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
6751         PR c/59708
6752         * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
6753         * builtins.c (fold_builtin_arith_overflow): New function.
6754         (fold_builtin_3): Use it.
6755         * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
6756         BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
6757         BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
6758         BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
6759         BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
6760         BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
6761         BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
6762         BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
6763         BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
6764         BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
6765         * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
6766         BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
6767         BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
6768         BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
6769         BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
6770         * expr.c (write_complex_part): Remove prototype, no longer static.
6771         * expr.h (write_complex_part): New prototype.
6772         * function.c (aggregate_value_p): For internal functions return 0.
6773         * gimple-fold.c (arith_overflowed_p): New functions.
6774         (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
6775         * gimple-fold.h (arith_overflowed_p): New prototype.
6776         * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
6777         (find_non_realpart_uses, maybe_optimize_arith_overflow): New
6778         functions.
6779         (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
6780         into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
6781         never used.
6782         * gimplify.c (gimplify_call_expr): Handle gimplification of
6783         internal calls with lhs.
6784         * internal-fn.c (get_range_pos_neg, get_min_precision,
6785         expand_arith_overflow_result_store): New functions.
6786         (ubsan_expand_si_overflow_addsub_check): Renamed to ...
6787         (expand_addsub_overflow): ... this.  Add LOC, LHS, ARG0, ARG1,
6788         UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
6789         Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
6790         (ubsan_expand_si_overflow_neg_check): Renamed to ...
6791         (expand_neg_overflow): ... this.  Add LOC, LHS, ARG1, IS_UBSAN
6792         arguments, remove STMT argument.  Handle SUB_OVERFLOW with
6793         0 as first argument expansion.
6794         (ubsan_expand_si_overflow_mul_check): Renamed to ...
6795         (expand_mul_overflow): ... this.  Add LOC, LHS, ARG0, ARG1,
6796         UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
6797         Handle MUL_OVERFLOW expansion.
6798         (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
6799         arguments for it.
6800         (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
6801         expand_neg_overflow, prepare arguments for it.
6802         (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
6803         for it.
6804         (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
6805         expand_MUL_OVERFLOW): New functions.
6806         * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
6807         internal functions.
6808         * tree-vrp.c (check_for_binary_op_overflow): New function.
6809         (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
6810         is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
6811         (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
6812         internal functions.
6813         * optabs.def (umulv4_optab): New optab.
6814         * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
6815         (*umulv<mode>4, *<u>mulvqi4): New define_insns.
6816         * doc/extend.texi (Integer Overflow Builtins): Document
6817         __builtin_*_overflow.
6819 2014-11-12  Richard Biener  <rguenther@suse.de>
6821         * genmatch.c (capture_info::capture_info): Add missing
6822         COND_EXPR handling.
6823         (capture_info::walk_match): Fix COND_EXPR handling.
6824         (capture_info::walk_result): Likewise.
6826 2014-11-12  Richard Biener  <rguenther@suse.de>
6828         PR middle-end/63821
6829         * match.pd: Add missing conversion to the -(T)-X pattern.
6831 2014-11-12  Richard Biener  <rguenther@suse.de>
6833         PR bootstrap/63819
6834         * hash-table.h: Include ggc.h also for generator programs.
6835         * genmatch.c (ggc_internal_cleared_alloc): Properly define
6836         using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
6838 2014-11-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6840         PR tree-optimization/63761
6841         * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
6842         rather than taking it as a parameter. Add some comments to explain the
6843         gsi_move_before in case of load and why canonicalization of bswap into
6844         a rotation is only done for 16bit values.
6845         (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
6846         refer to the statement just before cur_stmt. Ignore 16bit bswap that
6847         are already in canonical form. Adapt bswap_replace to removal of its
6848         gsi parameter.
6850 2014-11-12  Richard Sandiford  <richard.sandiford@arm.com>
6852         * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
6853         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
6854         (for_each_rtx_in_insn): Delete.
6855         (init_rtlanal): Remove initialization of non_rtx_starting_operands.
6856         * df-core.c: Remove reference to for_each_rtx in comment.
6858 2014-11-12  Tejas Belagod  <tejas.belagod@arm.com>
6860         * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
6861         arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
6862         * doc/aarch64-acle-intrinsics.texi: Remove.
6863         * doc/arm-acle-intrinsics.texi: Remove.
6864         * doc/arm-neon-intrinsics.texi: Remove.
6865         * doc/extend.texi: Consolidate sections AArch64 intrinsics,
6866         ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
6867         Extension section. Add references to public ACLE specification.
6869 2014-11-11  Patrick Palka  <ppalka@gcc.gnu.org>
6871         * tree-vrp.c (register_edge_assert_for_2): Change return type to
6872         void and adjust accordingly.
6873         (register_edge_assert_for_1): Likewise.
6874         (register_edge_assert_for): Likewise.
6875         (find_conditional_asserts): Likewise.
6876         (find_switch_asserts): Likewise.
6877         (find_assert_locations_1): Likewise.
6878         (find_assert_locations): Likewise.
6879         (insert_range_insertions): Inspect the need_assert_for bitmap.
6881 2014-11-11  Andrew Pinski  <apinski@cavium.com>
6883         Bug target/61997
6884         * config.gcc (aarch64*-*-*): Set target_gtfiles to include
6885         aarch64-builtins.c.
6886         * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
6887         at the end of the file.
6889 2014-11-11  Anthony Brandon  <anthony.brandon@gmail.com>
6890             Manuel López-Ibáñez  <manu@gcc.gnu.org>
6892         PR driver/36312
6893         * diagnostic-core.h: Add prototype for fatal_error.
6894         * diagnostic.c (fatal_error): New function fatal_error.
6895         * gcc.c (store_arg): Remove have_o_argbuf_index.
6896         (process_command): Check if input and output files are the same.
6897         * toplev.c (init_asm_output): Check if input and output files are
6898         the same.
6900 2014-11-11  Eric Botcazou  <ebotcazou@adacore.com>
6902         * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
6904 2014-11-11  Eric Botcazou  <ebotcazou@adacore.com>
6906         PR target/61535
6907         * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
6908         smaller than 8 bytes.
6909         (sparc_function_arg_1): Tweak.
6910         (sparc_function_value_1): Tweak.
6912 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
6914         * ChangeLog.jit: New.
6915         * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
6916         sphinx is installed, falling back to "texinfo" otherwise.
6917         (FULL_DRIVER_NAME): New variable, adapted from the
6918         install-driver target.  New target, a symlink within the builddir,
6919         linked to "xgcc", for use when running the JIT library from the
6920         builddir.
6921         (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
6922         (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
6923         out.
6924         * configure.ac (doc_build_sys): New variable, set to "sphinx" if
6925         sphinx is installed, falling back to "texinfo" otherwise.
6926         (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
6927         GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
6928         * configure: Regenerate.
6929         * doc/install.texi (--enable-host-shared): Specify that this is
6930         required when building libgccjit.
6931         (Tools/packages necessary for modifying GCC): Add Sphinx.
6932         * timevar.def (TV_JIT_REPLAY): New.
6933         (TV_ASSEMBLE): New.
6934         (TV_LINK): New.
6935         (TV_LOAD): New.
6937 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6939         PR target/63610
6940         * configure: Regenerate.
6942 2014-11-11  James Greenhalgh  <james.greenhalgh@arm.com>
6944         * config/aarch64/aarch64-simd.md
6945         (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
6946         (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
6947         are punning between float vectors and integer vectors.
6949 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
6951         * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
6952         open-coded swap with std::swap to swap values.
6953         (alpha_emit_setcc): Ditto.
6954         (alpha_emit_conditional_move): Ditto.
6955         (alpha_split_tmode_pair): Ditto.
6957 2014-11-11  Evgeny Stupachenko  <evstupac@gmail.com>
6959         * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
6960         permutations on power of 2 cases.
6962 2014-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6964         * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
6965         (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
6967 2014-11-11  Richard Biener  <rguenther@suse.de>
6969         * tree-core.h (pedantic_lvalues): Remove.
6970         * fold-const.c (pedantic_lvalues): Likewise.
6971         (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
6973 2014-11-11  Martin Liska  <mliska@suse.cz>
6975         PR ipa/63622
6976         PR ipa/63795
6977         * ipa-icf.c (sem_function::merge): Add new target symbol alias
6978         support guard.
6979         (sem_variable::merge): Likewise.
6980         * ipa-icf.h (target_supports_symbol_aliases_p): New function.
6982 2014-11-11  Richard Biener  <rguenther@suse.de>
6984         * match.pd: Implement patterns from associate_plusminus
6985         and factor in differences from the fold-const.c implementation.
6986         * fold-const.c (fold_binary_loc): Remove patterns here.
6987         * tree-ssa-forwprop.c (associate_plusminus): Remove.
6988         (pass_forwprop::execute): Don't call it.
6989         * tree.c (tree_nop_conversion_p): New function, factored
6990         from tree_nop_conversion.
6991         * tree.h (tree_nop_conversion_p): Declare.
6993 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
6995         * system.h: Include algorithm and utility.
6996         * rtl.h: Do not include utility here.
6997         * wide-int.h: Ditto.
6998         * tree-vect-data-refs.c (swap): Remove template.
6999         (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
7001 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7003         PR bootstrap/63699
7004         PR bootstrap/63750
7005         * system.h: Include <string> before "safe-ctype.h"
7006         * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
7007         calls to min/max with wi namespace.
7008         * ipa-chkp.c: Don't include <string>.
7010 2014-11-11  Terry Guo  <terry.guo@arm.com>
7012         * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
7013         * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
7014         registers.
7015         (*thumb1_movhf): Likewise.
7017 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
7019         * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
7020         instead of INT64_MAX.
7022 2014-11-11  Tobias Burnus  <burnus@net-b.de>
7024         * doc/install.texi (Prerequisites): Remove CLooG.
7026 2014-11-10  Trevor Saunders  <tsaunders@mozilla.com>
7028         * ipa-inline.c (edge_badness): Adjust.
7029         (inline_small_functions): Likewise.
7030         * predict.c (propagate_freq): Likewise.
7031         (estimate_bb_frequencies): Likewise.
7032         * sreal.c (sreal::dump): Rename from dump_sreal.
7033         (debug): Adjust.
7034         (copy): Remove function.
7035         (sreal::shift_right): Rename from sreal_sift_right.
7036         (sreal::normalize): Rename from normalize.
7037         (sreal_init): Remove function.
7038         (sreal::to_int): Rename from sreal_to_int.
7039         (sreal_compare): Remove function.
7040         (sreal::operator+): Rename from sreal_add.
7041         (sreal::operator-): Rename from sreal_sub.
7042         (sreal::operator*): Rename from sreal_mul.
7043         (sreal::operator/): Rename from sreal_div.
7044         * sreal.h (class sreal): Adjust.
7045         (inline sreal &operator+=): New operator.
7046         (inline sreal &operator-=): Likewise.
7047         (inline sreal &operator/=): Likewise.
7048         (inline sreal &operator*=): Likewise.
7049         (inline bool operator!=): Likewise.
7050         (inline bool operator>): Likewise.
7051         (inline bool operator<=): Likewise.
7052         (inline bool operator>=): Likewise.
7054 2014-11-11  Bin Cheng  <bin.cheng@arm.com>
7056         * sched-deps.c (sched_analyze_1): Check pending list if it is not
7057         less than MAX_PENDING_LIST_LENGTH.
7058         (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
7060 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
7062         * config/i386/i386.c (ix86_decompose_address): Replace open-coded
7063         swap with std::swap to swap values.
7064         (ix86_fixup_binary_operands): Ditto.
7065         (ix86_binary_operator_ok): Ditto.
7066         (ix86_prepare_fp_compare_args): Ditto.
7067         (ix86_expand_branch): Ditto.
7068         (ix86_expand_carry_flag_compare): Ditto.
7069         (ix86_expand_int_movcc): Ditto.
7070         (ix86_prepare_sse_fp_compare_args): Ditto.
7071         (ix86_expand_sse_fp_minmax): Ditto.
7072         (ix86_expand_int_vcond): Ditto.
7073         (ix86_split_long_move): Ditto.
7074         (ix86_expand_sse_comi): Ditto.
7075         (ix86_expand_sse_compare_and_jump): Ditto.
7076         (ix86_expand_sse_compare_mask): Ditto.
7077         * config/i386/i386.md (*add<mode>_1): Ditto.
7078         (addsi_1_zext): Ditto.
7079         (*addhi_1): Ditto.
7080         (*addqi_1): Ditto.
7081         (*add<mode>_2): Ditto.
7082         (*addsi_2_zext): Ditto.
7083         (*add<mode>_3): Ditto.
7084         (*addsi_3_zext): Ditto.
7085         (*add<mode>_5): Ditto.
7086         (absneg splitter): Ditto.
7088 2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
7090         Revert:
7091         2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
7093         PR target/63620
7094         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
7095         * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
7096         * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
7097         be reloaded through memory.
7098         (*pushxf): Ditto.
7099         (*pushdf): Ditto.
7101 2014-11-11  Jakub Jelinek  <jakub@redhat.com>
7102             Martin Liska  <mliska@suse.cz>
7104         * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
7105         (func_checker::compare_gimple_call): Compare gimple_call_fn,
7106         gimple_call_chain, gimple_call_fntype and call flags.
7108 2014-11-10  Vladimir Makarov  <vmakarov@redhat.com>
7110         PR rtl-optimization/63620
7111         PR rtl-optimization/63799
7112         * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
7113         and setting PIC pseudo insns.
7114         (lra_create_live_ranges): Fix the typo.
7116 2014-11-10  Patrick Palka  <ppalka@gcc.gnu.org>
7118         PR middle-end/63748
7119         * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
7120         SSA copies whose source and destination names both occur in
7121         abnormal PHIs.
7123 2014-11-10 Roman Gareev  <gareevroman@gmail.com>
7125         * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
7126         * common.opt: Remove using of fgraphite-code-generator flag.
7127         * flag-types.h: Likewise.
7128         * graphite.c: Remove using of CLooG.
7129         * graphite-blocking.c: Likewise.
7130         * graphite-dependences.c: Likewise.
7131         * graphite-poly.c: Likewise.
7132         * graphite-poly.h: Likewise.
7133         * graphite-scop-detection.c: Likewise.
7134         * graphite-sese-to-poly.c: Likewise.
7135         * graphite-clast-to-gimple.c: Removed.
7136         * graphite-clast-to-gimple.h: Likewise.
7137         * graphite-htab.h: Likewise.
7139 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
7141         * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
7142         Add.
7144 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
7146         * config/frv/frv.c (frv_io_handle_use_1): Delete.
7147         (frv_io_handle_use): Use find_all_hard_regs.
7149 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
7151         * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
7152         than an rtx *.  Take the regstate_t directly rather than via a void *.
7153         Return a bool rather than an int.  Iterate over all subrtxes here.
7154         (frv_registers_conflict_p): Update accordingly.
7156 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
7158         * config/frv/frv.c: Include rtl-iter.h.
7159         (frv_acc_group_1): Delete.
7160         (frv_acc_group): Use FOR_EACH_SUBRTX.
7162 2014-11-10  Richard Sandiford  <richard.sandiford@arm.com>
7164         * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
7165         (frv_clear_registers_used): Delete.
7166         (frv_ifcvt_modify_tests): Use find_all_hard_regs.
7168 2014-11-10  Jan Hubicka  <hubicka@ucw.cz>
7170         PR bootstrap/63573
7171         * calls.c (initialize_argument_information): When emitting thunk call
7172         use original memory placement of the argument.
7174 2014-11-10  Renlin Li  <renlin.li@arm.com>
7176         PR middle-end/61529
7177         * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
7179 2014-11-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7181         * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
7182         bswaphi if available.
7184 2014-11-10  Bernd Schmidt  <bernds@codesourcery.com>
7186         * config/nvptx/nvptx.c: New file.
7187         * config/nvptx/nvptx.h: New file.
7188         * config/nvptx/nvptx-protos.h: New file.
7189         * config/nvptx/nvptx.md: New file.
7190         * config/nvptx/t-nvptx: New file.
7191         * config/nvptx/nvptx.opt: New file.
7192         * common/config/nvptx/nvptx-common.c: New file.
7193         * config.gcc: Handle nvptx-*-*.
7195 2014-11-10  Richard Biener  <rguenther@suse.de>
7197         * tree-ssa-operands.c (finalize_ssa_uses): Properly put
7198         released operands on the free list.
7200 2014-11-10  Richard Biener  <rguenther@suse.de>
7202         * match.pd: Implement pattern from simplify_mult.
7203         * tree-ssa-forwprop.c (simplify_mult): Remove.
7204         (pass_forwprop::execute): Do not call simplify_mult.
7206 2014-11-10  Richard Biener  <rguenther@suse.de>
7208         PR tree-optimization/63800
7209         * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
7210         we can restore the previous availability in after_dom_children.
7211         (eliminate_dom_walker::after_dom_children): Restore
7212         previous availability.
7214 2014-11-10  Richard Biener  <rguenther@suse.de>
7216         PR middle-end/63798
7217         * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
7218         properly treat the embedded multiplication as commutative
7219         when looking for feeding negates.
7221 2014-11-10  Joern Rennecke  <joern.rennecke@embecosm.com>
7223         * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
7225 2014-11-10  Martin Liska  <mliska@suse.cz>
7227         * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
7228         for the test because of default char signedness
7229         on powerpc64 target.
7231 2014-11-10  Richard Biener  <rguenther@suse.de>
7233         * match.pd: Implement pattern from simplify_conversion_from_bitmask.
7234         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
7235         (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
7237 2014-11-10  Richard Biener  <rguenther@suse.de>
7239         * match.pd: Move rest of the conversion combining patterns
7240         from tree-ssa-forwprop.c.
7241         * tree-ssa-forwprop.c (combine_conversions): Remove.
7242         (pass_forwprop::execute): Do not call it.
7244 2014-11-10  Eric Botcazou  <ebotcazou@adacore.com>
7246         * gimple-low.c (lower_function_body): Clear the location of the first
7247         inserted representative return if it also fills in for the fallthru.
7249 2014-11-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
7251         * tree-if-conv.c (add_to_predicate_list): Check unconditionally
7252         that bb is always executed to early exit. Use predicate of
7253         cd-equivalent block for join blocks if it exists.
7254         (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
7255         (tree_if_conversion): Free post-dominance information.
7257 2014-11-09  Jason Merrill  <jason@redhat.com>
7259         * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
7260         * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
7261         (_mm_mask_cvtusepi32_storeu_epi16)
7262         (_mm_mask_cvtsepi64_storeu_epi32): Return void.
7264 2014-11-09  Joern Rennecke  <joern.rennecke@embecosm.com>
7266         * config/avr/predicates.md (low_io_address_operand): Fix typo.
7268 2014-11-09  Vladimir Makarov  <vmakarov@redhat.com>
7270         PR rtl-optimization/63620
7271         * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
7272         name.  Move to lra.c.  Make it external.
7273         (substitute_pseudo_within_insn): Ditto.
7274         (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
7275         the new names.
7276         (undo_optional_reloads): Ditto.
7277         * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
7278         New prototypes.
7279         (lra_substitute_pseudo_within_insn): Ditto.
7280         * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
7281         (mark_regno_live): Add parameter.  Update bb_gen_pseudos.
7282         (mark_regno_dead): Add parameter.  Update bb_gen_pseudos and
7283         bb_killed_pseudos.
7284         (struct bb_data, bb_data_t, bb_data): New.
7285         (get_bb_data, get_bb_data_by_index): Ditto.
7286         (all_hard_regs_bitmap): New.
7287         (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
7288         (initiate_live_solver, finish_live_solver): New.
7289         (process_bb_lives): Change return type.  Add code updating local
7290         live data and removing dead insns.  Pass new argument to
7291         mark_regno_live and mark_regno_dead.  Check changing bb pseudo
7292         life info.  Return the result.
7293         (lra_create_live_ranges): Add code to do global pseudo live
7294         analysis.
7295         (lra_live_ranges_init): Call initiate_live_solver.
7296         (lra_live_ranges_finish): Call finish_live_solver.
7297         * lra.c (lra_dump_bitmap_with_title): New.
7298         (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
7299         from lra-constraints.c.
7301 2014-11-09  Richard Biener  <rguenther@suse.de>
7303         * match.pd: Add patterns convering two conversions in a row
7304         from fold-const.c.
7305         * fold-const.c (fold_unary_loc): Remove them here.
7306         * tree-ssa-forwprop.c (combine_conversions): Likewise.
7307         * genmatch.c (dt_node::gen_kids): Check whether we may
7308         follow SSA use-def chains.
7310 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
7312         * config/aarch64/aarch64.c: Include rtl-iter.h.
7313         (aarch64_tls_operand_p_1): Delete.
7314         (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
7316 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
7318         * config/arm/arm.c (arm_note_pic_base): Delete.
7319         (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
7321 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
7323         * config/arm/arm.c: Include rtl-iter.h.
7324         (arm_tls_referenced_p_1): Delete.
7325         (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
7327 2014-11-08  Richard Sandiford  <richard.sandiford@arm.com>
7329         * config/arm/aarch-common.c: Include rtl-iter.h.
7330         (search_term, arm_find_sub_rtx_with_search_term): Delete.
7331         (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
7332         (arm_get_set_operands): Pass the insn pattern rather than the
7333         insn itself.
7334         (arm_no_early_store_addr_dep): Likewise.
7336 2014-11-08  Eric Botcazou  <ebotcazou@adacore.com>
7338         * config/arm/arm.c (arm_set_return_address): Mark the store as frame
7339         related, if any.
7340         (thumb_set_return_address): Likewise.
7342 2014-11-07  Jeff Law  <law@redhat.com>
7344         PR tree-optimization/61515
7345         * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
7346         stack rather than looking at every SSA_NAME's value.
7348 2014-11-07  Richard Biener  <rguenther@suse.de>
7350         PR tree-optimization/63605
7351         * fold-const.c (fold_binary_loc): Properly use element_precision
7352         for types that may not be scalar.
7354 2014-11-07  Evgeny Stupachenko  <evstupac@gmail.com>
7356         PR target/63534
7357         * config/i386/i386.md (builtin_setjmp_receiver): Use
7358         pic_offset_table_rtx for PIC register.
7359         (nonlocal_goto_receiver): Delete.
7361 2014-11-07  Daniel Hellstrom  <daniel@gaisler.com>
7363         * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
7364         * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
7366 2014-11-07  Martin Liska  <mliska@suse.cz>
7368         PR ipa/63580
7369         * cgraphunit.c (cgraph_node::create_wrapper):
7370         TREE_ADDRESSABLE is set to false for a newly created thunk.
7372 2014-11-07  Martin Liska  <mliska@suse.cz>
7374         PR ipa/63747
7375         * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
7376         Missing checking for CASE_LOW and CASE_HIGH added.
7378 2014-11-07  Martin Liska  <mliska@suse.cz>
7380         PR ipa/63595
7381         * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
7382         is correctly handled for thunks created by IPA ICF.
7384 2014-11-07  Jiong Wang  <jiong.wang@arm.com>
7385 2014-11-07  Richard Biener  <rguenther@suse.de>
7387         PR tree-optimization/63676
7388         * gimple-fold.c (fold_gimple_assign): Do not fold node when
7389         TREE_CLOBBER_P be true.
7391 2014-11-07  Richard Biener  <rguenther@suse.de>
7393         PR middle-end/63770
7394         * match.pd: Guard conflicting GENERIC pattern properly.
7396 2014-11-07  Richard Biener  <rguenther@suse.de>
7398         * match.pd: Add patterns for POINTER_PLUS_EXPR association
7399         and special patterns from tree-ssa-forwprop.c
7400         * fold-const.c (fold_binary_loc): Remove them here.
7401         * tree-ssa-forwprop.c (to_purge): New global bitmap.
7402         (fwprop_set_lattice_val): New function.
7403         (fwprop_invalidate_lattice): Likewise.
7404         (remove_prop_source_from_use): Instead of purging dead EH
7405         edges record blocks to do that in to_purge.
7406         (tidy_after_forward_propagate_addr): Likewise.
7407         (forward_propagate_addr_expr): Invalidate the lattice for
7408         SSA names we release.
7409         (simplify_conversion_from_bitmask): Likewise.
7410         (simplify_builtin_call): Likewise.
7411         (associate_pointerplus_align): Remove.
7412         (associate_pointerplus_diff): Likewise.
7413         (associate_pointerplus): Likewise.
7414         (fold_all_stmts): Merge with ...
7415         (pass_forwprop::execute): ... the original loop over all
7416         basic-blocks.  Delay purging dead EH edges and invalidate
7417         the lattice for SSA names we release.
7419 2014-11-07  Terry Guo  <terry.guo@arm.com>
7421         * config/arm/arm.opt (masm-syntax-unified): New option.
7422         * doc/invoke.texi (-masm-syntax-unified): Document new option.
7423         * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
7424         (ASM_APP_ON): Redefined.
7425         * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
7426         code always use UAL syntax.
7427         (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
7428         * config/arm/thumb1.md: Likewise.
7430 2014-11-06  John David Anglin  <danglin@gcc.gnu.org>
7432         * config/pa/pa.md (trap): New insn.  Add "trap" to attribute type.
7433         Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
7434         or in_call_delay.
7435         
7436 2014-11-06  Steve Ellcey  <sellcey@imgtec.com>
7438         * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
7439         Set default_mips_arch and default_mips_abi instead of tm_defines.
7440         (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
7441         of tm_defines.
7442         (mips*-*-*): Check with_arch and with_abi.  Set tm_defines.
7443         * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
7444         based on MIPS_ABI_DEFAULT.
7445         (STANDARD_STARTFILE_PREFIX_2): Ditto.
7447 2014-11-06  Joseph Myers  <joseph@codesourcery.com>
7449         * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
7450         cases of extended identifiers.
7452 2014-11-06  Eric Botcazou  <ebotcazou@adacore.com>
7454         * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
7456 2014-11-06  DJ Delorie  <dj@redhat.com>
7458         * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
7459         conditional.
7460         (movhicc_<code>_<mode>): Likewise.
7461         * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
7462         subregs.
7463         (m32c_eh_return_data_regno): Change to using memregs to avoid
7464         tying up all the compute regs.
7465         (m32c_legitimate_address_p) Subregs are not valid addresses.
7467 2014-11-06  Bernd Schmidt  <bernds@codesourcery.com>
7469         * function.c (thread_prologue_and_epilogue_insns): No longer static.
7470         * function.h (thread_prologue_and_epilogue_insns): Declare.
7472         * target.def (assemble_undefined_decl): New hooks.
7473         * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
7474         * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
7475         * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
7476         * doc/tm.texi: Regenerate.
7477         * output.h (assemble_undefined_decl): Declare.
7478         (get_fnname_from_decl): Declare.
7479         * varasm.c (assemble_undefined_decl): New function.
7480         (get_fnname_from_decl): New function.
7481         * final.c (rest_of_handle_final): Use it.
7482         * varpool.c (varpool_output_variables): Call assemble_undefined_decl
7483         for nodes without a definition.
7485         * target.def (call_args, end_call_args): New hooks.
7486         * hooks.c (hook_void_rtx_tree): New empty function.
7487         * hooks.h (hook_void_rtx_tree): Declare.
7488         * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
7489         * doc/tm.texi: Regenerate.
7490         * calls.c (expand_call): Slightly rearrange the code.  Use the two new
7491         hooks.
7492         (expand_library_call_value_1): Use the two new hooks.
7494         * expr.c (use_reg_mode): Just return for pseudo registers.
7496         * combine.c (try_combine): Don't allow a call as one of the source
7497         insns.
7499         * target.def (decl_end): New hook.
7500         * varasm.c (assemble_variable_contents, assemble_constant_contents):
7501         Use it.
7502         * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
7503         * doc/tm.texi: Regenerate.
7505 2014-11-06  Renlin Li  <renlin.li@arm.com>
7507         * config/aarch64/aarch64.c (aarch64_architecture_version): New.
7508         (processor): New architecture_version field.
7509         (aarch64_override_options): Initialize aarch64_architecture_version.
7510         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
7511         __ARM_ARCH_PROFILE, aarch64_arch_name macro.
7513 2014-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
7515         * params.def (sra-max-scalarization-size-Ospeed): New.
7516         (sra-max-scalarization-size-Osize): Likewise.
7517         * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
7518         (sra-max-scalarization-size-Osize): Likewise.
7519         * toplev.c (process_options): Set default values for new
7520         parameters.
7521         * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
7522         * targhooks.c (get_move_ratio): Remove static designator.
7523         * target.h (get_move_ratio): Declare.
7525 2014-11-06  Marek Polacek  <polacek@redhat.com>
7527         * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
7528         Remove vector limit.
7530 2014-11-06  Richard Biener  <rguenther@suse.de>
7532         * match.pd: Implement bitwise binary and unary simplifications
7533         from tree-ssa-forwprop.c.
7534         * fold-const.c (fold_unary_loc): Remove them here.
7535         (fold_binary_loc): Likewise.
7536         * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
7537         (truth_valued_ssa_name): Likewise.
7538         (lookup_logical_inverted_value): Likewise.
7539         (simplify_bitwise_binary_1): Likewise.
7540         (hoist_conversion_for_bitop_p): Likewise.
7541         (simplify_bitwise_binary_boolean): Likewise.
7542         (simplify_bitwise_binary): Likewise.
7543         (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
7544         and simplify_bitwise_binary.
7545         * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
7546         (decision_tree::insert): Also insert non-expressions.
7548 2014-11-06  Hale Wang  <hale.wang@arm.com>
7550         * config/arm/arm-cores.def: Add support for
7551         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
7552         cortex-m1.small-multiply.
7553         * config/arm/arm-tables.opt: Regenerate.
7554         * config/arm/arm-tune.md: Regenerate.
7555         * config/arm/arm.c: Update the rtx-costs for MUL.
7556         * config/arm/bpabi.h: Handle
7557         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
7558         cortex-m1.small-multiply.
7559         * doc/invoke.texi: Document
7560         -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
7561         cortex-m1.small-multiply.
7563 2014-11-06  Hale Wang  <hale.wang@arm.com>
7565         * config/arm/arm.c: Add cortex-m7 tune.
7566         * config/arm/arm-cores.def: Use cortex-m7 tune.
7568 2014-11-05  Uros Bizjak  <ubizjak@gmail.com>
7570         PR target/63538
7571         * config/i386/i386.c (in_large_data_p): Reject automatic variables.
7572         (ix86_encode_section_info): Do not check for non-automatic varibles
7573         when setting SYMBOL_FLAG_FAR_ADDR flag.
7574         (x86_64_elf_select_section): Do not check ix86_cmodel here.
7575         (x86_64_elf_unique_section): Ditto.
7576         (x86_elf_aligned_common): Emit tab before .largecomm.
7578 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
7580         PR preprocessor/9449
7581         * doc/cpp.texi (Character sets, Tokenization)
7582         (Implementation-defined behavior): Don't refer to UCNs in
7583         identifiers requiring -fextended-identifiers.
7584         * doc/cppopts.texi (-fextended-identifiers): Document as enabled
7585         by default for C99 and later and C++.
7586         * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
7587         identifiers needing -fextended-identifiers.
7589 2014-11-05  Ilya Tocar  <ilya.tocar@intel.com>
7591         * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
7592         for 512-bit wide modes.
7593         (expand_vec_perm_1): Use correct versions of patterns.
7594         * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
7595         (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
7597 2014-11-05  Ilya Enkovich  <ilya.enkovich@intel.com>
7599         * ipa-chkp.c: New.
7600         * ipa-chkp.h: New.
7601         * tree-chkp.c: New.
7602         * tree-chkp.h: New.
7603         * tree-chkp-opt.c: New.
7604         * rtl-chkp.c: New.
7605         * rtl-chkp.h: New.
7606         * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
7607         tree-chkp-opt.o.
7608         (GTFILES): Add tree-chkp.c.
7609         * mode-classes.def (MODE_POINTER_BOUNDS): New.
7610         * tree.def (POINTER_BOUNDS_TYPE): New.
7611         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
7612         (POINTER_BOUNDS_MODE): New.
7613         (make_pointer_bounds_mode): New.
7614         * machmode.h (POINTER_BOUNDS_MODE_P): New.
7615         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
7616         (layout_type): Support POINTER_BOUNDS_TYPE.
7617         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
7618         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7619         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
7620         (type_contains_placeholder_1): Likewise.
7621         (build_common_tree_nodes): Initialize
7622         pointer_bounds_type_node.
7623         * tree.h (POINTER_BOUNDS_TYPE_P): New.
7624         (pointer_bounds_type_node): New.
7625         (POINTER_BOUNDS_P): New.
7626         (BOUNDED_TYPE_P): New.
7627         (BOUNDED_P): New.
7628         (CALL_WITH_BOUNDS_P): New.
7629         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
7630         (gimple_call_with_bounds_p): New.
7631         (gimple_call_set_with_bounds): New.
7632         (gimple_return_retbnd): New.
7633         (gimple_return_set_retbnd): New
7634         * gimple.c (gimple_build_return): Increase number of ops
7635         for return statement.
7636         (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
7637         flag.
7638         * gimple-pretty-print.c (dump_gimple_return): Print second op.
7639         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
7640         * gimplify.c (gimplify_init_constructor): Avoid infinite
7641         loop during gimplification of bounds initializer.
7642         * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
7643         (special_function_p): Use original decl name when analyzing
7644         instrumentation clone.
7645         (arg_data): Add fields special_slot, pointer_arg and
7646         pointer_offset.
7647         (store_bounds): New.
7648         (emit_call_1): Propagate instrumentation flag for CALL.
7649         (initialize_argument_information): Compute pointer_arg,
7650         pointer_offset and special_slot for pointer bounds arguments.
7651         (finalize_must_preallocate): Preallocate when storing bounds
7652         in bounds table.
7653         (compute_argument_addresses): Skip pointer bounds.
7654         (expand_call): Store bounds into tables separately.  Return
7655         result joined with resulting bounds.
7656         * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
7657         (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
7658         (expand_return): Add returned bounds arg.  Handle returned bounds.
7659         (expand_gimple_stmt_1): Adjust to new expand_return signature.
7660         (gimple_expand_cfg): Reset rtx bounds map.
7661         * expr.c: Include tree-chkp.h, rtl-chkp.h.
7662         (expand_assignment): Handle returned bounds.
7663         (store_expr_with_bounds): New.  Replaces store_expr with new bounds
7664         target argument.  Handle bounds returned by calls.
7665         (store_expr): Now wraps store_expr_with_bounds.
7666         * expr.h (store_expr_with_bounds): New.
7667         * function.c: Include tree-chkp.h, rtl-chkp.h.
7668         (bounds_parm_data): New.
7669         (use_register_for_decl): Do not registerize decls used for bounds
7670         stores and loads.
7671         (assign_parms_augmented_arg_list): Add bounds of the result
7672         structure pointer as the second argument.
7673         (assign_parm_find_entry_rtl): Mark bounds are never passed on
7674         the stack.
7675         (assign_parm_is_stack_parm): Likewise.
7676         (assign_parm_load_bounds): New.
7677         (assign_bounds): New.
7678         (assign_parms): Load bounds and determine a location for
7679         returned bounds.
7680         (diddle_return_value_1): New.
7681         (diddle_return_value): Handle returned bounds.
7682         * function.h (rtl_data): Add field for returned bounds.
7683         * varasm.c: Include tree-chkp.h.
7684         (output_constant): Support POINTER_BOUNDS_TYPE.
7685         (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
7686         (ultimate_transparent_alias_target): Move up.
7687         (make_decl_rtl): For instrumented function use
7688         name of the original decl.
7689         (assemble_start_function): Mark function as global
7690         in case it is instrumentation clone of the global
7691         function.
7692         (do_assemble_alias): Follow transparent alias chain
7693         for identifier.  Check if original alias is public.
7694         (maybe_assemble_visibility): Use visibility of the
7695         original function for instrumented version.
7696         (default_unique_section): Likewise.
7697         * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
7698         (init_emit_once): Build pointer bounds zero constants.
7699         * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
7700         * target.def (builtin_chkp_function): New.
7701         (chkp_bound_type): New.
7702         (chkp_bound_mode): New.
7703         (chkp_make_bounds_constant): New.
7704         (chkp_initialize_bounds): New.
7705         (load_bounds_for_arg): New.
7706         (store_bounds_for_arg): New.
7707         (load_returned_bounds): New.
7708         (store_returned_bounds): New.
7709         (chkp_function_value_bounds): New.
7710         (setup_incoming_vararg_bounds): New.
7711         (function_arg): Update hook description with new possible return
7712         value CONST_INT.
7713         * targhooks.h (default_load_bounds_for_arg): New.
7714         (default_store_bounds_for_arg): New.
7715         (default_load_returned_bounds): New.
7716         (default_store_returned_bounds): New.
7717         (default_chkp_bound_type): New.
7718         (default_chkp_bound_mode): New.
7719         (default_builtin_chkp_function): New.
7720         (default_chkp_function_value_bounds): New.
7721         (default_chkp_make_bounds_constant): New.
7722         (default_chkp_initialize_bounds): New.
7723         (default_setup_incoming_vararg_bounds): New.
7724         * targhooks.c (default_load_bounds_for_arg): New.
7725         (default_store_bounds_for_arg): New.
7726         (default_load_returned_bounds): New.
7727         (default_store_returned_bounds): New.
7728         (default_chkp_bound_type): New.
7729         (default_chkp_bound_mode); New.
7730         (default_builtin_chkp_function): New.
7731         (default_chkp_function_value_bounds): New.
7732         (default_chkp_make_bounds_constant): New.
7733         (default_chkp_initialize_bounds): New.
7734         (default_setup_incoming_vararg_bounds): New.
7735         * builtin-types.def (BT_BND): New.
7736         (BT_FN_PTR_CONST_PTR): New.
7737         (BT_FN_CONST_PTR_CONST_PTR): New.
7738         (BT_FN_BND_CONST_PTR): New.
7739         (BT_FN_CONST_PTR_BND): New.
7740         (BT_FN_PTR_CONST_PTR_SIZE): New.
7741         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7742         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7743         (BT_FN_VOID_CONST_PTR_SIZE): New.
7744         (BT_FN_VOID_PTR_BND): New.
7745         (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
7746         (BT_FN_BND_CONST_PTR_SIZE): New.
7747         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7748         (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
7749         * chkp-builtins.def: New.
7750         * builtins.def: include chkp-builtins.def.
7751         (DEF_CHKP_BUILTIN): New.
7752         * builtins.c: Include tree-chkp.h and rtl-chkp.h.
7753         (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7754         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7755         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7756         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7757         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7758         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7759         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7760         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7761         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
7762         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7763         (std_expand_builtin_va_start): Init bounds for va_list.
7764         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
7765         __CHKP__ macro when Pointer Bounds Checker is on.
7766         * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
7767         * passes.def (pass_ipa_chkp_versioning): New.
7768         (pass_early_local_passes): Renamed to pass_build_ssa_passes.
7769         (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
7770         (pass_chkp_instrumentation_passes): New.
7771         (pass_ipa_chkp_produce_thunks): New.
7772         (pass_local_optimization_passes): New.
7773         (pass_chkp_opt): New.
7774         * tree-pass.h (make_pass_ipa_chkp_versioning): New.
7775         (make_pass_ipa_chkp_produce_thunks): New.
7776         (make_pass_chkp): New.
7777         (make_pass_chkp_opt): New.
7778         (make_pass_early_local_passes): Renamed to ...
7779         (make_pass_build_ssa_passes): This.
7780         (make_pass_chkp_instrumentation_passes): New.
7781         (make_pass_local_optimization_passes): New.
7782         * passes.c (pass_manager::execute_early_local_passes): Execute
7783         early passes in three steps.
7784         (execute_all_early_local_passes): Renamed to ...
7785         (execute_build_ssa_passes): This.
7786         (pass_data_early_local_passes): Renamed to ...
7787         (pass_data_build_ssa_passes): This.
7788         (pass_early_local_passes): Renamed to ...
7789         (pass_build_ssa_passes): This.
7790         (pass_data_chkp_instrumentation_passes): New.
7791         (pass_chkp_instrumentation_passes): New.
7792         (pass_data_local_optimization_passes): New.
7793         (pass_local_optimization_passes): New.
7794         (make_pass_early_local_passes): Renamed to ...
7795         (make_pass_build_ssa_passes): This.
7796         (make_pass_chkp_instrumentation_passes): New.
7797         (make_pass_local_optimization_passes): New.
7798         * c-family/c.opt (fcheck-pointer-bounds): New.
7799         (fchkp-check-incomplete-type): New.
7800         (fchkp-zero-input-bounds-for-main): New.
7801         (fchkp-first-field-has-own-bounds): New.
7802         (fchkp-narrow-bounds): New.
7803         (fchkp-narrow-to-innermost-array): New.
7804         (fchkp-optimize): New.
7805         (fchkp-use-fast-string-functions): New.
7806         (fchkp-use-nochk-string-functions): New.
7807         (fchkp-use-static-bounds): New.
7808         (fchkp-use-static-const-bounds): New.
7809         (fchkp-treat-zero-dynamic-size-as-infinite): New.
7810         (fchkp-check-read): New.
7811         (fchkp-check-write): New.
7812         (fchkp-store-bounds): New.
7813         (fchkp-instrument-calls): New.
7814         (fchkp-instrument-marked-only): New.
7815         (Wchkp): New.
7816         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7817         (handle_bnd_legacy): New.
7818         (handle_bnd_instrument): New.
7819         (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
7820         and bnd_instrument.  Fix documentation.
7821         (c_common_format_attribute_table): Likewsie.
7822         * toplev.c: include tree-chkp.h.
7823         (process_options): Check Pointer Bounds Checker is supported.
7824         (compile_file): Add chkp_finish_file call.
7825         * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
7826         to handle instrumentation clones properly.
7827         (propagate_constants_accross_call): Do not propagate
7828         through instrumentation thunks.
7829         * ipa-pure-const.c (propagate_pure_const): Support
7830         IPA_REF_CHKP.
7831         * ipa-inline.c (early_inliner): Check edge has summary allocated.
7832         * ipa-split.c: Include tree-chkp.h.
7833         (find_retbnd): New.
7834         (split_part_set_ssa_name_p): New.
7835         (consider_split): Do not split retbnd and retval
7836         producers.
7837         (insert_bndret_call_after): new.
7838         (split_function): Propagate Pointer Bounds Checker
7839         instrumentation marks and handle returned bounds.
7840         * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
7841         into bit field and add with_bounds field.
7842         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
7843         with_bounds field for instrumented calls.
7844         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
7845         CALL_WITH_BOUNDS_P flag for calls.
7846         * tree-ssa-ccp.c: Include tree-chkp.h.
7847         (insert_clobber_before_stack_restore): Handle
7848         BUILT_IN_CHKP_BNDRET calls.
7849         * tree-ssa-dce.c: Include tree-chkp.h.
7850         (propagate_necessity): For free call fed by alloc check
7851         bounds are also provided by the same alloc.
7852         (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
7853         used by free calls.
7854         * tree-inline.c: Include tree-chkp.h.
7855         (declare_return_variable): Add arg holding
7856         returned bounds slot.  Create and initialize returned bounds var.
7857         (remap_gimple_stmt): Handle returned bounds.
7858         Return sequence of statements instead of a single statement.
7859         (insert_init_stmt): Add declaration.
7860         (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
7861         (copy_bb): Adjust to changed return type of remap_gimple_stmt.
7862         Properly handle bounds in va_arg_pack and va_arg_pack_len.
7863         (expand_call_inline): Handle returned bounds.  Add bounds copy
7864         for generated mem to mem assignments.
7865         * tree-inline.h (copy_body_data): Add fields retbnd and
7866         assign_stmts.
7867         * value-prof.c: Include tree-chkp.h.
7868         (gimple_ic): Support returned bounds.
7869         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7870         with "chkp ctor" and "bnd_legacy" attributes.
7871         (symtab_remove_unreachable_nodes): Keep initial values for
7872         pointer bounds to be used for checks eliminations.
7873         (process_references): Handle IPA_REF_CHKP.
7874         (walk_polymorphic_call_targets): Likewise.
7875         * ipa-visibility.c (cgraph_externally_visible_p): Mark
7876         instrumented 'main' as externally visible.
7877         (function_and_variable_visibility): Filter instrumentation
7878         thunks.
7879         * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
7880         field.
7881         (cgraph_node): Add instrumented_version, orig_decl and
7882         instrumentation_clone fields.
7883         (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
7884         (varpool_node): Add need_bounds_init field.
7885         (cgraph_local_p): New.
7886         * cgraph.c: Include tree-chkp.h.
7887         (cgraph_node::remove): Fix instrumented_version
7888         of the referenced node if any.
7889         (cgraph_node::dump): Dump instrumentation_clone and
7890         instrumented_version fields.
7891         (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
7892         references and instrumentation thunks.
7893         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
7894         all not instrumented instrumentation clones alive.
7895         (cgraph_redirect_edge_call_stmt_to_callee): Support
7896         returned bounds.
7897         * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
7898         reference.
7899         (cgraph_rebuild_references): Likewise.
7900         * cgraphunit.c: Include tree-chkp.h.
7901         (assemble_thunks_and_aliases): Skip thunks calling instrumneted
7902         function version.
7903         (varpool_finalize_decl): Register statically initialized decls
7904         in Pointer Bounds Checker.
7905         (walk_polymorphic_call_targets): Do not mark generated call to
7906         __builtin_unreachable as with_bounds.
7907         (output_weakrefs): If there are both instrumented and original
7908         versions, output only one of them.
7909         (cgraph_node::expand_thunk): Set with_bounds flag
7910         for created call statement.
7911         * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
7912         (ipa_ref): increase size of use field.
7913         * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
7914         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
7915         (ctor_for_folding): Do not fold constant bounds vars.
7916         * lto-streamer.h (LTO_minor_version): Change minor version from
7917         0 to 1.
7918         * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
7919         pointer bounds.
7920         (lto_output_node): Output instrumentation_clone,
7921         thunk.add_pointer_bounds_args and orig_decl field.
7922         (lto_output_ref): Adjust to new ipa_ref::use field size.
7923         (input_overwrite_node): Read instrumentation_clone field.
7924         (input_node): Read thunk.add_pointer_bounds_args and orig_decl
7925         fields.
7926         (input_ref): Adjust to new ipa_ref::use field size.
7927         (input_cgraph_1): Compute instrumented_version fields and restore
7928         IDENTIFIER_TRANSPARENT_ALIAS chains.
7929         (lto_output_varpool_node): Output
7930         need_bounds_init value.
7931         (input_varpool_node): Read need_bounds_init value.
7932         * lto-partition.c (add_symbol_to_partition_1): Keep original
7933         and instrumented versions together.
7934         (privatize_symbol_name): Restore transparent alias chain if required.
7935         (add_references_to_partition): Add references to pointer bounds vars.
7936         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
7937         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
7938         (gen_type_die_with_usage): Skip pointer bounds.
7939         (dwarf2out_global_decl): Likewise.
7940         (is_base_type): Support POINTER_BOUNDS_TYPE.
7941         (gen_formal_types_die): Skip pointer bounds.
7942         (gen_decl_die): Likewise.
7943         * var-tracking.c (vt_add_function_parameters): Skip
7944         bounds parameters.
7945         * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
7946         thunk still exists.
7947         (sem_variable::merge): Reset need_bounds_init flag.
7948         * doc/extend.texi: Document Pointer Bounds Checker built-in functions
7949         and attributes.
7950         * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7951         (TARGET_STORE_BOUNDS_FOR_ARG): New.
7952         (TARGET_LOAD_RETURNED_BOUNDS): New.
7953         (TARGET_STORE_RETURNED_BOUNDS): New.
7954         (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
7955         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
7956         (TARGET_BUILTIN_CHKP_FUNCTION): New.
7957         (TARGET_CHKP_BOUND_TYPE): New.
7958         (TARGET_CHKP_BOUND_MODE): New.
7959         (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
7960         (TARGET_CHKP_INITIALIZE_BOUNDS): New.
7961         * doc/tm.texi: Regenerated.
7962         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
7963         (BND32mode): New.
7964         (BND64mode): New.
7965         * doc/invoke.texi (-mmpx): New.
7966         (-mno-mpx): New.
7967         (chkp-max-ctor-size): New.
7968         * config/i386/constraints.md (w): New.
7969         (Ti): New.
7970         (Tb): New.
7971         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
7972         * config/i386/i386-modes.def (BND32): New.
7973         (BND64): New.
7974         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
7975         * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
7976         (regclass_map): Add bound registers.
7977         (dbx_register_map): Likewise.
7978         (dbx64_register_map): Likewise.
7979         (svr4_dbx_register_map): Likewise.
7980         (isa_opts): Add -mmpx.
7981         (PTA_MPX): New.
7982         (ix86_option_override_internal): Support MPX ISA.
7983         (ix86_conditional_register_usage): Support bound registers.
7984         (ix86_code_end): Add MPX bnd prefix.
7985         (output_set_got): Likewise.
7986         (print_reg): Avoid prefixes for bound registers.
7987         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
7988         (ix86_print_operand_punct_valid_p): Likewise.
7989         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
7990         UNSPEC_BNDLDX_ADDR.
7991         (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
7992         (ix86_class_likely_spilled_p): Add bound regs support.
7993         (ix86_hard_regno_mode_ok): Likewise.
7994         (x86_order_regs_for_local_alloc): Likewise.
7995         (ix86_bnd_prefixed_insn_p): New.
7996         (ix86_builtins): Add
7997         IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
7998         IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
7999         IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
8000         IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
8001         IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
8002         IX86_BUILTIN_BNDUPPER.
8003         (builtin_isa): Add leaf_p and nothrow_p fields.
8004         (def_builtin): Initialize leaf_p and nothrow_p.
8005         (ix86_add_new_builtins): Handle leaf_p and nothrow_p
8006         flags.
8007         (bdesc_mpx): New.
8008         (bdesc_mpx_const): New.
8009         (ix86_init_mpx_builtins): New.
8010         (ix86_init_builtins): Call ix86_init_mpx_builtins.
8011         (ix86_emit_cmove): New.
8012         (ix86_emit_move_max): New.
8013         (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
8014         IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
8015         IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
8016         IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
8017         IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
8018         IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
8019         (ix86_function_value_bounds): New.
8020         (ix86_builtin_mpx_function): New.
8021         (ix86_get_arg_address_for_bt): New.
8022         (ix86_load_bounds): New.
8023         (ix86_store_bounds): New.
8024         (ix86_load_returned_bounds): New.
8025         (ix86_store_returned_bounds): New.
8026         (ix86_mpx_bound_mode): New.
8027         (ix86_make_bounds_constant): New.
8028         (ix86_initialize_bounds):
8029         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8030         (TARGET_STORE_BOUNDS_FOR_ARG): New.
8031         (TARGET_LOAD_RETURNED_BOUNDS): New.
8032         (TARGET_STORE_RETURNED_BOUNDS): New.
8033         (TARGET_CHKP_BOUND_MODE): New.
8034         (TARGET_BUILTIN_CHKP_FUNCTION): New.
8035         (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
8036         (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
8037         (TARGET_CHKP_INITIALIZE_BOUNDS): New.
8038         (ix86_option_override_internal): Do not
8039         support x32 with MPX.
8040         (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
8041         and force_bnd_pass.
8042         (function_arg_advance_32): Return number of used integer
8043         registers.
8044         (function_arg_advance_64): Likewise.
8045         (function_arg_advance_ms_64): Likewise.
8046         (ix86_function_arg_advance): Handle pointer bounds.
8047         (ix86_function_arg): Likewise.
8048         (ix86_function_value_regno_p): Mark fisrt bounds registers as
8049         possible function value.
8050         (ix86_function_value_1): Handle pointer bounds type/mode
8051         (ix86_return_in_memory): Likewise.
8052         (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
8053         (ix86_expand_call): Generate returned bounds.
8054         (ix86_setup_incoming_vararg_bounds): New.
8055         (ix86_va_start): Initialize bounds for pointers in va_list.
8056         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
8057         * config/i386/i386.h (TARGET_MPX): New.
8058         (TARGET_MPX_P): New.
8059         (FIRST_PSEUDO_REGISTER): Fix to new value.
8060         (FIXED_REGISTERS): Add bound registers.
8061         (CALL_USED_REGISTERS): Likewise.
8062         (REG_ALLOC_ORDER): Likewise.
8063         (HARD_REGNO_NREGS): Likewise.
8064         (VALID_BND_REG_MODE): New.
8065         (FIRST_BND_REG): New.
8066         (LAST_BND_REG): New.
8067         (reg_class): Add BND_REGS.
8068         (REG_CLASS_NAMES): Likewise.
8069         (REG_CLASS_CONTENTS): Likewise.
8070         (BND_REGNO_P): New.
8071         (ANY_BND_REG_P): New.
8072         (BNDmode): New.
8073         (HI_REGISTER_NAMES): Add bound registers.
8074         (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
8075         stdarg fields.
8076         * config/i386/i386.md (UNSPEC_BNDMK): New.
8077         (UNSPEC_BNDMK_ADDR): New.
8078         (UNSPEC_BNDSTX): New.
8079         (UNSPEC_BNDLDX): New.
8080         (UNSPEC_BNDLDX_ADDR): New.
8081         (UNSPEC_BNDCL): New.
8082         (UNSPEC_BNDCU): New.
8083         (UNSPEC_BNDCN): New.
8084         (UNSPEC_MPX_FENCE): New.
8085         (UNSPEC_SIZEOF): New.
8086         (BND0_REG): New.
8087         (BND1_REG): New.
8088         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8089         (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8090         (prefix_rep): Check for bnd prefix.
8091         (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8092         (length_nobnd): New.
8093         (length): Use length_nobnd when specified.
8094         (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8095         (BND): New.
8096         (bnd_ptr): New.
8097         (BNDCHECK): New.
8098         (bndcheck): New.
8099         (*jcc_1): Add MPX bnd prefix.
8100         (*jcc_2): Likewise.
8101         (jump): Likewise.
8102         (*indirect_jump): Likewise.
8103         (*tablejump_1): Likewise.
8104         (simple_return_internal): Likewise.
8105         (simple_return_internal_long): Likewise.
8106         (simple_return_pop_internal): Likewise.
8107         (simple_return_indirect_internal): Likewise.
8108         (<mode>_mk): New.
8109         (*<mode>_mk): New.
8110         (mov<mode>): New.
8111         (*mov<mode>_internal_mpx): New.
8112         (<mode>_<bndcheck>): New.
8113         (*<mode>_<bndcheck>): New.
8114         (<mode>_ldx): New.
8115         (*<mode>_ldx): New.
8116         (<mode>_stx): New.
8117         (*<mode>_stx): New.
8118         move_size_reloc_<mode>): New.
8119         * config/i386/predicates.md (address_mpx_no_base_operand): New.
8120         (address_mpx_no_index_operand): New.
8121         (bnd_mem_operator): New.
8122         (symbol_operand): New.
8123         (x86_64_immediate_size_operand): New.
8124         * config/i386/i386.opt (mmpx): New.
8125         * config/i386/i386-builtin-types.def (BND): New.
8126         (ULONG): New.
8127         (BND_FTYPE_PCVOID_ULONG): New.
8128         (VOID_FTYPE_BND_PCVOID): New.
8129         (VOID_FTYPE_PCVOID_PCVOID_BND): New.
8130         (BND_FTYPE_PCVOID_PCVOID): New.
8131         (BND_FTYPE_PCVOID): New.
8132         (BND_FTYPE_BND_BND): New.
8133         (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
8134         (PVOID_FTYPE_PCVOID_BND_ULONG): New.
8135         (ULONG_FTYPE_VOID): New.
8136         (PVOID_FTYPE_BND): New.
8138 2014-11-05  Bernd Schmidt  <bernds@codesourcery.com>
8140         * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
8141         pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
8142         pass_cleanup_barriers, pass_delay_slots,
8143         pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
8144         pass_shorten_branches, pass_est_nothrow_function_flags,
8145         pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
8146         into pass_late_compilation.
8147         (pass_late_compilation): Add.
8148         * passes.c (pass_data_late_compilation, pass_late_compilation,
8149         make_pass_late_compilation): New.
8150         * timevar.def (TV_LATE_COMPILATION): New.
8152         * target.def (omit_struct_return_reg): New data hook.
8153         * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
8154         * doc/tm.texi: Regenerate.
8155         * function.c (expand_function_end): Use it.
8157         * target.def (no_register_allocation): New data hook.
8158         * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
8159         * doc/tm.texi: Regenerate.
8160         * ira.c (gate_ira): New function.
8161         (pass_data_ira): Set has_gate.
8162         (pass_ira): Add a gate function.
8163         (pass_data_reload): Likewise.
8164         (pass_reload): Add a gate function.
8165         (pass_ira): Use it.
8166         * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
8167         no register allocation happens on the target and return.
8168         * final.c (alter_subreg): Ensure register is not a pseudo before
8169         calling simplify_subreg.
8170         (output_operand): Assert that x isn't a pseudo only if doing
8171         register allocation.
8173         * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
8174         global vars.
8176         * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
8177         sorry if necessary.
8179 2014-11-05  Alex Velenko  <Alex.Velenko@arm.com>
8181         * simplify-rtx.c (simplify_binary_operation_1): Div check added.
8182         * rtl.h (SUBREG_P): New macro added.
8184 2014-11-05  Tejas Belagod  <tejas.belagod@arm.com>
8186         * config/aarch64/aarch64-builtins.c
8187         (aarch64_build_scalar_type): Remove.
8188         (aarch64_scalar_builtin_types, aarch64_simd_type,
8189         aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
8190         aarch64_mangle_builtin_vector_type,
8191         aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
8192         aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
8193         aarch64_init_simd_builtin_types,
8194         aarch64_init_simd_builtin_scalar_types): New.
8195         (aarch64_init_simd_builtins): Refactor.
8196         (aarch64_init_crc32_builtins): Fixup with qualifier.
8197         * config/aarch64/aarch64-protos.h
8198         (aarch64_mangle_builtin_type): Export.
8199         * config/aarch64/aarch64-simd-builtin-types.def: New.
8200         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
8201         (aarch64_mangle_type): Refactor.
8202         * config/aarch64/arm_neon.h: Declare vector types based on
8203         internal types.
8204         * config/aarch64/t-aarch64: Update dependency.
8206 2014-11-04  Pat Haugen  <pthaugen@us.ibm.com>
8208         * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
8209         atomic_update_decl): Guard declaration with #ifdef.
8211 2014-11-04  Marek Polacek  <polacek@redhat.com>
8213         * sanopt.c (sanopt_optimize_walker): Remove unused variables.
8215 2014-11-04  Marek Polacek  <polacek@redhat.com>
8217         * Makefile.in (OBJS): Add sanopt.o.
8218         (GTFILES): Add sanopt.c.
8219         * asan.h (asan_expand_check_ifn): Declare.
8220         * asan.c (asan_expand_check_ifn): No longer static.
8221         (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
8222         * sanopt.c: ...here.  New file.
8224 2014-11-04  Jiong Wang  <jiong.wang@arm.com>
8225 2014-11-04  Wilco Dijkstra  <wilco.dijkstra@arm.com>
8227         PR target/63293
8228         * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
8229         stack adjustment.
8231 2014-11-04  Bernd Schmidt  <bernds@codesourcery.com>
8233         * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
8234         also verify that mode is equal to the mode of op0.
8236         * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
8237         emit into a sequence instead.
8239 2014-11-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8241         * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
8243 2014-11-04  Alan Lawrence  <alan.lawrence@arm.com>
8245         config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
8246         (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
8247         (reduc_smax_<mode> *2): Rename to...
8248         (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
8249         (reduc_umin_<mode> *2): Rename to...
8250         (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
8251         (reduc_umax_<mode> *2): Rename to...
8252         (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
8254 2014-11-04  Alan Lawrence  <alan.lawrence@arm.com>
8256         config/arm/neon.md (reduc_plus_*): Rename to...
8257         (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
8259 2014-11-04  Michael Collison <michael.collison@linaro.org>
8261         * config/aarch64/iterators.md (lconst_atomic): New mode attribute
8262         to support constraints for CONST_INT in atomic operations.
8263         * config/aarch64/atomics.md
8264         (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
8265         (atomic_nand<mode>): Likewise.
8266         (atomic_fetch_<atomic_optab><mode>): Likewise.
8267         (atomic_fetch_nand<mode>): Likewise.
8268         (atomic_<atomic_optab>_fetch<mode>): Likewise.
8269         (atomic_nand_fetch<mode>): Likewise.
8271 2014-11-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8273         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
8274         of __ARM_FEATURE_IDIV.
8276 2014-11-04  Marek Polacek  <polacek@redhat.com>
8278         * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
8280 2014-11-03  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8282         * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
8284 2014-11-04  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8286         Revert:
8287         2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8288         * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
8289         Allow CC mode if HAVE_cbranchcc4.
8291 2014-11-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8293         * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
8294         with -fdump-go-spec.  Anonymous substructures are now flattened and
8295         replaced by their fields (record) or the first named, non-bitfield
8296         field (union).
8298 2014-11-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8300         * input.c (expand_location_to_spelling_point): Fix typo.
8301         (expansion_point_location_if_in_system_header): Fix comment.
8303 2014-11-03  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8305         * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
8307 2014-11-03  Richard Biener  <rguenther@suse.de>
8309         * tree-eh.c (operation_could_trap_helper_p): Handle conversions
8310         like ordinary operations.
8311         * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
8312         as NOP_EXPR.
8314 2014-11-03  Joseph Myers  <joseph@codesourcery.com>
8316         * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
8317         macros.
8318         * configure, config.h.in: Regenerate.
8319         * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
8320         (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
8321         (RS6000_GLIBC_ATOMIC_FENV): New macro.
8322         * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
8323         (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
8324         (RS6000_GLIBC_ATOMIC_FENV): New macro.
8325         * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
8326         (atomic_update_decl): New static variables.
8327         (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
8328         Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
8329         and __atomic_feupdateenv for soft-float and no-FPRs.
8331 2014-11-03  Richard Biener  <rguenther@suse.de>
8333         * match.pd: Add two abs patterns.  Announce tree_expr_nonnegative_p.
8334         Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
8335         * fold-const.c (fold_unary_loc): Remove them here.
8336         (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
8337         * gimple-fold.c (fold_gimple_assign): Remove now obsolete
8338         GIMPLE_UNARY_RHS case.
8339         (gimple_fold_stmt_to_constant_1): Likewise.
8340         (replace_stmt_with_simplification): Fix inverted comparison.
8342 2014-11-03  Marc Glisse  <marc.glisse@inria.fr>
8344         PR tree-optimization/60770
8345         * tree-into-ssa.c (rewrite_update_stmt): Return whether the
8346         statement should be removed.
8347         (maybe_register_def): Likewise. Replace clobbers with default
8348         definitions.
8349         (rewrite_dom_walker::before_dom_children): Remove statement if
8350         rewrite_update_stmt says so.
8351         * tree-ssa-live.c: Include tree-ssa.h.
8352         (set_var_live_on_entry): Do not mark undefined variables as live.
8353         (verify_live_on_entry): Do not check undefined variables.
8354         * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
8355         of partially undefined variables.
8356         * tree-ssa.c (ssa_undefined_value_p): Likewise.
8357         (execute_update_addresses_taken): Do not drop clobbers.
8359 2014-11-03  Marc Glisse  <marc.glisse@inria.fr>
8361         PR tree-optimization/63666
8362         * fold-const.c: Include "optabs.h".
8363         (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
8364         can_vec_perm_p permutation to one that is not.
8366 2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8368         * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
8370 2014-11-03  Andrew Pinski  <apinski@cavium.com>
8372         * config/mips/mips-cpus.def (octeon3): New cpu.
8373         * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
8374         (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
8375         of the comparison no longer matches mode of the operands.
8376         (mips_issue_rate): Handle PROCESSOR_OCTEON3.
8377         * config/mips/mips.h (TARGET_OCTEON):  Add Octeon3.
8378         (TARGET_OCTEON2): Likewise.
8379         (TUNE_OCTEON): Add Octeon3.
8380         * config/mips/mips.md (processor): Add octeon3.
8381         * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
8382         (octeon_arith): Add octeon3.
8383         (octeon_condmove): Remove.
8384         (octeon_condmove_o1): New reservation.
8385         (octeon_condmove_o2): New reservation.
8386         (octeon_condmove_o3_int_on_cc): New reservation.
8387         (octeon_load_o2): Add octeon3.
8388         (octeon_cop_o2): Likewise.
8389         (octeon_store): Likewise.
8390         (octeon_brj_o2): Likewise.
8391         (octeon_imul3_o2): Likewise.
8392         (octeon_imul_o2): Likewise.
8393         (octeon_mfhilo_o2): Likewise.
8394         (octeon_imadd_o2): Likewise.
8395         (octeon_idiv_o2_si): Likewise.
8396         (octeon_idiv_o2_di): Likewise.
8397         (octeon_fpu): Add to the automaton.
8398         (octeon_fpu): New cpu unit.
8399         (octeon_condmove_o2): Check for non floating point modes.
8400         (octeon_load_o2): Add prefetchx.
8401         (octeon_cop_o2): Don't check for octeon3.
8402         (octeon3_faddsubcvt): New reservation.
8403         (octeon3_fmul): Likewise.
8404         (octeon3_fmadd): Likewise.
8405         (octeon3_div_sf): Likewise.
8406         (octeon3_div_df): Likewise.
8407         (octeon3_sqrt_sf): Likewise.
8408         (octeon3_sqrt_df): Likewise.
8409         (octeon3_rsqrt_sf): Likewise.
8410         (octeon3_rsqrt_df): Likewise.
8411         (octeon3_fabsnegmov): Likewise.
8412         (octeon_fcond): Likewise.
8413         (octeon_fcondmov): Likewise.
8414         (octeon_fpmtc1): Likewise.
8415         (octeon_fpmfc1): Likewise.
8416         (octeon_fpload): Likewise.
8417         (octeon_fpstore): Likewise.
8418         * config/mips/mips-tables.opt: Regenerate.
8419         * doc/invoke.texi (-march=@var{arch}): Add octeon3.
8421 2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8423         * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
8424         Allow CC mode if HAVE_cbranchcc4.
8426 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
8428         * config/arc/arc.c (write_ext_corereg_1): Delete.
8429         (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
8431 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
8433         * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
8434         (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
8436 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
8438         * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
8439         (small_data_pattern_1): Delete.
8440         (small_data_pattern): Use FOR_EACH_SUBRTX.
8442 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
8444         * config/arc/arc.c: Include rtl-iter.h.
8445         (arc_rewrite_small_data_1): Delete.
8446         (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
8448 2014-11-02  Michael Collison  <michael.collison@linaro.org>
8450         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
8451         to support vector modes.
8452         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
8454 2014-11-01  Andrew MacLeod  <amacleod@redhat,com>
8456         * optabs.h: Flatten insn-codes.h to source files.  Move some prototypes
8457         and structs to genopinit.c.  Adjust protyoptypes to match optabs.c.
8458         * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
8459         * optabs.c: (gen_move_insn): Move to expr.c.
8460         * expr.h: Move protypes and enums to optabs.h.
8461         * expr.c: (gen_move_insn): Relocate from optabs.c.
8462         * genemit.c (main): Include insn-codes.h.
8463         * gengtype.c (open_base_files): Include insn-codes.h.
8464         * asan.c: Include insn-codes.h.
8465         * bb-reorder.c: Ditto.
8466         * builtins.c: Ditto.
8467         * calls.c: Ditto.
8468         * cfgexpand.c: Ditto.
8469         * cilk-common.c: Ditto.
8470         * combine.c: Ditto.
8471         * dojump.c: Ditto.
8472         * dse.c: Ditto.
8473         * except.c: Ditto.
8474         * explow.c: Ditto.
8475         * expmed.c: Ditto.
8476         * function.c: Ditto.
8477         * ifcvt.c: Ditto.
8478         * internal-fn.c: Ditto.
8479         * loop-unroll.c: Ditto.
8480         * lra.c: Ditto.
8481         * modulo-sched.c: Ditto.
8482         * omp-low.c: Ditto.
8483         * postreload.c: Ditto.
8484         * ree.c: Ditto.
8485         * reload.c: Ditto.
8486         * reload1.c: Ditto.
8487         * shrink-wrap.c: Ditto.
8488         * simplify-rtx.c: Ditto.
8489         * stmt.c: Ditto.
8490         * target-globals.c: Ditto.
8491         * targhooks.c: Ditto.
8492         * toplev.c: Ditto.
8493         * tree-if-conv.c: Ditto.
8494         * tree-ssa-forwprop.c: Ditto.
8495         * tree-ssa-loop-prefetch.c: Ditto.
8496         * tree-ssa-math-opts.c: Ditto.
8497         * tree-ssa-phiopt.c: Ditto.
8498         * tree-ssa-reassoc.c: Ditto.
8499         * tree-switch-conversion.c: Ditto.
8500         * tree-vect-data-refs.c: Ditto.
8501         * tree-vect-generic.c: Ditto.
8502         * tree-vect-loop.c: Ditto.
8503         * tree-vect-patterns.c: Ditto.
8504         * tree-vect-slp.c: Ditto.
8505         * tree-vect-stmts.c: Ditto.
8506         * tree-vrp.c: Ditto.
8507         * value-prof.c: Ditto.
8508         * config/aarch64/aarch64-builtins.c: Ditto.
8509         * config/alpha/alpha.c: Ditto.
8510         * config/arm/arm.c: Ditto.
8511         * config/cris/cris.c: Ditto.
8512         * config/epiphany/epiphany.c: Ditto.
8513         * config/frv/frv.c: Ditto.
8514         * config/h8300/h8300.c: Ditto.
8515         * config/ia64/ia64.c: Ditto.
8516         * config/iq2000/iq2000.c: Ditto.
8517         * config/m32c/m32c.c: Ditto.
8518         * config/mep/mep.c: Ditto.
8519         * config/microblaze/microblaze.c: Ditto.
8520         * config/mips/mips.c: Ditto.
8521         * config/mn10300/mn10300.c: Ditto.
8522         * config/moxie/moxie.c: Ditto.
8523         * config/msp430/msp430.c: Ditto.
8524         * config/nios2/nios2.c: Ditto.
8525         * config/pa/pa.c: Ditto.
8526         * config/rl78/rl78.c: Ditto.
8527         * config/rs6000/rs6000.c: Ditto.
8528         * config/rx/rx.c: Ditto.
8529         * config/s390/s390.c: Ditto.
8530         * config/sh/sh.c: Ditto.
8531         * config/sh/sh_treg_combine.cc: Ditto.
8532         * config/spu/spu.c: Ditto.
8533         * config/stormy16/stormy16.c: Ditto.
8534         * config/tilegx/mul-tables.c: Ditto.
8535         * config/tilegx/tilegx.c: Ditto.
8536         * config/tilepro/mul-tables.c: Ditto.
8537         * config/tilepro/tilepro.c: Ditto.
8538         * config/vax/vax.c: Ditto.
8540 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8542         * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
8543         (CLEAR_BY_PIECES_P): Likewise.
8544         (SET_BY_PIECES_P): Likewise.
8545         (STORE_BY_PIECES_P): Likewise.
8546         * doc/tm.texi: Regenerate.
8547         * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
8548         SET_BY_PIECES_P, STORE_BY_PIECES_P.
8549         * expr.c (MOVE_BY_PIECES_P): Remove.
8550         (CLEAR_BY_PIECES_P): Likewise.
8551         (SET_BY_PIECES_P): Likewise.
8552         (STORE_BY_PIECES_P): Likewise.
8553         (can_move_by_pieces): Rewrite in terms of
8554         targetm.use_by_pieces_infrastructure_p.
8555         (emit_block_move_hints): Likewise.
8556         (can_store_by_pieces): Likewise.
8557         (store_by_pieces): Likewise.
8558         (clear_storage_hints): Likewise.
8559         (emit_push_insn): Likewise.
8560         (expand_constructor): Likewise.
8562 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8564         * config/aarch64/aarch64.c
8565         (aarch64_use_by_pieces_infrastructre_p): New.
8566         (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
8567         * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
8569 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8571         * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
8572         (STORE_BY_PIECES_P): Likewise.
8573         * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
8574         (mips_move_by_pieces_p): Rename to...
8575         (mips_use_by_pieces_infrastructure_p): ...this, use new hook
8576         parameters, use the default hook implementation as a
8577         fall-back.
8579 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8581         * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
8582         (sh_use_by_pieces_infrastructure_p): Likewise.
8583         * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
8584         (STORE_BY_PIECES_P): Likewise.
8585         (SET_BY_PIECES_P): Likewise.
8587 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8589         * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
8590         (arc_use_by_pieces_infrastructure_p): Likewise.
8591         * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
8592         (CAN_MOVE_BY_PIECES): Likewise.
8594 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8596         * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
8597         (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
8598         * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
8599         (CLEAR_BY_PIECES): Likewise.
8600         (SET_BY_PIECES): Likewise.
8601         (STORE_BY_PIECES): Likewise.
8603 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
8605         * target.def (use_by_pieces_infrastructure_p): New.
8606         * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
8607         is deprecated.
8608         (STORE_BY_PIECES_P): Likewise.
8609         (CLEAR_BY_PIECES_P): Likewise.
8610         (SET_BY_PIECES_P): Likewise.
8611         (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
8612         * doc/tm.texi: Regenerate.
8613         * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
8614         TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
8615         (STORE_BY_PIECES_P): Likewise.
8616         (CLEAR_BY_PIECES_P): Likewise.
8617         (SET_BY_PIECES_P): Likewise.
8618         (STORE_MAX_PIECES): Move to...
8619         * defaults.h (STORE_MAX_PIECES): ...here.
8620         * targhooks.c (get_move_ratio): New.
8621         (default_use_by_pieces_infrastructure_p): Likewise.
8622         * targhooks.h (default_use_by_pieces_infrastructure_p): New.
8623         * target.h (by_pieces_operation): New.
8625 2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
8627         PR target/63702
8628         * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
8629         assignment to 'nargs' variable.
8631 2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
8633         PR target/63620
8634         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
8635         * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
8636         * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
8637         be reloaded through memory.
8638         (*pushxf): Ditto.
8639         (*pushdf): Ditto.
8641 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
8643         PR rtl-optimization/63659
8644         * ree.c (update_reg_equal_equiv_notes): New function.
8645         (combine_set_extension, transform_ifelse): Use it.
8647 2014-10-31  Jeff Law  <law@redhat.com>
8649         * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
8650         and Jonny Grant (collect2).
8652 2014-10-31  Richard Biener  <rguenther@suse.de>
8654         * builtins.c (fold_builtin_atomic_always_lock_free): Use
8655         CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
8656         approprate.
8657         (fold_builtin_expect): Likewise.
8658         (integer_valued_real_p): Likewise.
8659         * cfgexpand.c (expand_debug_expr): Likewise.
8660         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
8661         (find_foldable_builtin_expect): Likewise.
8662         * trans-mem.c (thread_private_new_memory): Likewise.
8663         * tree-affine.c (aff_combination_expand): Likewise.
8664         * tree-data-ref.c (initialize_matrix_A): Likewise.
8665         * tree-inline.c (copy_bb): Likewise.
8666         * tree-pretty-print.c (dump_function_name): Likewise.
8667         (print_call_name): Likewise.
8668         * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
8669         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
8670         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8671         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
8672         (vect_recog_widen_mult_pattern): Likewise.
8673         (vect_operation_fits_smaller_type): Likewise.
8674         * tree-vrp.c (find_assert_locations_1): Likewise.
8675         * tree-ssa-dom.c (initialize_hash_element): Canonicalize
8676         converts to NOP_EXPR.
8678 2014-10-31  Richard Biener  <rguenther@suse.de>
8680         * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
8681         CONVERT_EXPRs in generated code.
8682         (dt_simplify::gen): Likewise.
8684 2014-10-31  Evgeny Stupachenko  <evstupac@gmail.com>
8686         PR target/63534
8687         * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
8688         REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
8689         (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
8690         using mcount in 32bit PIC mode.
8691         (ix86_elim_entry_set_got): New.
8692         (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
8693         in PROLOGUE, delete initial if possible.
8695 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
8697         * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
8698         (want_inline_function_to_all_callers_p): Fix formatting and simplify.
8700 2014-10-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8702         PR tree-optimization/63259
8703         * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
8704         rotation left if it is a 16 bit byte swap.
8705         (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
8706         and RROTATE_EXPR statements if it is a byte rotation.
8708 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
8710         PR sanitizer/63697
8711         * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
8712         MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
8713         instead of vr0.min - vr1.min and vr0.max - vr1.max.
8715 2014-10-31  Max Ostapenko  <m.ostapenko@partner.samsung.com>
8717         PR ipa/63696
8718         * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
8719         alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
8721 2014-10-30  Felix Yang  <felix.yang@huawei.com>
8723         * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
8724         * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
8725         (xtensa_reorg, xtensa_reorg_loops): New.
8726         (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
8727         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
8728         (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
8729         (xtensa_doloop_hooks): Define.
8730         * config/xtensa/xtensa.md (doloop_end, loop_end): New
8731         (zero_cost_loop_start): Rewritten.
8732         (zero_cost_loop_end): Likewise.
8734 2014-10-30  Steve Ellcey  <sellcey@imgtec.com>
8736         * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
8738 2014-10-30  Richard Biener  <rguenther@suse.de>
8740         * genmatch.c: Remove <map>, <utility> and <string> includes.
8741         Include ggc.h and hash-map.h.
8742         (ggc_internal_cleared_alloc): Provide stub definition.
8743         (ggc_free): Likewise.
8744         (struct capture_id_map_hasher): New traits for hash_map.
8745         (cid_map_t): New typedef.
8746         (everywhere else): Replace std::map use with cid_map_t.
8747         * hash-map.h (hash_map::elements): New member function.
8748         * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
8749         hash-map.h and $(GGC_H) as dependency.
8751 2014-10-30  Richard Biener  <rguenther@suse.de>
8753         * genmatch.c (capture_info::walk_c_expr): Ignore capture
8754         uses inside TREE_TYPE ().
8755         * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
8756         (find_candidates_dom_walker::before_dom_children): Likewise.
8757         (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
8758         (replace_profitable_candidates): Likewise.
8759         * tree-ssa-dom.c (initialize_hash_element): Canonicalize
8760         CONVERT_EXPR_CODE_P to CONVERT_EXPR.
8761         * convert.c (convert_to_integer): Use CASE_CONVERT.
8763 2014-10-30  Richard Biener  <rguenther@suse.de>
8765         * match.pd: Implement more patterns that simplify to a single value.
8766         * fold-const.c (fold_binary_loc): Remove them here.
8767         * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
8768         (fwprop_ssa_val): Remove restriction on single uses.
8770 2014-10-30  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8772         * config/avr/driver-avr.c (avr_set_current_device): Remove.
8774 2014-10-30  Martin Liska  <mliska@suse.cz>
8776         PR ipa/63574
8777         PR ipa/63664
8778         * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
8779         (func_checker::compare_gimple_label): Simlified comparison introduced.
8780         * ipa-icf-gimple.h: Missing comment added.
8782 2014-10-30  Jeff Law  <law@redhat.com>
8784         * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
8785         argument from rtx to rtx_insn *.
8786         (compute_movmem_length, compute_clrmem_length): Likewise.
8787         (copy_fp_args, length_fp_args): Likewise.
8788         * config/pa/pa.c (legitimize_pic_address): Promote local variable
8789         "insn" from rtx to rtx_insn *.
8790         (legitimize_tls_address, pa_emit_move_sequence): Likewise.
8791         (pa_output_block_move, store_reg, store_reg_modify): Likewise.
8792         (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
8793         (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
8794         (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
8795         (compute_movmem_length, compute_clrmem_length): Likewise.
8796         (copy_fp-args, length_fp_args): Likewise.
8798 2014-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8800         * config/arm/arm.h (MACHMODE): Treat machine_mode as a
8801         scalar typedef.
8802         (CUMULATIVE_ARGS): Guard against target includes.
8803         (machine_function): Likewise.
8805 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8807         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
8808         recog state after aarch64_prev_real_insn call.
8810 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8812         * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
8814 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8816         * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
8817         (struct machine_function): Gate definition on
8818         !defined(USED_FOR_TARGET).
8820 2014-10-29  DJ Delorie  <dj@redhat.com>
8822         * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
8824 2014-10-29  Martin Liska  <mliska@suse.cz>
8826         PR ipa/63587
8827         * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
8828         to local declarations.
8829         * function.c (add_local_decl): Implementation moved from header
8830         file, assert introduced for tree type.
8831         * function.h: Likewise.
8833 2014-10-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8835         * godump.c (go_format_type): Represent "float _Complex" and
8836         "double _Complex" as complex64 or complex128 in Go, as appropriate.
8838 2014-10-29  Richard Biener  <rguenther@suse.de>
8840         * match.pd: Implement a first set of conversion patterns.
8841         * fold-const.c (fold_unary_loc): Remove them here.
8842         * tree-ssa-forwprop.c (simplify_vce): Remove.
8843         (pass_forwprop::execute): Do not call simplify_vce.
8845 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8847         * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
8848         builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
8849         cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
8850         config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
8851         config/aarch64/aarch64.c, config/aarch64/aarch64.h,
8852         config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
8853         config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
8854         config/arc/arc.h, config/arc/predicates.md,
8855         config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
8856         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
8857         config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
8858         config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
8859         config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
8860         config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
8861         config/cr16/cr16-protos.h, config/cr16/cr16.c,
8862         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
8863         config/darwin-protos.h, config/darwin.c,
8864         config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
8865         config/epiphany/epiphany.md, config/fr30/fr30.c,
8866         config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
8867         config/h8300/h8300-protos.h, config/h8300/h8300.c,
8868         config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
8869         config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
8870         config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
8871         config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
8872         config/iq2000/iq2000.c, config/iq2000/iq2000.md,
8873         config/lm32/lm32-protos.h, config/lm32/lm32.c,
8874         config/m32c/m32c-protos.h, config/m32c/m32c.c,
8875         config/m32r/m32r-protos.h, config/m32r/m32r.c,
8876         config/m68k/m68k-protos.h, config/m68k/m68k.c,
8877         config/mcore/mcore-protos.h, config/mcore/mcore.c,
8878         config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
8879         config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
8880         config/mips/mips-protos.h, config/mips/mips.c,
8881         config/mmix/mmix-protos.h, config/mmix/mmix.c,
8882         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
8883         config/moxie/moxie.c, config/msp430/msp430-protos.h,
8884         config/msp430/msp430.c, config/nds32/nds32-cost.c,
8885         config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
8886         config/nds32/nds32-protos.h, config/nds32/nds32.c,
8887         config/nios2/nios2-protos.h, config/nios2/nios2.c,
8888         config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
8889         config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
8890         config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
8891         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8892         config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
8893         config/s390/predicates.md, config/s390/s390-protos.h,
8894         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
8895         config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
8896         config/sh/sh.md, config/sparc/predicates.md,
8897         config/sparc/sparc-protos.h, config/sparc/sparc.c,
8898         config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
8899         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8900         config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
8901         config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
8902         config/tilepro/tilepro.c, config/v850/v850-protos.h,
8903         config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
8904         config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
8905         config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
8906         dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
8907         doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
8908         dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
8909         except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
8910         fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
8911         fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
8912         genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
8913         graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
8914         internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
8915         ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
8916         libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
8917         loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
8918         lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
8919         lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
8920         output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
8921         recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
8922         regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
8923         rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
8924         sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
8925         simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
8926         targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
8927         tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
8928         tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
8929         tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
8930         tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
8931         tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
8932         tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
8933         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
8934         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
8935         tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
8936         var-tracking.c, varasm.c: Remove redundant enum from
8937         machine_mode.
8938         * gengtype.c (main): Treat machine_mode as a scalar typedef.
8939         * genmodes.c (emit_insn_modes_h): Hide inline functions if
8940         USED_FOR_TARGET.
8942 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8944         PR rtl-optimization/63340 (part 2)
8945         * rtl.h (invalid_mode_change_p): Delete.
8946         (valid_mode_changes_for_regno): New function.
8947         * reginfo.c (invalid_mode_change_p): Delete.
8948         (valid_mode_changes_for_regno): New function.
8949         * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
8950         classes to registers that are allowed by valid_mode_changes_for_regno.
8951         (setup_regno_cost_classes_by_mode): Likewise.
8952         (print_allocno_costs): Remove invalid_mode_change_p test.
8953         (print_pseudo_costs, find_costs_and_classes): Likewise.
8955 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8957         PR rtl-optimization/63340 (part 1)
8958         * ira-costs.c (all_cost_classes): New variable.
8959         (complete_cost_classes): New function, split out from...
8960         (setup_cost_classes): ...here.
8961         (initiate_regno_cost_classes): Set up all_cost_classes.
8962         (restrict_cost_classes): New function.
8963         (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
8964         registers that are valid for the register's mode.
8965         (setup_regno_cost_classes_by_mode): Model the mode cache as a
8966         restriction of all_cost_classes to a particular mode.
8967         (print_allocno_costs): Remove contains_reg_of_mode check.
8968         (print_pseudo_costs, find_costs_and_classes): Likewise.
8970 2014-10-29  Richard Biener  <rguenther@suse.de>
8972         PR tree-optimization/63666
8973         * tree-vect-slp.c (vect_get_mask_element): Properly handle
8974         accessing out-of-bound elements.
8976 2014-10-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8977             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8978             Anna Tikhonova  <anna.tikhonova@intel.com>
8979             Ilya Tocar  <ilya.tocar@intel.com>
8980             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8981             Ilya Verbin  <ilya.verbin@intel.com>
8982             Kirill Yukhin  <kirill.yukhin@intel.com>
8983             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8985         * config/i386/i386.md
8986         (movhi_internal): Always detect maskmov.
8987         (movqi_internal): Fix target check.
8989 2014-10-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8990             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8991             Anna Tikhonova  <anna.tikhonova@intel.com>
8992             Ilya Tocar  <ilya.tocar@intel.com>
8993             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8994             Ilya Verbin  <ilya.verbin@intel.com>
8995             Kirill Yukhin  <kirill.yukhin@intel.com>
8996             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8998         * config/i386/avx512bwintrin.h: Add new intrinsics.
8999         * config/i386/avx512vlbwintrin.h: Ditto.
9000         * config/i386/avx512vlintrin.h: Ditto.
9002 2014-10-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9004         * godump.c (precision_to_units): New helper function.
9005         (go_append_artificial_name): Ditto.
9006         (go_append_decl_name): Ditto.
9007         (go_append_bitfield): Ditto.
9008         (go_get_uinttype_for_precision): Ditto.
9009         (go_append_padding): Ditto.
9010         (go_force_record_alignment): Ditto.
9011         (go_format_type): Represent unions with an array of uints of the size
9012         of the alignment in go.  This fixes the 'random' size of the union's
9013         representation using just the first field.
9014         (go_format_type): Add argument that indicates whether a record is
9015         nested (used for generation of artificial go names).
9016         (go_output_fndecl): Adapt to new go_format_type signature.
9017         (go_output_typedef): Ditto.
9018         (go_output_var): Ditto.
9019         (go_output_var): Prefer to output type as alias (typedef).
9020         (go_format_type): Bitfields in records are simulated as arrays of bytes
9021         in go.
9023         * godump.c (go_format_type): Fix handling of arrays with zero elements.
9025 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
9027         * cgraph.h: Flatten.  Remove all include files.
9028         (symbol_table::initialize): Move to cgraph.c.
9029         * cgraph.c: Adjust include files.
9030         (symbol_table::initialize): Relocate from cgraph.h.
9031         * gengtype.c (open_base_files): Adjust include files.
9032         * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
9033         included files.
9034         * ipa-inline.h: Remove all include files.
9035         * ipa-prop.h: Ditto.
9036         * ipa-reference.h: Ditto.
9037         * ipa-utils.h: Ditto:
9038         * lto-streamer.h: Remove cgraph.h from include list.
9039         * asan.c: Adjust include files.
9040         * auto-profile.c: Ditto.
9041         * bb-reorder.c: Ditto.
9042         * calls.c: Ditto.
9043         * cfgexpand.c: Ditto.
9044         * cgraphbuild.c: Ditto.
9045         * cgraphclones.c: Ditto.
9046         * cgraphunit.c: Ditto.
9047         * combine.c: Ditto.
9048         * coverage.c: Ditto.
9049         * data-streamer.c: Ditto.
9050         * data-streamer-in.c: Ditto.
9051         * data-streamer-out.c: Ditto.
9052         * dbxout.c: Ditto.
9053         * dwarf2out.c: Ditto.
9054         * except.c: Ditto.
9055         * expr.c: Ditto.
9056         * final.c: Ditto.
9057         * fold-const.c: Ditto.
9058         * ggc-page.c: Ditto.
9059         * gimple-fold.c: Ditto.
9060         * gimple-iterator.c: Ditto.
9061         * gimple-pretty-print.c: Ditto.
9062         * gimple-streamer-in.c: Ditto.
9063         * gimple-streamer-out.c: Ditto.
9064         * gimplify.c: Ditto.
9065         * ipa.c: Ditto.
9066         * ipa-comdats.c: Ditto.
9067         * ipa-cp.c: Ditto.
9068         * ipa-devirt.c: Ditto.
9069         * ipa-icf.c: Ditto.
9070         * ipa-icf-gimple.c: Ditto.
9071         * ipa-inline-analysis.c: Ditto.
9072         * ipa-inline.c: Ditto.
9073         * ipa-inline-transform.c: Ditto.
9074         * ipa-polymorphic-call.c: Ditto.
9075         * ipa-profile.c: Ditto.
9076         * ipa-prop.c: Ditto.
9077         * ipa-pure-const.c: Ditto.
9078         * ipa-ref.c: Ditto.
9079         * ipa-reference.c: Ditto.
9080         * ipa-split.c: Ditto.
9081         * ipa-utils.c: Ditto.
9082         * ipa-visibility.c: Ditto.
9083         * langhooks.c: Ditto.
9084         * lto-cgraph.c: Ditto.
9085         * lto-compress.c: Ditto.
9086         * lto-opts.c: Ditto.
9087         * lto-section-in.c: Ditto.
9088         * lto-section-out.c: Ditto.
9089         * lto-streamer.c: Ditto.
9090         * lto-streamer-in.c: Ditto.
9091         * lto-streamer-out.c: Ditto.
9092         * omp-low.c: Ditto.
9093         * opts-global.c: Ditto.
9094         * passes.c: Ditto.
9095         * predict.c: Ditto.
9096         * print-tree.c: Ditto.
9097         * profile.c: Ditto.
9098         * ree.c: Ditto.
9099         * stor-layout.c: Ditto.
9100         * symtab.c: Ditto.
9101         * toplev.c: Ditto.
9102         * trans-mem.c: Ditto.
9103         * tree.c: Ditto.
9104         * tree-cfg.c: Ditto.
9105         * tree-eh.c: Ditto.
9106         * tree-emutls.c: Ditto.
9107         * tree-inline.c: Ditto.
9108         * tree-nested.c: Ditto.
9109         * tree-pretty-print.c: Ditto.
9110         * tree-profile.c: Ditto.
9111         * tree-sra.c: Ditto.
9112         * tree-ssa-alias.c: Ditto.
9113         * tree-ssa-loop-ivcanon.c: Ditto.
9114         * tree-ssa-loop-ivopts.c: Ditto.
9115         * tree-ssa-pre.c: Ditto.
9116         * tree-ssa-structalias.c: Ditto.
9117         * tree-streamer.c: Ditto.
9118         * tree-streamer-in.c: Ditto.
9119         * tree-streamer-out.c: Ditto.
9120         * tree-switch-conversion.c: Ditto.
9121         * tree-tailcall.c: Ditto.
9122         * tree-vect-data-refs.c: Ditto.
9123         * tree-vectorizer.c: Ditto.
9124         * tree-vect-stmts.c: Ditto.
9125         * tsan.c: Ditto.
9126         * ubsan.c: Ditto.
9127         * value-prof.c: Ditto.
9128         * varasm.c: Ditto.
9129         * varpool.c: Ditto.
9130         * config/arm/arm.c: Ditto.
9131         * config/bfin/bfin.c: Ditto.
9132         * config/c6x/c6x.c: Ditto.
9133         * config/cris/cris.c: Ditto.
9134         * config/darwin.c: Ditto.
9135         * config/darwin-c.c: Ditto.
9136         * config/i386/i386.c: Ditto.
9137         * config/i386/winnt.c: Ditto.
9138         * config/microblaze/microblaze.c: Ditto.
9139         * config/mips/mips.c: Ditto.
9140         * config/rs6000/rs6000.c: Ditto.
9141         * config/rx/rx.c: Ditto.
9143 2014-10-28  Richard Biener  <rguenther@suse.de>
9145         * gimple-fold.h (follow_single_use_edges): Declare.
9146         * gimple-fold.c (follow_single_use_edges): New function.
9147         (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
9148         * tree-ssa-propagate.c
9149         (substitute_and_fold_dom_walker::before_dom_children): Allow
9150         following single-use edges when folding stmts we propagated into.
9152 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9153             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9154             Anna Tikhonova  <anna.tikhonova@intel.com>
9155             Ilya Tocar  <ilya.tocar@intel.com>
9156             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9157             Ilya Verbin  <ilya.verbin@intel.com>
9158             Kirill Yukhin  <kirill.yukhin@intel.com>
9159             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9161         * config/i386/avx512bwintrin.h: New.
9162         * config/i386/avx512dqintrin.h: Ditto.
9163         * config/i386/avx512vlbwintrin.h: Ditto.
9164         * config/i386/avx512vldqintrin.h: Ditto.
9165         * config/i386/avx512vlintrin.h: Ditto.
9166         * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
9167         avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
9169 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9170             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9171             Anna Tikhonova  <anna.tikhonova@intel.com>
9172             Ilya Tocar  <ilya.tocar@intel.com>
9173             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9174             Ilya Verbin  <ilya.verbin@intel.com>
9175             Kirill Yukhin  <kirill.yukhin@intel.com>
9176             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9178         * config/i386/i386.c
9179         (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
9180         avx_shufpd256_mask, avx_vpermilv2df_mask.
9182 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9183             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9184             Anna Tikhonova  <anna.tikhonova@intel.com>
9185             Ilya Tocar  <ilya.tocar@intel.com>
9186             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9187             Ilya Verbin  <ilya.verbin@intel.com>
9188             Kirill Yukhin  <kirill.yukhin@intel.com>
9189             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9191         * config/i386/i386.c
9192         (ix86_init_mmx_sse_builtins):
9193         Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
9194         __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
9195         __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
9196         __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
9197         __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
9198         __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
9199         __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
9200         __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
9201         __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
9202         __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
9203         __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
9204         __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
9205         __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
9206         __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
9207         __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
9208         __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
9209         __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
9210         __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
9212 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9213             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9214             Anna Tikhonova  <anna.tikhonova@intel.com>
9215             Ilya Tocar  <ilya.tocar@intel.com>
9216             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9217             Ilya Verbin  <ilya.verbin@intel.com>
9218             Kirill Yukhin  <kirill.yukhin@intel.com>
9219             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9221         * config/i386/i386.c
9222         (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
9223         IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
9224         IX86_BUILTIN_GATHER3ALTDIV8SI.
9225         (ix86_expand_builtin):
9226         Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
9227         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
9228         IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
9229         IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
9230         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
9231         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
9232         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
9233         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
9234         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
9235         IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
9236         IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
9237         IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
9238         IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
9239         IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
9240         IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
9241         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
9242         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
9243         IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
9244         (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
9245         V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
9247 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9248             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9249             Anna Tikhonova  <anna.tikhonova@intel.com>
9250             Ilya Tocar  <ilya.tocar@intel.com>
9251             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9252             Ilya Verbin  <ilya.verbin@intel.com>
9253             Kirill Yukhin  <kirill.yukhin@intel.com>
9254             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9256         * config/i386/i386-builtin-types.def
9257         (SHORT): New.
9258         (V32HI): Ditto.
9259         (V12QI): Ditto.
9260         (V14QI): Ditto.
9261         (V32SI): Ditto.
9262         (V8UDI): Ditto.
9263         (V16USI): Ditto.
9264         (V32UHI): Ditto.
9265         (PSHORT): Ditto.
9266         (PV32QI): Ditto.
9267         (PV32HI): Ditto.
9268         (PV64QI): Ditto.
9269         (PCV8HI): Ditto.
9270         (PCV16QI): Ditto.
9271         (PCV16HI): Ditto.
9272         (PCV32QI): Ditto.
9273         (PCV32HI): Ditto.
9274         (PCV64QI): Ditto.
9275         (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
9276         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9277         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9278         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9279         (V16SF_FTYPE_V16HI): Ditto.
9280         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9281         (V16SF_FTYPE_V16SI): Ditto.
9282         (V4DI_FTYPE_V4DI): Ditto.
9283         (V16SI_FTYPE_V16SF): Ditto.
9284         (V8DI_FTYPE_PV2DI): Ditto.
9285         (V8DF_FTYPE_PV2DF): Ditto.
9286         (V4DI_FTYPE_PV2DI): Ditto.
9287         (V4DF_FTYPE_PV2DF): Ditto.
9288         (V16SI_FTYPE_PV2SI): Ditto.
9289         (V16SF_FTYPE_PV2SF): Ditto.
9290         (V8SF_FTYPE_FLOAT): Ditto.
9291         (V4SF_FTYPE_FLOAT): Ditto.
9292         (V4DF_FTYPE_DOUBLE): Ditto.
9293         (V8SF_FTYPE_PV4SF): Ditto.
9294         (V8SI_FTYPE_PV4SI): Ditto.
9295         (V4SI_FTYPE_PV2SI): Ditto.
9296         (V8SF_FTYPE_PV2SF): Ditto.
9297         (V8SI_FTYPE_PV2SI): Ditto.
9298         (V16SF_FTYPE_PV8SF): Ditto.
9299         (V16SI_FTYPE_PV8SI): Ditto.
9300         (V8DI_FTYPE_V8SF): Ditto.
9301         (V4DI_FTYPE_V4SF): Ditto.
9302         (V2DI_FTYPE_V4SF): Ditto.
9303         (V64QI_FTYPE_QI): Ditto.
9304         (V32HI_FTYPE_HI): Ditto.
9305         (V16UHI_FTYPE_V16UHI): Ditto.
9306         (V32UHI_FTYPE_V32UHI): Ditto.
9307         (V2UDI_FTYPE_V2UDI): Ditto.
9308         (V4UDI_FTYPE_V4UDI): Ditto.
9309         (V8UDI_FTYPE_V8UDI): Ditto.
9310         (V4USI_FTYPE_V4USI): Ditto.
9311         (V16USI_FTYPE_V16USI): Ditto.
9312         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9313         (V2DF_FTYPE_V8DF_INT): Ditto.
9314         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9315         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9316         (V8DF_FTYPE_V8DF_INT): Ditto.
9317         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9318         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9319         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9320         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9321         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9322         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9323         (V8DI_FTYPE_V8DI_INT): Ditto.
9324         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9325         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9326         (V8SF_FTYPE_V16SF_INT): Ditto.
9327         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9328         (V64QI_FTYPE_V32HI_V32HI): Ditto.
9329         (V32HI_FTYPE_V16SI_V16SI): Ditto.
9330         (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
9331         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
9332         (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
9333         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
9334         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
9335         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9336         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
9337         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
9338         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
9339         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
9340         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
9341         (V32HI_FTYPE_V64QI_V64QI): Ditto.
9342         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
9343         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
9344         (V32HI_FTYPE_V32HI_V32HI): Ditto.
9345         (V32HI_FTYPE_V32HI_INT): Ditto.
9346         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
9347         (V16SI_FTYPE_V32HI_V32HI): Ditto.
9348         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
9349         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
9350         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
9351         (V8SI_FTYPE_V16SI_INT): Ditto.
9352         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
9353         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9354         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9355         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9356         (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
9357         (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
9358         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
9359         (V8DI_FTYPE_V16SI_V16SI): Ditto.
9360         (V8DI_FTYPE_V64QI_V64QI): Ditto.
9361         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
9362         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
9363         (V2DI_FTYPE_V8DI_INT): Ditto.
9364         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
9365         (QI_FTYPE_QI): Ditto.
9366         (SI_FTYPE_SI): Ditto.
9367         (DI_FTYPE_DI): Ditto.
9368         (HI_FTYPE_V16QI): Ditto.
9369         (SI_FTYPE_V32QI): Ditto.
9370         (DI_FTYPE_V64QI): Ditto.
9371         (QI_FTYPE_V8HI): Ditto.
9372         (HI_FTYPE_V16HI): Ditto.
9373         (SI_FTYPE_V32HI): Ditto.
9374         (QI_FTYPE_V4SI): Ditto.
9375         (QI_FTYPE_V8SI): Ditto.
9376         (HI_FTYPE_V16SI): Ditto.
9377         (QI_FTYPE_V2DI): Ditto.
9378         (QI_FTYPE_V4DI): Ditto.
9379         (QI_FTYPE_V8DI): Ditto.
9380         (V16QI_FTYPE_HI): Ditto.
9381         (V32QI_FTYPE_SI): Ditto.
9382         (V64QI_FTYPE_DI): Ditto.
9383         (V8HI_FTYPE_QI): Ditto.
9384         (V16HI_FTYPE_HI): Ditto.
9385         (V32HI_FTYPE_SI): Ditto.
9386         (V4SI_FTYPE_QI): Ditto.
9387         (V4SI_FTYPE_HI): Ditto.
9388         (V8SI_FTYPE_QI): Ditto.
9389         (V8SI_FTYPE_HI): Ditto.
9390         (V2DI_FTYPE_QI): Ditto.
9391         (V4DI_FTYPE_QI): Ditto.
9392         (QI_FTYPE_QI_QI): Ditto.
9393         (SI_FTYPE_SI_SI): Ditto.
9394         (DI_FTYPE_DI_DI): Ditto.
9395         (QI_FTYPE_QI_INT): Ditto.
9396         (SI_FTYPE_SI_INT): Ditto.
9397         (DI_FTYPE_DI_INT): Ditto.
9398         (HI_FTYPE_V16QI_V16QI): Ditto.
9399         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
9400         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
9401         (SI_FTYPE_V32QI_V32QI): Ditto.
9402         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
9403         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
9404         (DI_FTYPE_V64QI_V64QI): Ditto.
9405         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
9406         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
9407         (QI_FTYPE_V8HI_V8HI): Ditto.
9408         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
9409         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
9410         (HI_FTYPE_V16HI_V16HI): Ditto.
9411         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
9412         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
9413         (SI_FTYPE_V32HI_V32HI): Ditto.
9414         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
9415         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
9416         (QI_FTYPE_V4SI_V4SI): Ditto.
9417         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
9418         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
9419         (QI_FTYPE_V8SI_V8SI): Ditto.
9420         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
9421         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
9422         (QI_FTYPE_V2DI_V2DI): Ditto.
9423         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
9424         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
9425         (QI_FTYPE_V4DI_V4DI): Ditto.
9426         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
9427         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
9428         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9429         (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
9430         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
9431         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
9432         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
9433         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
9434         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
9435         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
9436         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
9437         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9438         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
9439         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
9440         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
9441         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
9442         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
9443         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
9444         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
9445         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
9446         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
9447         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
9448         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
9449         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9450         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
9451         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
9452         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
9453         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
9454         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
9455         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
9456         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
9457         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
9458         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
9459         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
9460         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
9461         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
9462         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
9463         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
9464         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
9465         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
9466         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
9467         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
9468         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
9469         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
9470         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
9471         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
9472         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
9473         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
9474         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
9475         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
9476         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
9477         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
9478         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
9479         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
9480         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
9481         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
9482         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
9483         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
9484         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
9485         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
9486         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
9487         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
9488         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
9489         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9490         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9491         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9492         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9493         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9494         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9495         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9496         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9497         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9498         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
9499         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
9500         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
9501         (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
9502         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
9503         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
9504         (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
9505         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
9506         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
9507         (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
9508         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
9509         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
9510         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
9511         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
9512         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
9513         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
9514         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
9515         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
9516         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
9517         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
9518         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
9519         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
9520         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
9521         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
9522         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
9523         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
9524         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
9525         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
9526         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
9527         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
9528         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
9529         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
9530         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
9531         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
9532         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
9533         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
9534         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
9535         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9536         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9537         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
9538         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
9539         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9540         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
9541         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9542         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9543         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
9544         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9545         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
9546         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9547         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
9548         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
9549         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
9550         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9551         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
9552         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
9553         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
9554         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
9555         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
9556         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
9557         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
9558         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
9559         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
9560         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
9561         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
9562         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
9563         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
9564         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
9565         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
9566         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
9567         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
9568         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
9569         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
9570         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
9571         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
9572         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
9573         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
9574         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
9575         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
9576         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
9577         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
9578         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
9579         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
9580         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
9581         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
9582         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
9583         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
9584         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
9585         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
9586         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
9587         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
9588         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
9589         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
9590         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
9591         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
9592         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
9593         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
9594         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
9595         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
9596         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
9597         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
9598         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
9599         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
9600         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
9601         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9602         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
9603         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
9604         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9605         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
9606         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
9607         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9608         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
9609         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
9610         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
9611         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
9612         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
9613         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
9614         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
9615         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
9616         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
9617         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
9618         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
9619         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
9620         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
9621         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
9622         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
9623         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
9624         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
9625         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
9626         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
9627         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
9628         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
9629         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
9630         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
9631         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9632         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9633         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9634         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9635         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
9636         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
9637         (QI_FTYPE_V8DF_INT): Ditto.
9638         (QI_FTYPE_V4DF_INT): Ditto.
9639         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
9640         (QI_FTYPE_V2DF_INT): Ditto.
9641         (HI_FTYPE_V16SF_INT): Ditto.
9642         (QI_FTYPE_V8SF_INT): Ditto.
9643         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
9644         (QI_FTYPE_V4SF_INT): Ditto.
9645         (QI_FTYPE_V8DF_INT_QI): Ditto.
9646         (QI_FTYPE_V4DF_INT_QI): Ditto.
9647         (QI_FTYPE_V2DF_INT_QI): Ditto.
9648         (HI_FTYPE_V16SF_INT_HI): Ditto.
9649         (QI_FTYPE_V8SF_INT_QI): Ditto.
9650         (QI_FTYPE_V4SF_INT_QI): Ditto.
9651         (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
9652         (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
9653         (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
9654         (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
9655         (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
9656         (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
9657         (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
9658         (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
9659         (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
9660         (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
9661         (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
9662         (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
9663         (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
9664         (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
9665         (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
9666         (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
9667         (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
9668         (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
9669         (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
9670         (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
9671         (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
9672         (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
9673         (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
9674         (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
9675         (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
9676         (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
9677         (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
9678         (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
9679         (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
9680         (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
9681         (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
9682         (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
9683         (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
9684         (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
9685         (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
9686         (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
9687         (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
9688         (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
9689         (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
9690         (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
9691         (V8DI_FTYPE_V8DI_INT): Ditto.
9692         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
9693         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9694         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9695         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9696         (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
9697         (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
9698         (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
9699         (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
9700         (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
9701         (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
9702         (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
9703         (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
9704         (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
9705         (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
9706         * config/i386/i386.c (ix86_builtins):
9707         Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
9708         IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
9709         IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
9710         IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
9711         IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
9712         IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
9713         IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
9714         IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
9715         IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
9716         IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
9717         IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
9718         IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
9719         IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
9720         IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
9721         IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
9722         IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
9723         IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
9724         IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
9725         IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
9726         IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
9727         IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
9728         IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
9729         IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
9730         IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
9731         IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
9732         IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
9733         IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
9734         IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
9735         IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
9736         IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
9737         IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
9738         IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
9739         IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
9740         IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
9741         IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
9742         IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
9743         IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
9744         IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
9745         IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
9746         IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
9747         IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
9748         IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
9749         IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
9750         IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
9751         IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
9752         IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
9753         IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
9754         IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
9755         IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
9756         IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
9757         IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
9758         IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
9759         IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
9760         IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
9761         IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
9762         IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
9763         IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
9764         IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
9765         IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
9766         IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
9767         IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
9768         IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
9769         IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
9770         IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
9771         IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
9772         IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
9773         IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
9774         IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
9775         IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
9776         IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
9777         IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
9778         IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
9779         IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
9780         IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
9781         IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
9782         IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
9783         IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
9784         IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
9785         IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
9786         IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
9787         IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
9788         IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
9789         IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
9790         IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
9791         IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
9792         IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
9793         IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
9794         IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
9795         IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
9796         IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
9797         IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
9798         IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
9799         IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
9800         IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
9801         IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
9802         IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
9803         IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
9804         IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
9805         IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
9806         IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
9807         IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
9808         IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
9809         IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
9810         IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
9811         IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
9812         IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
9813         IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
9814         IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
9815         IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
9816         IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
9817         IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
9818         IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
9819         IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
9820         IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
9821         IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
9822         IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
9823         IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
9824         IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
9825         IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
9826         IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
9827         IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
9828         IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
9829         IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
9830         IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
9831         IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
9832         IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
9833         IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
9834         IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
9835         IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
9836         IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
9837         IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
9838         IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
9839         IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
9840         IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
9841         IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
9842         IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
9843         IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
9844         IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
9845         IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
9846         IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
9847         IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
9848         IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
9849         IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
9850         IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
9851         IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
9852         IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
9853         IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
9854         IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
9855         IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
9856         IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
9857         IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
9858         IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
9859         IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
9860         IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
9861         IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
9862         IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
9863         IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
9864         IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
9865         IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
9866         IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
9867         IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
9868         IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
9869         IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
9870         IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
9871         IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
9872         IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
9873         IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
9874         IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
9875         IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
9876         IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
9877         IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
9878         IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
9879         IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
9880         IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
9881         IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
9882         IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
9883         IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
9884         IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
9885         IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
9886         IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
9887         IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
9888         IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
9889         IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
9890         IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
9891         IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
9892         IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
9893         IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
9894         IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
9895         IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
9896         IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
9897         IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
9898         IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
9899         IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
9900         IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
9901         IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
9902         IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
9903         IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
9904         IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
9905         IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
9906         IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
9907         IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
9908         IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
9909         IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
9910         IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
9911         IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
9912         IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
9913         IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
9914         IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
9915         IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
9916         IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
9917         IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
9918         IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
9919         IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
9920         IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
9921         IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
9922         IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
9923         IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
9924         IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
9925         IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
9926         IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
9927         IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
9928         IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
9929         IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
9930         IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
9931         IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
9932         IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
9933         IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
9934         IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
9935         IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
9936         IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
9937         IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
9938         IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
9939         IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
9940         IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
9941         IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
9942         IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
9943         IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
9944         IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
9945         IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
9946         IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
9947         IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
9948         IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
9949         IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
9950         IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
9951         IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
9952         IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
9953         IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
9954         IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
9955         IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
9956         IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
9957         IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
9958         IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
9959         IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
9960         IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
9961         IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
9962         IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
9963         IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
9964         IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
9965         IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
9966         IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
9967         IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
9968         IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
9969         IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
9970         IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
9971         IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
9972         IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
9973         IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
9974         IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
9975         IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
9976         IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
9977         IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
9978         IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
9979         IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
9980         IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
9981         IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
9982         IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
9983         IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
9984         IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
9985         IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
9986         IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
9987         IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
9988         IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
9989         IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
9990         IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
9991         IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
9992         IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
9993         IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
9994         IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
9995         IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
9996         IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
9997         IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
9998         IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
9999         IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
10000         IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
10001         IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
10002         IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
10003         IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
10004         IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
10005         IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
10006         IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
10007         IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
10008         IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
10009         IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
10010         IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
10011         IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
10012         IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
10013         IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
10014         IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
10015         IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
10016         IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
10017         IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
10018         IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
10019         IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
10020         IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
10021         IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
10022         IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
10023         IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
10024         IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
10025         IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
10026         IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
10027         IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
10028         IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
10029         IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
10030         IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
10031         IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
10032         IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
10033         IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
10034         IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
10035         IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
10036         IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
10037         IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
10038         IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
10039         IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
10040         IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
10041         IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
10042         IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
10043         IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
10044         IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
10045         IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
10046         IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
10047         IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
10048         IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
10049         IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
10050         IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
10051         IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
10052         IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
10053         IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
10054         IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
10055         IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
10056         IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
10057         IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
10058         IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
10059         IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
10060         IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
10061         IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
10062         IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
10063         IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
10064         IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
10065         IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
10066         IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
10067         IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
10068         IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
10069         IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
10070         IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
10071         IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
10072         IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
10073         IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
10074         IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
10075         IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
10076         IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
10077         IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
10078         IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
10079         IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
10080         IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
10081         IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
10082         IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
10083         IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
10084         IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
10085         IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
10086         IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
10087         IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
10088         IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
10089         IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
10090         IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
10091         IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
10092         IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
10093         IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
10094         IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
10095         IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
10096         IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
10097         IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
10098         IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
10099         IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
10100         IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
10101         IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
10102         IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
10103         IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
10104         IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
10105         IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
10106         IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
10107         IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
10108         IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
10109         IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
10110         IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
10111         IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
10112         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
10113         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
10114         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
10115         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
10116         IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
10117         IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
10118         IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
10119         IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
10120         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
10121         IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
10122         IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
10123         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
10124         IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
10125         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
10126         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
10127         IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
10128         IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
10129         IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
10130         IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
10131         IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
10132         IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
10133         IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
10134         IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
10135         IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
10136         IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
10137         IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
10138         IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
10139         IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
10140         IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
10141         IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
10142         IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
10143         IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
10144         IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
10145         IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
10146         IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
10147         IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
10148         IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
10149         IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
10150         IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
10151         IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
10152         IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
10153         IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
10154         IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
10155         IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
10156         IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
10157         IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
10158         IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
10159         IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
10160         IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
10161         IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
10162         IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
10163         IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
10164         IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
10165         IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
10166         IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
10167         IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
10168         IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
10169         IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
10170         IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
10171         IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
10172         IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
10173         IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
10174         IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
10175         IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
10176         IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
10177         IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
10178         IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
10179         IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
10180         IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
10181         IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
10182         IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
10183         IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
10184         IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
10185         IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
10186         IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
10187         IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
10188         IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
10189         IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
10190         IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
10191         IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
10192         IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
10193         IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
10194         IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
10195         IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
10196         IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
10197         IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
10198         (bdesc_special_args):
10199         Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
10200         __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
10201         __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
10202         __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
10203         __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
10204         __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
10205         __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
10206         __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
10207         __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
10208         __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
10209         __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
10210         __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
10211         __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
10212         __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
10213         __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
10214         __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
10215         __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
10216         __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
10217         __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
10218         __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
10219         __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
10220         __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
10221         __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
10222         __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
10223         __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
10224         __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
10225         __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
10226         __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
10227         __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
10228         __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
10229         __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
10230         __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
10231         __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
10232         __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
10233         __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
10234         __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
10235         __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
10236         __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
10237         __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
10238         __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
10239         __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
10240         __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
10241         __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
10242         __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
10243         __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
10244         __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
10245         __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
10246         __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
10247         __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
10248         __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
10249         __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
10250         __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
10251         __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
10252         __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
10253         __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
10254         __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
10255         __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
10256         __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
10257         __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
10258         __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
10259         __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
10260         __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
10261         __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
10262         __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
10263         __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
10264         __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
10265         __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
10266         __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
10267         __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
10268         __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
10269         __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
10270         __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
10271         __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
10272         __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
10273         __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
10274         __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
10275         __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
10276         __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
10277         __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
10278         __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
10279         __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
10280         __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
10281         __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
10282         __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
10283         __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
10284         __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
10285         __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
10286         __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
10287         __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
10288         __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
10289         __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
10290         __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
10291         __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
10292         __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
10293         __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
10294         __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
10295         __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
10296         __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
10297         __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
10298         __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
10299         __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
10300         __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
10301         __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
10302         __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
10303         __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
10304         __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
10305         __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
10306         __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
10307         __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
10308         __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
10309         __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
10310         __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
10311         __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
10312         __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
10313         __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
10314         __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
10315         __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
10316         __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
10317         __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
10318         __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
10319         __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
10320         __builtin_ia32_reducesd, __builtin_ia32_reducess,
10321         __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
10322         __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
10323         __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
10324         __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
10325         __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
10326         __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
10327         __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
10328         __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
10329         __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
10330         __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
10331         __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
10332         __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
10333         __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
10334         __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
10335         __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
10336         __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
10337         __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
10338         __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
10339         __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
10340         __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
10341         __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
10342         __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
10343         __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
10344         __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
10345         __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
10346         __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
10347         __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
10348         __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
10349         __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
10350         __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
10351         __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
10352         __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
10353         __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
10354         __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
10355         __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
10356         __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
10357         __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
10358         __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
10359         __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
10360         __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
10361         __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
10362         __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
10363         __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
10364         __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
10365         __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
10366         __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
10367         __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
10368         __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
10369         __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
10370         __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
10371         __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
10372         __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
10373         __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
10374         __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
10375         __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
10376         __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
10377         __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
10378         __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
10379         __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
10380         __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
10381         __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
10382         __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
10383         __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
10384         __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
10385         __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
10386         __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
10387         __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
10388         __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
10389         __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
10390         __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
10391         __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
10392         __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
10393         __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
10394         __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
10395         __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
10396         __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
10397         __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
10398         __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
10399         __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
10400         __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
10401         __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
10402         __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
10403         __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
10404         __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
10405         __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
10406         __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
10407         __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
10408         __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
10409         __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
10410         __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
10411         __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
10412         __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
10413         __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
10414         __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
10415         __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
10416         __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
10417         __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
10418         __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
10419         __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
10420         __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
10421         __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
10422         __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
10423         __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
10424         __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
10425         __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
10426         __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
10427         __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
10428         __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
10429         __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
10430         __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
10431         __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
10432         __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
10433         __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
10434         __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
10435         __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
10436         __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
10437         __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
10438         __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
10439         __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
10440         __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
10441         __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
10442         __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
10443         __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
10444         __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
10445         __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
10446         __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
10447         __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
10448         __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
10449         __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
10450         __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
10451         __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
10452         __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
10453         __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
10454         __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
10455         __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
10456         __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
10457         __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
10458         __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
10459         __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
10460         __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
10461         __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
10462         __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
10463         __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
10464         __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
10465         __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
10466         __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
10467         __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
10468         __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
10469         __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
10470         __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
10471         __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
10472         __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
10473         __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
10474         __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
10475         __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
10476         __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
10477         __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
10478         __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
10479         __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
10480         __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
10481         __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
10482         __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
10483         __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
10484         __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
10485         __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
10486         __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
10487         __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
10488         __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
10489         __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
10490         __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
10491         __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
10492         __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
10493         __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
10494         __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
10495         __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
10496         __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
10497         __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
10498         __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
10499         __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
10500         __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
10501         __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
10502         __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
10503         __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
10504         __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
10505         __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
10506         __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
10507         __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
10508         __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
10509         __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
10510         __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
10511         __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
10512         __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
10513         __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
10514         __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
10515         __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
10516         __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
10517         __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
10518         __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
10519         __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
10520         __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
10521         __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
10522         __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
10523         __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
10524         __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
10525         __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
10526         __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
10527         __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
10528         __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
10529         __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
10530         __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
10531         __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
10532         __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
10533         __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
10534         __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
10535         __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
10536         __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
10537         __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
10538         __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
10539         __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
10540         __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
10541         __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
10542         __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
10543         __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
10544         __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
10545         __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
10546         __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
10547         __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
10548         __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
10549         __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
10550         __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
10551         __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
10552         __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
10553         __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
10554         __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
10555         __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
10556         __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
10557         __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
10558         __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
10559         __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
10560         __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
10561         __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
10562         __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
10563         __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
10564         __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
10565         __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
10566         __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
10567         __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
10568         __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
10569         __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
10570         __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
10571         __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
10572         __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
10573         __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
10574         __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
10575         __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
10576         __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
10577         __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
10578         __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
10579         __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
10580         __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
10581         __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
10582         __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
10583         __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
10584         __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
10585         __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
10586         __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
10587         __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
10588         __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
10589         __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
10590         __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
10591         __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
10592         __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
10593         __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
10594         __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
10595         __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
10596         __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
10597         __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
10598         __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
10599         __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
10600         __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
10601         __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
10602         __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
10603         __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
10604         __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
10605         __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
10606         __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
10607         __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
10608         __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
10609         __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
10610         __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
10611         __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
10612         __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
10613         __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
10614         __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
10615         __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
10616         __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
10617         __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
10618         __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
10619         __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
10620         __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
10621         __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
10622         __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
10623         __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
10624         __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
10625         __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
10626         __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
10627         __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
10628         __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
10629         __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
10630         __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
10631         __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
10632         __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
10633         __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
10634         __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
10635         __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
10636         __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
10637         __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
10638         __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
10639         __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
10640         __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
10641         __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
10642         __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
10643         __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
10644         __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
10645         __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
10646         __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
10647         __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
10648         __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
10649         __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
10650         __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
10651         __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
10652         __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
10653         __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
10654         __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
10655         __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
10656         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
10657         __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
10658         __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
10659         __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
10660         __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
10661         __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
10662         __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
10663         __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
10664         __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
10665         __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
10666         __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
10667         __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
10668         __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
10669         __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
10670         __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
10671         __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
10672         __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
10673         __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
10674         __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
10675         __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
10676         (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
10677         DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
10678         V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
10679         V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
10680         HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
10681         HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
10682         V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
10683         SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
10684         QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
10685         V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
10686         V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
10687         V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
10688         V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
10689         V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
10690         V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
10691         V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
10692         V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
10693         V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
10694         V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
10695         V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
10696         V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
10697         V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
10698         V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
10699         V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
10700         V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
10701         V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
10702         V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
10703         V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
10704         V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
10705         V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
10706         V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
10707         V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
10708         V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
10709         V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
10710         HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
10711         DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
10712         HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
10713         QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
10714         QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
10715         V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
10716         V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
10717         V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
10718         V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
10719         V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
10720         V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
10721         V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
10722         V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
10723         V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
10724         V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
10725         V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
10726         V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
10727         V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
10728         V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
10729         V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
10730         V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
10731         V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
10732         V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
10733         V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
10734         V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
10735         QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
10736         HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
10737         QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
10738         V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
10739         V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
10740         V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
10741         V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
10742         V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
10743         V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
10744         V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
10745         V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
10746         V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
10747         V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
10748         V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
10749         V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
10750         V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
10751         V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
10752         V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
10753         V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
10754         V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
10755         V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
10756         V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
10757         V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
10758         QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
10759         QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
10760         QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
10761         SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
10762         SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
10763         QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
10764         V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
10765         V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
10766         V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
10767         V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
10768         V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
10769         V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
10770         V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
10771         V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
10772         V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
10773         V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
10774         V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
10775         V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
10776         V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
10777         V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
10778         V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
10779         V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
10780         V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
10781         V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
10782         V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
10783         V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
10784         V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
10785         V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
10786         V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
10787         V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
10788         V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
10789         VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
10790         VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
10791         VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
10792         VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
10793         VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
10794         VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
10795         VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
10796         VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
10797         VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
10798         VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
10799         VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
10800         VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
10801         V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
10802         V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
10803         V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
10804         V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
10805         V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
10806         V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
10807         V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
10809 2014-10-28  Jakub Jelinek  <jakub@redhat.com>
10811         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
10812         type for the left shift in CASE_CONVERT case.
10814 2014-10-28  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10816         * asan.h (asan_intercepted_p): New function.
10817         * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
10818         hash value construction.  Call iterative_hash_expr instead of explicit
10819         hash building.
10820         (asan_mem_ref_hasher::equal): Change condition.
10821         (has_mem_ref_been_instrumented): Likewise.
10822         (update_mem_ref_hash_table): Likewise.
10823         (maybe_update_mem_ref_hash_table): New function.
10824         (instrument_strlen_call): Removed.
10825         (get_mem_refs_of_builtin_call): Handle new parameter.
10826         (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
10827         of instrument_mem_region_access if intercepted_p is true.
10828         (instrument_mem_region_access): Instrument only base with len instead of
10829         base and end with 1.
10830         (build_check_stmt): Remove start_instrumented and end_instrumented
10831         parameters.
10832         (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
10833         ASAN_CHECK_END_INSTRUMENTED.  Change ASAN_CHECK_LAST.
10834         (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
10835         * builtins.c (expand_builtin): Include asan.h.  Don't expand string/memory
10836         builtin functions that have interceptors if ASan is enabled.
10838 2014-10-28  Richard Biener  <rguenther@suse.de>
10840         PR middle-end/63665
10841         * fold-const.c (fold_comparison): Properly guard simplifying
10842         against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
10844 2014-10-28  Alan Lawrence  <alan.lawrence@arm.com>
10846         * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
10847         * fold-const.c (const_binop): Likewise.
10848         * cfgexpand.c (expand_debug_expr): Likewise.
10849         * tree-inline.c (estimate_operator_cost): Likewise.
10850         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
10851         * optabs.c (optab_for_tree_code): Likewise.
10852         (expand_vec_shift_expr): Likewise, update comment.
10853         * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
10854         * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
10855         * optabs.def: Remove vec_shl_optab.
10856         * doc/md.texi: Remove references to vec_shr_m.
10858 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
10860         * asan.c (report_error_func): Add noabort path.
10861         (check_func): Ditto.  Formatting.
10862         (asan_expand_check_ifn): Handle noabort path.
10863         * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
10864         to default value.
10865         * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
10866         * opts.c (finish_options): Reword comment.
10867         * sanitizer.def: Add noabort ASan builtins.
10869 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
10871         * asan.c (set_asan_shadow_offset): New function.
10872         (asan_shadow_offset): Likewise.
10873         (asan_emit_stack_protection): Call asan_shadow_offset.
10874         (build_shadow_mem_access): Likewise.
10875         * asan.h (set_asan_shadow_offset): Declare.
10876         * common.opt (fasan-shadow-offset): New option.
10877         (frandom-seed): Fixed parameter name.
10878         * doc/invoke.texi (fasan-shadow-offset): Describe new option.
10879         (frandom-seed): Fixed parameter name.
10880         * opts-global.c (handle_common_deferred_options): Handle
10881         -fasan-shadow-offset.
10882         * opts.c (common_handle_option): Likewise.
10884 2014-10-27  Jiong Wang <jiong.wang@arm.com>
10886         PR target/63442
10887         * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
10889 2014-10-27  DJ Delorie  <dj@redhat.com>
10891         * tree.c (build_common_tree_nodes): Don't even store the
10892         __int128 types if they're not supported.
10894 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10896         * config/i386/i386.c (ix86_loop_memcount): Delete.
10897         (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
10899 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10901         * config/i386/i386.c (find_constant_1): Delete.
10902         (find_constant): Use FOR_EACH_SUBRTX.
10904 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10906         * config/i386/i386.c (extended_reg_mentioned_1): Delete.
10907         (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
10909 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10911         * config/i386/i386.c: Include rtl-iter.h
10912         (ix86_check_avx256_register): Take a const_rtx and return a bool.
10913         (ix86_check_avx256_stores): Update call accordingly.
10914         (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
10915         (ix86_avx_u128_mode_needed): Likewise.  Use FOR_EACH_SUBRTX.
10917 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10919         * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
10920         Take an rtx and return a bool.
10921         * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
10922         Use FOR_EACH_SUBRTX_VAR.
10923         * config/alpha/predicates.md (some_small_symbolic_operand): Update
10924         accordingly.
10926 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10928         * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
10929         a bool.
10930         * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
10931         (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX.  Return a bool.
10933 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10935         * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
10936         (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
10938 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10940         * config/alpha/alpha.c: Include rtl-iter.h.
10941         (split_small_symbolic_operand_1): Delete.
10942         (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
10944 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10946         * config/s390/s390.c: Include rtl-iter.h.
10947         (check_dpu): Delete.
10948         (s390_loop_unroll_adjust): Only iterate over patterns.
10949         Use FOR_EACH_SUBRTX.
10951 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
10953         * config/spu/spu.c: Include rtl-iter.h
10954         (ea_symbol_ref): Replace with...
10955         (ea_symbol_ref_p): ...this new function.
10956         (spu_legitimate_address_p): Update call accordingly.
10957         (spu_legitimate_constant_p): Likewise.  Use FOR_EACH_SUBRTX.
10959 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
10960             Tom Tromey  <tromey@redhat.com>
10962         * aclocal.m4, configure: Rebuild.
10963         * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
10964         * configure.ac: Use GCC_ENABLE_PLUGINS.
10965         * stor-layout.c (finish_bitfield_layout): Now public.  Change
10966         argument type to 'tree'.
10967         (finish_record_layout): Update.
10968         * stor-layout.h (finish_bitfield_layout): Declare.
10970 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
10972         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
10973         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
10974         Restore, enable for bigendian, update to use __builtin..._scal...
10976 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
10978         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
10979         reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
10980         (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
10981         reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
10983         * config/aarch64/aarch64-simd.md
10984         (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
10985         (reduc_<maxmin_uns>_internal<mode>): ...this.
10986         (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
10987         (reduc_<maxmin_uns>_scal_<mode>): New (*2).
10989         (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
10990         (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
10991         (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
10993         * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
10994         vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
10995         vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
10996         vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
10997         vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
10998         vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
10999         vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
11000         __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
11002 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
11004         * config/aarch64/aarch64-simd-builtins.def
11005         (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
11006         Remove.
11007         (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
11009         * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
11010         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
11012         (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
11013         (aarch64_reduc_plus_internal<mode>): ...this.
11015         (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
11016         (aarch64_reduc_plus_internalv2si): ...this.
11018         (reduc_splus_<mode>/V2F): Rename to...
11019         (aarch64_reduc_plus_internal<mode>): ...this.
11021         * config/aarch64/iterators.md
11022         (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
11023         (UNSPEC_ADDV): New.
11024         (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
11026         * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
11027         vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
11028         vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
11029         vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
11030         __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
11032 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
11034         PR tree-optimization/61114
11035         * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
11036         optabs, and note in reduc_[us](plus|min|max) to prefer the former.
11038         * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
11039         back to old reduc_... + BIT_FIELD_REF only if not.
11041         * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
11042         return the reduce-to-scalar (reduc_..._scal) optab.
11043         (scalar_reduc_to_vector): New.
11045         * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
11046         reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
11047         New.
11049         * optabs.h (scalar_reduc_to_vector): Declare.
11051         * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
11052         to either scalar or vector.
11054 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
11056         PR tree-optimization/61114
11057         * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
11058         extract_bit_field around optab result.
11060         * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
11061         scalar not vector.
11063         * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
11064         for REDUC_{MIN,MAX,PLUS}_EXPR.
11066         * tree-vect-loop.c (vect_analyze_loop): Update comment.
11067         (vect_create_epilog_for_reduction): For direct vector reduction, use
11068         result of tree code directly without extract_bit_field.
11070         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
11071         comment.
11073 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
11075         * basic-block.h: Remove all includes.
11076         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
11077         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
11078         * Makefile.in (GTFILES): Add cfg.h to list.
11079         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
11080         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
11081         * genconditions.c (write_header): Add predict.h and basic-block.h to
11082         lits of includes.
11083         * genemit.c (main): Ditto.
11084         * genpreds.c (write_insn_preds_c): Ditto.
11085         * genrecog.c (write_header): Ditto.
11086         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
11087         to list of includes.
11088         * alias.c: Adjust include files.
11089         * asan.c: Ditto.
11090         * auto-inc-dec.c: Ditto.
11091         * auto-profile.c: Ditto.
11092         * bb-reorder.c: Ditto.
11093         * bt-load.c: Ditto.
11094         * builtins.c: Ditto.
11095         * caller-save.c: Ditto.
11096         * calls.c: Ditto.
11097         * cfg.c: Ditto.
11098         * cfganal.c: Ditto.
11099         * cfgbuild.c: Ditto.
11100         * cfgcleanup.c: Ditto.
11101         * cfgexpand.c: Ditto.
11102         * cfghooks.c: Ditto.
11103         * cfgloop.c: Ditto.
11104         * cfgloopanal.c: Ditto.
11105         * cfgloopmanip.c: Ditto.
11106         * cfgrtl.c: Ditto.
11107         * cgraphbuild.c: Ditto.
11108         * cgraphclones.c: Ditto.
11109         * cgraphunit.c: Ditto.
11110         * combine-stack-adj.c: Ditto.
11111         * combine.c: Ditto.
11112         * compare-elim.c: Ditto.
11113         * coverage.c: Ditto.
11114         * cprop.c: Ditto.
11115         * cse.c: Ditto.
11116         * cselib.c: Ditto.
11117         * data-streamer-in.c: Ditto.
11118         * data-streamer-out.c: Ditto.
11119         * data-streamer.c: Ditto.
11120         * dce.c: Ditto.
11121         * ddg.c: Ditto.
11122         * ddg.h: Ditto.
11123         * df-core.c: Ditto.
11124         * df-problems.c: Ditto.
11125         * df-scan.c: Ditto.
11126         * df.h: Ditto.
11127         * dojump.c: Ditto.
11128         * dominance.c: Ditto.
11129         * domwalk.c: Ditto.
11130         * dse.c: Ditto.
11131         * dwarf2cfi.c: Ditto.
11132         * emit-rtl.c: Ditto.
11133         * et-forest.c: Ditto.
11134         * except.c: Ditto.
11135         * expmed.c: Ditto.
11136         * expr.c: Ditto.
11137         * final.c: Ditto.
11138         * fold-const.c: Ditto.
11139         * function.c: Ditto.
11140         * fwprop.c: Ditto.
11141         * gcc-plugin.h: Ditto.
11142         * gcse.c: Ditto.
11143         * generic-match-head.c: Ditto.
11144         * ggc-page.c: Ditto.
11145         * gimple-builder.c: Ditto.
11146         * gimple-expr.c: Ditto.
11147         * gimple-fold.c: Ditto.
11148         * gimple-iterator.c: Ditto.
11149         * gimple-low.c: Ditto.
11150         * gimple-match-head.c: Ditto.
11151         * gimple-pretty-print.c: Ditto.
11152         * gimple-ssa-isolate-paths.c: Ditto.
11153         * gimple-ssa-strength-reduction.c: Ditto.
11154         * gimple-streamer-in.c: Ditto.
11155         * gimple-streamer-out.c: Ditto.
11156         * gimple-streamer.h: Ditto.
11157         * gimple-walk.c: Ditto.
11158         * gimple.c: Ditto.
11159         * gimplify-me.c: Ditto.
11160         * gimplify.c: Ditto.
11161         * graph.c: Ditto.
11162         * graphite-blocking.c: Ditto.
11163         * graphite-clast-to-gimple.c: Ditto.
11164         * graphite-dependences.c: Ditto.
11165         * graphite-interchange.c: Ditto.
11166         * graphite-isl-ast-to-gimple.c: Ditto.
11167         * graphite-optimize-isl.c: Ditto.
11168         * graphite-poly.c: Ditto.
11169         * graphite-scop-detection.c: Ditto.
11170         * graphite-sese-to-poly.c: Ditto.
11171         * graphite.c: Ditto.
11172         * haifa-sched.c: Ditto.
11173         * hw-doloop.c: Ditto.
11174         * ifcvt.c: Ditto.
11175         * init-regs.c: Ditto.
11176         * internal-fn.c: Ditto.
11177         * ipa-cp.c: Ditto.
11178         * ipa-devirt.c: Ditto.
11179         * ipa-icf-gimple.c: Ditto.
11180         * ipa-icf.c: Ditto.
11181         * ipa-inline-analysis.c: Ditto.
11182         * ipa-inline.c: Ditto.
11183         * ipa-polymorphic-call.c: Ditto.
11184         * ipa-profile.c: Ditto.
11185         * ipa-prop.c: Ditto.
11186         * ipa-pure-const.c: Ditto.
11187         * ipa-reference.c: Ditto.
11188         * ipa-split.c: Ditto.
11189         * ipa-utils.c: Ditto.
11190         * ipa.c: Ditto.
11191         * ira-build.c: Ditto.
11192         * ira-color.c: Ditto.
11193         * ira-conflicts.c: Ditto.
11194         * ira-costs.c: Ditto.
11195         * ira-emit.c: Ditto.
11196         * ira-lives.c: Ditto.
11197         * ira.c: Ditto.
11198         * jump.c: Ditto.
11199         * lcm.c: Ditto.
11200         * loop-doloop.c: Ditto.
11201         * loop-init.c: Ditto.
11202         * loop-invariant.c: Ditto.
11203         * loop-iv.c: Ditto.
11204         * loop-unroll.c: Ditto.
11205         * lower-subreg.c: Ditto.
11206         * lra-assigns.c: Ditto.
11207         * lra-coalesce.c: Ditto.
11208         * lra-constraints.c: Ditto.
11209         * lra-eliminations.c: Ditto.
11210         * lra-lives.c: Ditto.
11211         * lra-spills.c: Ditto.
11212         * lra.c: Ditto.
11213         * lto-cgraph.c: Ditto.
11214         * lto-compress.c: Ditto.
11215         * lto-opts.c: Ditto.
11216         * lto-section-in.c: Ditto.
11217         * lto-section-out.c: Ditto.
11218         * lto-streamer-in.c: Ditto.
11219         * lto-streamer-out.c: Ditto.
11220         * lto-streamer.c: Ditto.
11221         * mcf.c: Ditto.
11222         * mode-switching.c: Ditto.
11223         * modulo-sched.c: Ditto.
11224         * omp-low.c: Ditto.
11225         * optabs.c: Ditto.
11226         * opts-global.c: Ditto.
11227         * passes.c: Ditto.
11228         * postreload-gcse.c: Ditto.
11229         * postreload.c: Ditto.
11230         * predict.c: Ditto.
11231         * print-rtl.c: Ditto.
11232         * profile.c: Ditto.
11233         * recog.c: Ditto.
11234         * ree.c: Ditto.
11235         * reg-stack.c: Ditto.
11236         * regcprop.c: Ditto.
11237         * regcprop.h: Ditto.
11238         * reginfo.c: Ditto.
11239         * regrename.c: Ditto.
11240         * regstat.c: Ditto.
11241         * reload.c: Ditto.
11242         * reload1.c: Ditto.
11243         * reorg.c: Ditto.
11244         * resource.c: Ditto.
11245         * rtlanal.c: Ditto.
11246         * sched-deps.c: Ditto.
11247         * sched-ebb.c: Ditto.
11248         * sched-int.h: Ditto.
11249         * sched-rgn.c: Ditto.
11250         * sched-vis.c: Ditto.
11251         * sel-sched-dump.c: Ditto.
11252         * sel-sched-ir.c: Ditto.
11253         * sel-sched-ir.h: Ditto.
11254         * sel-sched.c: Ditto.
11255         * sese.c: Ditto.
11256         * shrink-wrap.c: Ditto.
11257         * stack-ptr-mod.c: Ditto.
11258         * stmt.c: Ditto.
11259         * store-motion.c: Ditto.
11260         * symtab.c: Ditto.
11261         * toplev.c: Ditto.
11262         * tracer.c: Ditto.
11263         * trans-mem.c: Ditto.
11264         * tree-affine.c: Ditto.
11265         * tree-call-cdce.c: Ditto.
11266         * tree-cfg.c: Ditto.
11267         * tree-cfgcleanup.c: Ditto.
11268         * tree-chrec.c: Ditto.
11269         * tree-complex.c: Ditto.
11270         * tree-data-ref.c: Ditto.
11271         * tree-dfa.c: Ditto.
11272         * tree-eh.c: Ditto.
11273         * tree-emutls.c: Ditto.
11274         * tree-if-conv.c: Ditto.
11275         * tree-inline.c: Ditto.
11276         * tree-into-ssa.c: Ditto.
11277         * tree-loop-distribution.c: Ditto.
11278         * tree-nested.c: Ditto.
11279         * tree-nrv.c: Ditto.
11280         * tree-object-size.c: Ditto.
11281         * tree-outof-ssa.c: Ditto.
11282         * tree-parloops.c: Ditto.
11283         * tree-phinodes.c: Ditto.
11284         * tree-predcom.c: Ditto.
11285         * tree-pretty-print.c: Ditto.
11286         * tree-profile.c: Ditto.
11287         * tree-scalar-evolution.c: Ditto.
11288         * tree-sra.c: Ditto.
11289         * tree-ssa-address.c: Ditto.
11290         * tree-ssa-alias.c: Ditto.
11291         * tree-ssa-ccp.c: Ditto.
11292         * tree-ssa-coalesce.c: Ditto.
11293         * tree-ssa-copy.c: Ditto.
11294         * tree-ssa-copyrename.c: Ditto.
11295         * tree-ssa-dce.c: Ditto.
11296         * tree-ssa-dom.c: Ditto.
11297         * tree-ssa-dse.c: Ditto.
11298         * tree-ssa-forwprop.c: Ditto.
11299         * tree-ssa-ifcombine.c: Ditto.
11300         * tree-ssa-live.c: Ditto.
11301         * tree-ssa-loop-ch.c: Ditto.
11302         * tree-ssa-loop-im.c: Ditto.
11303         * tree-ssa-loop-ivcanon.c: Ditto.
11304         * tree-ssa-loop-ivopts.c: Ditto.
11305         * tree-ssa-loop-manip.c: Ditto.
11306         * tree-ssa-loop-niter.c: Ditto.
11307         * tree-ssa-loop-prefetch.c: Ditto.
11308         * tree-ssa-loop-unswitch.c: Ditto.
11309         * tree-ssa-loop.c: Ditto.
11310         * tree-ssa-math-opts.c: Ditto.
11311         * tree-ssa-operands.c: Ditto.
11312         * tree-ssa-phiopt.c: Ditto.
11313         * tree-ssa-phiprop.c: Ditto.
11314         * tree-ssa-pre.c: Ditto.
11315         * tree-ssa-propagate.c: Ditto.
11316         * tree-ssa-reassoc.c: Ditto.
11317         * tree-ssa-sccvn.c: Ditto.
11318         * tree-ssa-sink.c: Ditto.
11319         * tree-ssa-strlen.c: Ditto.
11320         * tree-ssa-structalias.c: Ditto.
11321         * tree-ssa-tail-merge.c: Ditto.
11322         * tree-ssa-ter.c: Ditto.
11323         * tree-ssa-threadedge.c: Ditto.
11324         * tree-ssa-threadupdate.c: Ditto.
11325         * tree-ssa-uncprop.c: Ditto.
11326         * tree-ssa-uninit.c: Ditto.
11327         * tree-ssa.c: Ditto.
11328         * tree-ssanames.c: Ditto.
11329         * tree-stdarg.c: Ditto.
11330         * tree-streamer-in.c: Ditto.
11331         * tree-streamer-out.c: Ditto.
11332         * tree-streamer.c: Ditto.
11333         * tree-switch-conversion.c: Ditto.
11334         * tree-tailcall.c: Ditto.
11335         * tree-vect-data-refs.c: Ditto.
11336         * tree-vect-generic.c: Ditto.
11337         * tree-vect-loop-manip.c: Ditto.
11338         * tree-vect-loop.c: Ditto.
11339         * tree-vect-patterns.c: Ditto.
11340         * tree-vect-slp.c: Ditto.
11341         * tree-vect-stmts.c: Ditto.
11342         * tree-vectorizer.c: Ditto.
11343         * tree-vrp.c: Ditto.
11344         * tree.c: Ditto.
11345         * tsan.c: Ditto.
11346         * ubsan.c: Ditto.
11347         * valtrack.c: Ditto.
11348         * valtrack.h: Ditto.
11349         * value-prof.c: Ditto.
11350         * var-tracking.c: Ditto.
11351         * varasm.c: Ditto.
11352         * varpool.c: Ditto.
11353         * vtable-verify.c: Ditto.
11354         * web.c: Ditto.
11355         * config/aarch64/aarch64-builtins.c: Ditto.
11356         * config/aarch64/aarch64.c: Ditto.
11357         * config/alpha/alpha.c: Ditto.
11358         * config/arc/arc.c: Ditto.
11359         * config/arm/arm.c: Ditto.
11360         * config/avr/avr.c: Ditto.
11361         * config/bfin/bfin.c: Ditto.
11362         * config/c6x/c6x.c: Ditto.
11363         * config/cr16/cr16.c: Ditto.
11364         * config/cris/cris.c: Ditto.
11365         * config/darwin-c.c: Ditto.
11366         * config/darwin.c: Ditto.
11367         * config/epiphany/epiphany.c: Ditto.
11368         * config/epiphany/mode-switch-use.c: Ditto.
11369         * config/epiphany/resolve-sw-modes.c: Ditto.
11370         * config/fr30/fr30.c: Ditto.
11371         * config/frv/frv.c: Ditto.
11372         * config/h8300/h8300.c: Ditto.
11373         * config/i386/i386.c: Ditto.
11374         * config/i386/winnt.c: Ditto.
11375         * config/ia64/ia64.c: Ditto.
11376         * config/iq2000/iq2000.c: Ditto.
11377         * config/lm32/lm32.c: Ditto.
11378         * config/m32c/m32c.c: Ditto.
11379         * config/m32r/m32r.c: Ditto.
11380         * config/m68k/m68k.c: Ditto.
11381         * config/mcore/mcore.c: Ditto.
11382         * config/mep/mep.c: Ditto.
11383         * config/microblaze/microblaze.c: Ditto.
11384         * config/mips/mips.c: Ditto.
11385         * config/mmix/mmix.c: Ditto.
11386         * config/mn10300/mn10300.c: Ditto.
11387         * config/moxie/moxie.c: Ditto.
11388         * config/msp430/msp430.c: Ditto.
11389         * config/nds32/nds32-cost.c: Ditto.
11390         * config/nds32/nds32-fp-as-gp.c: Ditto.
11391         * config/nds32/nds32-intrinsic.c: Ditto.
11392         * config/nds32/nds32-isr.c: Ditto.
11393         * config/nds32/nds32-md-auxiliary.c: Ditto.
11394         * config/nds32/nds32-memory-manipulation.c: Ditto.
11395         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
11396         * config/nds32/nds32-predicates.c: Ditto.
11397         * config/nds32/nds32.c: Ditto.
11398         * config/nios2/nios2.c: Ditto.
11399         * config/pa/pa.c: Ditto.
11400         * config/pdp11/pdp11.c: Ditto.
11401         * config/rl78/rl78.c: Ditto.
11402         * config/rs6000/rs6000.c: Ditto.
11403         * config/rx/rx.c: Ditto.
11404         * config/s390/s390.c: Ditto.
11405         * config/sh/sh-mem.cc: Ditto.
11406         * config/sh/sh.c: Ditto.
11407         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
11408         * config/sh/sh_treg_combine.cc: Ditto.
11409         * config/sparc/sparc.c: Ditto.
11410         * config/spu/spu.c: Ditto.
11411         * config/stormy16/stormy16.c: Ditto.
11412         * config/tilegx/tilegx.c: Ditto.
11413         * config/tilepro/tilepro.c: Ditto.
11414         * config/v850/v850.c: Ditto.
11415         * config/vax/vax.c: Ditto.
11416         * config/xtensa/xtensa.c: Ditto.
11418 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
11420         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
11421         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
11422         Remove using preprocessor directives.
11424 2014-10-27  Richard Biener  <rguenther@suse.de>
11426         * match.pd (0 % X): Properly use the iterator iterating over
11427         all modulo operators.
11428         (X % 1): Likewise.
11430 2014-10-27  Richard Biener  <rguenther@suse.de>
11432         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
11433         (lattice): New global.
11434         (fwprop_ssa_val): New function.
11435         (fold_all_stmts): Likewise.
11436         (pass_forwprop::execute): Finally fold all stmts.
11438 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11440         PR c++/53061
11441         * doc/invoke.texi (fmessage-length): Update text to match reality.
11443 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11445         * config/microblaze/microblaze.c: Include rtl-iter.h.
11446         (microblaze_tls_referenced_p_1): Delete.
11447         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
11449 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11451         * config/mips/mips.c (mips_at_reg_p): Delete.
11452         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
11454 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11456         * config/mips/mips.c (mips_record_lo_sum): Replace with...
11457         (mips_record_lo_sums): ...this new function.
11458         (mips_reorg_process_insns): Update accordingly.
11460 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11462         * config/mips/mips.c (mips_sim_insn): Update comment.
11463         (mips_sim_wait_regs_2): Delete.
11464         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
11466 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11468         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
11469         and return a bool.  Iterate over all subrtxes here.
11470         (r10k_needs_protection_p): Update accordingly.
11472 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11474         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
11475         rather than an rtx pointer.  Change type of insn from "void *"
11476         to its real type.  Return bool rather than int.  Iterate over
11477         all subrtxes here.
11478         (r10k_needs_protection_p_store): Update accordingly.
11479         (r10k_needs_protection_p): Likewise.
11481 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11483         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
11484         (mips16_rewrite_pool_refs): Take the insn and constant pool as
11485         parameters.  Iterate over the instruction's pattern and return void.
11486         (mips16_lay_out_constants): Update accordingly.
11488 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11490         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
11491         (mips_refers_to_kernel_reg_p): ...this new function.
11492         (mips_expand_prologue): Update accordingly.
11494 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11496         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
11497         as a parameter instead of the containing MEM.  Iterate over all
11498         subrtxes.  Don't return a value.
11499         (mips_rewrite_small_data): Update call accordingly.
11501 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11503         * config/mips/mips.c: Include rtl-iter.h.
11504         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
11505         Take the context as a parameter instead of the containing MEM.
11506         Iterate over all subrtxes.
11507         (mips_small_data_pattern_p): Update call accordingly.
11509 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11511         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
11512         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
11514 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11516         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
11517         return a bool.  Replace "void *" with specific type.  Iterate
11518         over all subrtxes.
11519         (mep_store_data_bypass_1): Update calls accordingly.
11521 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11523         * config/mep/mep.c: Include rtl-iter.h.
11524         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
11525         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
11527 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11529         * config/xtensa/xtensa.c: Include rtl-iter.h.
11530         (xtensa_tls_referenced_p_1): Delete.
11531         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
11533 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11535         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
11536         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
11538 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11540         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
11541         rtx as argument and return the number of changes.
11542         * config/sh/sh.c: Include rtl-iter.h.
11543         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
11544         over all subrtxes.  Return the number of changes made.
11545         * config/sh/sh.md: Update caller accordingly.
11547 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11549         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
11550         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
11552 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
11554         * config/m68k/m68k.c: Include rtl-iter.h.
11555         (m68k_final_prescan_insn_1): Delete.
11556         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
11558 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
11560         PR tree-optimization/63641
11561         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
11562         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
11564 2014-10-25  Alan Modra  <amodra@gmail.com>
11566         PR rtl-optimization/63615
11567         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
11568         decomposing PLUS or MINUS if operands are not placed adjacent
11569         in the "ops" array.
11571 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
11573         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
11574         not allow e500 double in registers not satisyfing
11575         SPE_SIMD_REGNO_P.
11577 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
11579         * dwarf2out.c (declare_in_namespace): Only emit external
11580         declarations in the local scope once.
11582 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
11584         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
11586 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
11588         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
11589         update uses to use new macro arguments.
11590         (__LD3_LANE_FUNC): Likewise.
11591         (__LD4_LANE_FUNC): Likewise.
11593 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
11595         * config/aarch64/aarch64-builtins.c
11596         (aarch64_types_loadstruct_lane_qualifiers): Define.
11597         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
11598         ld4_lane): New builtins.
11599         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
11600         New pattern.
11601         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
11602         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
11603         (aarch64_ld2_lane<mode>): New expand.
11604         (aarch64_ld3_lane<mode>): Likewise.
11605         (aarch64_ld4_lane<mode>): Likewise.
11606         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
11607         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
11609 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
11611         * avr-protos.h (avr_out_sign_extend): New.
11612         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
11613         (avr_out_sign_extend): New function.
11614         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
11615         (extendhisi2, extendpsisi2): Use it.
11616         (adjust_len) [sext]: New.
11618 2014-10-24  Martin Liska  <mliska@suse.cz>
11620         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
11621         added.
11623 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11625         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
11626         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
11627         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
11628         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
11630 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11632         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
11633         do while (0).
11634         * config/aarch64/aarch64.c (is_mem_p): Delete.
11635         (is_memory_op): Rename to...
11636         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
11637         (dep_between_memop_and_curr): Assert that the input is a SET.
11638         (aarch64_madd_needs_nop): Add comment.  Do not call
11639         dep_between_memop_and_curr on NULL body.
11640         (aarch64_final_prescan_insn): Add comment.
11641         Include rtl-iter.h.
11643 2014-10-24  Richard Biener  <rguenther@suse.de>
11645         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
11646         to genmatch BUILD_LIBS instead.
11648 2014-10-24  Richard Biener  <rguenther@suse.de>
11650         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
11651         and build_call_expr_loc.
11652         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
11653         non_lvalue_loc to build it for GENERIC.
11654         (decision_tree::gen_generic): Add location argument to
11655         generic_simplify prototype.
11656         (capture_info): New class.
11657         (capture_info::capture_info): New constructor.
11658         (capture_info::walk_match): New method.
11659         (capture_info::walk_result): New method.
11660         (capture_info::walk_c_expr): New method.
11661         (dt_simplify::gen): Handle preserving side-effects for
11662         GENERIC code generation.
11663         (decision_tree::gen_generic): Do not reject operands
11664         with TREE_SIDE_EFFECTS.
11665         * generic-match.h: New file.
11666         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
11667         * match.pd: Add some constant folding patterns from fold-const.c.
11668         * fold-const.c: Include generic-match.h.
11669         (fold_unary_loc): Dispatch to generic_simplify.
11670         (fold_ternary_loc): Likewise.
11671         (fold_binary_loc): Likewise.  Remove patterns now implemented
11672         by generic_simplify.
11673         * gimple-fold.c (replace_stmt_with_simplification): New function.
11674         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
11675         (no_follow_ssa_edges): New function.
11676         (fold_stmt): New overload with valueization hook.  Use
11677         no_follow_ssa_edges for the overload without hook.
11678         (fold_stmt_inplace): Likewise.
11679         * gimple-fold.h (no_follow_ssa_edges): Declare.
11681 2014-10-24  Felix Yang  <felix.yang@huawei.com>
11682         Jiji Jiang  <jiangjiji@huawei.com>
11684         PR target/63173
11685         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
11686         (__LD3R_FUNC): Ditto.
11687         (__LD4R_FUNC): Ditto.
11688         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
11689          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
11690          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
11691          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
11692          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
11693          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
11694         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
11695          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
11696          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
11697          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
11698          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
11699          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
11700         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
11701          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
11702          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
11703          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
11704          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
11705          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
11706         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
11707         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
11708         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
11709         builtins.
11710         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
11711         (aarch64_simd_ld3r<mode>): Likewise.
11712         (aarch64_simd_ld4r<mode>): Likewise.
11713         (aarch64_ld2r<mode>): New expand.
11714         (aarch64_ld3r<mode>): Likewise.
11715         (aarch64_ld4r<mode>): Likewise.
11717 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11719         * rtlanal.c (get_base_term): Handle SCRATCH.
11721 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11723         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
11724         register pressure.
11726 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11728         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
11729         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
11730         (max_issue, choose_ready, sched_init): Update.
11732 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11734         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
11735         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
11736         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
11737         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
11738         (print_rank_for_schedule_stats): Print out elements of ready list that
11739         ended up on their respective places due to each of the sorting
11740         heuristics.
11741         (ready_sort): Update.
11742         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
11743         (schedule_block): Update.
11745 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11747         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
11748         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
11749         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
11750         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
11751         (model_start_schedule): Update.
11752         (sched_pressure_start_bb): New static function.  Calculate
11753         sched_class_regs_num.
11754         (schedule_block): Use it.
11755         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
11757 2014-10-24  Richard Biener  <rguenther@suse.de>
11759         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
11760         host library and make sure to pull in the required libintl
11761         and libiconv dependencies.
11763 2014-10-24  Richard Biener  <rguenther@suse.de>
11765         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
11767 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
11769         PR bootstrap/63632
11770         * collect2.c (main): Filter out -fno-lto.
11772 2014-10-24  Martin Liska  <mliska@suse.cz>
11774         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
11775         division by zero in dumps.
11776         (sem_item_optimizer::merge_classes): Ditto.
11778 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
11780         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
11782 2014-10-23  Ian Lance Taylor  <iant@google.com>
11784         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
11786 2014-10-23  Ian Lance Taylor  <iant@google.com>
11788         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
11790 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
11792         PR debug/63623
11793         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
11794         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
11795         instead of only handling autoinc in dest if it is a MEM.
11796         (vt_stack_adjustments): Fix up formatting.
11798 2014-10-23  DJ Delorie  <dj@redhat.com>
11800         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
11801         independend of -mlarge.
11802         * config/msp430/constraints.md (Ys): Update comment.
11804 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
11806         PR target/63534
11807         PR target/63618
11808         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
11809         while it is pseudo.
11810         * dse.c (deletable_insn_p): Likewise.
11812 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
11814         * config/avr/avr.c: Fix GNU coding rules and typos.
11815         * config/avr/avr.h: Dito.
11816         * config/avr/avr-c.c: Dito.
11817         * config/avr/avr.md: Dito.
11819 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11821         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
11822         New.
11823         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
11824         iterator.
11825         (define_expand "abs<mode>2"): Ditto.
11827 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11829         * tree-core.h (tree_var_decl): Extend `function_code' field
11830         by one bit, move `regdecl_flag' field to ...
11831         (tree_decl_with_vis): Here.
11832         * tree.h (DECL_STATIC_CHAIN): Update struct name.
11834 2014-10-23  Richard Biener  <rguenther@suse.de>
11836         * Makefile.in (BUILD_CPPLIB): Add.
11837         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
11838         Drop LIBIBERTY.
11840 2014-10-23  Richard Biener  <rguenther@suse.de>
11842         * fold-const.c (fold_binary_loc): Preserve side-effects of
11843         X - X when simplifying to 0.
11844         * stor-layout.c (finish_bitfield_representative): Strip
11845         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
11847 2014-10-22  Richard Biener  <rguenther@suse.de>
11848             Tobias Burnus <burnus@net-b.de>
11850         PR lto/63603
11851         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
11853 2014-10-22  Dehao Chen  <dehao@google.com>
11855         * auto-profile.c: Change order of header files.
11857 2014-10-22  Guozhi Wei  <carrot@google.com>
11859         PR tree-optimization/63530
11860         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
11861         pointer alignment according to DR_MISALIGNMENT.
11863 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
11865         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
11867 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
11869         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
11870         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
11871         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
11872         * dominance.h: New.  Add prototypes for dominance.c.
11873         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
11874         * cfghooks.h: (struct profile_record) Relocate here.
11875         Relocate 2 prototypes from basic-block.h.
11876         * basic-block.h: Move prototypes and struct to new header files.
11877         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
11878         * rtl.h: Move a few prototypes to new header files.
11879         * cfgcleanup.c (merge_memattrs): Make static.
11880         * genopinit.c (main): Add predict.h to list of includes.
11881         * predict.h: Update prototype list to match predict.c.
11882         * predict.c (maybe_hot_count_p): Export.
11883         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
11884         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
11885         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
11886         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
11887         * profile.h: Adjust prototypes.
11888         * ifcvt.h: New.  Relocate struct ce_if_block here.
11889         * ifcvt.c: Include ifcvt.h.
11890         * config/frv/frv.c: Include ifcvt.h.
11891         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
11893 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
11895         * lra.c (lra): Remove call to recog_init.
11896         * config/i386/i386.md (preferred_for_speed): New attribute
11897         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
11898         "enabled".  Remove check for sched1.
11900 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
11902         * recog.h (recog_data_d): Remove enabled_alternatives.
11903         * recog.c (extract_insn): Don't set it.
11904         * reload.c (find_reloads): Call get_enabled_alternatives.
11906 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
11908         * recog.h (constrain_operands): Add an alternative_mask parameter.
11909         (constrain_operands_cached): Likewise.
11910         (get_preferred_alternatives): Declare new form.
11911         * recog.c (get_preferred_alternatives): New bb-taking instance.
11912         (constrain_operands): Take the set of available alternatives as
11913         a parameter.
11914         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
11915         (extract_constrain_insn_cached): Update calls to constrain_operands.
11916         * caller-save.c (reg_save_code): Likewise.
11917         * ira.c (setup_prohibited_mode_move_regs): Likewise.
11918         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
11919         * ree.c (combine_reaching_defs): Likewise.
11920         * reload.c (can_reload_into): Likewise.
11921         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
11922         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
11923         (emit_insn_if_valid_for_reload): Likewise.
11924         * reorg.c (fill_slots_from_thread): Likewise.
11925         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
11926         * config/pa/pa.c (pa_can_combine_p): Likewise.
11927         * config/rl78/rl78.c (insn_ok_now): Likewise.
11928         * config/sh/sh.md (define_peephole2): Likewise.
11929         * final.c (final_scan_insn): Update call to constrain_operands_cached.
11931 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
11933         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
11934         attributes.
11935         * genattr.c (main): Handle "preferred_for_size" and
11936         "preferred_for_speed" in the same way as "enabled".
11937         * recog.h (bool_attr): New enum.
11938         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
11939         (get_preferred_alternatives, check_bool_attrs): Declare.
11940         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
11941         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
11942         New functions.
11943         (get_enabled_alternatives): Use get_bool_attr_mask.
11944         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
11945         instead of recog_data.enabled_alternatives.
11946         * ira.c (ira_setup_alts): Likewise.
11947         * postreload.c (reload_cse_simplify_operands): Likewise.
11948         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
11949         * ira-lives.c (preferred_alternatives): New variable.
11950         (process_bb_node_lives): Set it.
11951         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
11952         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
11953         of recog_data.enabled_alternatives.
11954         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
11955         to preferred_alternatives.
11956         * lra-constraints.c (process_alt_operands): Update accordingly.
11957         * lra.c (lra_set_insn_recog_data): Likewise.
11958         (lra_update_insn_recog_data): Assert check_bool_attrs.
11960 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
11962         * recog.h (extract_constrain_insn): Declare.
11963         * recog.c (extract_constrain_insn): New function.
11964         * lra.c (check_rtl): Use it.
11965         * postreload.c (reload_cse_simplify_operands): Likewise.
11966         * reg-stack.c (check_asm_stack_operands): Likewise.
11967         (subst_asm_stack_regs): Likewise.
11968         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
11969         * regrename.c (build_def_use): Likewise.
11970         * sel-sched.c (get_reg_class): Likewise.
11971         * config/arm/arm.c (note_invalid_constants): Likewise.
11972         * config/s390/predicates.md (execute_operation): Likewise.
11974 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
11975             Yury Gribov  <y.gribov@samsung.com>
11977         * common.opt (flag_sanitize_recover): New variable.
11978         (fsanitize-recover): Remove Var/Init, deprecate.
11979         (fsanitize-recover=): New option.
11980         * doc/invoke.texi (fsanitize-recover): Update docs.
11981         * opts.c (finish_options): Use opts->x_flag_sanitize
11982         instead of flag_sanitize.  Prohibit -fsanitize-recover
11983         for anything besides UBSan.  Formatting.
11984         (common_handle_option): Handle OPT_fsanitize_recover_
11985         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
11986         instead of flag_sanitize.
11987         * asan.c (pass_sanopt::execute): Fix up formatting.
11988         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
11989         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
11990         instrument_bool_enum_load, ubsan_instrument_float_cast,
11991         instrument_nonnull_arg, instrument_nonnull_return): Check
11992         bits in flag_sanitize_recover bitmask instead of
11993         flag_sanitize_recover as bool flag.
11995 2014-10-22  Jiong Wang <jiong.wang@arm.com>
11997         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
11999 2014-10-22  Renlin Li <renlin.li@arm.com>
12001         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
12002         __ARM_FEATURE_IDIV__.
12004 2014-10-22  Richard Biener  <rguenther@suse.de>
12006         * Makefile.in (s-match): Adjust dependencies to only catch
12007         match.pd.
12009 2014-10-22  Richard Biener  <rguenther@suse.de>
12010         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
12012         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
12013         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
12014         (gimple-match.c): Generate by triggering s-match.
12015         (generic-match.c): Likewise.
12016         (s-match): Rule to build gimple-match.c and generic-match.c
12017         by running the genmatch generator program.
12018         (build/hash-table.o): Dependencies to build hash-table.c for the host.
12019         (build/genmatch.o): Dependencies to build genmatch.
12020         (genprog): Add match.
12021         (build/genmatch): Likewise.
12022         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
12023         * generic-match-head.c: New file.
12024         * gimple-match-head.c: Likewise.
12025         * gimple-match.h: Likewise.
12026         * genmatch.c: Likewise.
12027         * match.pd: Likewise.
12028         * builtins.h (fold_builtin_n): Export.
12029         * builtins.c (fold_builtin_n): Likewise.
12030         * gimple-fold.h (gimple_build): Declare various overloads.
12031         (gimple_simplify): Likewise.
12032         (gimple_convert): Re-implement in terms of gimple_build.
12033         * gimple-fold.c (gimple_convert): Remove.
12034         (gimple_build): New functions.
12035         * doc/match-and-simplify.texi: New file.
12036         * doc/gccint.texi: Add menu item Match and Simplify and include
12037         match-and-simplify.texi.
12039 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
12041         PR target/63594
12042         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
12043         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
12044         even for just TARGET_AVX2, not only for
12045         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
12046         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
12047         otherwise build it using concatenation of 256-bit
12048         broadcast.
12049         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
12050         avx512 broadcast patterns.
12051         (vec_dup<mode>): Likewise.  For avx2 use
12052         v<sseintprefix>broadcast<bcstscalarsuff> instead of
12053         vbroadcast<ssescalarmodesuffix>.
12054         (AVX2_VEC_DUP_MODE): New mode iterator.
12055         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
12056         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
12058         PR target/63542
12059         * config/i386/i386.c (ix86_pic_register_p): Also return
12060         true if x is a hard register with ORIGINAL_REGNO equal to
12061         pic_offset_table_rtx pseudo REGNO.
12062         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
12063         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
12065 2014-10-22  Alan Modra  <amodra@gmail.com>
12067         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
12068         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
12069         (gcc_obstack_init): Use obstack_specify_allocation in place of
12070         _obstack_begin.
12071         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
12072         (regexp_representation): Likewise.
12073         * godump.c (go_output_type): Likewise.
12075 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
12077         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
12078         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
12079         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
12081 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
12083         * doc/invoke.texi (pedantic-errors): Explain better.
12085 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
12086             Vidya Praveen <vidya.praveen@atmel.com>
12087             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
12088             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
12089             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
12091         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
12092         __MEMX for avrtiny.
12093         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
12094         (avr_nonconst_pointer_addrspace): Likewise.
12095         * config/avr/avr.h (AVR_HAVE_LPM): Define.
12097         Added AVRTINY architecture to avr target.
12098         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
12099         (base_arch_s): member added for AVRTINY architecture.
12100         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
12101         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
12102         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
12103         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
12104         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
12105         in callee saved register list.
12106         (avr_option_override): CCP address updated for AVRTINY.
12107         (avr_init_expanders): tmp and zero rtx initialized as per arch.
12108         Reset avr_have_dimode if AVRTINY.
12109         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
12110         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
12111         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
12112         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
12113         (expand_epilogue): Likewise.
12114         (avr_print_operand): Print CCP address in case of AVRTINY also.
12115         <TBD>bad address
12116         (function_arg_regno_p): Check different register list for arguments
12117         if AVRTINY.
12118         (init_cumulative_args): Check for AVRTINY to update number of argument
12119         registers.
12120         (tiny_valid_direct_memory_access_range): New function. Return false if
12121         direct memory access range is not in accepted range for AVRTINY.
12122         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
12123         indirect load (with displacement) for AVRTINY.
12124         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
12125         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
12126         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
12127         indirect load (no displacement) for AVRTINY.
12128         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
12129         indirect load (with displacement) for AVRTINY.
12130         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
12131         indirect load for pre-decrement address.
12132         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
12133         functions. Update instruction length for AVRTINY.
12134         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
12135         SImode.
12136         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
12137         (out_movsi_r_mr): Likewise, for SImode.
12138         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
12139         indirect store (no displacement) for AVRTINY.
12140         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
12141         indirect store (with displacement) for AVRTINY.
12142         (out_movsi_mr_r): Emit out insn for IO address store. Update store
12143         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
12144         store functions.
12145         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
12146         indirect load (no displacement) for PSImode in AVRTINY.
12147         (avr_out_load_psi_reg_disp_tiny): New function to handle register
12148         indirect load (with displacement) for PSImode in AVRTINY.
12149         (avr_out_load_psi): Call PSImode register indirect load functions for
12150         AVRTINY. Update instruction length for AVRTINY.
12151         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
12152         indirect store (no displacement) for PSImode in AVRTINY.
12153         (avr_out_store_psi_reg_disp_tiny): New function to handle register
12154         indirect store (with displacement) for PSImode in AVRTINY.
12155         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
12156         register indirect store functions for AVRTINY.
12157         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
12158         register indirect store (with displacement) for AVRTINY.
12159         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
12160         register indirect store function for QImode in AVRTINY.
12161         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
12162         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
12163         indirect store (no displacement) for HImode in AVRTINY.
12164         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
12165         indirect store (with displacement) for HImode in AVRTINY.
12166         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
12167         indirect store for post-increment address in HImode.
12168         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
12169         register indirect store function for HImode in AVRTINY.
12170         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
12171         in case of AVRTINY.
12172         (order_regs_for_local_alloc): Updated register allocation order for
12173         AVRTINY.
12174         (avr_conditional_register_usage): New function. It is a target hook
12175         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
12176         used registers list and register allocation order for AVRTINY.
12177         (avr_return_in_memory): Update return value size for AVRTINY.
12178         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
12179         for AVRTINY arch and tiny program memory base address.
12180         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
12181         (avr_texinfo): Added description for AVRTINY arch.
12182         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
12183         STATIC_CHAIN_REGNUM for AVRTINY.
12184         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
12185         * config/avr/avr.md: Added constants for tmp/ zero registers in
12186         AVRTINY. Attributes for AVRTINY added.
12187         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
12188         memory access range.
12189         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
12190         in AVRTINY memory access range.
12191         (*mov<mode>): Likewise for HImode and SImode.
12192         (*movsf): Likewise for SFmode.
12193         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
12194         not have sbiw.
12195         * config/avr/avr-protos.h: Added function prototype for
12196         tiny_valid_direct_memory_access_range.
12197         * config/avr/avr-tables.opt: Regenerate.
12198         * gcc/config/avr/t-multilib: Regenerate.
12199         * doc/avr-mmcu.texi: Regenerate.
12201 2014-10-21  Andrew Pinski  <apinski@cavium.com>
12203         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
12204         available option also.
12205         * config/aarch64/aarch64-cost-tables.h: New file.
12206         * config/aarch64/aarch64-cores.def (thunderx): New core.
12207         * config/aarch64/aarch64-tune.md: Regenerate.
12208         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
12209         of config/arm/aarch-cost-tables.h.
12210         (thunderx_regmove_cost): New variable.
12211         (thunderx_tunings): New variable.
12213 2014-10-21  Dehao Chen  <dehao@google.com>
12215         * auto-profile.c: New file.
12216         * auto-profile.h: New file.
12217         * basic-block.h (maybe_hot_count_p): New export func.
12218         (add_working_set): New export func.
12219         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
12220         (GCOV_TAG_AFDO_FUNCTION): Likewise.
12221         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
12222         * opts.c (enable_fdo_optimizations): New func.
12223         (common_handle_option): Handle -fauto-profile flag.
12224         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
12225         (class pass_early_inline): Export early_inliner.
12226         (early_inliner): Likewise.
12227         (pass_early_inline::execute): Likewise.
12228         * ipa-inline.h (early_inliner): Likewise.
12229         * predict.c (maybe_hot_count_p): New export func.
12230         (counts_to_freqs): AutoFDO logic.
12231         (rebuild_frequencies): Likewise.
12232         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
12233         * profile.c (add_working_set): New func.
12234         * Makefile.in (auto-profile.o): New object file.
12235         * passes.def (pass_ipa_auto_profile): New pass.
12236         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
12237         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
12238         * toplev.c (compile_file): AutoFDO logic.
12239         * doc/invoke.texi (-fauto-profile): New doc.
12240         * coverage.c (coverage_init): AutoFDO logic.
12241         * common.opt (-fauto-profile): New flag.
12242         * timevar.def (TV_IPA_AUTOFDO): New tag.
12243         * value-prof.c (gimple_alloc_histogram_value): New export func.
12244         (check_ic_target): Likewise.
12245         * value-prof.h (gimple_alloc_histogram_value): Likewise.
12246         (check_ic_target): Likewise.
12248 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
12250         * cgraph.c (cgraph_c_finalize): New function.
12251         * cgraph.h (cgraph_c_finalize): New prototype.
12252         (cgraphunit_c_finalize): New prototype.
12253         * cgraphunit.c (first_analyzed): Move from analyze_functions
12254         to file-scope.
12255         (first_analyzed_var): Likewise.
12256         (analyze_functions): Move static variables into file-scope.
12257         (cgraphunit_c_finalize): New function.
12258         * diagnostic.c (diagnostic_finish): Free the memory for
12259         context->classify_diagnostic and context->printer, running the
12260         destructor for the latter.
12261         (bt_stop): Use toplev::main.
12262         * dwarf2out.c (dwarf2out_finalize): New function.
12263         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
12264         * gcse.c (gcse_c_finalize): New function.
12265         * gcse.h (gcse_c_finalize): New prototype.
12266         * ggc-page.c (init_ggc): Make idempotent.
12267         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
12268         * ipa-cp.c (ipa_cp_c_finalize): New function.
12269         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
12270         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
12271         a field of class pass_ipa_pure_const.
12272         (node_duplication_hook_holder): Likewise.
12273         (node_removal_hook_holder): Likewise.
12274         (register_hooks): Convert to method...
12275         (pass_ipa_pure_const::register_hooks): ...here, converting
12276         static variable init_p into...
12277         (pass_ipa_pure_const::init_p): ...new field.
12278         (pure_const_generate_summary): Update invocation of
12279         register_hooks to invoke as a method of current_pass.
12280         (pure_const_read_summary): Likewise.
12281         (propagate): Convert to...
12282         (pass_ipa_pure_const::execute): ...method.
12283         * ipa-reference.c (ipa_init): Move static bool init_p from here
12284         to...
12285         (ipa_init_p): New file-scope variable, so that it can be reset
12286         when repeatedly invoking the compiler within one process by...
12287         (ipa_reference_c_finalize): New function.
12288         * ipa-reference.h (ipa_reference_c_finalize): New.
12289         * main.c (main): Replace invocation of toplev_main with
12290         construction of a toplev instance, and call its "main" method.
12291         * params.c (global_init_params): Add an assert that
12292         params_finished is false.
12293         (params_c_finalize): New.
12294         * params.h (params_c_finalize): New.
12295         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
12296         invoking generate_summary, for the benefit of pass_ipa_pure_const.
12297         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
12298         before calling write_summary hook.
12299         (ipa_write_optimization_summaries_1): Likewise when calling
12300         write_optimization_summary hook.
12301         (ipa_read_summaries_1): Likewise for read_summary hook.
12302         (ipa_read_optimization_summaries_1): Likewise for
12303         read_optimization_summary hook.
12304         (execute_ipa_stmt_fixups): Likewise.
12305         * stringpool.c (init_stringpool): Clean up if we're called more
12306         than once.
12307         * timevar.c (timevar_init): Ignore repeated calls.
12308         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
12309         "ipa-prop.h".
12310         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
12311         (initialize_rtl): Move static local "initialized_once"
12312         into file scope, and rename to...
12313         (rtl_initialized): New variable.
12314         (do_compile): Move timevar initialization from here to
12315         toplev::start_timevars.
12316         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
12317         toplev::finalize): New functions.
12318         (toplev_main): Rename to...
12319         (toplev::main): ...this.
12320         * toplev.h (class toplev): New class.
12322 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
12324         * loop-doloop.c: Include loop-unroll.h.
12326 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
12328         * cfg.h: New.  Header file for cfg.c.
12329         * cfganal.h: New.  Header file for cfganal.c.
12330         * lcm.h: New.  Header file for lcm.c.
12331         * loop-unroll.h: New.  Header file for loop-unroll.h.
12332         * cfgloop.h: (unroll_loops): Remove prototype.
12333         * basic-block.h: Move prototypes and structs to new header files.
12334         Include cfg.h, cfganal.h, and lcm.h.
12335         * loop-init.c: Include loop-unroll.h.
12336         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
12337         * modulo-sched.c: Include loop-unroll.h.
12339 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12341         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
12342         MARKER_BYTE_UNKNOWN markers when handling casts.
12344 2014-10-21  Richard Biener  <rguenther@suse.de>
12346         * tree-ssa-phiopt.c (value_replacement): Properly verify we
12347         are the non-singleton PHI.
12349 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
12351         PR tree-optimization/63563
12352         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
12353         if either dra or drb stmts are not normal loads/stores.
12355 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
12357         * config/i386/i386.c (expand_vec_perm_1): Fix
12358         expand_vec_perm_palignr case.
12359         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
12360         VI1_AVX512.
12362 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12364         * cfgloopanal.c (seq_cost): Delete.
12365         * rtl.h (seq_cost): New prototype.
12366         * rtlanal.c (seq_cost): New function.
12367         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
12369 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
12371         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
12372         * basic-block.h: Remove prototypes for cfgrtl.c.
12373         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
12374         prototypes to cfgrtl.h.
12375         * profile.h (profile_info): Add extern export declaration.
12376         * rtl.h: Remove prototypes for cfgrtl.h.
12377         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
12378         * ipa-inline.c: Include profile.h.
12379         * loop-unroll.c: Ditto.
12380         * modulo-sched.c: Ditto.
12381         * postreload-gcse.c: Ditto.
12382         * predict.c: Ditto.
12383         * sched-ebb.c: Ditto.
12384         * sched-rgn.c: Ditto.
12385         * tracer.c: Ditto.
12386         * tree-ssa-loop-ivcanon.c: Ditto.
12388 2014-10-20  Richard Biener  <rguenther@suse.de>
12390         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
12391         operands to get a def operand kind match.  Signal mismatches
12392         to the parent so we can try swapping its operands.
12393         (vect_build_slp_tree): Try swapping operands if they have
12394         a mismatched operand kind.
12396 2014-10-20  Alan Modra  <amodra@gmail.com>
12398         PR debug/60655
12399         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
12400         Increase "ops" array size.  Correct array size tests.  Init
12401         n_constants in loop.  Break out of innermost loop when finding
12402         a trivial CONST expression.
12404 2014-10-20  Martin Liska  <mliska@suse.cz>
12406         PR ipa/63583
12407         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
12408         Gimple tempate string is compared.
12410 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
12412         * varasm.c (const_alias_set): Remove.
12413         (init_varasm_once): Remove initialization of const_alias_set.
12414         (build_constant_desc): Do not set alias set to const_alias_set.
12416 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
12418         * configure: Regenerate.
12419         * configure.ac: Move the test for section attribute specifier "e" in GAS
12420         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
12421         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
12422         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
12423         ifdef HAVE_GAS_SECTION_EXCLUDE.
12425 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
12427         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
12428         match_operand expression.
12430 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12431             David Edelsohn  <dje.gcc@gmail.com>
12433         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
12434         function.
12435         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12437 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12439         * doc/invoke.texi (Options to Request or Suppress Warnings):
12440         Explain options precedence.
12441         (Wtrampolines): Do not indent paragraph.
12443 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
12445         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
12446         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
12447         (pa_jump_in_call_delay): Likewise.
12448         * config/pa/pa.c (pa_option_override): Remove jump in call delay
12449         override.
12450         (pa_output_millicode_call): Remove support for jump in call delay.
12451         (pa_output_call): Likewise.
12452         (pa_jump_in_call_delay): Delete.
12453         (pa_following_call): Likewise.
12454         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
12455         (uncond_branch): Remove following call check from attribute length.
12457 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
12459         PR target/53513
12460         * config/sh/sh-modes.def (PSI): Remove.
12461         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
12462         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
12463         (sh_reorg): Remove commented out FPSCR code.
12464         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
12465         insn instead of move insn.
12466         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
12467         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
12468         handling.
12469         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
12470         (sh1_builtin_p): Uncomment.
12471         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
12472         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
12473         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
12474         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
12475         (general_movsrc_operand, general_movdst_operand): Disallow
12476         fpscr_operand.
12477         * config/sh/sh.md (FPSCR_FR): New constant.
12478         (push_fpscr): Emit sts_fpscr insn.
12479         (pop_fpscr): Emit lds_fpscr_insn.
12480         (movsi_ie): Disallow FPSCR operands.
12481         (fpu_switch, unnamed related split, extend_psi_si,
12482         truncate_si_psi): Remove insns.
12483         (lds_fpscr, sts_fpscr): New insns.
12484         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
12486 >>>>>>> .r217525
12487 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
12489         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
12490         (clone_inlined_nodes): Do not overwrite the clone if above predicate
12491         returns true.
12493 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
12495         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
12496         (expand_vec_perm_d): Ditto.
12497         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
12498         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
12499         V4DFmode.
12500         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
12501         (ix86_expand_sse_unpack): Handle V64QImode.
12502         (expand_vec_perm_blend): Update conditions for TARGET, handle
12503         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
12504         (expand_vec_perm_pshufb): Handle V64QImode.
12505         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
12506         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
12507         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
12508         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
12509         (ix86_expand_vecop_qihi): Handle V64QImode.
12510         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
12511         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
12512         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
12513         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
12514         (mul<mode>3): Use VI1_AVX512.
12515         (<sse2_avx2>_packsswb): Ditto.
12516         (<sse2_avx2>_packuswb): Ditto.
12517         (<ssse3_avx2>_pshufb<mode>3): Ditto.
12518         (<shift_insn><mode>3): Ditto.
12520 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
12522         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
12523         conditions to fix bootstrap.
12525 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
12527         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
12529 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12530             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12531             Anna Tikhonova  <anna.tikhonova@intel.com>
12532             Ilya Tocar  <ilya.tocar@intel.com>
12533             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12534             Ilya Verbin  <ilya.verbin@intel.com>
12535             Kirill Yukhin  <kirill.yukhin@intel.com>
12536             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12538         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
12539         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
12540         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
12541         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
12542         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
12543         (define_expand "vec_init<mode>"): Use VF48_I1248.
12545 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12546             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12547             Anna Tikhonova  <anna.tikhonova@intel.com>
12548             Ilya Tocar  <ilya.tocar@intel.com>
12549             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12550             Ilya Verbin  <ilya.verbin@intel.com>
12551             Kirill Yukhin  <kirill.yukhin@intel.com>
12552             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12554         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
12555         expand_sse2_mulvxdi3.
12557 2014-10-17  Richard Biener  <rguenther@suse.de>
12559         * fold-const.c (fold_comparison): Remove redundant constant
12560         folding and operand swapping.
12561         (fold_binary_loc): Do comparison operand swapping here.
12562         (fold_ternary_loc): Canonicalize operand order for
12563         commutative ternary operations.
12564         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
12565         and FMA_EXPR.
12567 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
12569         PR tree-optimization/63464
12570         * gimple.h (gimple_seq_discard): New prototype.
12571         * gimple.c: Include stringpool.h and tree-ssanames.h.
12572         (gimple_seq_discard): New function.
12573         * optabs.h (lshift_cheap_p): New prototype.
12574         * optabs.c (lshift_cheap_p): New function, moved from...
12575         * tree-switch-conversion.c (lshift_cheap_p): ... here.
12576         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
12577         (reassoc_branch_fixups): New variable.
12578         (update_range_test): Add otherrangep and seq arguments.
12579         Unshare exp.  If otherrange is NULL, use for other ranges
12580         array of pointers pointed by otherrangep instead.
12581         Emit seq before gimplified statements for tem.
12582         (optimize_range_tests_diff): Adjust update_range_test
12583         caller.
12584         (optimize_range_tests_xor): Likewise.  Fix up comment.
12585         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
12586         functions.
12587         (optimize_range_tests): Adjust update_range_test caller.
12588         Call optimize_range_tests_to_bit_test.
12589         (branch_fixup): New function.
12590         (execute_reassoc): Call branch_fixup.
12592         PR tree-optimization/63302
12593         * tree-ssa-reassoc.c (optimize_range_tests_xor,
12594         optimize_range_tests_diff): Use !integer_pow2p () instead of
12595         tree_log2 () < 0.
12597 2014-10-17  Martin Liska  <mliska@suse.cz>
12599         * ipa-icf.c (sem_function::merge): Local flags are set to false
12600         to enforce equal calling convention to be used.
12601         * opts.c (common_handle_option): Indentation fix.
12603 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
12605         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
12607 2014-10-17  Tom de Vries  <tom@codesourcery.com>
12609         PR rtl-optimization/61605
12610         * regcprop.c (copyprop_hardreg_forward_1): Use
12611         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
12613 2014-10-17  Tom de Vries  <tom@codesourcery.com>
12615         PR rtl-optimization/61605
12616         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
12617         notice stores for noops.  Don't regard noops as copies.
12619 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
12621         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
12622         register in a special way.
12623         (__cpuid_count): Ditto.
12624         * config/i386/driver-i386.h: Protect with
12625         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
12626         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
12627         is required to compile the function.
12629 2014-10-16  DJ Delorie  <dj@redhat.com>
12631         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
12632         integers.
12634         * config/rs6000/rs6000-c.c (rid_int128): New.
12635         (rs6000_macro_to_expand): Use instead of RID_INT128.
12637 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
12639         * function.h: Flatten file.  Remove includes, adjust prototypes to
12640         reflect only what is in function.h.
12641         (enum direction, struct args_size, struct locate_and_pad_arg_data,
12642         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
12643         from expr.h.
12644         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
12645         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
12646         prototypes to predict.h.
12647         (init_varasm_status): Move prototype to varasm.h.
12648         * expr.h: Adjust include files.
12649         (enum direction, struct args_size, struct locate_and_pad_arg_data,
12650         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
12651         to function.h.
12652         (locate_and_pad_parm): Move prototype to function.h.
12653         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
12654         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
12655         assign_temp, reposition_prologue_and_epilogue_notes,
12656         prologue_epilogue_contains, sibcall_epilogue_contains,
12657         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
12658         set_return_jump_label): Move prototypes to function.h.
12659         * predict.h (optimize_function_for_size_p,
12660         optimize_function_for_speed_p): Relocate prototypes from function.h.
12661         * shrink-wrap.h (emit_return_into_block, active_insn_between,
12662         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
12663         function.h.
12664         * varasm.h (init_varasm_status): Relocate prototype from function.h.
12665         * genattrtab.c (write_header): Add predict.h to include list.
12666         * genconditions.c (write_header): Add predict.h to include list.
12667         * genemit.c (main): Adjust header file includes.
12668         * gengtype.c (ifiles): Add flattened function.h header files.
12669         * genoutput.c (output_prologue): Add predict.h to include list.
12670         * genpreds.c (write_insn_preds_c): Adjust header file includes.
12671         * genrecog.c (write_header): Add flattened function.h header files.
12672         * alias.c: Adjust include files.
12673         * auto-inc-dec.c: Likewise.
12674         * basic-block.h: Likewise.
12675         * bb-reorder.c: Likewise.
12676         * bt-load.c: Likewise.
12677         * builtins.c: Likewise.
12678         * caller-save.c: Likewise.
12679         * calls.c: Likewise.
12680         * cfgbuild.c: Likewise.
12681         * cfgcleanup.c: Likewise.
12682         * cfgexpand.c: Likewise.
12683         * cfgloop.c: Likewise.
12684         * cfgloop.h: Likewise.
12685         * cfgrtl.c: Likewise.
12686         * cgraph.h: Likewise.
12687         * cgraphclones.c: Likewise.
12688         * cgraphunit.c: Likewise.
12689         * combine-stack-adj.c: Likewise.
12690         * combine.c: Likewise.
12691         * coverage.c: Likewise.
12692         * cprop.c: Likewise.
12693         * cse.c: Likewise.
12694         * cselib.c: Likewise.
12695         * dbxout.c: Likewise.
12696         * ddg.c: Likewise.
12697         * df-core.c: Likewise.
12698         * df-problems.c: Likewise.
12699         * df-scan.c: Likewise.
12700         * dojump.c: Likewise.
12701         * dwarf2cfi.c: Likewise.
12702         * dwarf2out.c: Likewise.
12703         * emit-rtl.c: Likewise.
12704         * except.c: Likewise.
12705         * explow.c: Likewise.
12706         * expr.c: Likewise.
12707         * final.c: Likewise.
12708         * function.c: Likewise.
12709         * gcse.c: Likewise.
12710         * gimple-fold.c: Likewise.
12711         * gimple-low.c: Likewise.
12712         * gimple-streamer.h: Likewise.
12713         * haifa-sched.c: Likewise.
12714         * ifcvt.c: Likewise.
12715         * ira.c: Likewise.
12716         * jump.c: Likewise.
12717         * lcm.c: Likewise.
12718         * loop-invariant.c: Likewise.
12719         * lra-assigns.c: Likewise.
12720         * lra-coalesce.c: Likewise.
12721         * lra-constraints.c: Likewise.
12722         * lra-eliminations.c: Likewise.
12723         * lra-lives.c: Likewise.
12724         * lra-spills.c: Likewise.
12725         * lra.c: Likewise.
12726         * lto-cgraph.c: Likewise.
12727         * lto-section-in.c: Likewise.
12728         * lto-section-out.c: Likewise.
12729         * lto-streamer-in.c: Likewise.
12730         * lto-streamer-out.c: Likewise.
12731         * mode-switching.c: Likewise.
12732         * modulo-sched.c: Likewise.
12733         * omp-low.c: Likewise.
12734         * optabs.c: Likewise.
12735         * passes.c: Likewise.
12736         * postreload-gcse.c: Likewise.
12737         * postreload.c: Likewise.
12738         * predict.c: Likewise.
12739         * profile.c: Likewise.
12740         * recog.c: Likewise.
12741         * ree.c: Likewise.
12742         * reg-stack.c: Likewise.
12743         * regcprop.c: Likewise.
12744         * reginfo.c: Likewise.
12745         * regrename.c: Likewise.
12746         * reload.c: Likewise.
12747         * reload1.c: Likewise.
12748         * reorg.c: Likewise.
12749         * resource.c: Likewise.
12750         * rtlanal.c: Likewise.
12751         * sched-deps.c: Likewise.
12752         * sched-ebb.c: Likewise.
12753         * sched-rgn.c: Likewise.
12754         * sel-sched-dump.c: Likewise.
12755         * sel-sched-ir.c: Likewise.
12756         * sel-sched.c: Likewise.
12757         * shrink-wrap.c: Likewise.
12758         * simplify-rtx.c: Likewise.
12759         * statistics.c: Likewise.
12760         * stmt.c: Likewise.
12761         * stor-layout.c: Likewise.
12762         * store-motion.c: Likewise.
12763         * symtab.c: Likewise.
12764         * targhooks.c: Likewise.
12765         * toplev.c: Likewise.
12766         * trans-mem.c: Likewise.
12767         * tree-cfg.c: Likewise.
12768         * tree-cfgcleanup.c: Likewise.
12769         * tree-dfa.c: Likewise.
12770         * tree-eh.c: Likewise.
12771         * tree-inline.c: Likewise.
12772         * tree-into-ssa.c: Likewise.
12773         * tree-nested.c: Likewise.
12774         * tree-nrv.c: Likewise.
12775         * tree-profile.c: Likewise.
12776         * tree-ssa-alias.c: Likewise.
12777         * tree-ssa-ccp.c: Likewise.
12778         * tree-ssa-copy.c: Likewise.
12779         * tree-ssa-copyrename.c: Likewise.
12780         * tree-ssa-dom.c: Likewise.
12781         * tree-ssa-operands.c: Likewise.
12782         * tree-ssa-propagate.c: Likewise.
12783         * tree-ssa-structalias.c: Likewise.
12784         * tree-ssa-tail-merge.c: Likewise.
12785         * tree-ssa-threadedge.c: Likewise.
12786         * tree-ssa-threadupdate.c: Likewise.
12787         * tree-ssa-uncprop.c: Likewise.
12788         * tree-ssa-uninit.c: Likewise.
12789         * tree-ssa.c: Likewise.
12790         * tree-stdarg.c: Likewise.
12791         * tree-tailcall.c: Likewise.
12792         * tree.c: Likewise.
12793         * tsan.c: Likewise.
12794         * valtrack.c: Likewise.
12795         * varasm.c: Likewise.
12796         * vmsdbgout.c: Likewise.
12797         * web.c: Likewise.
12798         * config/aarch64/aarch64.c: Add flattened includes from function.h.
12799         * config/alpha/alpha.c: Likewise.
12800         * config/arc/arc.c: Likewise.
12801         * config/arm/arm.c: Likewise.
12802         * config/avr/avr-log.c: Likewise.
12803         * config/avr/avr.c: Likewise.
12804         * config/bfin/bfin.c: Likewise.
12805         * config/c6x/c6x.c: Likewise.
12806         * config/cr16/cr16.c: Likewise.
12807         * config/cris/cris.c: Likewise.
12808         * config/darwin.c: Likewise.
12809         * config/epiphany/epiphany.c: Likewise.
12810         * config/epiphany/mode-switch-use.c: Likewise.
12811         * config/epiphany/resolve-sw-modes.c: Likewise.
12812         * config/fr30/fr30.c: Likewise.
12813         * config/frv/frv.c: Likewise.
12814         * config/h8300/h8300.c: Likewise.
12815         * config/i386/i386.c: Likewise.
12816         * config/ia64/ia64.c: Likewise.
12817         * config/iq2000/iq2000.c: Likewise.
12818         * config/lm32/lm32.c: Likewise.
12819         * config/m32c/m32c.c: Likewise.
12820         * config/m32r/m32r.c: Likewise.
12821         * config/m68k/m68k.c: Likewise.
12822         * config/mcore/mcore.c: Likewise.
12823         * config/mep/mep-pragma.c: Likewise.
12824         * config/mep/mep.c: Likewise.
12825         * config/microblaze/microblaze.c: Likewise.
12826         * config/mips/mips.c: Likewise.
12827         * config/mmix/mmix.c: Likewise.
12828         * config/mn10300/mn10300.c: Likewise.
12829         * config/moxie/moxie.c: Likewise.
12830         * config/msp430/msp430.c: Likewise.
12831         * config/nds32/nds32-cost.c: Likewise.
12832         * config/nds32/nds32-fp-as-gp.c: Likewise.
12833         * config/nds32/nds32-intrinsic.c: Likewise.
12834         * config/nds32/nds32-isr.c: Likewise.
12835         * config/nds32/nds32-md-auxiliary.c: Likewise.
12836         * config/nds32/nds32-memory-manipulation.c: Likewise.
12837         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12838         * config/nds32/nds32-predicates.c: Likewise.
12839         * config/nds32/nds32.c: Likewise.
12840         * config/nios2/nios2.c: Likewise.
12841         * config/pa/pa.c: Likewise.
12842         * config/pdp11/pdp11.c: Likewise.
12843         * config/rl78/rl78.c: Likewise.
12844         * config/rs6000/rs6000.c: Likewise.
12845         * config/rx/rx.c: Likewise.
12846         * config/s390/s390.c: Likewise.
12847         * config/score/score.c: Likewise.
12848         * config/sh/sh.c: Likewise.
12849         * config/sparc/sparc.c: Likewise.
12850         * config/spu/spu.c: Likewise.
12851         * config/stormy16/stormy16.c: Likewise.
12852         * config/tilegx/tilegx.c: Likewise.
12853         * config/tilepro/tilepro.c: Likewise.
12854         * config/v850/v850.c: Likewise.
12855         * config/vax/vax.c: Likewise.
12856         * config/xtensa/xtensa.c: Likewise.
12858 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
12860         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
12861         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
12863 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
12865         * config/sh/sh-protos.h (fldi_ok): Remove.
12866         * config/sh/sh.c (fldi_ok): Likewise.
12867         (sh_secondary_reload): Don't use fldi_ok.
12868         * config/sh/constraints.md (G constraint, H constraint): Don't use
12869         fldi_ok.
12871 2014-10-16  Martin Liska  <mliska@suse.cz>
12873         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
12874         Cast to unsigned long.
12875         (sem_item_optimizer::dump_cong_classes): Likewise.
12877 2014-10-16  Tom de Vries  <tom@codesourcery.com>
12879         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
12880         with SSA_NAME_IN_FREELIST.
12882 2014-10-16  Richard Biener  <rguenther@suse.de>
12884         PR middle-end/63554
12885         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
12886         (fold_builtin_strncat_chk): Move ...
12887         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
12888         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
12890 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
12892         PR target/59401
12893         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
12894         GBR to 0.
12896 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12897             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12898             Anna Tikhonova  <anna.tikhonova@intel.com>
12899             Ilya Tocar  <ilya.tocar@intel.com>
12900             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12901             Ilya Verbin  <ilya.verbin@intel.com>
12902             Kirill Yukhin  <kirill.yukhin@intel.com>
12903             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12905         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
12906         V64QI modes.
12908 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12909             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12910             Anna Tikhonova  <anna.tikhonova@intel.com>
12911             Ilya Tocar  <ilya.tocar@intel.com>
12912             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12913             Ilya Verbin  <ilya.verbin@intel.com>
12914             Kirill Yukhin  <kirill.yukhin@intel.com>
12915             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12917         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
12918         V16SI, V32HI, V64QI modes.
12920 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
12922         PR target/53513
12923         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
12924         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
12926         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
12927         to match fp insn patterns.
12928         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
12929         list.
12930         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
12931         expand_df_unop, expand_df_binop): Remove.
12932         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
12933         FPSCR_STAT_REG as not call clobbered.
12934         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
12935         invoking fpscr_set_from_mem.
12937         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
12938         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
12939         FPSCR_STAT_REG.
12940         (REGISTER_NAMES): Adjust.
12941         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
12942         (FIRST_PSEUDO_REGISTER): Increase to 156.
12943         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
12944         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
12945         FPSCR_STAT_REG.
12946         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
12947         FPSCR_MODES_REG and FPSCR_STAT_REG.
12948         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
12950         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
12951         FPSCR_SZ): Add new constants.
12952         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
12954         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
12955         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
12956         Use TARGET_FPU_ANY condition.
12957         (fpu_switch peephole2): Remove.
12958         (fpu_switch split): Use simple_mem_operand to capture the mem and
12959         adjust split implementation.
12960         (extend_psi_si, truncate_si_psi): New insns.
12961         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
12962         set of FPSCR_MODES_REG.
12964         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
12965         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
12966         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
12967         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
12968         call_value_compact, call_value_compact_rettramp, call,
12969         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
12970         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
12971         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
12972         sibcall_value_compact, sibcall_value, call_value_pop_compact,
12973         call_value_pop_compact_rettramp, various unnamed splits):
12974         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
12975         function uses.
12977         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
12978         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
12979         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
12980         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
12981         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
12983         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
12984         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
12985         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
12986         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
12987         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
12988         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
12989         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
12991 2014-10-16  Martin Liska  <mliska@suse.cz>
12992             Jan Hubicka  <hubicka@ucw.cz>
12994         * Makefile.in: New object files included.
12995         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
12996         is printed.
12997         (verify_edge_corresponds_to_fndecl): More sensitive verification
12998         of nodes that are merged by IPA ICF.
12999         * cgraph.h (cgraph_node::num_references): New function.
13000         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
13001         * common.opt: New options ipa-icf, ipa-icf-functions and
13002         ipa-icf-variables introduced.
13003         * doc/invoke.texi: Documentation of new options introduced.
13004         * ipa-icf-gimple.c: New file.
13005         * ipa-icf-gimple.h: New file.
13006         * ipa-icf.c: New file.
13007         * ipa-icf.h: New file.
13008         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
13009         (input_overwrite_node): Likewise.
13010         * lto-section-in.c: New icf section added.
13011         * lto-streamer.h (enum lto_section_type): Likewise.
13012         * opts.c (common_handle_option): New option added.
13013         * passes.def: New pass included.
13014         * timevar.def: Time variable for IPA ICF added.
13015         * tree-pass.h: New IPA ICF pass entry point added.
13017 2014-10-16  Richard Biener  <rguenther@suse.de>
13019         PR tree-optimization/63168
13020         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
13021         latches if after merging they are no longer simple.
13022         * cfghooks.c (merge_blocks): Handle merging a latch block
13023         into another block.
13025 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13026             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13027             Anna Tikhonova  <anna.tikhonova@intel.com>
13028             Ilya Tocar  <ilya.tocar@intel.com>
13029             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13030             Ilya Verbin  <ilya.verbin@intel.com>
13031             Kirill Yukhin  <kirill.yukhin@intel.com>
13032             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13034         * config/i386/sse.md
13035         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
13036         support AVX-512VL instructions.
13038 2014-10-16  DJ Delorie  <dj@redhat.com>
13040         * tree-core.h: Fix comment to not assume pointers are multiples of
13041         bytes.
13043 2014-10-15  Tom Tromey  <tromey@redhat.com>
13045         * timevar.h (class auto_timevar): New class.
13047 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
13049         PR go/59432
13050         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
13051         Remove the second alternative.
13052         (regprefix): Remove mode attribute.
13053         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
13054         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
13056         Revert:
13057         2013-11-05  Ian Lance Taylor  <iant@google.com>
13059         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
13060         If possible, add .cfi directives to record change to bx.
13061         * config/i386/i386.c (ix86_emit_cfi): New function.
13062         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
13064 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
13066         PR lto/62026
13067         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
13068         to duplicate.
13069         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
13070         at WPA time.
13072 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
13074         PR rtl-optimization/63448
13075         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
13076         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
13077         (LRA_MAX_INHERITANCE_PASSES): Use it.
13078         (lra_constraint_iter_after_spill): Remove.
13079         (lra_assignment_iter): New.
13080         (lra_assignment_iter_after_spill): New.
13081         * lra-assigns.c (lra_assignment_iter): New.
13082         (lra_assignment_iter_after_spill): New.
13083         (former_reload_pseudo_spill_p): New.
13084         (spill_for): Set up former_reload_pseudo_spill_p.
13085         (setup_live_pseudos_and_spill_after_risky): Ditto.
13086         (assign_by_spills): Ditto.
13087         (lra_assign): Increment lra_assignment_iter.  Print the iteration
13088         number.  Reset former_reload_pseudo_spill_p.  Check
13089         lra_assignment_iter_after_spill.
13090         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
13091         lra_assignment_iter and lra_assignment_iter_after_spill.
13092         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
13093         (lra_constraints): Remove code with
13094         lra_assignment_iter_after_spill.
13096 2014-10-15  Teresa Johnson  <tejohnson@google.com>
13098         PR bootstrap/63432
13099         * tree-ssa-threadupdate.c (recompute_probabilities): Better
13100         overflow checking.
13102 2014-10-15  Renlin Li <renlin.li@arm.com>
13104         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13105         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
13106         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
13107         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
13109 2014-10-15  Richard Biener  <rguenther@suse.de>
13111         * gimple-fold.c (gimple_fold_call): Properly keep virtual
13112         SSA form up-to-date when devirtualizing a call to
13113         __builtin_unreachable and avoid fixing up EH info here.
13115 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13116             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13117             Anna Tikhonova  <anna.tikhonova@intel.com>
13118             Ilya Tocar  <ilya.tocar@intel.com>
13119             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13120             Ilya Verbin  <ilya.verbin@intel.com>
13121             Kirill Yukhin  <kirill.yukhin@intel.com>
13122             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13124         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
13125         to support AVX-512BW.
13126         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
13127         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
13128         (define_insn "*<plusminus_insn><mode>3"): Ditto.
13129         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
13130         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
13131         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
13132         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
13133         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
13134         (define_insn "*andnot<mode>3"): Ditto.
13135         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
13136         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
13137         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
13138         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
13139         (define_insn "*abs<mode>2"): Remove masking support.
13140         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
13141         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
13142         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
13144 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13145             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13146             Anna Tikhonova  <anna.tikhonova@intel.com>
13147             Ilya Tocar  <ilya.tocar@intel.com>
13148             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13149             Ilya Verbin  <ilya.verbin@intel.com>
13150             Kirill Yukhin  <kirill.yukhin@intel.com>
13151             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13153         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
13154         * config/i386/sse.md
13155         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
13156         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
13157         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
13158         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
13159         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
13160         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
13161         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
13163 2014-10-15  Renlin Li <renlin.li@arm.com>
13165         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
13167 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
13169         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
13170         MINUS_EXPR in unsigned type to avoid undefined behavior.
13172 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
13174         * stor-layout.c (self_referential_size): Do not promote arguments.
13176 2014-10-15  Marek Polacek  <polacek@redhat.com>
13178         * doc/invoke.texi: Update to reflect that GNU11 is the default
13179         mode for C.
13180         * c-common.h (c_language_kind): Update comment.
13182 2014-10-15  Richard Biener  <rguenther@suse.de>
13184         * hash-table.c: Include bconfig.h if building for the host.
13185         * hash-table.h: Do not include ggc.h on the host but just declare
13186         a few ggc allocation templates.
13188 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
13189             Jeff Law  <law@redhat.com>
13191         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
13192         multiple hard registers, use smaller mode derived from MODE.
13194 2014-10-15  Andreas Schwab  <schwab@suse.de>
13196         * explow.c (convert_memory_address_addr_space_1): Mark in_const
13197         as ATTRIBUTE_UNUSED.
13199 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
13201         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
13202         (decide_unrolling): ... this one.
13203         (peel_loops_completely): Remove.
13204         (decide_peel_simple): Remove.
13205         (decide_peel_once_rolling): Remove.
13206         (decide_peel_completely): Remove.
13207         (peel_loop_simple): Remove.
13208         (peel_loop_completely): Remove.
13209         (unroll_and_peel_loops): Rename to ...
13210         (unroll_loops): ... this one; handle only unrolling.
13211         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
13212         LPT_PEEL_SIMPLE.
13213         (UAP_PEEL): Remove.
13214         (unroll_and_peel_loops): Remove.
13215         (unroll_loops): New.
13216         * passes.def: Replace
13217         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
13218         * loop-init.c (gate_rtl_unroll_and_peel_loops,
13219         rtl_unroll_and_peel_loops): Rename to ...
13220         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
13221         (pass_rtl_unroll_and_peel_loops): Rename to ...
13222         (pass_rtl_unroll_loops): ... this one.
13223         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
13224         (make_pass_rtl_unroll_loops): New.
13225         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
13226         (canonicalize_loop_induction_variables): Update.
13228 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
13230         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
13231         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
13232         !TARGET_HARD_FLOAT_POSTINC.
13233         (*lsip, *ssip): new instructions.
13235 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
13237         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
13238         remove.
13240 2014-10-14  Andrew Pinski  <apinski@cavium.com>
13242         * explow.c (convert_memory_address_addr_space): Rename to ...
13243         (convert_memory_address_addr_space_1): This.  Add in_const argument.
13244         Inside a CONST RTL, permute the conversion and addition of constant
13245         for zero and sign extended pointers.
13246         (convert_memory_address_addr_space): New function.
13248 2014-10-14  Andrew Pinski  <apinski@cavium.com>
13250         Revert:
13251         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13253         PR middle-end/49721
13254         * explow.c (convert_memory_address_addr_space): Also permute the
13255         conversion and addition of constant for zero-extend.
13257 2014-10-14  DJ Delorie  <dj@redhat.com>
13259         * config/msp430/msp430-modes.def (PSI): Add.
13261         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
13262         (msp430_hard_regno_nregs_with_padding): New.
13263         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
13264         (msp430_hard_regno_nregs_has_padding): New.
13265         (msp430_hard_regno_nregs_with_padding): New.
13266         (msp430_unwind_word_mode): Use PSImode instead of SImode.
13267         (msp430_addr_space_legitimate_address_p): New.
13268         (msp430_asm_integer): New.
13269         (msp430_init_dwarf_reg_sizes_extra): New.
13270         (msp430_print_operand): Use X suffix for PSImode even in small model.
13271         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
13272         (PTR_SIZE): ...but 4 bytes for EH.
13273         (SIZE_TYPE): Use __int20.
13274         (PTRDIFF_TYPE): Likewise.
13275         (INCOMING_FRAME_SP_OFFSET): Adjust.
13276         * config/msp430/msp430.md (movqi_topbyte): New.
13277         (movpsi): Use fixed suffixes.
13278         (movsipsi2): Enable for 430X, not large model.
13279         (extendhipsi2): Likewise.
13280         (zero_extendhisi2): Likewise.
13281         (zero_extendhisipsi2): Likewise.
13282         (extend_and_shift1_hipsi2): Likewise.
13283         (extendpsisi2): Likewise.
13284         (*bitbranch<mode>4_z): Fix suffix logic.
13286 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
13288         PR ada/62019
13289         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
13290         do not choke on null node.
13291         <VAR_DECL>: Likewise.
13293 2014-10-14  DJ Delorie  <dj@redhat.com>
13295         * machmode.h (int_n_data_t): New.
13296         (int_n_enabled_p): New.
13297         (int_n_data): New.
13298         * tree.c (int_n_enabled_p): New.
13299         (int_n_trees): New.
13300         (make_or_reuse_type): Check for all __intN types, not just
13301         __int128.
13302         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
13303         entries.
13304         * tree.h (int128_integer_type_node): Remove.
13305         (int128_unsigned_type_node): Remove.
13306         (int_n_trees_t): New.
13307         (int_n_enabled_p): New.
13308         (int_n_trees): New.
13309         * toplev.c (standard_type_bitsize): New.
13310         (do_compile): Check which __intN types are enabled for the current
13311         run.
13312         * builtin-types.def (BT_INT128): Remove.
13313         (BT_UINT128): Remove.
13314         * machmode.def: Add macro to create __int128 for all targets.
13315         * stor-layout.c (mode_for_size): Support __intN types.
13316         (smallest_mode_for_size): Likewise.
13317         (initialize_sizetypes): Support __intN types.
13318         * genmodes.c (struct mode_data): Add int_n field.
13319         (blank_mode): Likewise.
13320         (INT_N): New.
13321         (make_int_n): New.
13322         (emit_insn_modes_h): Count __intN entries and define
13323         NUM_INT_N_ENTS.
13324         (emit_mode_int_n): New.
13325         (emit_insn_modes_c): Call it.
13326         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
13327         types, not just __int128.
13328         * tree-core.h (integer_type_kind): Remove __int128-specific
13329         entries, reserve spots for __intN entries.
13331         * config/msp430/msp430-modes.def (PSI): Add.
13333 2014-10-14  Kito Cheng  <kito@0xlab.org>
13335         * ira.c: Fix typo in comment.
13336         * ira.h: Ditto.
13337         * ira-build.c: Ditto.
13338         * ira-color.c: Ditto.
13339         * ira-emit.c: Ditto.
13340         * ira-int.h: Ditto.
13341         * ira-lives.c: Ditto.
13343 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
13345         PR rtl-optimization/63475
13346         * alias.c (true_dependence_1): Always use get_addr to extract
13347         true address operands from x_addr and mem_addr.  Use extracted
13348         address operands to check for references with alignment ANDs.
13349         Use extracted address operands with find_base_term and
13350         base_alias_check. For noncanonicalized operands call canon_rtx with
13351         extracted address operand.
13352         (write_dependence_1): Ditto.
13353         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
13355 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
13357         PR target/63534
13358         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
13359         __morestack local.
13361 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13362             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13363             Anna Tikhonova  <anna.tikhonova@intel.com>
13364             Ilya Tocar  <ilya.tocar@intel.com>
13365             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13366             Ilya Verbin  <ilya.verbin@intel.com>
13367             Kirill Yukhin  <kirill.yukhin@intel.com>
13368             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13370         * config/i386/i386.c
13371         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
13372         (ix86_expand_int_vcond): Ditto.
13374 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13375             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13376             Anna Tikhonova  <anna.tikhonova@intel.com>
13377             Ilya Tocar  <ilya.tocar@intel.com>
13378             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13379             Ilya Verbin  <ilya.verbin@intel.com>
13380             Kirill Yukhin  <kirill.yukhin@intel.com>
13381             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13383         * config/i386/i386.c
13384         (emit_reduc_half): Handle V64QI and V32HI mode.
13385         * config/i386/sse.md
13386         (define_mode_iterator VI_AVX512BW): New.
13387         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
13389 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13390             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13391             Anna Tikhonova  <anna.tikhonova@intel.com>
13392             Ilya Tocar  <ilya.tocar@intel.com>
13393             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13394             Ilya Verbin  <ilya.verbin@intel.com>
13395             Kirill Yukhin  <kirill.yukhin@intel.com>
13396             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13398         * config/i386/sse.md
13399         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
13401 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13402             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13403             Anna Tikhonova  <anna.tikhonova@intel.com>
13404             Ilya Tocar  <ilya.tocar@intel.com>
13405             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13406             Ilya Verbin  <ilya.verbin@intel.com>
13407             Kirill Yukhin  <kirill.yukhin@intel.com>
13408             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13410         * config/i386/i386.c
13411         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
13412         * config/i386/sse.md
13413         (define_mode_iterator VI): Add V64QI and V32HI modes.
13415 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13416             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13417             Anna Tikhonova  <anna.tikhonova@intel.com>
13418             Ilya Tocar  <ilya.tocar@intel.com>
13419             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13420             Ilya Verbin  <ilya.verbin@intel.com>
13421             Kirill Yukhin  <kirill.yukhin@intel.com>
13422             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13424         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
13426 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13427             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13428             Anna Tikhonova  <anna.tikhonova@intel.com>
13429             Ilya Tocar  <ilya.tocar@intel.com>
13430             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13431             Ilya Verbin  <ilya.verbin@intel.com>
13432             Kirill Yukhin  <kirill.yukhin@intel.com>
13433             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13435         * config/i386/sse.md
13436         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
13437         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
13439 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13440             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13441             Anna Tikhonova  <anna.tikhonova@intel.com>
13442             Ilya Tocar  <ilya.tocar@intel.com>
13443             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13444             Ilya Verbin  <ilya.verbin@intel.com>
13445             Kirill Yukhin  <kirill.yukhin@intel.com>
13446             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13448         * config/i386/sse.md
13449         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
13450         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
13452 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13453             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13454             Anna Tikhonova  <anna.tikhonova@intel.com>
13455             Ilya Tocar  <ilya.tocar@intel.com>
13456             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13457             Ilya Verbin  <ilya.verbin@intel.com>
13458             Kirill Yukhin  <kirill.yukhin@intel.com>
13459             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13461         * config/i386/sse.md
13462         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
13463         (define_mode_iterator VI2_AVX2): Add V32HI mode.
13464         (define_expand "mul<mode>3<mask_name>"): Add masking.
13465         (define_insn "*mul<mode>3<mask_name>"): Ditto.
13466         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
13467         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
13468         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
13469         (define_mode_attr SDOT_PMADD_SUF): Ditto.
13470         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
13471         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
13472         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
13473         (define_insn "avx2_packusdw"): Delete.
13474         (define_insn "sse4_1_packusdw"): Ditto.
13475         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
13477 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13478             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13479             Anna Tikhonova  <anna.tikhonova@intel.com>
13480             Ilya Tocar  <ilya.tocar@intel.com>
13481             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13482             Ilya Verbin  <ilya.verbin@intel.com>
13483             Kirill Yukhin  <kirill.yukhin@intel.com>
13484             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13486         * config/i386/sse.md
13487         (define_insn "vec_dup<mode>"): Update constraints.
13489 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13490             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13491             Anna Tikhonova  <anna.tikhonova@intel.com>
13492             Ilya Tocar  <ilya.tocar@intel.com>
13493             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13494             Ilya Verbin  <ilya.verbin@intel.com>
13495             Kirill Yukhin  <kirill.yukhin@intel.com>
13496             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13498         * config/i386/sse.md
13499         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
13500         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
13501         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
13503 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13504             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13505             Anna Tikhonova  <anna.tikhonova@intel.com>
13506             Ilya Tocar  <ilya.tocar@intel.com>
13507             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13508             Ilya Verbin  <ilya.verbin@intel.com>
13509             Kirill Yukhin  <kirill.yukhin@intel.com>
13510             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13512         * config/i386/sse.md
13513         (define_expand "mul<mode>3<mask_name>"): Add masking.
13515 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13516             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13517             Anna Tikhonova  <anna.tikhonova@intel.com>
13518             Ilya Tocar  <ilya.tocar@intel.com>
13519             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13520             Ilya Verbin  <ilya.verbin@intel.com>
13521             Kirill Yukhin  <kirill.yukhin@intel.com>
13522             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13524         * config/i386/sse.md
13525         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
13526         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
13528 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13529             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13530             Anna Tikhonova  <anna.tikhonova@intel.com>
13531             Ilya Tocar  <ilya.tocar@intel.com>
13532             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13533             Ilya Verbin  <ilya.verbin@intel.com>
13534             Kirill Yukhin  <kirill.yukhin@intel.com>
13535             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13537         * config/i386/sse.md
13538         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
13539         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
13540         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
13541         Ditto.
13543 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13544             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13545             Anna Tikhonova  <anna.tikhonova@intel.com>
13546             Ilya Tocar  <ilya.tocar@intel.com>
13547             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13548             Ilya Verbin  <ilya.verbin@intel.com>
13549             Kirill Yukhin  <kirill.yukhin@intel.com>
13550             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13552         * config/i386/sse.md
13553         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
13554         use VF_128_256 mode iterator and update assembler emit code.
13555         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
13556         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
13557         Add masking, use VF_128_256 mode iterator.
13558         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
13559         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
13560         Add masking, use VF_128_256 mode iterator and update assembler emit
13561         code.
13562         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
13563         (define_mode_attr avx512flogicsuff): Delete.
13564         (define_insn "avx512f_<logic><mode>"): Ditto.
13565         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
13566         MODE_TI.
13567         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
13569 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13570             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13571             Anna Tikhonova  <anna.tikhonova@intel.com>
13572             Ilya Tocar  <ilya.tocar@intel.com>
13573             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13574             Ilya Verbin  <ilya.verbin@intel.com>
13575             Kirill Yukhin  <kirill.yukhin@intel.com>
13576             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13578         * config/i386/sse.md
13579         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
13580         (define_expand "vashr<mode>3<mask_name>"): Add masking,
13581         use VI12_128 mode iterator.
13582         (define_expand "ashrv2di3<mask_name>"): New.
13584 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13585             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13586             Anna Tikhonova  <anna.tikhonova@intel.com>
13587             Ilya Tocar  <ilya.tocar@intel.com>
13588             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13589             Ilya Verbin  <ilya.verbin@intel.com>
13590             Kirill Yukhin  <kirill.yukhin@intel.com>
13591             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13593         * config/i386/i386.c
13594         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
13595         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
13596         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
13597         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
13598         CODE_FOR_avx512vl_ucmpv4si3_mask.
13599         * config/i386/sse.md
13600         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
13601         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
13602         (define_insn
13603         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
13604         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
13605         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
13606         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
13607         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
13608         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
13610 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13611             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13612             Anna Tikhonova  <anna.tikhonova@intel.com>
13613             Ilya Tocar  <ilya.tocar@intel.com>
13614             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13615             Ilya Verbin  <ilya.verbin@intel.com>
13616             Kirill Yukhin  <kirill.yukhin@intel.com>
13617             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13619         * config/i386/sse.md
13620         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
13621         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
13622         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
13623         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
13624         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
13625         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
13626         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
13627         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
13628         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
13630 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13631             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13632             Anna Tikhonova  <anna.tikhonova@intel.com>
13633             Ilya Tocar  <ilya.tocar@intel.com>
13634             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13635             Ilya Verbin  <ilya.verbin@intel.com>
13636             Kirill Yukhin  <kirill.yukhin@intel.com>
13637             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13639         * config/i386/sse.md
13640         (define_insn "avx512f_blendm<mode>"): Delete.
13641         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
13642         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
13643         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
13644         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
13645         (define_insn
13646         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
13647         Remove.
13648         (define_insn
13649         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
13650         New.
13651         (define_insn
13652         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
13653         Ditto.
13654         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
13655         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
13656         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
13657         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
13658         Delete.
13659         (define_insn
13660         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
13661         New.
13662         (define_insn
13663         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
13664         Ditto.
13665         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
13666         Delete.
13667         (define_insn
13668         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
13669         New.
13670         (define_insn
13671         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
13672         Ditto.
13674 2014-10-14  Richard Biener  <rguenther@suse.de>
13676         PR tree-optimization/63512
13677         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
13678         modified.
13680 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
13682         PR target/63260
13683         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
13684         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
13685         of FPSCR.
13686         (negsf2_i): Rename to *negsf2_i.
13687         (abssf2_i): Rename to *abssf2_i.
13688         (negdf2_i): Rename to *negdf2_i.
13689         (absdf2_i): Rename to *absdf2_i.
13691 2014-10-14  Felix Yang  <felix.yang@huawei.com>
13692             Jeff Law  <law@redhat.com>
13694         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
13695         "replace" into boolean bitfields; turn member "loop_depth" into a short
13696         integer; add new member "no_equiv" and "reserved".
13697         (no_equiv): Set no_equiv of struct equivalence if register is marked
13698         as having no known equivalence.
13699         (update_equiv_regs): Check all definitions for a multiple-set
13700         register to make sure that the RHS have the same value.
13702 2014-10-13  Richard Henderson  <rth@redhat.com>
13704         * combine-stack-adj.c (no_unhandled_cfa): New.
13705         (maybe_merge_cfa_adjust): New.
13706         (combine_stack_adjustments_for_block): Use them.
13708 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
13710         * Makefile.in (TAGS): Tag ../include files.
13712 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13714         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
13715         to rs6000_dbx_register_number.
13716         (DWARF_FRAME_REGNUM): Redefine as identity map.
13717         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
13718         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
13719         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
13720         argument to handle .debug_frame and .eh_frame directly.  Always
13721         translate SPE high register numbers.  Add special treatment for CR,
13722         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
13724         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
13725         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
13726         (RS6000_USE_DWARF_NUMBERING): Define.
13727         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
13728         (RS6000_USE_DWARF_NUMBERING): Define.
13729         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
13730         (RS6000_USE_DWARF_NUMBERING): Define.
13731         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
13732         (RS6000_USE_DWARF_NUMBERING): Define.
13733         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
13734         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
13736 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
13738         * config/i386/i386.c (ix86_address_cost): Lower cost for
13739         when address contains GOT register.
13741 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13742             Vladimir Makarov  <vmakarov@redhat.com>
13744         PR target/8340
13745         PR middle-end/47602
13746         PR rtl-optimization/55458
13747         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
13748         (ix86_init_pic_reg): New.
13749         (ix86_select_alt_pic_regnum): Add check on pseudo register.
13750         (ix86_save_reg): Likewise.
13751         (ix86_expand_prologue): Remove PIC register initialization
13752         now performed in ix86_init_pic_reg.
13753         (ix86_output_function_epilogue): Add check on pseudo register.
13754         (set_pic_reg_ever_alive): New.
13755         (legitimize_pic_address): Replace df_set_regs_ever_live with new
13756         set_pic_reg_ever_alive.
13757         (legitimize_tls_address): Likewise.
13758         (ix86_pic_register_p): New check.
13759         (ix86_delegitimize_address): Add check on pseudo register.
13760         (ix86_expand_call): Insert move from pseudo PIC register to ABI
13761         defined REAL_PIC_OFFSET_TABLE_REGNUM.
13762         (TARGET_INIT_PIC_REG): New.
13763         (TARGET_USE_PSEUDO_PIC_REG): New.
13764         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
13765         if pic_offset_table_rtx exists.
13766         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
13767         Document.
13768         * doc/tm.texi: Regenerate.
13769         * function.c (assign_parms): Generate pseudo register for PIC.
13770         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
13771         register.
13772         * ira-color.c (color_pass): Add check on pseudo register.
13773         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
13774         register.
13775         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
13776         register.
13777         (ira): Add target specific PIC register initialization.
13778         (do_reload): Keep PIC pseudo register.
13779         * lra-assigns.c (spill_for): Add checks on pseudo register.
13780         * lra-constraints.c (contains_symbol_ref_p): New.
13781         (lra_constraints): Enable lra risky transformations when PIC is pseudo
13782         register.
13783         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
13784         * target.def (use_pseudo_pic_reg): New.
13785         (init_pic_reg): New.
13787 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
13789         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
13790         Remove m_SILVERMONT and m_INTEL from the tune.
13792 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13794         PR libfortran/63471
13795         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13796         when _HPUX_SOURCE is defined.
13798 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
13800         PR tree-optimization/62127
13801         * tree.c (remap_type_1): When remapping array, remap
13802         also its type.
13804 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
13806         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
13807         longer impact parallelization.
13809 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
13811         PR bootstrap/63496
13812         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
13814 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
13816         * asan.c (instrument_derefs): BIT_FIELD_REF added.
13818 2014-10-13  Richard Biener  <rguenther@suse.de>
13820         PR tree-optimization/63419
13821         * gimple-fold.h (gimple_convert): New function.
13822         * gimple-fold.c (gimple_convert): Likewise.
13823         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
13824         to split out required conversions early.
13826 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
13828         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
13829         Add the parts of an insn in reverse order, with the pattern at
13830         the top of the queue.  Detect when we're iterating over a SEQUENCE
13831         pattern and in that case just consider patterns of subinstructions.
13833 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
13835         PR target/59401
13836         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
13837         of rtx.
13838         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
13839         insn walking.
13840         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
13841         address.  Use def chains to handle GBR clobbering call insns.
13843 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
13845         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
13846         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
13847         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
13848         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
13849         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
13850         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
13851         * doc/gty.texi (for_user): Document new option.
13852         * gengtype.c (create_user_defined_type): Don't try to get a struct for
13853         char.
13854         (walk_type): Don't error out on for_user option.
13855         (write_func_for_structure): Emit user marking routines if requested by
13856         for_user option.
13857         (write_local_func_for_structure): Likewise.
13858         (main): Mark types with for_user option as used.
13859         * ggc.h (gt_pch_nx): Add overload for unsigned int.
13860         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
13861         * hash-table.h (ggc_hasher): New struct.
13862         (hash_table::create_ggc): New function.
13863         (gt_pch_nx): New overload for hash_table.
13865 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
13867         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
13868         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
13869         * config/sh/sh.c: Likewise.
13870         * config/sh/sh-mem.cc: Likewise.
13871         * config/sh/sh.md: Likewise.
13872         * config/sh/predicates.md: Likewise.
13873         * config/sh/sync.md: Likewise.
13875 2014-10-11  Martin Liska  <mliska@suse.cz>
13877         PR middle-end/63376
13878         * cgraphunit.c (symbol_table::process_new_functions): Missing call
13879         for call_cgraph_insertion_hooks added.
13881 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
13883         PR c/63495
13884         * stor-layout.c (min_align_of_type): Don't decrease alignment
13885         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
13886         TYPE_USER_ALIGN is set.
13888 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
13890         PR rtl-optimization/63483
13891         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
13892         references when alignment ANDs are involved.
13893         (write_dependence_p): Ditto.
13894         (may_alias_p): Ditto.
13896 2014-10-10  Marek Polacek  <polacek@redhat.com>
13898         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
13899         * doc/invoke.texi: Document -fsanitize=object-size.
13900         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
13901         or it into SANITIZE_UNDEFINED.
13902         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
13903         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
13904         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
13905         * opts.c (common_handle_option): Handle -fsanitize=object-size.
13906         * ubsan.c: Include tree-object-size.h.
13907         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
13908         (ubsan_expand_bounds_ifn): Use false instead of 0.
13909         (ubsan_expand_objsize_ifn): New function.
13910         (instrument_object_size): New function.
13911         (pass_ubsan::execute): Add object size instrumentation.
13912         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
13914 2014-10-10  Richard Henderson  <rth@redhat.com>
13916         PR target/63404
13917         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
13918         Restrict the set of expressions we're willing to move.
13920 2014-10-10  Jeff Law  <law@redhat.com>
13922         * ira.c (struct equivalence): Promote INIT_INSNs field to
13923         an rtx_insn_list.  Add comments.
13924         (no_equiv): Promote LIST to an rtx_insn_list.  Update
13925         testing for and creating the special marker.  Use methods
13926         to extract the insn and next pointers.  Promote INSN to an
13927         rtx_insn.
13928         (update_equiv_regs): Update test for special marker in the
13929         INIT_INSNs list.
13931 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13933         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
13934         * configure: Regenerate.
13935         * config/aarch64/aarch64.c (aarch64_override_options): Handle
13936         TARGET_FIX_ERR_A53_835769_DEFAULT.
13937         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
13938         value to 2.
13939         * doc/install.texi (aarch64*-*-*): Document
13940         new --enable-fix-cortex-a53-835769 option.
13942 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13943             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13945         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
13946         (ADJUST_INSN_LENGTH): Define.
13947         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
13948         * config/aarch64/aarch64.c (is_mem_p): New function.
13949         (is_memory_op): Likewise.
13950         (aarch64_prev_real_insn): Likewise.
13951         (is_madd_op): Likewise.
13952         (dep_between_memop_and_curr): Likewise.
13953         (aarch64_madd_needs_nop): Likewise.
13954         (aarch64_final_prescan_insn): Likewise.
13955         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
13956         and -mno-fix-cortex-a53-835769 options.
13958 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
13960         PR tree-optimization/63464
13961         * tree-switch-conversion.c (struct case_bit_test): Remove
13962         hi and lo fields, add wide_int mask field.
13963         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
13964         hi/lo fields into wide_int mask operations, optimize by pretending
13965         minval to be 0 if maxval is small enough.
13966         (process_switch): Adjust caller.
13968 2014-10-10  Richard Biener  <rguenther@suse.de>
13970         PR tree-optimization/63379
13971         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
13972         a neutral operand for min/max when it is not a reduction chain.
13974 2014-10-10  Richard Biener  <rguenther@suse.de>
13976         PR tree-optimization/63476
13977         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
13978         (BB_LIVE_VOP_ON_EXIT): New define.
13979         (create_expression_by_pieces): Assign VUSEs to stmts.
13980         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
13981         (pass_pre::execute): Assert virtual SSA form is up-to-date
13982         after insertion.
13984 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
13986         * lra-assigns.c (assign_by_spills): Error out on spill failure.
13988 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
13990         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
13991         assertion.
13993 2014-10-09  Richard Biener  <rguenther@suse.de>
13995         PR tree-optimization/63380
13996         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
13997         may trap.
13999 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
14001         * config/avr/avr.opt (mmcu=): Change to have a string value.
14002         (mn-flash=, mskip-bug, march=, mrmw): New options.
14003         (HeaderInclude): New.
14004         (mmcu=): Remove Var / Init clauses.
14005         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
14006         -specs option.
14007         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
14008         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
14009         (SYMBOL_FLAG_IO_LOW): Define.
14010         (avr_device_to_as, avr_device_to_ld): Don't declare.
14011         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
14012         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
14013         (EXTRA_SPEC_FUNCTIONS): Don't define.
14014         (ASM_SPEC): Translate -arch= option to -mmcu= option.
14015         (LINK_SPEC): Translate -arch= option to -m= option.
14016         Don't use device_to_ld / device_to_data_start.
14017         (STARTFILE_SPEC): Now empty.
14018         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
14019         * config/avr/gen-avr-mmcu-specs.c: New file.
14020         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
14021         (s-device-specs): Likewise.
14022         (GCC_PASSES): Add s-device-specs.
14023         (install-driver): Depend on install-device-specs.
14024         (install-device-specs): New rule.
14025         * config/avr/avr.c (avr_option_override): Look up mcu arch by
14026         avr_arch_index and provide fallback initialization for avr_n_flash.
14027         (varasm.h): #include.
14028         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
14029         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
14030         (avr_attribute_table): Add "io", "address" and "io_low".
14031         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
14032         Add special handling for symbols with "io" and/or "address" attributes.
14033         (avr_asm_asm_output_aligned_bss): New function.
14034         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
14035         as appropriate.  Handle io_low attribute.
14036         (avr_out_sbxx_branch): Handle symbolic io addresses.
14037         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
14038         avr_n_flash instead of avr_current_device->n_flash.
14039         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
14040         (avr_emit_movmemhi): Likewise.
14041         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
14042         Use TARGET_RMW instead of avr_current_device->dev_attributes.
14043         Don't define avr_current_device->macro (that's the specfile's job).
14044         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
14045         * config/avr/avr.c (avr_2word_insn_p): Likewise.
14046         * config/avr/avr.md (*cpse.ne): Likewise.
14047         (mov<mode>): Use avr_eval_addr_attrib.
14048         (cbi): Change constraint for low_io_address_operand operand to "i".
14049         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
14050         * config/avr/predicates.md (io_address_operand):
14051         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
14052         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
14053         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
14054         Update prototype.
14055         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
14056         * config/avr/genmultilib.awk: Use -march=.
14057         Remove Multilib matches processing.
14058         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
14059         * config/avr/avr-arch.h: Add double include guard.
14060         (avr_mcu_t) <library_name>: Update comment.
14061         * config/avr/driver-avr.c (avr_device_to_as): Delete.
14062         (avr_device_to_ld, avr_device_to_data_start): Likewise.
14063         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
14064         (avr_device_to_sp8): Likewise.
14065         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
14067         * doc/extend.texi (io, address): Document new AVR variable attributes.
14068         (io_low): Likewise.
14070 2014-10-09  Marek Polacek  <polacek@redhat.com>
14072         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
14074 2014-10-08  Richard Biener  <rguenther@suse.de>
14076         PR tree-optimization/61969
14077         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
14078         variables.
14080 2014-10-09  Richard Biener  <rguenther@suse.de>
14082         PR tree-optimization/63445
14083         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
14084         overflow for non-equality compares.
14086 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
14088         PR rtl-optimization/57003
14089         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
14090         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
14091         killing regs_invalidated_by_call.
14093 2014-10-08  Teresa Johnson  <tejohnson@google.com>
14095         PR bootstrap/63432.
14096         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
14097         (ssa_fix_duplicate_block_edges): Invoke it.
14098         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
14100 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
14102         PR target/52941
14103         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
14104         atomic_fetch_<fetchop_name>si_hard,
14105         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
14106         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
14107         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
14108         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
14110 2014-10-08  Rong Xu  <xur@google.com>
14112         * gcov-tool.c (profile_overlap): New driver function
14113         to compute profile overlap.
14114         (print_overlap_usage_message): New.
14115         (overlap_usage): New.
14116         (do_overlap): New.
14117         (print_usage): Add calls to overlap function.
14118         (main): Ditto.
14119         * doc/gcov-tool.texi: Add documentation.
14121 2014-10-08  Steve Ellcey  <sellcey@mips.com>
14123         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
14124         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
14126 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
14128         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
14129         pattern matching of MEM_REF.
14130         (check_stmt_for_type_change): Update.
14132 2014-10-08  Steve Ellcey  <sellcey@mips.com>
14134         * config/mips/linux64.h: Remove.
14135         * config/mips/gnu-user64.h: Remove.
14136         * gcc.config (mips*-*-*): Remove references to linux64.h and
14137         gnu-user64.h
14138         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
14139         with modified version from gnu-user64.h.
14140         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
14141         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
14142         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
14143         linux64.h.
14144         (GNU_USER_LINK_EMULATION64): Ditto.
14145         (GNU_USER_LINK_EMULATIONN32): Ditto.
14146         (GLIBC_DYNAMIC_LINKER32): Ditto.
14147         (GLIBC_DYNAMIC_LINKER64): Ditto.
14148         (GLIBC_DYNAMIC_LINKERN32): Ditto.
14149         (UCLIBC_DYNAMIC_LINKER32): Ditto.
14150         (UCLIBC_DYNAMIC_LINKER64): Ditto.
14151         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
14152         (BIONIC_DYNAMIC_LINKERN32): Ditto.
14153         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
14154         (GLIBC_DYNAMIC_LINKER): Delete.
14155         (UCLIBC_DYNAMIC_LINKER): Delete.
14157 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
14158             Richard Biener  <rguenther@suse.de>
14160         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
14161         Get address space from operand 0 (BASE).
14163 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
14165         PR target/61387
14166         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
14168 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
14170         * dwarf2out.c: Remove current_function_has_inlines.
14171         (gen_subprogram_die): Same.
14172         (gen_inlined_subroutine_die): Same.
14174 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
14176         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
14177         type.
14178         (_addcarry_u64): Ditto.
14179         (_addcarryx_u64): Ditto.
14181 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
14183         * cgraph.h (cgraph_node::get_fun): Declare.
14184         * cgraph.c (cgraph_node::get_fun): New method.
14185         * ipa-inline.c (can_inline_edge_p): Use it.
14187 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
14189         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
14190         and -ftrapping-math.
14191         * lto-wrapper.c (merge_and_complain): Likewise.
14192         (run_gcc): Likewise.
14194 2014-10-06  Rong Xu  <xur@google.com>
14196         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
14197         * tree-profile.c: (params.h): New include.
14198         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
14199         and __gcov_indirect_call_topn_counters for
14200         indirect_call_topn_profile.
14201         (gimple_init_edge_profiler): New decls for
14202         __gcov_indirect_call_topn_profiler.
14203         (gimple_gen_ic_profiler): Generate the correct profiler call.
14204         (gimple_gen_ic_func_profiler): Fix format.
14205         * value-prof.c (params.h): New include.
14206         (dump_histogram_value): Hanlde indirect_call_topn counters.
14207         (stream_in_histogram_value): Ditto.
14208         (gimple_indirect_call_to_profile): Use indirect_call_topn
14209         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
14210         (gimple_find_values_to_profile): Hanlde indirect_call_topn
14211         counters.
14212         * value-prof.h (enum hist_type): Histrogram type for
14213         indirect_call_topn counters.
14214         * profile.c (instrument_values): Instrument
14215         indirect_call_topn counters.
14217 2014-10-06  Rong Xu  <xur@google.com>
14219         * Makefile.in: Fix dependence.
14220         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
14221         indirect call topn profiler.
14222         * gcov-io.h: Ditto.
14224 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
14226         * calls.c (expand_call): Do not use the target as the return slot if
14227         it is not sufficiently aligned.
14229 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14231         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
14232         discussion of permutes and why we don't handle them.
14234 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
14236         * config/sparc/predicates.md (int_register_operand): Delete.
14238 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
14240         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
14242 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
14244         * ubsan.h (ubsan_get_source_location): New prototype.
14245         * ubsan.c (ubsan_source_location_type): New variable.
14246         Function renamed to ...
14247         (ubsan_get_source_location_type): ... this.  Cache
14248         return value in ubsan_source_location_type variable.
14249         (ubsan_source_location, ubsan_create_data): Use
14250         ubsan_get_source_location_type instead of
14251         ubsan_source_location_type.
14252         * asan.c (asan_protect_global): Don't protect globals
14253         with ubsan_get_source_location_type () type.
14254         (asan_add_global): Provide global decl location info
14255         if possible.
14257 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
14259         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
14260         sanity check.
14262 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
14264         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
14265         on size.
14266         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
14267         into vptr pointer.
14268         (ipa_polymorphic_call_context::dump): Fix formating.
14269         (walk_ssa_copies): Add logic avoiding loops; update uses.
14270         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
14272 2014-10-02  Mark Wielaard  <mjw@redhat.com>
14274         PR debug/63239
14275         * dwarf2out.c (gen_subprogram_die): When a member function is
14276         explicitly deleted then add a DW_AT_GNU_deleted attribute.
14277         * langhooks.h (struct lang_hooks_for_decls): Add
14278         function_decl_deleted_p langhook.
14279         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
14280         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
14282 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
14284         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
14285         NULL pointer checks.
14286         (ipa_polymorphic_call_context::get_dynamic_type): Return true
14287         if type doesn't change.
14288         * cgraph.h (cgraph_indirect_call_info): New flag.
14289         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
14290         (cgraph_node::dump): Dump it.
14291         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
14292         of context.get_dynamic_type.
14293         (ipa_make_edge_direct_to_target): Do not speculate
14294         edge that is already speuclative.
14295         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
14296         speculate to __builtin_unreachable
14297         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
14298         vptr_changed.
14299         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
14301 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
14303         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
14304         get_dynamic_type; drop TODO.
14305         * ipa-polymorphic-call.c
14306         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
14307         for otr_type to be unknown.
14309 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
14311         * common/config/score/score-common.c: Remove.
14312         * config.gcc: Remove support for score-*.
14313         * config/score/constraints.md: Remove.
14314         * config/score/elf.h: Remove.
14315         * config/score/predicates.md: Remove.
14316         * config/score/score-conv.h: Remove.
14317         * config/score/score-generic.md: Remove.
14318         * config/score/score-modes.def: Remove.
14319         * config/score/score-protos.h: Remove.
14320         * config/score/score.c: Remove.
14321         * config/score/score.h: Remove.
14322         * config/score/score.md: Remove.
14323         * config/score/score.opt: Remove.
14324         * doc/md.texi: Don't document score-*.
14326 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
14328         PR pch/63429
14329         * genconditions.c: Directly include ggc.h before rtl.h.
14331 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
14333         * ipa-polymorphic-call.c
14334         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
14335         code determining speculative type.
14336         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
14338 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14340         * altivec.md (altivec_lvsl): New define_expand.
14341         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
14342         (altivec_lvsr): New define_expand.
14343         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
14344         * rs6000.c (rs6000_expand_builtin): Change to use
14345         altivec_lvs[lr]_direct; remove commented-out code.
14347 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14349         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14350         Issue a warning message when vec_lvsl or vec_lvsr is used with a
14351         little endian target.
14353 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14355         * tree-pretty-print.c (dump_location): Make it extern. Dump also
14356         the column.
14357         * tree-pretty-print.h (dump_location): Declare.
14358         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
14359         (pp_gimple_stmt_1): Likewise.
14360         (dump_implicit_edges): Likewise.
14361         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
14362         LOCATION_LINE.
14365 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
14367         * gcc.c (driver::global_initializations): Remove "const" so
14368         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
14369         and decoded_options_count.
14371 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
14373         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
14374         macro.
14375         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
14376         TARGET_E500_DOUBLE case here.
14378 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
14380         PR c++/54427
14381         PR c++/57198
14382         PR c++/58845
14383         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
14385 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
14387         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
14388         * lto-cgraph.c (lto_output_edge, input_edge): Stream
14389         in_polymorphic_cdtor
14390         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
14391         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
14392         * cgraphclones.c (cgraph_edge::clone): Likewise.
14393         * ipa-prop.c (update_jump_functions_after_inlining,
14394         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
14395         to possible_dynamic_type_change.
14396         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
14397         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
14398         IN_POLY_CDOTR argument.
14400         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
14401         for BASE and OUTER_TYPE being NULL.
14402         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
14403         in_poly_cdtor parameter.
14405 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
14407         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
14408         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
14409         TARGET_AVX512F.
14410         (expand_vec_perm_1): Likewise.
14412 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
14413             Uros Bizjak  <ubizjak@gmail.com>
14415         PR tree-optimization/61403
14416         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
14417         error in comment.  Also optimize 256-bit vectors for AVX2
14418         or AVX (floating vectors only), provided the first permutation
14419         can be performed in one insn.
14421 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
14423         * gcc.c (class driver): New class.
14424         (main): Reimplement in terms of driver::main, moving most of the
14425         locals to be locals within individual methods of class driver.
14426         The remaining locals "explicit_link_files", "decoded_options" and
14427         "decoded_options_count" are used by multiple driver:: methods, and
14428         so become member data.  Doing so isolates the argc/argv reads and
14429         writes.  Replace "goto out" with a special exit code from
14430         new method driver::prepare_infiles.  Split out the old
14431         implementation of main into the following...
14432         (driver::main): New function, corresponding to the old "main"
14433         implementation.
14434         (driver::set_progname): New function, taken from the old
14435         "main" implementation.
14436         (driver::expand_at_files): Likewise.
14437         (driver::decode_argv): Likewise.
14438         (driver::global_initializations): Likewise.
14439         (driver::build_multilib_strings): Likewise.
14440         (driver::set_up_specs): Likewise.
14441         (driver::putenv_COLLECT_GCC): Likewise.
14442         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
14443         (driver::handle_unrecognized_options): Likewise.
14444         (driver::maybe_print_and_exit): Likewise.
14445         (driver::prepare_infiles): Likewise.
14446         (driver::do_spec_on_infiles): Likewise.
14447         (driver::maybe_run_linker): Likewise.
14448         (driver::final_actions): Likewise.
14449         (driver::get_exit_code): Likewise.
14451 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
14453         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
14454         don't emit empty ctors.
14456 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
14458         * convert.c (convert_to_integer): Do not introduce useless conversions
14459         between integral types.
14461 2014-10-03  David Sherwood  <david.sherwood@arm.com>
14463         * ira-int.h (ira_allocno): Mark hard_regno as signed.
14465 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
14467         * lra-constraints.c (inherit_in_ebb): Handle calls with
14468         multiple return values.
14469         * caller-save.c (save_call_clobbered_regs): Likewise.
14471 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
14473         * tree-vect-data-refs.c (vect_permute_load_chain,
14474         vect_shift_permute_load_chain): Fix a typo in temporary var names,
14475         suffle3 to shuffle3.
14477         PR libgomp/61200
14478         * omp-low.c (taskreg_contexts): New variable.
14479         (scan_omp_parallel): Push newly created context into taskreg_contexts
14480         vector and move record layout code to finish_taskreg_scan.
14481         (scan_omp_task): Likewise.
14482         (finish_taskreg_scan): New function.
14483         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
14484         vector elements and release it.
14486         PR target/62128
14487         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
14488         of palignr arguments can't be used due to min 0 or max - min
14489         too high, try also op0, op1 order of palignr arguments.
14491 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
14493         * cgraph.h (ipa_polymorphic_call_context):
14494         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
14495         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
14496         * ipa-polymorphic-call.c
14497         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
14498         past end of dynamic types.
14499         (ipa_polymorphic_call_context::stream_out,
14500         speculative_outer_type): Stream dynamic flag.
14501         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
14502         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
14503         Clear DYNAMIC.
14504         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
14505         set it.
14506         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
14507         * ipa-prop.c (update_jump_functions_after_inlining,
14508         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
14510 2014-10-02  Teresa Johnson  <tejohnson@google.com>
14512         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
14513         up when synthesizing counts to avoid rounding errors.
14515 2014-10-02  Teresa Johnson  <tejohnson@google.com>
14517         PR middle-end/63422
14518         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
14519         asserts to handle incoming insanities.
14521 2014-10-02  Martin Jambor  <mjambor@suse.cz>
14523         PR tree-optimization/63375
14524         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
14525         references.
14527 2014-10-02  Olivier Hainque  <hainque@adacore.com>
14529         * Makefile.in (CROSS): Define, to @CROSS.
14531 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
14533         PR target/62128
14534         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
14535         if it expands to a single insn only.
14536         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
14537         fail unless in_order is true.  Add forward declaration.
14538         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
14539         is useful for one_operand_p.
14540         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
14542 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
14544         * cgraphclones.c (build_function_type_skip_args): Do not make new
14545         type variant of old.
14547 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
14549         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
14550         when speculation is added.
14551         (ipa_edge_args): Add polymorphic_call_contexts.
14552         (ipa_get_ith_polymorhic_call_context): New accesor.
14553         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
14554         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
14555         (ipa_compute_jump_functions_for_edge): Compute contexts.
14556         (update_jump_functions_after_inlining): Update contexts.
14557         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
14558         update dumping; add speculative edge creation.
14559         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
14560         context updating.
14561         (update_indirect_edges_after_inlining): Pass down context.
14562         (ipa_edge_duplication_hook): Duplicate contexts.
14563         (ipa_write_node_info): Stream out contexts.
14564         (ipa_read_node_info): Stream in contexts.
14565         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
14566         types.
14567         (try_speculative_devirtualization): New function.
14568         * ipa-utils.h (try_speculative_devirtualization): Declare.
14570 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
14572         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
14573         dumping during WPA.
14575 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
14577         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
14578         type variants.
14580 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
14582         * ipa-polymorphic-call.c
14583         (ipa_polymorphic_call_context::restrict_to_inner_class):
14584         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
14585         use speculation_consistent_p to do so; Add CONSDER_BASES
14586         and CONSIDER_PLACEMENT_NEW parameters.
14587         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
14588         short circuit obvious cases.
14589         (ipa_polymorphic_call_context::dump): Improve formatting.
14590         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
14591         combine_speculation_with to record speculations; Do not ICE when
14592         object is located in pointer type decl; do not ICE for methods
14593         of UNION_TYPE; do not record nonpolymorphic types.
14594         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
14595         (ipa_polymorphic_call_context::combine_speculation_with): New method.
14596         (ipa_polymorphic_call_context::combine_with): New method.
14597         (ipa_polymorphic_call_context::make_speculative): Move here; use
14598         combine speculation.
14599         * cgraph.h (ipa_polymorphic_call_context): Update
14600         restrict_to_inner_class prototype; add offset_by, make_speculative,
14601         combine_with, useless_p, combine_speculation_with and
14602         speculation_consistent_p methods.
14603         (ipa_polymorphic_call_context::offset_by): New method.
14604         (ipa_polymorphic_call_context::useless_p): New method.
14606 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
14608         PR rtl-optimization/62151
14609         * combine.c (can_combine_p): Allow the destination register of INSN
14610         to be clobbered in I3.
14611         (subst): Do not substitute into clobbers of registers.
14613 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
14615         PR debug/63342
14616         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
14617         offset, TARGET_MEM_REF and SSA_NAME.
14619         * config/i386/i386.c (expand_vec_perm_palignr): Handle
14620         256-bit vectors for TARGET_AVX2.
14622         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
14623         dfirst permutation.
14625         PR target/63428
14626         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
14627         argument to avx2_permv2ti.
14629 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14631         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
14633 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
14635         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
14636         (fmod<mode>3): Ditto.
14637         (fpremxf4_i387): Ditto.
14638         (reminderxf3): Ditto.
14639         (reminder<mode>3): Ditto.
14640         (fprem1xf4_i387): Ditto.
14642 2014-09-30  Teresa Johnson  <tejohnson@google.com>
14644         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
14645         duplicate_blocks bitmap.
14646         (remove_ctrl_stmt_and_useless_edges): Ditto.
14647         (create_block_for_threading): Ditto.
14648         (compute_path_counts): New function.
14649         (update_profile): Ditto.
14650         (recompute_probabilities): Ditto.
14651         (update_joiner_offpath_counts): Ditto.
14652         (freqs_to_counts_path): Ditto.
14653         (clear_counts_path): Ditto.
14654         (ssa_fix_duplicate_block_edges): Update profile info.
14655         (ssa_create_duplicates): Pass new parameter.
14656         (ssa_redirect_edges): Remove old profile update.
14657         (thread_block_1): New duplicate_blocks bitmap,
14658         remove old profile update.
14659         (thread_single_edge): Pass new parameter.
14661 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
14663         PR middle-end/62120
14664         * varasm.c (decode_reg_name_and_count): Check availability for
14665         registers from ADDITIONAL_REGISTER_NAMES.
14667 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
14669         PR plugins/63410
14670         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
14671         (PLUGIN_HEADERS): Add pass-instances.def.
14673 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
14675         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
14676         iterator.
14677         * config/aarch64/aarch64-simd.md
14678         (aarch64_sqdmull_laneq<mode>): Expand iterator.
14679         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
14680         (vqdmulls_lane_s32): Fix return type.
14681         (vqdmulls_laneq_s32): New.
14683 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
14685         PR inline-asm/63282
14686         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
14687         or invert_jump_1 if jump isn't any_condjump_p.
14689 2014-09-30  Terry Guo  <terry.guo@arm.com>
14691         * config/arm/arm-cores.def (cortex-m7): New core name.
14692         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
14693         (fpv5-d16): Ditto.
14694         * config/arm/arm-tables.opt: Regenerated.
14695         * config/arm/arm-tune.md: Regenerated.
14696         * config/arm/arm.h (TARGET_VFP5): New macro.
14697         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
14698         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
14699         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
14700         * doc/invoke.texi: Document new cpu and fpu names.
14702 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
14704         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
14705         before sinking insn.
14707 2014-09-30  David Sherwood  <david.sherwood@arm.com>
14709         * ira-int.h (ira_allocno): Add "wmode" field.
14710         * ira-build.c (create_insn_allocnos): Add new "parent" function
14711         parameter.
14712         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
14713         that cannot be accessed in wmode.
14715 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
14717         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
14718         integer overflow.
14720 2014-09-29  Andi Kleen  <ak@linux.intel.com>
14722         * opts.c (print_filtered_help): Print --param min/max/default
14723         with -Q.
14725 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14727         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
14729 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
14731         * tree-vrp.c (get_single_symbol): New function.
14732         (build_symbolic_expr): Likewise.
14733         (symbolic_range_based_on_p): New predicate.
14734         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
14735         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
14736         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
14737         operand is symbolic and based on the other operand.
14739 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
14741         * config/microblaze/microblaze.md (call_internal1): Use VOID
14742         instead of SI to fix "((void (*)(void)) 0)()" issue
14744 2014-09-29  Nick Clifton  <nickc@redhat.com>
14746         * config/msp430/msp430.c (msp430_expand_prologue): Return a
14747         CLOBBER rtx for naked functions.
14748         (msp430_expand_epilogue): Likewise.
14749         (msp430_use_f5_series_hwmult): Cache result.
14750         (use_32bit_hwmult): Cache result.
14751         (msp430_no_hwmult): New function.
14752         (msp430_output_labelref): Use it.
14754 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
14756         PR middle-end/63247
14757         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
14758         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
14759         use the alignment of avar rather than ovar.
14761 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
14763         * config/pa/pa.c (pa_output_function_epilogue): Only update
14764         last_address when a nonnote insn is found.
14766 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
14768         PR ipa/60665
14769         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
14771 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
14773         PR ipa/62121
14774         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
14775         fix pasto in checking array size.
14777 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
14779         PR middle-end/35545
14780         * passes.def (pass_tracer): Move before last dominator pass.
14782 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
14784         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
14785         users.
14786         (run_attempt): Handle errors of "pex_run" invocation.
14788 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
14790         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
14791         (CC1_SPEC): Define.
14792         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
14793         (TARGET_ASAN_SHADOW_OFFSET): Define.
14795 2014-09-26  Martin Liska  <mliska@suse.cz>
14797         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
14798         introduced.
14799         * cgraph.h: Likewise.
14800         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
14801         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
14802         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
14803         * tree-ssa-alias.h: Likewise.
14805 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
14806             Max Ostapenko  <m.ostapenko@partner.samsung.com>
14808         * common.opt: New option.
14809         * doc/invoke.texi: Describe new option.
14810         * gcc.c (execute): Don't free first string early, but at the end
14811         of the function.  Call retry_ice if compiler exited with
14812         ICE_EXIT_CODE.
14813         (main): Factor out common code.
14814         (print_configuration): New function.
14815         (files_equal_p): Likewise.
14816         (check_repro): Likewise.
14817         (run_attempt): Likewise.
14818         (do_report_bug): Likewise.
14819         (append_text): Likewise.
14820         (try_generate_repro): Likewise
14822 2014-09-25  Andi Kleen  <ak@linux.intel.com>
14824         * config/i386/i386.c (x86_print_call_or_nop): New function.
14825         (x86_function_profiler): Support -mnop-mcount and
14826         -mrecord-mcount.
14827         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
14828         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
14830 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
14832         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
14833         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
14834         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
14835         Remove.
14837 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
14839         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
14840         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
14841         types_odr_comparable): Declare.
14842         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
14843         * ipa-polymorphic-call.c: New file.
14844         (contains_polymorphic_type_p, possible_placement_new,
14845         ipa_polymorphic_call_context::restrict_to_inner_class,
14846         contains_type_p, decl_maybe_in_construction_p,
14847         ipa_polymorphic_call_context::stream_out,
14848         ipa_polymorphic_call_context::debug,
14849         ipa_polymorphic_call_context::stream_in,
14850         ipa_polymorphic_call_context::set_by_decl,
14851         ipa_polymorphic_call_context::set_by_invariant,
14852         walk_ssa_copies,
14853         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
14854         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
14855         extr_type_from_vtbl_ptr_store, record_known_type
14856         check_stmt_for_type_change,
14857         ipa_polymorphic_call_context::get_dynamic_type): Move here from
14858         ipa-devirt.c
14859         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
14860         and streamer-hooks.h
14861         (contains_polymorphic_type_p, possible_placement_new,
14862         ipa_polymorphic_call_context::restrict_to_inner_class,
14863         contains_type_p, decl_maybe_in_construction_p,
14864         ipa_polymorphic_call_context::stream_out,
14865         ipa_polymorphic_call_context::debug,
14866         ipa_polymorphic_call_context::stream_in,
14867         ipa_polymorphic_call_context::set_by_decl,
14868         ipa_polymorphic_call_context::set_by_invariant,
14869         walk_ssa_copies,
14870         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
14871         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
14872         extr_type_from_vtbl_ptr_store, record_known_type
14873         check_stmt_for_type_change,
14874         ipa_polymorphic_call_context::get_dynamic_type): Move to
14875         ipa-polymorphic-call.c
14876         (type_all_derivations_known_p, types_odr_comparable,
14877         types_must_be_same_for_odr): Export.
14878         (type_known_to_have_no_deriavations_p): New function.
14879         * Makefile.in: Add ipa-polymorphic-call.c
14881 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
14883         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
14884         for better storage.
14885         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
14886         (possible_polymorphic_call_targets): Instead of computing both
14887         speculative and non-speculative answers, do just one at a time.
14888         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
14889         (dump_targets): Break out from ...
14890         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
14891         and non-speculative lists.
14892         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
14893         * ipa-utils.h (possible_polymorphic_call_targets): Update.
14895 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
14897         PR rtl-optimization/63348
14898         * emit-rtl.c (try_split): Do not emit extra barrier.
14900 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
14902         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
14903         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
14904         new predicates.
14905         (aarch64_<sur>shll2_n<mode>): Likewise.
14906         (aarch64_<sur>shr_n<mode>): Likewise.
14907         (aarch64_<sur>sra_n<mode>: Likewise.
14908         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
14909         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
14910         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
14911         * config/aarch64/iterators.md (ve_mode): New.
14912         (offsetlr): Remap to infix text for use in new predicates.
14913         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
14914         (aarch64_simd_shift_imm_hi): Likewise.
14915         (aarch64_simd_shift_imm_si): Likewise.
14916         (aarch64_simd_shift_imm_di): Likewise.
14917         (aarch64_simd_shift_imm_offset_qi): Likewise.
14918         (aarch64_simd_shift_imm_offset_hi): Likewise.
14919         (aarch64_simd_shift_imm_offset_si): Likewise.
14920         (aarch64_simd_shift_imm_offset_di): Likewise.
14921         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
14922         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
14923         (aarch64_simd_shift_imm_bitsize_si): Likewise.
14924         (aarch64_simd_shift_imm_bitsize_di): Likewise.
14926 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
14928         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
14929         new created BB as the intersection of live-in from "old_dest" and
14930         live-out from "bb".
14932 2014-09-25  Felix Yang  <felix.yang@huawei.com>
14934         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
14935         * genautomata.c (merge_states): Ditto.
14937 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
14939         PR target/62218
14940         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
14941         in instruction sequence.
14943 2014-09-25  Nick Clifton  <nickc@redhat.com>
14945         PR target/62218
14946         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
14947         in instruction sequence.
14949 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14951         PR target/63335
14952         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
14953         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
14955 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14956             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14957             Anna Tikhonova  <anna.tikhonova@intel.com>
14958             Ilya Tocar  <ilya.tocar@intel.com>
14959             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14960             Ilya Verbin  <ilya.verbin@intel.com>
14961             Kirill Yukhin  <kirill.yukhin@intel.com>
14962             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14964         * config/i386/sse.md
14965         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
14966         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
14967         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
14968         (define_expand "<avx512>_perm<mode>_mask"): ... this.
14969         Use VI8F_256_512 mode iterator.
14970         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
14971         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
14973 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14974             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14975             Anna Tikhonova  <anna.tikhonova@intel.com>
14976             Ilya Tocar  <ilya.tocar@intel.com>
14977             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14978             Ilya Verbin  <ilya.verbin@intel.com>
14979             Kirill Yukhin  <kirill.yukhin@intel.com>
14980             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14982         * config/i386/sse.md
14983         (define_insn "avx_movshdup256<mask_name>"): Add masking.
14984         (define_insn "sse3_movshdup<mask_name>"): Ditto.
14985         (define_insn "avx_movsldup256<mask_name>"): Ditto.
14986         (define_insn "sse3_movsldup<mask_name>"): Ditto.
14987         (define_insn "vec_dupv2df<mask_name>"): Ditto.
14988         (define_insn "*vec_concatv2df"): Add EVEX version.
14990 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14991             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14992             Anna Tikhonova  <anna.tikhonova@intel.com>
14993             Ilya Tocar  <ilya.tocar@intel.com>
14994             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14995             Ilya Verbin  <ilya.verbin@intel.com>
14996             Kirill Yukhin  <kirill.yukhin@intel.com>
14997             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14999         * config/i386/sse.md
15000         (define_insn "vec_set<mode>_0"): Add EVEX version.
15002 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15003             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15004             Anna Tikhonova  <anna.tikhonova@intel.com>
15005             Ilya Tocar  <ilya.tocar@intel.com>
15006             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15007             Ilya Verbin  <ilya.verbin@intel.com>
15008             Kirill Yukhin  <kirill.yukhin@intel.com>
15009             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15011         * config/i386/sse.md
15012         (define_insn
15013         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
15014         New.
15015         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
15016         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
15017         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
15018         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
15019         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
15020         (define_expand "sse2_cvtpd2ps_mask): New.
15021         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
15022         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
15024 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15025             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15026             Anna Tikhonova  <anna.tikhonova@intel.com>
15027             Ilya Tocar  <ilya.tocar@intel.com>
15028             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15029             Ilya Verbin  <ilya.verbin@intel.com>
15030             Kirill Yukhin  <kirill.yukhin@intel.com>
15031             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15033         * config/i386/i386.c
15034         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
15035         (ufix_notruncv8dfv8si2_mask_round): ... this.
15036         * config/i386/sse.md
15037         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
15038         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
15039         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
15040         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
15041         (define_expand "sse2_cvtpd2dq"): Delete.
15042         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
15043         make 2nd operand const0 vector.
15044         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
15045         Delete.
15046         (define_mode_attr pd2udqsuff): New.
15047         (define_insn
15048         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
15049         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
15050         (define_insn "*avx_cvttpd2dq256_2"): Delete.
15051         (define_expand "sse2_cvttpd2dq"): Ditto.
15052         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
15053         make 2nd operand const0 vector.
15055 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
15057         PR tree-optimization/63341
15058         * tree-vectorizer.h (vect_create_data_ref_ptr,
15059         vect_create_addr_base_for_vector_ref): Add another tree argument
15060         defaulting to NULL_TREE.
15061         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
15062         argument, pass it down to vect_create_addr_base_for_vector_ref.
15063         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
15064         add that to base_offset too if non-NULL.
15065         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
15066         for dr_explicit_realign_optimized set it to vector byte size
15067         - 1 instead of setting offset, pass byte_offset down to
15068         vect_create_data_ref_ptr.
15070 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
15072         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
15073         forgotten debug output; canonicalize querries more wtih LTO.
15075 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
15077         * cgraph.h (class ipa_polymorphic_call_context): Move here from
15078         ipa-utils.h; add stream_int and stream_out methods.
15079         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
15080         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
15081         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
15082         add CONTEXT.
15083         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
15084         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
15085         ipa_polymorphic_call_context::clear_speculation,
15086         ipa_polymorphic_call_context::clear_outer_type): Move here from
15087         ipa-utils.h
15088         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
15089         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
15090         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
15091         ipa_polymorphic_call_context::clear_speculation,
15092         ipa_polymorphic_call_context::clear_outer_type): Likewise.
15093         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
15094         streamer-hooks.h
15095         (ipa_polymorphic_call_context::stream_out): New method.
15096         (ipa_polymorphic_call_context::stream_in): New method.
15097         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
15098         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
15099         OUTER_TYPE.
15100         (ipa_analyze_call_uses): Simplify.
15101         (update_indirect_edges_after_inlining): Do not care about outer_type.
15102         (ipa_write_indirect_edge_info): Update.
15103         (ipa_write_indirect_edge_info): Likewise.
15104         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
15105         (dump_edge_flags): Break out from ...
15106         (cgraph_node::dump): ... here; dump indirect edges.
15108 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
15110         * ipa-utils.h (polymorphic_call_context): Add
15111         metdhos dump, debug and clear_outer_type.
15112         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
15113         (ipa_polymorphic_call_context::clear_outer_type): New method.
15114         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
15115         * ipa-devirt.c (types_odr_comparable): New function.
15116         (types_must_be_same_for_odr): New function.
15117         (odr_subtypes_equivalent_p): Simplify.
15118         (possible_placement_new): Break out from ...
15119         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
15120         be more cuatious about returning false in cases the context may be
15121         valid in derived type or via placement new.
15122         (contains_type_p): Clear maybe_derived_type
15123         (ipa_polymorphic_call_context::dump): New method.
15124         (ipa_polymorphic_call_context::debug): New method.
15125         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
15126         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
15127         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
15128         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
15129         to suceed on all valid cases; remove confused sanity check.
15130         (dump_possible_polymorphic_call_targets): Simplify.
15132 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
15134         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
15135         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
15136         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
15137         varpool.c: Rename all instances of DECL_ABSTRACT to
15138         DECL_ABSTRACT_P.
15140 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15142         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
15143         special handling for stores whose SET_SRC is an UNSPEC (such as
15144         UNSPEC_STVE).
15146 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
15148         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
15149         !REG_P (src) to release more instruction sink opportunities.
15151 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
15153         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
15154         move costs for 128-bit types.
15156 2014-09-24  Martin Jambor  <mjambor@suse.cz>
15158         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
15159         when duplicating a PASS_THROUGH jump function when creating a
15160         speculative edge.
15162 2014-09-24  Marek Polacek  <polacek@redhat.com>
15164         PR c/61405
15165         PR c/53874
15166         * asan.c (maybe_instrument_call): Add default case.
15167         * ipa-pure-const.c (special_builtin_state): Likewise.
15168         * predict.c (expr_expected_value_1): Likewise.
15169         * lto-streamer-out.c (write_symbol): Initialize variable.
15171 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15173         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
15174         the lane.
15175         (vmuld_laneq_f64): Likewise.
15176         (vmuls_lane_f32): Likewise.
15177         (vmuls_laneq_f32): Likewise.
15179 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
15181         PR bootstrap/63235
15182         * varpool.c (varpool_node::add): Pass decl attributes
15183         to lookup_attribute.
15185 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
15187         PR sanitizer/63316
15188         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
15190 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15192         PR tree-optimization/63266
15193         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
15194         marker for unknown byte value.
15195         (MARKER_MASK): New macro.
15196         (MARKER_BYTE_UNKNOWN): New macro.
15197         (HEAD_MARKER): New macro.
15198         (do_shift_rotate): Mark bytes with unknown values due to sign
15199         extension when doing an arithmetic right shift. Replace hardcoded
15200         mask for marker by new MARKER_MASK macro.
15201         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
15202         numbers accordingly.
15204 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15205             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15206             Anna Tikhonova  <anna.tikhonova@intel.com>
15207             Ilya Tocar  <ilya.tocar@intel.com>
15208             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15209             Ilya Verbin  <ilya.verbin@intel.com>
15210             Kirill Yukhin  <kirill.yukhin@intel.com>
15211             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15213         * config/i386/sse.md
15214         (define_insn
15215         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
15216         Add masking.
15217         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
15218         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
15220 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15221             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15222             Anna Tikhonova  <anna.tikhonova@intel.com>
15223             Ilya Tocar  <ilya.tocar@intel.com>
15224             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15225             Ilya Verbin  <ilya.verbin@intel.com>
15226             Kirill Yukhin  <kirill.yukhin@intel.com>
15227             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15229         * config/i386/sse.md
15230         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
15231         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
15232         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
15233         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
15234         (define_expand "avx512vl_pshuflw_mask"): New.
15235         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
15236         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
15237         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
15238         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
15239         (define_expand "avx512vl_pshufhw_mask"): New.
15240         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
15242 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15243             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15244             Anna Tikhonova  <anna.tikhonova@intel.com>
15245             Ilya Tocar  <ilya.tocar@intel.com>
15246             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15247             Ilya Verbin  <ilya.verbin@intel.com>
15248             Kirill Yukhin  <kirill.yukhin@intel.com>
15249             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15251         * config/i386/i386.c
15252         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
15253         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
15254         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
15255         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
15256         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
15257         * config/i386/sse.md
15258         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
15259         (define_insn
15260         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
15261         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
15262         (define_insn
15263         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
15264         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
15265         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
15266         (define_expand "avx512vl_pshufd_mask"): New.
15267         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
15269 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15270             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15271             Anna Tikhonova  <anna.tikhonova@intel.com>
15272             Ilya Tocar  <ilya.tocar@intel.com>
15273             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15274             Ilya Verbin  <ilya.verbin@intel.com>
15275             Kirill Yukhin  <kirill.yukhin@intel.com>
15276             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15278         * config/i386/i386.c
15279         (CODE_FOR_avx2_extracti128): Rename to ...
15280         (CODE_FOR_avx_vextractf128v4di): this.
15281         (CODE_FOR_avx2_inserti128): Rename to ...
15282         (CODE_FOR_avx_vinsertf128v4di): this.
15283         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
15284         CODE_FOR_avx_vextractf128v4di.
15285         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
15286         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
15287         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
15288         CODE_FOR_avx512vl_vinsertv8si.
15289         * config/i386/sse.md
15290         (define_expand
15291         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
15292         AVX512_VEC mode iterator.
15293         (define_insn
15294         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
15295         Ditto.
15296         (define_expand
15297         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
15298         AVX512_VEC_2 mode iterator.
15299         (define_insn "vec_set_lo_<mode><mask_name>"): New.
15300         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15301         (define_expand "avx512vl_vinsert<mode>"): Ditto.
15302         (define_insn "avx2_vec_set_lo_v4di"): Delete.
15303         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
15304         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
15305         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15306         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
15307         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15308         (define_expand "avx2_extracti128"): Delete.
15309         (define_expand "avx2_inserti128"): Ditto.
15311 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15312             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15313             Anna Tikhonova  <anna.tikhonova@intel.com>
15314             Ilya Tocar  <ilya.tocar@intel.com>
15315             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15316             Ilya Verbin  <ilya.verbin@intel.com>
15317             Kirill Yukhin  <kirill.yukhin@intel.com>
15318             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15320         * config/i386/sse.md
15321         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
15322         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
15323         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
15324         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
15325         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
15326         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
15327         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
15328         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
15329         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
15330         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
15331         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
15332         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
15333         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
15335 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
15337         PR rtl-optimization/63210
15338         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
15339         HARD_REGNO is not available for CONFLICT_A.
15341 2014-09-23  Andi Kleen  <ak@linux.intel.com>
15343         * cgraph.h (symtab_node): Add no_reorder attribute.
15344         (symbol_table::output_asm_statements): Remove.
15345         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
15346         (cgraph_node::create_version_clone): Dito.
15347         (symbol_table::output_asm_statements): Remove.
15348         * trans-mem.c (ipa_tm_create_version_alias): Dito.
15349         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
15350         (output_in_order): Add no_reorder flag. Only handle no_reorder
15351         nodes when set.
15352         (symbol_table::compile): Add separate pass for no_reorder nodes.
15353         (process_common_attributes): Set no_reorder flag in symtab node.
15354         Add node argument.
15355         (process_function_and_variable_attributes): Pass symtab nodes to
15356         process_common_attributes.
15357         * doc/extend.texi (no_reorder): Document no_reorder attribute.
15358         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
15359         (lto_output_varpool_node): Dito.
15360         (input_overwrite_node): Dito.
15361         (input_varpool_node): Dito.
15362         * varpool.c (varpool_node::add): Set no_reorder attribute.
15363         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
15364         (symbol_table::output_variables): Dito.
15365         * symtab.c (symtab_node::dump_base): Print no_reorder.
15367 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
15369         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
15370         be INVALID_REGNUM.
15372 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
15374         * configure: Regenerate.
15376 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
15378         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
15379         when result_mode == shift_mode.
15381 2014-09-23  Kostya Serebryany  <kcc@google.com>
15383         Update to match the changed asan API.
15384         * asan.c (asan_global_struct): Update the __asan_global definition
15385         to match the new API.
15386         (asan_add_global): Ditto.
15387         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
15388         to __asan_init_v4.
15390 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15392         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
15393         refine the constraints used on 32/64-bit floating point moves.
15394         (f32_av): Likewise.
15395         (f64_vsx): Likewise.
15396         (f64_dm): Likewise.
15397         (f64_av): Likewise.
15398         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
15399         (BOOL_REGS_OP1): Likewise.
15400         (BOOL_REGS_OP2): Likewise.
15401         (BOOL_REGS_UNARY): Likewise.
15402         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
15403         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
15404         for moves involving VSX registers.  Do not use constraints that
15405         target VSX registers for decimal types.
15406         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
15407         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
15409 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
15411         * tree.h (int_bit_position): Turn into inline function;
15412         implement using wide int.
15413         * tree.c (int_bit_position): Remove.
15415 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
15417         PR bootstrap/63280
15418         * target-globals.c (target_globals::~target_globals): Fix location
15419         of ira_int destruction.
15421 2014-09-23  Renlin Li  <renlin.li@arm.com>
15423         * config/aarch64/aarch64.md (return): New.
15424         (simple_return): Likewise.
15425         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
15426         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
15428 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
15430         * common/config/aarch64/aarch64-common.c:
15431         (default_options aarch_option_optimization_table):
15432         Default to -fsched-pressure.
15434 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
15436         * cfgcleanup.c (try_optimize_cfg): Do not remove label
15437         with LABEL_PRESERVE_P flag set.
15439 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15440             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15441             Anna Tikhonova  <anna.tikhonova@intel.com>
15442             Ilya Tocar  <ilya.tocar@intel.com>
15443             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15444             Ilya Verbin  <ilya.verbin@intel.com>
15445             Kirill Yukhin  <kirill.yukhin@intel.com>
15446             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15448         * config/i386/sse.md
15449         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
15450         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
15451         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
15452         (define_insn "sse2_shufpd_v2df_mask"): New.
15454 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15455             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15456             Anna Tikhonova  <anna.tikhonova@intel.com>
15457             Ilya Tocar  <ilya.tocar@intel.com>
15458             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15459             Ilya Verbin  <ilya.verbin@intel.com>
15460             Kirill Yukhin  <kirill.yukhin@intel.com>
15461             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15463         * config/i386/sse.md
15464         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
15465         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
15466         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
15467         (define_insn "sse_shufps_v4sf_mask"): New.
15469 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15470             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15471             Anna Tikhonova  <anna.tikhonova@intel.com>
15472             Ilya Tocar  <ilya.tocar@intel.com>
15473             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15474             Ilya Verbin  <ilya.verbin@intel.com>
15475             Kirill Yukhin  <kirill.yukhin@intel.com>
15476             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15478         * config/i386/sse.md
15479         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
15480         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
15481         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
15482         (define_insn "unpcklps128_mask"): New.
15484 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15485             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15486             Anna Tikhonova  <anna.tikhonova@intel.com>
15487             Ilya Tocar  <ilya.tocar@intel.com>
15488             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15489             Ilya Verbin  <ilya.verbin@intel.com>
15490             Kirill Yukhin  <kirill.yukhin@intel.com>
15491             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15493         * config/i386/sse.md
15494         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
15495         (define_insn "avx512vl_unpckhpd128_mask"): New.
15496         (define_expand "avx_movddup256<mask_name>"): Add masking.
15497         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
15498         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
15499         (define_insn "avx512vl_unpcklpd128_mask"): New.
15501 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
15503         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15504         * doc/tm.texi: Regenerate.
15505         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
15506         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15507         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
15508         Remove.
15509         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15510         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15511         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15512         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15513         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
15514         Remove.
15515         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15516         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15517         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15518         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15519         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15520         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15521         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15522         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15523         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15524         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
15525         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
15526         Remove.
15528 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
15530         * tree-ssa-ccp.c (prop_value_d): Rename to ...
15531         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
15532         * ipa-prop.c (struct type_change_info): Rename to ...
15533         (prop_type_change_info): ... this; update uses.
15534         * ggc-page.c (globals): Rename to ...
15535         (static struct ggc_globals): ... this; update uses.
15536         * tree-ssa-loop-im.c (mem_ref): Rename to ...
15537         (im_mem_ref): ... this; update uses.
15538         * ggc-common.c (loc_descriptor): Rename to ...
15539         (ggc_loc_descriptor): ... this; update uses.
15540         * lra-eliminations.c (elim_table): Rename to ...
15541         (lra_elim_table): ... this; update uses.
15542         * bitmap.c (output_info): Rename to ...
15543         (bitmap_output_info): ... this; update uses.
15544         * gcse.c (expr): Rename to ...
15545         (gcse_expr) ... this; update uses.
15546         (occr): Rename to ...
15547         (gcse_occr): .. this; update uses.
15548         * tree-ssa-copy.c (prop_value_d): Rename to ...
15549         (prop_value_t): ... this.
15550         * predict.c (block_info_def): Rename to ...
15551         (block_info): ... this; update uses.
15552         (edge_info_def): Rename to ...
15553         (edge_info): ... this; update uses.
15554         * profile.c (bb_info): Rename to ...
15555         (bb_profile_info): ... this; update uses.
15556         * alloc-pool.c (output_info): Rename to ...
15557         (pool_output_info): ... this; update uses.
15558         * ipa-cp.c (topo_info): Rename to ..
15559         (ipa_topo_info): ... this; update uses.
15560         * tree-nrv.c (nrv_data): Rename to ...
15561         (nrv_data_t): ... this; update uses.
15562         * ipa-split.c (bb_info): Rename to ...
15563         (split_bb_info): ... this one.
15564         * profile.h (edge_info): Rename to ...
15565         (edge_profile_info): ... this one; update uses.
15566         * dse.c (bb_info): Rename to ...
15567         (dse_bb_info): ... this one; update uses.
15568         * cprop.c (occr): Rename to ...
15569         (cprop_occr): ... this one; update uses.
15570         (expr): Rename to ...
15571         (cprop_expr): ... this one; update uses.
15573 2014-09-22  Jason Merrill  <jason@redhat.com>
15575         * Makefile.in (check-parallel-%): Add @.
15577 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
15579         * config/aarch64/geniterators.sh: New.
15580         * config/aarch64/iterators.md (VDQF_DF): New.
15581         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
15582         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
15584 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
15586         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
15587         -lnosys when -msim absent.
15589 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
15591         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
15593 2014-09-22  Richard Biener  <rguenther@suse.de>
15595         * gimplify.c (gimplify_init_constructor): Do not leave
15596         non-GIMPLE vector constructors around.
15597         * tree-cfg.c (verify_gimple_assign_single): Verify that
15598         CONSTRUCTORs have gimple elements.
15600 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
15602         PR debug/63328
15603         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
15604         insert a debug source bind stmt setting DEBUG_EXPR_DECL
15605         instead of a normal gimple assignment stmt.
15607 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
15609         * config/bfin/bfin.md: Fix use of constraints in define_split.
15611 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
15613         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
15614         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
15616 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
15618         * hard-reg-set.h: Include hash-table.h.
15619         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
15620         field.
15621         * target-globals.c (target_globals::~target_globals): Call
15622         hard_regs->finalize.
15623         * rtl.h (subreg_shape): New structure.
15624         (shape_of_subreg): New function.
15625         (simplifiable_subregs): Declare.
15626         * reginfo.c (simplifiable_subreg): New structure.
15627         (simplifiable_subregs_hasher): Likewise.
15628         (simplifiable_subregs): New function.
15629         (invalid_mode_changes): Delete.
15630         (alid_mode_changes, valid_mode_changes_obstack): New variables.
15631         (record_subregs_of_mode): Remove subregs_of_mode parameter.
15632         Record valid mode changes in valid_mode_changes.
15633         (find_subregs_of_mode): Remove subregs_of_mode parameter.
15634         Update calls to record_subregs_of_mode.
15635         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
15636         handling.  Initialize new variables.  Update call to
15637         find_subregs_of_mode.
15638         (invalid_mode_change_p): Check new variables instead of
15639         invalid_mode_changes.
15640         (finish_subregs_of_mode): Finalize new variables instead of
15641         invalid_mode_changes.
15642         (target_hard_regs::finalize): New function.
15643         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
15644         even when CLASS_CANNOT_CHANGE_MODE is undefined.
15646 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
15648         * combine.c (subst): Use simplify_subreg_regno rather than
15649         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
15651 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
15653         * rtl.h (subreg_info): Expand commentary
15654         * rtlanal.c (subreg_get_info): Likewise.
15656 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
15658         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
15659         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
15660         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
15662 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
15664         * config/arm/arm.c: #include "tm-constrs.h"
15665         (thumb1_size_rtx_costs): Adjust rtx costs.
15667 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
15669         * configure.ac (target_header_dir): Move block defining
15670         this to before the block setting inhibit_libc.
15671         (inhibit_libc): When considering $with_headers, just
15672         check it it's explicitly "no".  If not, also check if
15673         $target_header_dir/stdio.h is present.  If not, set
15674         inhibit_libc=true.
15675         * configure: Regenerate.
15677 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
15679         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
15681 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15683         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
15684         insn for divides by integer powers of two.
15685         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
15686         (mod<mode>3): Fix formatting.
15687         (three anonymous define_insn and two define_split): Delete.
15689 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15691         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
15692         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
15693         (floatdisf2_internal2): Ditto.
15694         (ashrdi3_no_power): Ditto.  Fix formatting.
15696 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15698         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
15699         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
15700         Tidy.
15702 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15704         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
15705         constant, use addsi3 directly.
15706         (three anonymous define_insn, two define_split): Delete.
15707         (sub<mode>3): Move.  Do not allow constant second operand.
15708         Generate different insn for constant first operand.
15709         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
15710         (subf<mode>3_imm): New.
15711         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
15712         (*plus_ltu<mode>): Only handle registers.
15713         (*plus_ltu<mode>_1): New.  Handle integer third operand.
15714         (*plus_gtu<mode>): Only handle registers.
15715         (*plus_gtu<mode>_1): New.  Handle integer third operand.
15717 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15719         * config/rs6000/rs6000.md (iorxor): New code_iterator.
15720         (iorxor): New code_attr.
15721         (IORXOR): New code_attr.
15722         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
15723         (ior<mode>3, xor<mode>3): Delete.
15724         (<iorxor><mode>3): New.
15725         (splitter for "big" integer ior, xor): New.
15726         (*bool<mode>3): Move.  Also handle AND.
15727         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
15728         (splitter for "big" integer ior, xor): Delete.
15730 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15732         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
15733         (two anonymous define_insn and two define_split): Delete.
15734         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
15736 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15738         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
15739         (two anonymous define_insn and two define_split): Delete.
15740         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
15742 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15744         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
15746 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
15748         * config/rs6000/predicates.md (ca_operand): Allow subregs.
15749         (input_operand): Do not allow ca_operand.
15750         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
15751         carry bit, allow SImode and Pmode.
15752         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
15754 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
15756         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
15757         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
15758         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
15759         (*call_rex64_ms_sysv): Remove.
15760         (*call_value_rex64_ms_sysv): Ditto.
15761         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
15763 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
15765         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
15766         operand 3 to "CnL".
15768 2014-09-20  Andreas Schwab  <schwab@suse.de>
15770         * config/ia64/ia64.md: Remove constraints from define_split
15771         patterns.
15773 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15775         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15776         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15777         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15778         (get_dynamic_type): Remove.
15779         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15780         (clear_speculation): Bring to ipa-deivrt.h
15781         (get_class_context): Rename to ...
15782         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15783         (contains_type_p): Update.
15784         (get_dynamic_type): Rename to ...
15785         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15786         (possible_polymorphic_call_targets): UPdate.
15787         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15788         * ipa-prop.c (ipa_analyze_call_uses): Update.
15790 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15792         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
15793         privatize dynamic TLS variables.
15795 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15797         * diagnostic.c (warning_n): New function.
15798         * diagnostic-core.h (warning_n): Declare.
15799         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
15800         output dynamic counts when available.
15802 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15804         PR tree-optimization/63255
15805         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
15806         issue in setting body_removed flag.
15808 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15810         PR c++/61825
15811         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
15812         that visibility change is possible
15813         (handle_weakref_attribute): Likewise.
15814         * cgraph.h (symtab_node): Add method get_create and
15815         field refuse_visibility_changes.
15816         (symtab_node::get_create): New method.
15817         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
15818         * varasm.c (mark_weak): Verify that visibility change is
15819         possible.
15821 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15823         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
15824         for base_reg_operand to be common between LO_SUM and PLUS.
15825         (fusion_gpr_mem_combo): New predicate to match a fused address
15826         that combines the addis and memory offset address.
15828         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
15829         calling signature.
15830         (emit_fusion_gpr_load): Likewise.
15832         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
15833         signature to pass each argument separately, rather than
15834         using an operands array.  Rewrite the insns found by peephole2 to
15835         be a single insn, rather than hoping the insns will still be
15836         together when the peephole pass is done.  Drop being called via a
15837         normal peephole.
15838         (emit_fusion_gpr_load): Change calling signature to be called from
15839         the fusion_gpr_load_<mode> insns with a combined memory address
15840         instead of the peephole pass passing the addis and offset
15841         separately.
15843         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
15844         fusion.
15845         (power8 fusion peephole): Drop support for doing power8 via a
15846         normal peephole that was created by the peephole2 pass.
15847         (power8 fusion peephole2): Create a new insn with the fused
15848         address, so that the fused operation is kept together after
15849         register allocation is done.
15850         (fusion_gpr_load_<mode>): Likewise.
15852 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
15854         PR lto/63286
15855         * tree.c (need_assembler_name_p): Do not mangle variadic types.
15857 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
15859         * recog.c (scratch_operand): Do not simply allow all hard registers:
15860         only allow those that are allocatable.
15862 2014-09-19  Felix Yang  <felix.yang@huawei.com>
15864         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
15865         comments and fix spacing to conform to coding style.
15867 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
15869         * genrecog.c (validate_pattern): Allow empty constraints in
15870         a match_scratch.
15872 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
15874         * dwarf2out.c (decl_ultimate_origin): Update comment.
15875         * tree.c (block_ultimate_origin): Same.
15877 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15879         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
15880         Update GCC version name to GCC 5.
15881         (rs6000_function_arg_boundary): Likewise.
15882         (rs6000_function_arg): Likewise.
15884 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
15886         * config/sh/sh.md: Fix use of constraints in define_split.
15888 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
15890         PR ipa/61998
15891         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
15893 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
15895         * doc/md.texi (Modifiers): Consistently use "read/write"
15896         nomenclature rather than "input/output".
15897         * genrecog.c (constraints_supported_in_insn_p): New.
15898         (validate_pattern): If needed, also check constraints on
15899         MATCH_SCRATCH operands.
15900         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
15901         operands with no '=' or '+' modifier.
15903 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
15905         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
15906         scratch register as written.
15908 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15910         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
15911         assignment.
15913 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15915         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
15916         expanders.
15918 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15920         PR target/62662
15921         * config/s390/s390.c (s390_emit_epilogue): When doing the return
15922         address load optimization force s390_optimize_prologue to leave it
15923         that way.  Only do the optimization if we already decided to push
15924         r14 into a stack slot.
15926 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
15928         * asan.c (build_check_stmt): Alignment arg was added.
15929         (asan_expand_check_ifn): Optimization for alignment >= 8.
15931 2014-09-19  Olivier Hainque  <hainque@adacore.com>
15933         * config/i386/vxworksae.h: Remove obsolete definitions.
15934         (STACK_CHECK_PROTECT): Define.
15935         * config/i386/vx-common.h: Remove.  Merge contents within
15936         config/i386/vxworks.h.
15937         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
15938         i386/vx-common.h.
15940 2014-09-19  Olivier Hainque  <hainque@adacore.com>
15942         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
15943         * config/rs6000/t-vxworksmils: New file.
15944         * config/rs6000/vxworksmils.h: New file.
15946 2014-09-19  Olivier Hainque  <hainque@adacore.com>
15948         * varasm.c (default_section_type_flags): Flag .persistent.bss
15949         sections as SECTION_BSS.
15951 2014-09-19  Nick Clifton  <nickc@redhat.com>
15953         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
15954         pop'ed registers so that DCE does not eliminate them.
15956 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
15958         PR lto/63298
15959         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
15961 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
15963         * system.h (LIBGCC2_TF_CEXT): Poison.
15964         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
15965         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
15966         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
15967         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
15968         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
15969         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
15970         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
15971         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
15972         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
15974 2014-09-19  Kito Cheng  <kito@0xlab.org>
15976         * except.h: Fix header guard.
15977         * addresses.h: Add missing header guard.
15978         * cfghooks.h: Likewise.
15979         * collect-utils.h: Likewise.
15980         * collect2-aix.h: Likewise.
15981         * conditions.h: Likewise.
15982         * cselib.h: Likewise.
15983         * dwarf2asm.h: Likewise.
15984         * graphds.h: Likewise.
15985         * graphite-scop-detection.h: Likewise.
15986         * gsyms.h: Likewise.
15987         * hw-doloop.h: Likewise.
15988         * incpath.h: Likewise.
15989         * ipa-inline.h: Likewise.
15990         * ipa-ref.h: Likewise.
15991         * ira-int.h: Likewise.
15992         * ira.h: Likewise.
15993         * lra-int.h: Likewise.
15994         * lra.h: Likewise.
15995         * lto-section-names.h: Likewise.
15996         * read-md.h: Likewise.
15997         * reload.h: Likewise.
15998         * rtl-error.h: Likewise.
15999         * sdbout.h: Likewise.
16000         * targhooks.h: Likewise.
16001         * tree-affine.h: Likewise.
16002         * xcoff.h: Likewise.
16003         * xcoffout.h: Likewise.
16005 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
16007         PR debug/63285
16008         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
16009         if advance != 0.
16011 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
16013         PR target/61360
16014         * lra.c (lra): Call recog_init.
16016 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
16018         PR c++/62017
16019         * asan.c (transform_statements): Don't instrument clobber statements.
16021 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16023         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
16024         to neon_load1_1reg<q>.
16026 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
16028         PR debug/63284
16029         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
16030         if there are only debug stmts after the noreturn call, instead
16031         remove the debug stmts.
16033 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
16035         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
16036         (odr_types_equivalent_p): Use pair hash.
16037         (odr_subtypes_equivalent_p): Likewise, do structural compare
16038         on ODR types that may be mismatched.
16039         (warn_odr): Support warning when only one field is given.
16040         (odr_types_equivalent_p): Strenghten comparsions made;
16041         support VOIDtype.
16042         (add_type_duplicate): Update VISITED hash set.
16044 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16046         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
16047         Enable selection of 'posix' or no thread model.
16049 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
16051         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
16052         when architecture is older than ARMv7.
16054 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
16056         PR target/61853
16057         * config/pa/pa.c (pa_function_value): Directly handle aggregates
16058         that fit exactly in a word or double word.
16060 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
16062         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
16063         zmm/k regs support.
16065 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16066             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16067             Anna Tikhonova  <anna.tikhonova@intel.com>
16068             Ilya Tocar  <ilya.tocar@intel.com>
16069             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16070             Ilya Verbin  <ilya.verbin@intel.com>
16071             Kirill Yukhin  <kirill.yukhin@intel.com>
16072             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16074         * config/i386/i386.c
16075         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
16076         * config/i386/sse.md
16077         (define_mode_iterator VI48F_256): New.
16078         (define_mode_attr extract_type): Ditto.
16079         (define_mode_attr extract_suf): Ditto.
16080         (define_mode_iterator AVX512_VEC): Ditto.
16081         (define_expand
16082         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
16083         AVX512_VEC.
16084         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
16085         (define_insn
16086         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
16087         Ditto.
16088         (define_mode_attr extract_type_2): Ditto.
16089         (define_mode_attr extract_suf_2): Ditto.
16090         (define_mode_iterator AVX512_VEC_2): Ditto.
16091         (define_expand
16092         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
16093         AVX512_VEC_2 mode iterator.
16094         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
16095         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
16096         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
16097         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
16098         (define_split for V16FI mode): Ditto.
16099         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
16100         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
16101         (define_split for VI8F_256 mode): Ditto.
16102         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
16103         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
16104         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
16105         (define_split for VI4F_256 mode): Ditto.
16106         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
16107         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
16108         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
16109         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
16110         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
16111         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
16112         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
16113         Update `type' attribute, remove explicit `memory' attribute calculation.
16115 2014-09-16  Kito Cheng  <kito@0xlab.org>
16117         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
16118         ira_spilled_reg_stack_slots_num if using lra.
16119         (do_reload): Remove release ira_spilled_reg_stack_slots part.
16120         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
16121         make sure not using lra.
16122         (ira_reuse_stack_slot): Likewise.
16123         (ira_mark_new_stack_slot): Likewise.
16125 2014-09-15  Andi Kleen  <ak@linux.intel.com>
16127         * function.c (allocate_struct_function): Force
16128         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
16129         profiling is disabled.
16131 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
16133         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
16134         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
16135         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
16136         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
16137         macro with statically checked member functions.
16138         * rtl.h (rtx_insn::deleted): New method.
16139         (rtx_insn::set_deleted): Likewise.
16140         (rtx_insn::set_undeleted): Likewise.
16141         (INSN_DELETED_P): Remove.
16143 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
16145         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
16146         result of emit_jump_insn_before to a new variable.
16147         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
16148         (mark_jump_label_1): Likewise.
16149         (mark_jump_label_asm): Likewise.
16150         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
16151         * rtl.h (mark_jump_label): Adjust.
16153 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
16155         * Makefile.in (dg_target_exps): Remove.
16156         (check_gcc_parallelize): Change to just an upper bound number.
16157         (check-%-subtargets): Always print the non-parallelized goals.
16158         (check_p_vars, check_p_comma, check_p_subwork): Remove.
16159         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
16160         check_p_numbers3, check_p_numbers4, check_p_numbers5,
16161         check_p_numbers6): New variables.
16162         (check_p_numbers): Set to sequence from 1 to 9999.
16163         (check_p_subdirs): Set to sequence from 1 to minimum of
16164         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
16165         or 128.
16166         (check-%, check-parallel-%): Rewritten so that for parallelized
16167         testing each job runs all the *.exp files, with
16168         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
16170 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
16172         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
16173         rtx to rtx_insn *.
16174         (arc_sets_cc_p): Likewise.
16175         * config/arc/arc.c (arc_print_operand): Use methods of
16176         "final_sequence" for clarity, and to enable strengthening of
16177         locals "jump" and "delay" from rtx to rtx_insn *.
16178         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
16179         rtx_insn *; use method of rtx_sequence for typesafety.
16180         (arc_get_insn_variants): Use insn method of rtx_sequence for
16181         typesafety.
16182         (arc_pad_return): Likewise.
16183         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
16184         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
16185         dyn_cast to rtx_sequence *, using insn method for typesafety.
16186         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
16187         rtx_sequence * and use insn method when invoking get_attr_length.
16188         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
16189         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
16190         rtx_sequence *, introducing a local "seq", using its insn method
16191         from typesafety and clarity.
16192         (add_sched_insns_for_speculation): Strengthen local "next" from
16193         rtx to rtx_insn *.
16194         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
16195         (predicate_insn): Likewise.
16196         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
16197         second param.
16198         * config/cris/cris.c (cris_notice_update_cc): Likewise.
16199         * config/epiphany/epiphany-protos.h
16200         (extern void epiphany_insert_mode_switch_use): Likewise for param
16201         "insn".
16202         (get_attr_sched_use_fpu): Likewise for param.
16203         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
16204         Likewise for param "insn".
16205         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
16206         param "insn" of "target_insert_mode_switch_use" callback.
16207         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
16208         (frv_issues_to_branch_unit_p): Likewise.
16209         (frv_pack_insn_p): Likewise.
16210         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
16211         const rtx * (i.e. mutable rtx_def * const *) to
16212         rtx_insn * const *.
16213         * config/i386/i386-protos.h (standard_sse_constant_opcode):
16214         Strengthen first param from rtx to rtx_insn *.
16215         (output_fix_trunc): Likewise.
16216         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
16217         (output_fix_trunc): Likewise.
16218         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
16219         local "insn".
16220         (min_insn_size): Likewise for param "insn".
16221         (get_mem_group): Likewise.
16222         (is_cmp): Likewise.
16223         (get_insn_path): Likewise.
16224         (get_insn_group): Likewise.
16225         (count_num_restricted): Likewise.
16226         (fits_dispatch_window): Likewise.
16227         (add_insn_window): Likewise.
16228         (add_to_dispatch_window): Likewise.
16229         (debug_insn_dispatch_info_file): Likewise.
16230         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
16231         first param.
16232         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
16233         "cmp" and local "prev".
16234         (m32c_output_compare): Likewise for param "insn".
16235         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
16236         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
16237         (define_predicate "large_insn_p"): Likewise.
16238         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
16239         param from rtx to rtx_insn *.
16240         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
16241         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
16242         (m68k_sched_attr_size): Likewise.
16243         (sched_get_opxy_mem_type): Likewise for param "insn".
16244         (m68k_sched_attr_op_mem): Likewise.
16245         (sched_mem_operand_p): Likewise.
16246         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
16247         * config/mep/mep.c (mep_multi_slot): Likewise.
16248         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
16249         first param.
16250         (mips_sync_loop_insns): Likewise.
16251         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
16252         method of "final_sequence" for typesafety.
16253         (mips_process_sync_loop): Strengthen param "insn" from rtx to
16254         rtx_insn *.
16255         (mips_output_sync_loop): Likewise.
16256         (mips_sync_loop_insns): Likewise.
16257         (mips_74k_agen_init): Likewise.
16258         (mips_sched_init): Use NULL rather than NULL_RTX when working with
16259         insns.
16260         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
16261         Strengthen param "insn" from rtx to rtx_insn *.
16262         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
16263         local "insn".
16264         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
16265         param.
16266         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
16267         "insn".  Use method of rtx_sequence for typesafety.
16268         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
16269         rtx_insn *.
16270         (branch_needs_nop_p): Likewise.
16271         (use_skip_p): Likewise.
16272         (pa_insn_refs_are_delayed): Likewise.
16273         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
16274         for locals "insn", "ninsn".
16275         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
16276         "insn".
16277         (is_cracked_insn): Likewise.
16278         (is_branch_slot_insn): Likewise.
16279         (is_nonpipeline_insn): Likewise.
16280         (insn_terminates_group_p): Likewise.
16281         (insn_must_be_first_in_group): Likewise.
16282         (insn_must_be_last_in_group): Likewise.
16283         (force_new_group): Likewise for param "next_insn".
16284         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
16285         "insn".
16286         (s390_sched_score): Likewise.
16287         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
16288         (rtx sfunc_uses_reg): Likewise for sole param.
16289         * config/sh/sh.c (sh_print_operand): Use insn method of
16290         final_sequence for typesafety.
16291         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
16292         Use insn method of final_sequence for typesafety.
16293         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
16294         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
16295         for param.
16296         (eligible_for_return_delay): Likewise.
16297         (eligible_for_sibcall_delay): Likewise.
16298         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
16299         (eligible_for_return_delay): Likewise.
16300         (eligible_for_sibcall_delay): Likewise.
16301         * config/stormy16/stormy16-protos.h
16302         (xstormy16_output_cbranch_hi): Likewise for final param.
16303         (xstormy16_output_cbranch_si): Likewise.
16304         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
16305         (xstormy16_output_cbranch_si): Likewise.
16306         * config/v850/v850-protos.h (notice_update_cc): Likewise.
16307         * config/v850/v850.c (notice_update_cc): Likewise.
16309         * final.c (get_attr_length_1): Strengthen param "insn" and param
16310         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
16311         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
16312         (get_attr_min_length): Likewise.
16313         (shorten_branches): Likewise for signature of locals "length_fun"
16314         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
16315         from a checked cast and use its methods for clarity and to enable
16316         strengthening local "inner_insn" from rtx to rtx_insn *.
16317         * genattr.c (gen_attr): When writing out the prototypes of the
16318         various generated "get_attr_" functions, strengthen the params of
16319         the non-const functions from rtx to rtx_insn *.
16320         Similarly, strengthen the params of insn_default_length,
16321         insn_min_length, insn_variable_length_p, insn_current_length.
16322         (main): Similarly, strengthen the param of num_delay_slots,
16323         internal_dfa_insn_code, insn_default_latency, bypass_p,
16324         insn_latency, min_issue_delay, print_reservation,
16325         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
16326         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
16327         to hook_int_rtx_insn_unreachable.
16328         * genattrtab.c (write_attr_get): When writing out the generated
16329         "get_attr_" functions, strengthen the param "insn" from rtx to
16330         rtx_insn *, eliminating a checked cast.
16331         (make_automaton_attrs): When writing out prototypes of
16332         "internal_dfa_insn_code_", "insn_default_latency_" functions
16333         and the "internal_dfa_insn_code" and "insn_default_latency"
16334         callbacks, strengthen their params from rtx to rtx_insn *
16335         * genautomata.c (output_internal_insn_code_evaluation): When
16336         writing out code, add a checked cast from rtx to rtx_insn * when
16337         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
16338         (output_dfa_insn_code_func): Strengthen param of generated
16339         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
16340         (output_trans_func): Likewise for generated function
16341         "state_transition".
16342         (output_internal_insn_latency_func): When writing out generated
16343         function "internal_insn_latency", rename params from "insn" and
16344         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
16345         locals "insn" and "insn2" as rtx_insn * with checked casts once
16346         we've proven that we're not dealing with const0_rtx.
16347         (output_insn_latency_func):  Strengthen param of generated
16348         function "insn_latency" from rtx to rtx_insn *.
16349         (output_print_reservation_func): Likewise for generated function
16350         "print_reservation".
16351         (output_insn_has_dfa_reservation_p): Likewise for generated
16352         function "insn_has_dfa_reservation_p".
16353         * hooks.c (hook_int_rtx_unreachable): Rename to...
16354         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
16355         from rtx to rtx_insn *.
16356         * hooks.h (hook_int_rtx_unreachable): Likewise.
16357         (extern int hook_int_rtx_insn_unreachable): Likewise.
16358         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
16359         (get_attr_min_length): Likewise.
16360         * recog.c (get_enabled_alternatives): Likewise.
16361         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
16362         * reorg.c (find_end_label): Introduce local rtx "pat" and
16363         strengthen local "insn" from rtx to rtx_insn *.
16364         (redundant_insn): Use insn method of "seq" rather than element for
16365         typesafety; strengthen local "control" from rtx to rtx_insn *.
16366         * resource.c (mark_referenced_resources): Add checked cast to
16367         rtx_insn * within INSN/JUMP_INSN case.
16368         (mark_set_resources): Likewise.
16369         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
16370         rtx to rtx_insn *.
16372 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
16374         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
16375         param "label" from rtx to rtx_insn *.
16376         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
16377         and local "op".
16378         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
16379         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
16380         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
16381         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
16382         * final.c (default_label_align_after_barrier_max_skip): Strengthen
16383         param from rtx to rtx_insn *.
16384         (default_loop_align_max_skip): Likewise.
16385         (default_label_align_max_skip): Likewise.
16386         (default_jump_align_max_skip): Likewise.
16387         * target.def (label_align_after_barrier_max_skip): Likewise.
16388         (loop_align_max_skip): Likewise.
16389         (label_align_max_skip): Likewise.
16390         (jump_align_max_skip): Likewise.
16391         * targhooks.h (default_label_align_after_barrier_max_skip):
16392         Likewise.
16393         (default_loop_align_max_skip): Likewise.
16394         (default_label_align_max_skip): Likewise.
16395         (default_jump_align_max_skip): Likewise.
16397 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
16399         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
16400         from const_rtx to const rtx_insn *.  Update union members from rtx
16401         to rtx_insn *.
16402         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
16403         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
16404         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
16405         strengthen both params from const_rtx to const rtx_insn *.
16406         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
16407         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
16408         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
16409         rtx_insn *.
16410         * target.def (can_follow_jump): Strengthen both params from
16411         const_rtx to const rtx_insn *, and update default implementation
16412         from hook_bool_const_rtx_const_rtx_true to
16413         hook_bool_const_rtx_insn_const_rtx_insn_true.
16415 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
16417         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
16418         "insn" from rtx to rtx_insn *.
16419         * sched-int.h (deps_start_bb): Likewise for 2nd param.
16421 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16422             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16423             Anna Tikhonova  <anna.tikhonova@intel.com>
16424             Ilya Tocar  <ilya.tocar@intel.com>
16425             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16426             Ilya Verbin  <ilya.verbin@intel.com>
16427             Kirill Yukhin  <kirill.yukhin@intel.com>
16428             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16430         * config/i386/sse.md
16431         (define_insn "vcvtph2ps<mask_name>"): Add masking.
16432         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
16433         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
16434         (define_expand "vcvtps2ph_mask"): New.
16435         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
16436         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
16437         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
16439 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16440             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16441             Anna Tikhonova  <anna.tikhonova@intel.com>
16442             Ilya Tocar  <ilya.tocar@intel.com>
16443             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16444             Ilya Verbin  <ilya.verbin@intel.com>
16445             Kirill Yukhin  <kirill.yukhin@intel.com>
16446             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16448         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
16449         New.
16450         (define_mode_iterator VI24_AVX512BW_1): Ditto.
16451         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
16452         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
16453         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
16454         also for TARGET_AVX512VL.
16455         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
16457 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
16459         * doc/install.texi (Options specification): add
16460         --disable-libsanitizer item.
16462 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
16463             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16465         PR target/61407
16466         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
16467         and above.
16468         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
16469         kernel version check to avoid incrementing it after every major OS X
16470         release.
16471         (darwin_default_min_version): Avoid static memory buffer.
16473 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
16475         * tree.c (need_assembler_name_p): Store C++ type mangling only
16476         for aggregates.
16478 2014-09-13  Marek Polacek  <polacek@redhat.com>
16480         * tree.c (protected_set_expr_location): Don't check whether T is
16481         non-null here.
16483 2014-09-12  DJ Delorie  <dj@redhat.com>
16485         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
16486         (extend_and_shift1_hipsi2): Likewise.
16487         (extend_and_shift2_hipsi2): Likewise.
16489 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
16491         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
16492         with NULL when dealing with an insn.
16493         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
16494         from rtx to rtx_insn *.
16495         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
16496         const_rtx to const rtx_insn *.
16497         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
16499 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
16501         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
16502         assert.
16504 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
16506         * target.def (libgcc_floating_mode_supported_p): New hook.
16507         * targhooks.c (default_libgcc_floating_mode_supported_p): New
16508         function.
16509         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
16510         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
16511         (LIBGCC2_HAS_TF_MODE): Remove.
16512         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
16513         * doc/tm.texi: Regenerate.
16514         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
16515         machine mode.
16516         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
16517         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
16518         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
16519         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
16520         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16521         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
16522         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
16523         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
16524         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
16525         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
16526         function.
16527         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
16528         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16529         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16530         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16531         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16532         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16533         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16534         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
16535         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
16536         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
16537         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
16538         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
16539         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
16540         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
16541         Remove.
16542         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
16543         New macro.
16544         (ia64_libgcc_floating_mode_supported_p): New function.
16545         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
16546         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
16547         (IA64_NO_LIBGCC_TFMODE): Define.
16548         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
16549         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
16550         macro.
16551         (pdp11_scalar_mode_supported_p): New function.
16552         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
16553         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
16555 2014-09-12  Richard Biener  <rguenther@suse.de>
16557         PR middle-end/63237
16558         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
16560 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
16562         * tree.c (integer_each_onep): New function.
16563         * tree.h (integer_each_onep): Declare it.
16564         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
16565         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
16566         (X & 1) == 0 for vector and complex.
16568 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16570         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
16571         for A57.
16572         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
16573         cost to spilling from integer to FP registers.
16575 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16577         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
16578         move handling.
16579         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
16580         are now handled correctly.
16582 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16584         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
16585         handling of CALLER_SAVE_REGS and POINTER_REGS.
16587 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16589         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
16590         the number of hard registers.
16592 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16593             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16594             Anna Tikhonova  <anna.tikhonova@intel.com>
16595             Ilya Tocar  <ilya.tocar@intel.com>
16596             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16597             Ilya Verbin  <ilya.verbin@intel.com>
16598             Kirill Yukhin  <kirill.yukhin@intel.com>
16599             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16601         * config/i386/sse.md
16602         (define_mode_iterator VI48_AVX512VL): New.
16603         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
16604         "avx512f_vternlog<mode>_maskz" and update mode iterator.
16605         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
16606         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
16607         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
16608         "avx512f_vternlog<mode>_mask" and update mode iterator.
16609         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
16610         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
16611         iterator.
16612         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
16613         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
16614         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
16615         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
16616         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
16617         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
16619 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16620             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16621             Anna Tikhonova  <anna.tikhonova@intel.com>
16622             Ilya Tocar  <ilya.tocar@intel.com>
16623             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16624             Ilya Verbin  <ilya.verbin@intel.com>
16625             Kirill Yukhin  <kirill.yukhin@intel.com>
16626             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16628         * config/i386/sse.md (VI128_256): Delete.
16629         (define_mode_iterator VI124_256): New.
16630         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
16631         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
16632         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
16633         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
16634         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
16635         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
16636         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
16637         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
16638         iterator.
16639         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
16640         in presence of AVX-512.
16642 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16643             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16644             Anna Tikhonova  <anna.tikhonova@intel.com>
16645             Ilya Tocar  <ilya.tocar@intel.com>
16646             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16647             Ilya Verbin  <ilya.verbin@intel.com>
16648             Kirill Yukhin  <kirill.yukhin@intel.com>
16649             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16651         * config/i386/sse.md
16652         (define_expand "<avx512>_gathersi<mode>"): Rename from
16653         "avx512f_gathersi<mode>".
16654         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
16655         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
16656         (define_expand "<avx512>_gatherdi<mode>"): Rename from
16657         "avx512f_gatherdi<mode>".
16658         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
16659         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
16660         wide versions.
16661         (define_expand "<avx512>_scattersi<mode>"): Rename from
16662         "avx512f_scattersi<mode>".
16663         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
16664         (define_expand "<avx512>_scatterdi<mode>"): Rename from
16665         "avx512f_scatterdi<mode>".
16666         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
16668 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
16670         * ira.h (ira_finish_once): Delete.
16671         * ira-int.h (target_ira_int::~target_ira_int): Declare.
16672         (target_ira_int::free_ira_costs): Likewise.
16673         (target_ira_int::free_register_move_costs): Likewise.
16674         (ira_finish_costs_once): Delete.
16675         * ira.c (free_register_move_costs): Replace with...
16676         (target_ira_int::free_register_move_costs): ...this new function.
16677         (target_ira_int::~target_ira_int): Define.
16678         (ira_init): Call free_register_move_costs as a member function rather
16679         than a global function.
16680         (ira_finish_once): Delete.
16681         * ira-costs.c (free_ira_costs): Replace with...
16682         (target_ira_int::free_ira_costs): ...this new function.
16683         (ira_init_costs): Call free_ira_costs as a member function rather
16684         than a global function.
16685         (ira_finish_costs_once): Delete.
16686         * target-globals.c (target_globals::~target_globals): Call the
16687         target_ira_int destructor.
16688         * toplev.c: Include lra.h.
16689         (finalize): Call lra_finish_once rather than ira_finish_once.
16691 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
16693         * common.opt (flto-odr-type-merging): New flag.
16694         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
16695         (types_same_for_odr): Likewise.
16696         (odr_subtypes_equivalent_p): Likewise.
16697         (add_type_duplicate): Do not walk type variants.
16698         (register_odr_type): New function.
16699         * ipa-utils.h (register_odr_type): Declare.
16700         (odr_type_p): New function.
16701         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
16702         TYPE_DECLs
16703         * doc/invoke.texi (-flto-odr-type-merging): Document.
16704         * tree.c (need_assembler_name_p): Compute ODR names when asked
16705         for it.
16706         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
16708 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
16710         PR target/63228
16711         * config/i386/i386.c (ix86_option_override_internal): Also turn
16712         off OPTION_MASK_ABI_X32 for -m16.
16714 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
16716         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
16717         GPR instead of P.
16719 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
16721         PR target/58757
16722         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
16723         Directly forward to __*_DENORM_MIN__.
16725 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
16727         * rtl.h (LABEL_REF_LABEL): New macro.
16729         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
16730         of XEXP (, 0), where we know that we have a LABEL_REF.
16731         * cfgbuild.c (make_edges): Likewise.
16732         (purge_dead_tablejump_edges): Likewise.
16733         * cfgexpand.c (convert_debug_memory_address): Likewise.
16734         * cfgrtl.c (patch_jump_insn): Likewise.
16735         * combine.c (distribute_notes): Likewise.
16736         * cse.c (hash_rtx_cb): Likewise.
16737         (exp_equiv_p): Likewise.
16738         (fold_rtx): Likewise.
16739         (check_for_label_ref): Likewise.
16740         * cselib.c (rtx_equal_for_cselib_1): Likewise.
16741         (cselib_hash_rtx): Likewise.
16742         * emit-rtl.c (mark_label_nuses): Likewise.
16743         * explow.c (convert_memory_address_addr_space): Likewise.
16744         * final.c (output_asm_label): Likewise.
16745         (output_addr_const): Likewise.
16746         * gcse.c (add_label_notes): Likewise.
16747         * genconfig.c (walk_insn_part): Likewise.
16748         * genrecog.c (validate_pattern): Likewise.
16749         * ifcvt.c (cond_exec_get_condition): Likewise.
16750         (noce_emit_store_flag): Likewise.
16751         (noce_get_alt_condition): Likewise.
16752         (noce_get_condition): Likewise.
16753         * jump.c (maybe_propagate_label_ref): Likewise.
16754         (mark_jump_label_1): Likewise.
16755         (redirect_exp_1): Likewise.
16756         (rtx_renumbered_equal_p): Likewise.
16757         * lra-constraints.c (operands_match_p): Likewise.
16758         * reload.c (operands_match_p): Likewise.
16759         (find_reloads): Likewise.
16760         * reload1.c (set_label_offsets): Likewise.
16761         * reorg.c (get_branch_condition): Likewise.
16762         * rtl.c (rtx_equal_p_cb): Likewise.
16763         (rtx_equal_p): Likewise.
16764         * rtlanal.c (reg_mentioned_p): Likewise.
16765         (rtx_referenced_p): Likewise.
16766         (get_condition): Likewise.
16767         * sched-vis.c (print_value): Likewise.
16768         * varasm.c (const_hash_1): Likewise.
16769         (compare_constant): Likewise.
16770         (const_rtx_hash_1): Likewise.
16771         (output_constant_pool_1): Likewise.
16773 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
16775         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
16776         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
16777         instead of minus.
16778         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
16779         cr6_test_for_lt_reverse): Ditto.
16781 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
16783         PR c++/61489
16784         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
16786 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
16788         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
16789         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
16790         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
16791         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
16792         Delete.
16794         (aarch64_fold_builtin): Remove all reinterpret cases.
16796         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
16798         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
16800         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
16801         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
16802         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
16803         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
16804         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
16805         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
16806         aarch64_reinterpretv2df<mode>): Delete.
16808         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
16810         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
16811         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
16812         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
16813         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
16814         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
16815         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
16816         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
16817         vreinterpret_u32_f64): Use cast.
16819         * config/aarch64/iterators.md (VD_RE): Delete.
16821 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
16823         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
16824         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
16825         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
16826         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
16827         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
16828         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
16829         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
16830         Replace inline assembler with __aarch64_vset_lane_any.
16832 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
16834         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
16835         types.
16836         (vmull_high_lane_s32): Likewise.
16837         (vmull_high_lane_u16): Likewise.
16838         (vmull_high_lane_u32): Likewise.
16840 2014-09-11  Jason Merrill  <jason@redhat.com>
16842         PR c++/58678
16843         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
16845 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
16847         PR target/63223
16848         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
16849         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
16850         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
16852 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16853             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16854             Anna Tikhonova  <anna.tikhonova@intel.com>
16855             Ilya Tocar  <ilya.tocar@intel.com>
16856             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16857             Ilya Verbin  <ilya.verbin@intel.com>
16858             Kirill Yukhin  <kirill.yukhin@intel.com>
16859             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16861         * config/i386/sse.md
16862         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
16863         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
16864         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
16865         New.
16866         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
16867         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
16868         iterator.
16869         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
16870         New.
16871         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
16872         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
16873         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
16874         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
16875         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
16876         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
16877         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
16878         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
16879         iterator.
16880         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
16881         New.
16882         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
16883         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
16884         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
16886 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
16888         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
16889         to access removed nodes.
16891 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
16893         PR tree-optimization/63186
16894         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
16895         (mark_nonssa_use): Likewise.
16896         (verify_non_ssa_vars): Verify all header blocks for label
16897         definitions.
16899 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16900             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16901             Anna Tikhonova  <anna.tikhonova@intel.com>
16902             Ilya Tocar  <ilya.tocar@intel.com>
16903             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16904             Ilya Verbin  <ilya.verbin@intel.com>
16905             Kirill Yukhin  <kirill.yukhin@intel.com>
16906             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16908         * config/i386/sse.md
16909         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
16910         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
16911         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
16912         "<avx2_avx512f>_permvar<mode><mask_name>".
16913         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
16914         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
16915         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
16916         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
16917         Ditto.
16918         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
16919         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
16920         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
16921         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
16923 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
16925         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
16926         V2DF, V4SF, DF, and DI modes.
16927         (vsx_fmav2df2): Likewise.
16928         (vsx_float_fix_<mode>2): Likewise.
16929         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
16931 2014-09-10  Xinliang David Li  <davidxl@google.com>
16933         PR target/63209
16934         * config/arm/arm.md (movcond_addsi): Handle case where source
16935         and target operands are the same.
16937 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
16939         * final.c (this_is_asm_operands): Strengthen this variable from
16940         rtx to const rtx_insn *.
16941         * output.h (this_is_asm_operands): Likewise.
16942         * rtl-error.c (location_for_asm): Strengthen param "insn" from
16943         const_rtx to const rtx_insn *.
16944         (diagnostic_for_asm): Likewise.
16945         * rtl-error.h (error_for_asm): Likewise.
16946         (warning_for_asm): Likewise.
16948 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
16950         * genextract.c (print_header): When writing out insn_extract to
16951         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
16952         * recog.h (insn_extract): Strengthen the param from rtx to
16953         rtx_insn *.
16955 2014-09-10  Mike Stump  <mikestump@comcast.net>
16957         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
16958         8.6.1.
16960 2014-09-10  Martin Jambor  <mjambor@suse.cz>
16962         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
16963         (analyze): Do not set analyze flag if expand_thunk returns false;.
16964         (create_wrapper): Likewise.
16965         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
16967 2014-09-10  Martin Jambor  <mjambor@suse.cz>
16969         PR ipa/61654
16970         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
16971         new decl properly.  Analyze the new thunk if it is expanded.
16973 2014-09-10  Andreas Schwab  <schwab@suse.de>
16975         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
16976         [USED_FOR_TARGET]: Define.
16978 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
16980         * config/mips/mips.c (mips_secondary_reload_class): Handle
16981         regno < 0 case.
16983 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
16985         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
16986         assignment.
16988 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
16990         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
16991         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
16992         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
16993         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
16994         flag_delete_null_pointer_checks for them.
16995         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16996         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
16997         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
16998         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
16999         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
17000         stmt's iterator.
17001         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
17002         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
17003         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
17004         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
17005         * doc/invoke.texi (-fsanitize=nonnull-attribute,
17006         -fsanitize=returns-nonnull-attribute): Document.
17008         * ubsan.h (struct ubsan_mismatch_data): Removed.
17009         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
17010         * ubsan.c (ubsan_source_location): For unknown locations,
17011         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
17012         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
17013         Allow more than one location and arbitrary extra arguments passed
17014         in ... instead of through MISMATCH pointer.
17015         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
17016         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
17017         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
17018         callers.
17020 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17021             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17022             Anna Tikhonova  <anna.tikhonova@intel.com>
17023             Ilya Tocar  <ilya.tocar@intel.com>
17024             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17025             Ilya Verbin  <ilya.verbin@intel.com>
17026             Kirill Yukhin  <kirill.yukhin@intel.com>
17027             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17029         * config/i386/sse.md
17030         (define_mode_iterator VI48F): New.
17031         (define_insn "<avx512>_compress<mode>_mask"): Rename from
17032         "avx512f_compress<mode>_mask" and update mode iterator.
17033         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
17034         "avx512f_compressstore<mode>_mask" and update mode iterator.
17035         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
17036         "avx512f_expand<mode>_maskz" and update mode iterator.
17037         (define_insn "<avx512>_expand<mode>_mask"): Rename from
17038         "avx512f_expand<mode>_mask" and update mode iterator.
17040 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17041             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17042             Anna Tikhonova  <anna.tikhonova@intel.com>
17043             Ilya Tocar  <ilya.tocar@intel.com>
17044             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17045             Ilya Verbin  <ilya.verbin@intel.com>
17046             Kirill Yukhin  <kirill.yukhin@intel.com>
17047             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17049         * config/i386/i386.c
17050         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
17051         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
17052         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
17053         avx512dq_rangepv4sf_mask.
17054         * config/i386/sse.md
17055         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
17056         UNSPEC_RANGE.
17057         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
17058         (define_insn "reduces<mode>"): Ditto.
17059         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
17060         Ditto.
17061         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
17062         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
17063         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
17065 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17066             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17067             Anna Tikhonova  <anna.tikhonova@intel.com>
17068             Ilya Tocar  <ilya.tocar@intel.com>
17069             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17070             Ilya Verbin  <ilya.verbin@intel.com>
17071             Kirill Yukhin  <kirill.yukhin@intel.com>
17072             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17074         * config/i386/i386.c
17075         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
17076         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
17077         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
17078         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
17079         avx512vl_getmantv2df_mask.
17080         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
17081         avx512f_vgetmantv4sf_round.
17082         * config/i386/sse.md
17083         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
17084         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
17085         mode iterator.
17086         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
17087         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
17088         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
17089         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
17090         iterator..
17091         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
17092         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
17093         update mode iterator.
17094         (define_expand
17095         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
17096         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
17097         mode iterator.
17098         (define_insn
17099         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
17100         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
17101         update mode iterator.
17102         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
17103         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
17104         iterator..
17105         (define_insn
17106         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
17107         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
17108         mode iterator..
17109         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
17110         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
17111         update mode iterator.
17112         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
17113         "avx512f_getmant<mode><round_saeonly_name>".
17115 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
17117         PR ipa/63166
17118         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
17120 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17121             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17122             Anna Tikhonova  <anna.tikhonova@intel.com>
17123             Ilya Tocar  <ilya.tocar@intel.com>
17124             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17125             Ilya Verbin  <ilya.verbin@intel.com>
17126             Kirill Yukhin  <kirill.yukhin@intel.com>
17127             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17129         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
17130         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
17131         (define_mode_iterator FMAMODE_AVX512): New.
17132         (define_mode_iterator FMAMODE): Remove conditions.
17133         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
17134         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
17135         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
17136         mode iterator.
17137         (define_mode_iterator FMAMODE_NOVF512): Remove.
17138         (define_insn "*fma_fmadd_<mode>"): Rename from
17139         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
17140         FMAMODE mode iterator.
17141         (define_mode_iterator VF_SF_AVX512VL): New.
17142         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
17143         Use VF_SF_AVX512VL mode iterator.
17144         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
17145         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
17146         iterator.
17147         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
17148         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17149         iterator.
17150         (define_insn "*fma_fmsub_<mode>"): Rename from
17151         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
17152         FMAMODE mode iterator.
17153         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
17154         Use VF_SF_AVX512VL mode iterator.
17155         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
17156         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
17157         iterator.
17158         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
17159         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17160         iterator.
17161         (define_insn "*fma_fnmadd_<mode>"): Rename from
17162         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
17163         use FMAMODE mode iterator.
17164         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
17165         Use VF_SF_AVX512VL mode iterator.
17166         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
17167         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
17168         iterator.
17169         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
17170         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17171         iterator.
17172         (define_insn "*fma_fnmsub_<mode>"): Rename from
17173         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
17174         FMAMODE mode iterator.
17175         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
17176         Use VF_SF_AVX512VL mode iterator.
17177         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
17178         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
17179         iterator.
17180         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
17181         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17182         iterator.
17183         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
17184         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
17185         use VF_AVX512VL mode iterator.
17186         (define_insn "*fma_fmaddsub_<mode>"): Rename from
17187         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
17188         remove subst usage.
17189         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
17190         Use VF_SF_AVX512VL mode iterator.
17191         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
17192         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
17193         iterator.
17194         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
17195         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17196         iterator.
17197         (define_insn "*fma_fmsubadd_<mode>"): Rename from
17198         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
17199         remove usage of subst.
17200         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
17201         Use VF_SF_AVX512VL mode iterator.
17202         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
17203         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
17204         iterator.
17205         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
17206         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
17207         iterator.
17209 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
17211         Revert r213751:
17212         * calls.c (precompute_arguments): Check
17213          promoted_for_signed_and_unsigned_p and set the promoted mode.
17214         (promoted_for_signed_and_unsigned_p): New function.
17215         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
17216         and set the promoted mode.
17217         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
17218         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
17219         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
17221 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17223         * opth-gen.awk: Generate mapping from cpp message reasons to the
17224         options that enable them.
17225         * doc/options.texi (CppReason): Document.
17227 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17229         * doc/invoke.texi (Wnormalized=): Update.
17231 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
17233         PR target/63195
17234         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
17235         operands.  Split off the constant operand alternative to ...
17236         (*bool<mode>3_imm): New.
17238 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
17240         * rtl.h (single_set_2): Strengthen first param from const_rtx to
17241         const rtx_insn *, and move prototype to above...
17242         (single_set): ...this.  Convert this from a macro to an inline
17243         function, enforcing the requirement that the param is a const
17244         rtx_insn *.
17245         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
17247         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
17248         Strengthen both params from rtx to rtx_insn *.
17249         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
17250         Likewise; introduce locals "producer_set", "consumer_set", using
17251         them in place of "producer" and "consumer" when dealing with SET
17252         rather than insn.
17253         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
17254         when invoking single_set in region guarded by INSN_P.
17255         (avr_out_bitop): Likewise.
17256         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
17257         region guarded by GET_CODE check, using methods to strengthen
17258         local "this_insn" from rtx to rtx_insn *, and for clarity.
17259         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
17260         Strengthen local "insn" from rtx to rtx_insn *.
17261         (define_insn_and_split "xload<mode>_A"): Likewise.
17262         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
17263         "insn".
17264         (find_load): Likewise for return type.
17265         (workaround_speculation): Likewise for both locals named
17266         "load_insn".
17267         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
17268         local "cc0_user".
17269         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
17270         for local "prev".
17271         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
17272         param 2.
17273         * config/h8300/h8300.c (notice_update_cc): Likewise.
17274         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
17275         "insn" and "dep_insn".
17276         (exact_store_load_dependency): Likewise for both params.
17277         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
17278         since this now clashes with inline function.  Instead, delay
17279         calling single_set until the point where its needed, and then
17280         assign the result to "compare_set" and rework the conditional that
17281         follows.
17282         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
17283         local "last" from rtx to rtx_insn *.
17284         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
17285         second param.
17286         (mips_store_data_bypass_p): Likewise for both params.
17287         * config/mips/mips.c (mips_load_store_insns): Likewise for second
17288         param.
17289         (mips_store_data_bypass_p): Likewise for both params.
17290         (mips_orphaned_high_part_p): Likewise for param "insn".
17291         * config/mn10300/mn10300.c (extract_bundle): Likewise.
17292         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
17293         Introduce local rtx "insn2_pat".
17294         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
17295         "ninsn".
17296         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
17297         Introduce local rtx "set", using it in place of "insn" for the
17298         result of single_set.  This appears to fix a bug, since the call
17299         to find_regno_note on a SET does nothing.
17300         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
17301         params from rtx to rtx_insn *.
17302         (set_to_load_agen): Likewise.
17303         * config/s390/s390.c (s390_label_align): Likewise for local
17304         "prev_insn".  Introduce new rtx locals "set" and "src", using
17305         them in place of "prev_insn" for the results of single_set
17306         and SET_SRC respectively.
17307         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
17308         Introduce new rtx local "set" using in place of "jump" for the
17309         result of single_set.  Use SET_SRC (set) rather than plain
17310         XEXP (set, 1).
17311         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
17312         rtx to rtx_insn *.
17313         (noncall_uses_reg): Likewise.
17314         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
17315         guarded by GET_CODE check, using its methods for clarity, and to
17316         enable strengthening local "this_insn" from rtx to rtx_insn *.
17317         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
17318         "insn" from rtx to rtx_insn *.
17319         (define_expand "umulhisi3"): Likewise.
17320         (define_expand "smulsi3_highpart"): Likewise.
17321         (define_expand "umulsi3_highpart"): Likewise.
17322         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
17323         local "after".  Replace GET_CODE check with a dyn_cast,
17324         introducing new local rtx_sequence * "seq", using insn method for
17325         typesafety.
17327         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
17328         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
17329         place of "insn" once we're dealing with patterns rather than the
17330         input insn.
17331         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
17332         (scan_trace): Likewise for local "elt", updating lookups within
17333         sequence to use insn method rather than element method.
17334         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
17335         to rtx_insn *.
17336         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
17337         * ifcvt.c (noce_try_abs): Likewise for local "insn".
17338         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
17339         invoking single_set.
17340         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
17341         "insn" from rtx to rtx_insn *.
17342         (skip_usage_debug_insns): Likewise for return type, adding a
17343         checked cast.
17344         (check_secondary_memory_needed_p): Likewise for local "insn".
17345         (inherit_reload_reg): Likewise.
17346         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
17347         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
17348         checked casts.
17349         (store_data_bypass_p): Likewise for both params.
17350         (if_test_bypass_p): Likewise.
17351         * recog.h (store_data_bypass_p): Likewise for both params.
17352         (if_test_bypass_p): Likewise.
17353         * reload.c (find_equiv_reg): Likewise for local "where".
17354         * reorg.c (delete_jump): Likewise for param "insn".
17355         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
17356         to const rtx_insn *.
17357         * store-motion.c (replace_store_insn): Likewise for param "del".
17358         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
17359         and use its methods for clarity, and to strengthen local "del"
17360         from rtx to rtx_insn *.
17361         (build_store_vectors): Use insn method of "st" when calling
17362         replace_store_insn for typesafety and clarity.
17364 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17366         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
17367         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
17368         on how to make it legal in future.
17370 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
17372         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
17373         to rtx_insn *.
17374         (restinsn): Likewise.
17375         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
17376         Likewise for param.
17377         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
17378         Likewise.
17379         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
17380         first param.
17381         (arc_hazard): Likewise for both params.
17382         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
17383         checked casts to rtx_sequence * and uses of the insn method for
17384         type-safety.
17385         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
17386         (arc_adjust_insn_length): Likewise for param "insn".
17387         (struct insn_length_parameters_s): Likewise for first param of
17388         "get_variants" callback field.
17389         (arc_get_insn_variants): Likewise for first param and local
17390         "inner".  Replace a check of GET_CODE with a dyn_cast to
17391         rtx_sequence *, using methods for type-safety and clarity.
17392         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
17393         rtx_sequence * and uses of the insn method for type-safety when
17394         invoking arc_adjust_insn_length.
17395         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
17396         for param.
17397         (arm_address_offset_is_imm): Likewise.
17398         (struct tune_params): Likewise for params 1 and 3 of the
17399         "sched_adjust_cost" callback field.
17400         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
17401         params 1 and 3 ("insn" and "dep").
17402         (xscale_sched_adjust_cost): Likewise.
17403         (fa726te_sched_adjust_cost): Likewise.
17404         (cortexa7_older_only): Likewise for param "insn".
17405         (cortexa7_younger): Likewise.
17406         (arm_attr_length_move_neon): Likewise.
17407         (arm_address_offset_is_imm): Likewise.
17408         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
17409         * config/avr/avr.c (avr_notice_update_cc): Likewise.
17410         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
17411         (workaround_speculation): Likewise for local "last_condjump".
17412         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
17413         (shadow_or_blockage_p): Likewise.
17414         (get_unit_reqs): Likewise.
17415         (get_unit_operand_masks): Likewise.
17416         (c6x_registers_update): Likewise.
17417         (returning_call_p): Likewise.
17418         (can_use_callp): Likewise.
17419         (convert_to_callp): Likewise.
17420         (find_last_same_clock): Likwise for local "t".
17421         (reorg_split_calls): Likewise for local "shadow".
17422         (hwloop_pattern_reg): Likewise for param "insn".
17423         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
17424         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
17425         (frv_extract_membar): Likewise.
17426         (frv_optimize_membar_local): Strengthen param "last_membar" from
17427         rtx * to rtx_insn **.
17428         (frv_optimize_membar_global): Strengthen param "membar" from rtx
17429         to rtx_insn *.
17430         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
17431         to rtx_insn **.
17432         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
17433         both params from rtx to rtx_insn *.
17434         (ia64_ld_address_bypass_p): Likewise.
17435         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
17436         "insn".
17437         (ia64_safe_type): Likewise.
17438         (group_barrier_needed): Likewise.
17439         (safe_group_barrier_needed): Likewise.
17440         (ia64_single_set): Likewise.
17441         (is_load_p): Likewise.
17442         (record_memory_reference): Likewise.
17443         (get_mode_no_for_insn): Likewise.
17444         (important_for_bundling_p): Likewise.
17445         (unknown_for_bundling_p): Likewise.
17446         (ia64_st_address_bypass_p): Likewise for both params.
17447         (ia64_ld_address_bypass_p): Likewise.
17448         (expand_vselect): Introduce new local rtx_insn * "insn", using it
17449         in place of rtx "x" after the emit_insn call.
17450         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
17451         Strengthen param from rtx to rtx_insn *.
17452         (ix86_agi_dependent): Likewise for both params.
17453         (ix86_attr_length_immediate_default): Likewise for param 1.
17454         (ix86_attr_length_address_default): Likewise for param.
17455         (ix86_attr_length_vex_default): Likewise for param 1.
17456         * config/i386/i386.c (ix86_attr_length_immediate_default):
17457         Likewise for param "insn".
17458         (ix86_attr_length_address_default): Likewise.
17459         (ix86_attr_length_vex_default): Likewise.
17460         (ix86_agi_dependent): Likewise for both params.
17461         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
17462         (vselect_insn): Likewise for this variable.
17463         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
17464         for param 1.
17465         (m68k_sched_attr_opy_type): Likewise.
17466         * config/m68k/m68k.c (sched_get_operand): Likewise.
17467         (sched_attr_op_type): Likewise.
17468         (m68k_sched_attr_opx_type): Likewise.
17469         (m68k_sched_attr_opy_type): Likewise.
17470         (sched_get_reg_operand): Likewise.
17471         (sched_get_mem_operand): Likewise.
17472         (m68k_sched_address_bypass_p): Likewise for both params.
17473         (sched_get_indexed_address_scale): Likewise.
17474         (m68k_sched_indexed_address_bypass_p): Likewise.
17475         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
17476         (m68k_sched_indexed_address_bypass_p): Likewise.
17477         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
17478         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
17479         removing another.
17480         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
17481         params from rtx to rtx_insn *.
17482         (mips_fmadd_bypass): Likewise.
17483         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
17484         (mips_linked_madd_p): Likewise.
17485         (mips_macc_chains_last_hilo): Likewise for this variable.
17486         (mips_macc_chains_record): Likewise for param.
17487         (vr4130_last_insn): Likewise for this variable.
17488         (vr4130_swap_insns_p): Likewise for both params.
17489         (mips_ls2_variable_issue): Likewise for param.
17490         (mips_need_noat_wrapper_p): Likewise for param "insn".
17491         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
17492         in place of "x" after the emit_insn.
17493         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
17494         params from rtx to rtx_insn *.
17495         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
17496         (pa_combine_instructions): Introduce local "par" for result of
17497         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
17498         to make_insn_raw.
17499         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
17500         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
17501         (rl78_alloc_physical_registers_op1): Likewise.
17502         (rl78_alloc_physical_registers_op2): Likewise.
17503         (rl78_alloc_physical_registers_ro1): Likewise.
17504         (rl78_alloc_physical_registers_cmp): Likewise.
17505         (rl78_alloc_physical_registers_umul): Likewise.
17506         (rl78_alloc_address_registers_macax): Likewise.
17507         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
17508         * config/s390/predicates.md (execute_operation): Likewise for
17509         local "insn".
17510         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
17511         params.
17512         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
17513         (addr_generation_dependency_p): Likewise for param "insn".
17514         (s390_agen_dep_p): Likewise for both params.
17515         (s390_fpload_toreg): Likewise for param "insn".
17516         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
17517         * config/sh/sh.c (sh_loop_align): Likewise for param and local
17518         "next".
17519         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
17520         * config/sh/sh_treg_combine.cc
17521         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
17522         and local "i".
17523         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
17524         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
17525         "and_insn", "load", "shift".
17526         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
17527         "insn".
17528         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
17529         for XEXP (note, 0) of the REG_CC_SETTER note.
17530         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
17531         rtx_insn *, eliminating a checked cast made redundant by this.
17532         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
17533         to rtx_insn *.
17534         * genattr.c (main): When writing out the prototype to
17535         const_num_delay_slots, strengthen the param from rtx to
17536         rtx_insn *.
17537         * genattrtab.c (write_const_num_delay_slots): Likewise when
17538         writing out the implementation of const_num_delay_slots.
17539         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
17540         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
17541         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
17542         favor of new rtx locals "src" and "set" and new local rtx_insn *
17543         "insn" and "seq".
17544         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
17545         to rtx_insn *.
17546         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
17547         locals "cond", "if_then_else", "set" and new rtx_insn * locals
17548         "insn" and "seq".
17549         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
17550         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
17551         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
17552         the top-level scope, replacing with new more tightly-scoped rtx
17553         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
17554         "new_insn", "copy_of_insn_b", and make local rtx "set" more
17555         tightly-scoped.
17556         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
17557         rtx_insn *.
17558         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
17559         "move_insn".
17560         (ira_setup_alts): Likewise for param "insn".
17561         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
17562         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
17563         and an rtx_insn *.
17564         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
17565         new more-tightly scoped rtx locals "add3_insn", "insn",
17566         "add2_insn" and rtx_insn * "move_insn".
17567         * postreload-gcse.c (eliminate_partially_redundant_load): Add
17568         checked cast on result of gen_move_insn when invoking
17569         extract_insn.
17570         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
17571         rtx_insn *.
17572         (verify_changes): Add a checked cast on "object" when invoking
17573         insn_invalid_p.
17574         (extract_insn_cached): Strengthen param "insn" from rtx to
17575         rtx_insn *.
17576         (extract_constrain_insn_cached): Likewise.
17577         (extract_insn): Likewise.
17578         * recog.h (insn_invalid_p): Likewise for param 1.
17579         (recog_memoized): Likewise for param.
17580         (extract_insn): Likewise.
17581         (extract_constrain_insn_cached): Likewise.
17582         (extract_insn_cached): Likewise.
17583         * reload.c (can_reload_into): Likewise for local "test_insn".
17584         * reload.h (cleanup_subreg_operands): Likewise for param.
17585         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
17586         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
17587         result of emit_insn.  Remove a checked cast made redundant by this
17588         change.
17589         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
17590         rtx to rtx_insn *.
17591         * sel-sched.c (get_reg_class): Likewise.
17593 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17594             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17596         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
17597         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
17598         Define.
17599         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
17601 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
17603         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
17604         const rtx_insn *, and from rtx to rtx_insn * for the other
17605         overloaded variant.
17606         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
17607         INSN_LOCATION, since we know INSN_P holds.
17608         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
17609         (insn_file): Likewise.
17610         (insn_scope): Likewise.
17611         (insn_location): Likewise.
17613         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
17614         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
17615         for the result of gen_load_const_gp.
17616         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
17617         param from rtx to rtx_insn *.
17618         * config/rs6000/rs6000.c (output_call): Likewise.
17619         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
17620         introducing a checked cast to rtx_sequence * and use of the insn
17621         method.
17622         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
17623         from rtx to rtx_insn *.
17624         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
17625         (insn_line): Likewise.
17626         (insn_file): Likewise.
17627         (insn_location): Likewise.
17628         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
17629         from rtx to rtx_insn *.
17630         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
17631         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
17632         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
17633         via a checked cast.
17634         * reorg.c (relax_delay_slots): Strengthen locals named "after"
17635         from rtx to rtx_insn *; use methods of "pat" for type-safety.
17637 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
17639         * combine.c (try_combine): Eliminate checked cast on result of
17640         gen_rtx_INSN.
17641         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
17642         autogenerated one by strengthening the return type and params 2 and 3
17643         from rtx to rtx_insn *, and by naming the params.
17644         * gengenrtl.c (special_rtx): Add INSN to those that are
17645         special-cased.
17646         * rtl.h (gen_rtx_INSN): New prototype.
17648 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
17650         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
17651         than NULL_RTX.
17652         (no_equiv): Likewise.
17653         (update_equiv_regs): Likewise.
17654         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
17655         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
17656         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
17657         clarity.
17658         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
17659         from rtx to rtx_insn_list *.
17660         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
17661         rtx_insn_list * and use methods for clarity and typesafety.
17662         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
17663         "list".
17664         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
17665         redundant check on INSN_P (insns): this cannot hold, as "insns" is
17666         an INSN_LIST, not an insn.
17667         (reverse_equiv_p): Strengthen local "insns" from rtx to
17668         rtx_insn_list * and use methods for clarity and typesafety.
17669         (contains_reloaded_insn_p): Likewise for local "list".
17671 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
17673         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
17674         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
17675         (arm_builtin_vectorized_function): Likewise.
17676         * config/arm/arm_neon_builtins.def: New macro for copysignf.
17677         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
17679 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
17681         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
17682         * builtins.h (default_target_builtins): Likewise.
17683         * gcse.h (default_target_gcse): Likewise.
17684         * target-globals.h (target_globals): Add a destructor.  Convert
17685         void-pointer fields back to their real type and change from
17686         GTY((atomic)) to GTY((skip)).
17687         (restore_target_globals): Remove casts accordingly.
17688         * target-globals.c (save_target_globals): Use XCNEW rather than
17689         ggc_internal_cleared_alloc to allocate non-GC structures.
17690         Use ggc_cleared_alloc to allocate the target_globals structure
17691         itself.
17692         (target_globals::~target_globals): Define.
17694 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17696         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
17697         mnemonic instead of fldmfdd.
17698         * config/arm/arm.c (vfp_output_fstmd): Rename to...
17699         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
17700         Output vpush when address register is SP.
17701         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
17702         (vfp_output_vstmd): ... This.
17703         * config/arm/vfp.md (push_multi_vfp): Update call to
17704         vfp_output_vstmd.
17706 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17708         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
17710 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17712         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
17713         (*sqrtdf2_vfp): Likewise.
17714         (*cmpsf_vfp): Likewise.
17715         (*cmpsf_trap_vfp): Likewise.
17716         (*cmpdf_vfp): Likewise.
17717         (*cmpdf_trap_vfp): Likewise.
17719 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17721         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
17722         (*truncdfsf2_vfp): Likewise.
17723         (*truncsisf2_vfp): Likewise.
17724         (*truncsidf2_vfp): Likewise.
17725         (fixuns_truncsfsi2): Likewise.
17726         (fixuns_truncdfsi2): Likewise.
17727         (*floatsisf2_vfp): Likewise.
17728         (*floatsidf2_vfp): Likewise.
17729         (floatunssisf2): Likewise.
17730         (floatunssidf2): Likewise.
17732 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17734         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
17735         (*muldf3_vfp): Likewise.
17736         (*mulsf3negsf_vfp): Likewise.
17737         (*muldf3negdf_vfp): Likewise.
17738         (*mulsf3addsf_vfp): Likewise.
17739         (*muldf3adddf_vfp): Likewise.
17740         (*mulsf3subsf_vfp): Likewise.
17741         (*muldf3subdf_vfp): Likewise.
17742         (*mulsf3negsfaddsf_vfp): Likewise.
17743         (*fmuldf3negdfadddf_vfp): Likewise.
17744         (*mulsf3negsfsubsf_vfp): Likewise.
17745         (*muldf3negdfsubdf_vfp): Likewise.
17747 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17749         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
17750         (*absdf2_vfp): Likewise.
17751         (*negsf2_vfp): Likewise.
17752         (*negdf2_vfp): Likewise.
17753         (*addsf3_vfp): Likewise.
17754         (*adddf3_vfp): Likewise.
17755         (*subsf3_vfp): Likewise.
17756         (*subdf3_vfp): Likewise.
17757         (*divsf3_vfp): Likewise.
17758         (*divdf3_vfp): Likewise.
17760 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17762         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
17763         multiple.
17764         (arm_print_operand): Don't convert real values to decimal
17765         representation in default case.
17766         (fp_immediate_constant): Delete.
17767         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
17768         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
17769         syntax.
17770         (*thumb2_movsi_vfp): Likewise.
17771         (*movdi_vfp): Likewise.
17772         (*movdi_vfp_cortexa8): Likewise.
17773         (*movhf_vfp_neon): Likewise.
17774         (*movhf_vfp): Likewise.
17775         (*movsf_vfp): Likewise.
17776         (*thumb2_movsf_vfp): Likewise.
17777         (*movdf_vfp): Likewise.
17778         (*thumb2_movdf_vfp): Likewise.
17779         (*movsfcc_vfp): Likewise.
17780         (*thumb2_movsfcc_vfp): Likewise.
17781         (*movdfcc_vfp): Likewise.
17782         (*thumb2_movdfcc_vfp): Likewise.
17784 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
17786         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
17787         (-mtune): Likewise.
17788         (-mcpu): Likewise.
17790 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17792         PR target/61749
17793         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
17794         Use qualifier_immediate for last operand.  Rename to...
17795         (aarch64_types_ternop_lane_qualifiers): ... This.
17796         (TYPES_QUADOP): Rename to...
17797         (TYPES_TERNOP_LANE): ... This.
17798         (aarch64_simd_expand_args): Return const0_rtx when encountering user
17799         error.  Change return of 0 to return of NULL_RTX.
17800         (aarch64_crc32_expand_builtin): Likewise.
17801         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
17802         ICE when expanding unknown builtin.
17803         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
17804         TERNOP_LANE qualifiers.
17805         (sqdmlsl_lane): Likewise.
17806         (sqdmlal_laneq): Likewise.
17807         (sqdmlsl_laneq): Likewise.
17808         (sqdmlal2_lane): Likewise.
17809         (sqdmlsl2_lane): Likewise.
17810         (sqdmlal2_laneq): Likewise.
17811         (sqdmlsl2_laneq): Likewise.
17813 2014-09-09  Nick Clifton  <nickc@redhat.com>
17815         * doc/invoke.texi (Optimization Options): Add missing @gol to the
17816         end of a line.
17817         (S/390 and zSeries Options): Remove superfluous word from the
17818         description of the -mhotpatch option.
17820 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
17822         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
17823         * ira.c: #include "shrink-wrap.h"
17824         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
17825         * ifcvt.c: #include "shrink-wrap.h"
17826         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
17828 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
17830         * common/config/picochip/picochip-common.c: Remove.
17831         * config.gcc: Remove support for picochip.
17832         * config/picochip/constraints.md: Remove.
17833         * config/picochip/dfa_space.md: Remove.
17834         * config/picochip/dfa_speed.md: Remove.
17835         * config/picochip/picochip-protos.h: Remove.
17836         * config/picochip/picochip.c: Remove.
17837         * config/picochip/picochip.h: Remove.
17838         * config/picochip/picochip.md: Remove.
17839         * config/picochip/picochip.opt: Remove.
17840         * config/picochip/predicates.md: Remove.
17841         * config/picochip/t-picochip: Remove.
17842         * doc/md.texi: Don't document picochi.
17844 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
17846         * basic-block.h (control_flow_insn_p): Strengthen param from
17847         const_rtx to const rtx_insn *.
17848         * cfgbuild.c (control_flow_insn_p): Likewise.
17850 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
17852         * gcse.c (modify_mem_list): Strengthen this variable from
17853         vec<rtx> * to vec<rtx_insn *> *.
17854         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
17855         vec<rtx_insn *>.
17856         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
17857         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
17858         (record_last_mem_set_info): Strengthen param "insn" from rtx to
17859         rtx_insn *.
17860         (record_last_set_info): Likewise for local "last_set_insn".
17862 2014-09-08  DJ Delorie  <dj@redhat.com>
17864         * doc/invoke.texi (MSP430 Options): Add -minrt.
17866 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17868         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
17869         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
17870         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
17871         handling SH_SPLAT.
17872         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
17873         of extracted lane.
17874         (adjust_splat): New function.
17875         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
17876         (dump_swap_insn_table): Add case for SH_SPLAT.
17878 2014-09-08  Richard Biener  <rguenther@suse.de>
17880         PR ipa/63196
17881         * tree-inline.c (copy_loops): The source loop header should
17882         always be non-NULL.
17883         (tree_function_versioning): If loops need fixup after removing
17884         unreachable blocks fix them.
17885         * omp-low.c (simd_clone_adjust): Do not add incr block to
17886         loop under construction.
17888 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
17890         * config/aarch64/aarch64-builtins.c
17891         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
17893 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
17895         * config/i386/cygming.h (TF_SIZE): Remove.
17896         * config/i386/darwin.h (TF_SIZE): Remove.
17897         * config/i386/dragonfly.h (TF_SIZE): Remove.
17898         * config/i386/freebsd.h (TF_SIZE): Remove.
17899         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
17900         * config/i386/openbsdelf.h (TF_SIZE): Remove.
17901         * config/i386/sol2.h (TF_SIZE): Remove.
17902         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
17903         * config/ia64/linux.h (TF_SIZE): Remove.
17904         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
17905         * doc/tm.texi: Regenerate.
17906         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
17908 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
17910         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
17911         Remove.
17912         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
17913         Remove.
17914         * doc/tm.texi: Regenerate.
17915         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
17916         Poison.
17917         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
17918         * config/cris/cris.h (__make_dp): Remove.
17920 2014-09-08  Richard Biener  <rguenther@suse.de>
17922         PR bootstrap/63204
17923         * cfgloop.c (mark_loop_for_removal): Track former header
17924         unconditionally.
17925         * cfgloop.h (struct loop): Add former_header member unconditionally.
17926         * loop-init.c (fix_loop_structure): Enable bogus loop removal
17927         diagnostic unconditionally.
17929 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
17931         PR target/63190
17932         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
17933         constraint for operand0 and remove write only modifier from operand3.
17935 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
17937         PR rtl-optimization/62208
17938         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
17939         rather than const0_rtx in eq/ne-xor simplifications.
17941 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
17943         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
17944         (arc_output_mi_thunk): Likewise.
17946         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
17947         arguments to silence bogus warning.
17949 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
17951         PR middle-end/63171
17952         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
17954 2014-09-06  Tom de Vries  <tom@codesourcery.com>
17956         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
17957         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
17958         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17960 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
17962         PR target/63188
17963         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
17964         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
17966 2014-09-05  Easwaran Raman  <eraman@google.com>
17968         PR rtl-optimization/62146
17969         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
17970         hoisted instruction unconditional.
17972 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
17974         PR target/63187
17975         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
17976         Do not allow any_mask_operand for operands[2].
17977         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
17979 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
17981         * config/arc/arc.c (arc_print_operand): Use insn method of
17982         final_sequence for type-safety.
17983         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
17984         "insn" from rtx to rtx_insn *.
17985         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
17986         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
17987         Likewise for locals "branch", "label".
17988         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
17989         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
17990         (same_cmp_following_p): Likewise for locals "i2", "i3".
17991         * config/sh/sh_optimize_sett_clrt.cc
17992         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
17993         param "cbranch_insn".
17994         * function.c (convert_jumps_to_returns): Likewis for local "jump".
17995         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
17996         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
17997         const rtx_insn *.
17998         (condjump_p): Likewise.
17999         (condjump_in_parallel_p): Likewise.
18000         (pc_set): Likewise.
18001         (any_uncondjump_p): Likewise.
18002         (any_condjump_p): Likewise.
18003         (condjump_label): Likewise.
18004         (returnjump_p): Strengthen param "insn" from rtx to
18005         const rtx_insn *.
18006         (onlyjump_p): Strengthen param "insn" from const_rtx to
18007         const rtx_insn *.
18008         (jump_to_label_p): Likewise.
18009         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
18010         (invert_jump): Likewise.
18011         * reorg.c (simplejump_or_return_p): Add checked cast when calling
18012         simplejump_p.
18013         (get_jump_flags): Strengthen param "insn" from rtx to
18014         const rtx_insn *.
18015         (get_branch_condition): Likewise.
18016         (condition_dominates_p): Likewise.
18017         (make_return_insns): Move declaration of local "pat" earlier, to
18018         after we've handled NONJUMP_INSN_P and non-sequences, using its
18019         methods to simplify the code and for type-safety.
18020         * rtl.h (find_constant_src): Strengthen param from const_rtx to
18021         const rtx_insn *.
18022         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
18023         (condjump_p): Strengthen param from const_rtx to
18024         const rtx_insn *.
18025         (any_condjump_p): Likewise.
18026         (any_uncondjump_p): Likewise.
18027         (pc_set): Likewise.
18028         (condjump_label): Likewise.
18029         (simplejump_p): Likewise.
18030         (returnjump_p): Likewise.
18031         (onlyjump_p): Likewise.
18032         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
18033         (invert_jump): Likewise.
18034         (condjump_in_parallel_p): Strengthen param from const_rtx to
18035         const rtx_insn *.
18036         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
18037         to const rtx_insn *.
18038         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
18039         to const rtx_insn *.
18040         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
18042 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18044         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
18045         above the conditional, and convert the check on GET_CODE to a
18046         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
18047         the conditional.  Simplify the conditional by using methods of
18048         "trial_seq".
18050 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18052         * haifa-sched.c (check_clobbered_conditions): Strengthen local
18053         "link" from rtx to rtx_insn_list *, and use its methods for
18054         clarity and type-safety.
18055         (toggle_cancelled_flags): Likewise.
18056         (restore_last_backtrack_point): Likewise.
18057         (queue_to_ready): Use insn method of "link" in one place.
18058         (schedule_block): Strengthen local "link" from rtx to
18059         rtx_insn_list *, and use its methods for clarity and type-safety.
18061 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18063         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
18064         param "insn" from const_rtx to const rtx_insn *.
18065         (sched_get_reverse_condition_uncached): Likewise.
18066         (sched_get_condition_with_rev): Likewise.
18067         (sched_has_condition_p): Likewise.
18068         (sched_insns_conditions_mutex_p): Likewise for both params.
18069         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
18070         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
18071         (setup_insn_reg_uses): Move local "list" to be more tightly
18072         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
18073         its methods for clarity and type-safety.
18074         (sched_analyze_1): Strengthen local "pending" from rtx to
18075         rtx_insn_list *, and local "pending_mem" from rtx to
18076         rtx_expr_list *.  Use methods of each for clarity and type-safety.
18077         (sched_analyze_2): Likewise.
18078         (sched_analyze_insn): Likewise.
18080         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
18081         param from const_rtx to const rtx_insn *.
18082         (sched_insns_conditions_mutex_p): Likewise for both params.
18083         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
18084         param.
18086         * system.h (CONST_CAST_RTX_INSN): New macro.
18088 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18090         * recog.c (peep2_attempt): Strengthen return type from rtx to
18091         rtx_insn *.
18092         (peep2_update_life): Likewise for params "last", "prev", removing
18093         a checked cast made redundant by this.
18094         (peephole2_optimize): Likewise for local "last".
18096 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18098         * basic-block.h (set_block_for_insn): Eliminate this macro in
18099         favor of...
18100         * rtl.h (set_block_for_insn): New inline function, imposing the
18101         requirement that the "insn" param is an rtx_insn *.
18103 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18105         * caller-save.c (setup_save_areas): Strengthen local "insn" from
18106         rtx to rtx_insn *.
18107         * final.c (get_call_reg_set_usage): Likewise for first param,
18108         eliminating a checked cast.
18109         * regs.h (get_call_reg_set_usage): Likewise for first param.
18110         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
18111         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
18112         cast, replacing references to "x" with "call_insn" where
18113         appropriate.
18114         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
18115         rtx_insn *, adding a checked cast.
18117 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18119         * output.h (final_scan_insn): Strengthen first param from rtx to
18120         rtx_insn *.
18122         * final.c (final_scan_insn): Likewise, renaming it back from
18123         "uncast_insn" to "insn", eliminating the checked cast.
18125         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
18126         "vec" with an rtx_sequence * "seq", taking a copy of
18127         "final_sequence", and using methods of "seq" for clarity, and for
18128         type-safety in the calls to final_scan_insn.
18129         * config/mips/mips.c (mips_output_conditional_branch): Use methods
18130         of "final_sequence" for clarity, and for type-safety in the call to
18131         final_scan_insn.
18132         * config/sh/sh.c (print_slot): Strengthen param from rtx to
18133         rtx_sequence * and rename from "insn" to "seq".
18135 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18137         * jump.c (delete_related_insns): Introduce a new local "table" by
18138         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
18139         get_labels method of "table" to simplify access to the labels in
18140         the jump table.
18142 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18144         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
18145         f_minmaxs, f_minmaxd types.
18147 2014-09-05  Richard Biener  <rguenther@suse.de>
18149         * cfgloop.c (mark_loop_for_removal): Record former header
18150         when ENABLE_CHECKING.
18151         * cfgloop.h (strut loop): Add former_header member when
18152         ENABLE_CHECKING.
18153         * loop-init.c (fix_loop_structure): Sanity check loops
18154         marked for removal if they re-appeared.
18156 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18158         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
18159         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
18161         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
18162         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
18163         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
18164         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
18165         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
18166         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
18167         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
18168         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
18169         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
18170         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
18171         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
18172         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
18173         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
18174         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
18175         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
18176         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
18177         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
18178         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
18179         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
18180         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
18181         with int{32,16,8}_t.
18183 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18185         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
18186         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
18187         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
18188         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
18189         Remove temporary __asm__ and reimplement.
18191 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18193         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
18194         handling cmge, cmgt, cmeq, cmtst.
18196         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
18197         cmlt, cmgeu, cmgtu, cmtst): Remove.
18199         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
18200         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
18201         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
18202         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
18204 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18206         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
18207         TYPES_TST): Define.
18208         (aarch64_fold_builtin): Update pattern for cmtst.
18210         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
18211         Declare.
18213         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
18215         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
18216         Switch operands, separate out more cases, refactor.
18218         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
18220         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
18221         argument; rename old version to...
18222         (aarch64_const_vec_all_same_in_range_p): ...this.
18223         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
18225         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
18227 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18229         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18230         Remove qualifier_const_pointer, update comment.
18232 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18234         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
18236 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18238         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
18239         varargs with pointer parameter.
18240         (aarch64_simd_expand_builtin): pass pointer into previous.
18242 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18244         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
18245         alus_ext.
18247 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
18249         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
18250         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
18251         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
18252         Replace temporary asm with call to builtin.
18253         (vrbit_p8, vrbitq_p8): New functions.
18255 2014-09-05  Richard Biener  <rguenther@suse.de>
18257         * cfgloop.c (mark_loop_for_removal): New function.
18258         * cfgloop.h (mark_loop_for_removal): Declare.
18259         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
18260         (merge_blocks): Likewise.
18261         (duplicate_block): Likewise.
18262         * except.c (sjlj_emit_dispatch_table): Likewise.
18263         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
18264         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
18265         (thread_through_loop_header): Likewise.
18267 2014-09-05  Richard Biener  <rguenther@suse.de>
18269         PR middle-end/63148
18270         * fold-const.c (try_move_mult_to_index): Remove.
18271         (fold_binary_loc): Do not call it.
18272         * tree-data-ref.c (dr_analyze_indices): Strip conversions
18273         from the base object again.
18275 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
18277         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
18278         DImode.
18280 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
18282         PR target/55701
18283         * config/arm/arm.md (setmem): New pattern.
18284         * config/arm/arm-protos.h (struct tune_params): New fields.
18285         (arm_gen_setmem): New prototype.
18286         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18287         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18288         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18289         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18290         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18291         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18292         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18293         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18294         (arm_const_inline_cost): New function.
18295         (arm_block_set_max_insns): New function.
18296         (arm_block_set_non_vect_profit_p): New function.
18297         (arm_block_set_vect_profit_p): New function.
18298         (arm_block_set_unaligned_vect): New function.
18299         (arm_block_set_aligned_vect): New function.
18300         (arm_block_set_unaligned_non_vect): New function.
18301         (arm_block_set_aligned_non_vect): New function.
18302         (arm_block_set_vect, arm_gen_setmem): New functions.
18304 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
18306         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
18308 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
18310         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18312 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
18314         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
18315         an rtx.
18316         * valtrack.h: Adjust.
18318 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
18320         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
18321         an rtx.
18322         (emit_jump_insn_before_noloc): Likewise.
18323         (emit_call_insn_before_noloc): Likewise.
18324         (emit_label_before): Likewise.
18325         (emit_label_after): Likewise.
18326         (emit_insn_before_setloc): Likewise.
18327         (emit_jump_insn_before_setloc): Likewise.
18328         (emit_call_insn_before_setloc): Likewise.
18329         (emit_call_insn_before): Likewise.
18330         * rtl.h: Adjust.
18332 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18334         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
18335         rtx_insn *, eliminating a checked cast.
18337 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18339         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
18340         const_rtx to const rtx_insn *.
18341         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
18342         cast.
18344 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18346         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
18347         fixup_args_size_notes.
18348         * expr.c (fixup_args_size_notes): Strengthen first two params from
18349         rtx to rtx_insn *, eliminating a checked cast.
18350         * rtl.h (fixup_args_size_notes): Strengthen first two params from
18351         rtx to rtx_insn *.
18353 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
18355         * haifa-sched.c (get_ready_element): Strengthen return type from
18356         rtx to rtx_insn *.
18357         * sched-int.h (get_ready_element): Likewise.
18359 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
18361         PR target/63165
18362         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
18363         indexed_or_indirect_operand instead of memory_operand.
18364         (floatsi<mode>2_lfiwzx_mem): Ditto.
18366 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
18368         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
18369         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
18370         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
18372 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
18374         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
18375         rtx.
18376         (get_last_nonnote_insn): Likewise.
18377         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
18378         * resource.c (find_basic_block): Likewise.
18379         * rtl.h: Adjust.
18380         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
18381         const_rtx.
18383 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
18385         * genattr.c (main): Within the prototype of insn_latency written
18386         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
18387         * genautomata.c (output_internal_maximal_insn_latency_func):
18388         Within the implementation of insn_latency written out to
18389         insn-automata.c, strengthen both params from rtx to rtx_insn *,
18390         eliminating a pair of checked casts.
18392 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
18394         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
18395         rtx_insn *.
18397         * rtl.h (eh_returnjump_p): Likewise.
18399 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
18401         * Makefile.in (TAGS): Handle constructs in timevar.def.
18403 2014-09-04  Guozhi Wei  <carrot@google.com>
18405         PR target/62040
18406         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
18407         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
18408         it into two patterns.
18409         (move_lo_quad_internal_be_<mode>): Likewise.
18411 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18413         * doc/options.texi: Document that Var and Init are required if CPP
18414         is given.
18415         * optc-gen.awk: Require Var and Init if CPP is given.
18416         * common.opt (Wpedantic): Use Init.
18418 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18420         * config/rs6000/rs6000.c (special_handling_values): Add
18421         SH_EXTRACT.
18422         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
18423         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
18424         as swappable with special handling SH_EXTRACT.  Remove
18425         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
18426         optimization.
18427         (adjust_extract): New function.
18428         (handle_special_swappables): Add default to case statement; add
18429         case for SH_EXTRACT that calls adjust_extract.
18430         (dump_swap_insn_table): Handle SH_EXTRACT.
18432 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18434         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
18435         selection of 0th memory doubleword, regardless of endianness.
18437 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18439         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
18441 2014-09-04  Alan Modra  <amodra@gmail.com>
18443         PR debug/60655
18444         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
18445         can't be output.
18447 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
18449         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
18450         * targhooks.c (default_dwarf_frame_reg_mode): New function.
18451         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
18452         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
18453         * doc/tm.texi: Regenerate.
18454         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
18455         selection logic to default_dwarf_frame_reg_mode.
18457 2014-09-03  Marek Polacek  <polacek@redhat.com>
18459         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
18460         by -Wall.
18462 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
18464         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
18465         the automodified register.
18467 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
18469         * output.h (get_some_local_dynamic_name): Declare.
18470         * final.c (some_local_dynamic_name): New variable.
18471         (get_some_local_dynamic_name): New function.
18472         (final_end_function): Clear some_local_dynamic_name.
18473         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
18474         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
18475         (print_operand): Report an error if '%&' is used inappropriately.
18476         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
18477         (get_some_local_dynamic_name_1): Delete.
18478         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
18479         (rs6000_get_some_local_dynamic_name): Delete.
18480         (rs6000_get_some_local_dynamic_name_1): Delete.
18481         (print_operand): Report an error if '%&' is used inappropriately.
18482         * config/s390/s390.c (machine_function): Remove some_ld_name.
18483         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
18484         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
18485         * config/sparc/sparc.c: Include rtl-iter.h.
18486         (machine_function): Remove some_ld_name.
18487         (sparc_print_operand): Report an error if '%&' is used inappropriately.
18488         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
18490 2014-09-03  Richard Henderson  <rth@redhat.com>
18492         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
18493         (aarch64_popwb_pair_reg): Remove.
18494         (aarch64_set_frame_expr): Remove.
18495         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
18496         the restore ops performed by the insns generated.
18497         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
18498         insn.  Perform the calls_eh_return addition later; do not attempt to
18499         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
18500         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
18501         special markup at all.  Load cfun->machine->frame.hard_fp_offset
18502         into a local variable.
18503         (aarch64_frame_pointer_required): Don't check calls_alloca.
18505 2014-09-03  Richard Biener  <rguenther@suse.de>
18507         * opts.c (default_options_optimization): Adjust
18508         max-combine-insns to 2 for -Og.
18510 2014-09-03  Martin Jambor  <mjambor@suse.cz>
18512         PR ipa/62015
18513         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
18514         pass-trough jump functions correctly.
18516 2014-09-03  Martin Jambor  <mjambor@suse.cz>
18518         PR ipa/61986
18519         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
18520         created replacements in ascending order of offsets.
18521         (known_aggs_to_agg_replacement_list): Likewise.
18523 2014-09-03  Martin Liska  <mliska@suse.cz>
18525         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
18526         is set to set uninitialized value for vnresult.
18528 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18530         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
18531         for TARGET_MUST_PASS_IN_STACK.
18533 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18535         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
18536         for TARGET_ARG_PARTIAL_BYTES.
18538 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18540         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
18541         instructions for varargs implementation.
18542         (nds32_expand_epilogue): Emit stack adjustment instructions for
18543         varargs implementation.
18545 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18547         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
18548         optimization detection.
18550 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18552         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
18553         arguments.
18554         (nds32_function_arg_advance): Deal with nameless arguments.
18555         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
18556         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
18557         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
18559 2014-09-03  Richard Biener  <rguenther@suse.de>
18561         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
18562         (struct bb_bitmap_sets): Remove deferred member.
18563         (BB_DEFERRED): Remove.
18564         (defer_or_phi_translate_block): Remove.
18565         (compute_antic_aux): Remove deferring of blocks, assert
18566         proper iteration order.
18567         (compute_antic): Do not set BB_DEFERRED.
18568         (eliminate): Allocate el_avail of proper size initially.
18570 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18572         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
18573         according to the value of crtl->args.pretend_args_size.
18575 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18577         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
18578         varargs information.
18580 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18582         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
18583         implementation for TARGET_SETUP_INCOMING_VARARGS.
18584         (nds32_strict_argument_naming): Refine comment.
18585         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
18586         Define for future implementation.
18588 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
18590         * config/i386/adxintrin.h (_subborrow_u32): New.
18591         (_addcarry_u32): Ditto.
18592         (_subborrow_u64): Ditto.
18593         (_addcarry_u64): Ditto.
18594         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
18595         IX86_BUILTIN_SBB64.
18596         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
18597         __builtin_ia32_sbb_u64
18599 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18601         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
18602         GPR-specific stuff.
18603         (nds32_function_arg_advance): Likewise.
18604         (nds32_init_cumulative_args): Likewise.
18605         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
18606         (NDS32_FIRST_GPR_REGNUM): Define.
18607         (NDS32_LAST_GPR_REGNUM): Define.
18608         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
18609         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
18610         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
18611         (machine_function): Use GRP-specific stuff.
18613 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18615         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
18616         (nds32_expand_epilogue): Likewise.
18617         (nds32_expand_prologue_v3push): Likewise.
18618         (nds32_expand_epilogue_v3pop): Likewise.
18620 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18622         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
18623         v3push/v3pop for variadic function.
18624         * config/nds32/nds32.md (prologue, epilogue): Likewise.
18626 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18628         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
18629         Check rtx for varargs implementation.
18630         (nds32_output_stack_pop): Likewise.
18631         * config/nds32/nds32-protos.h: Have a rtx argument for
18632         nds32_output_stack_push and nds32_output_stack_pop.
18633         * config/nds32/nds32.md: Likewise.
18635 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18637         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
18638         to check if FUNC is an interrupt service routine.
18639         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
18641 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18643         * config/nds32/nds32.h (machine_function): Add some fields for variadic
18644         arguments implementation.
18646 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18648         * config/nds32/nds32-predicates.c
18649         (nds32_valid_stack_push_pop): Rename to ...
18650         (nds32_valid_stack_push_pop_p): ... this.
18651         * config/nds32/nds32-protos.h: Likewise.
18652         * config/nds32/predicates.md: Likewise.
18654 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18656         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
18657         (nds32_emit_stack_v3push): ... this.
18658         (nds32_gen_stack_v3pop): Rename to ...
18659         (nds32_emit_stack_v3pop): ... this and consider CFA restore
18660         information.
18662 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18664         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
18665         (nds32_emit_stack_push_multiple): ... this.
18666         (nds32_gen_stack_pop_multiple): Rename to ...
18667         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
18668         information.
18670 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18672         PR target/61078
18673         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
18674         and add a second splitter to handle the remaining cases.
18676 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
18678         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
18680 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
18682         * cfgexpand.c (label_rtx_for_bb): Change type to
18683         hash_map<basic_block, rtx_code_label *> *.
18684         (expand_gimple_basic_block): Adjust.
18685         (pass_expand::execute): Likewise.
18687 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
18689         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
18690         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
18691         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
18692         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
18693         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
18694         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
18695         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
18696         of rtx.
18698 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
18700         * alloc-pool.c: Include coretypes.h.
18701         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
18702         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
18703         hash_set instead of htab.
18704         * ggc-page.c (in_gc): New variable.
18705         (ggc_free): Do nothing if a collection is taking place.
18706         (ggc_collect): Set in_gc appropriately.
18707         * ggc.h (gt_ggc_mx(const char *)): New function.
18708         (gt_pch_nx(const char *)): Likewise.
18709         (gt_ggc_mx(int)): Likewise.
18710         (gt_pch_nx(int)): Likewise.
18711         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
18712         (hash_map::hash_entry::pch_nx): Likewise.
18713         (hash_map::hash_entry::pch_nx_helper): Likewise.
18714 (hash_map::hash_map): Adjust.
18715 (hash_map::create_ggc): New function.
18716 (gt_ggc_mx): Likewise.
18717 (gt_pch_nx): Likewise.
18718         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
18719 (default_hashset_traits::pch_nx): Likewise.
18720 (hash_set::hash_entry::ggc_mx): Likewise.
18721 (hash_set::hash_entry::pch_nx): Likewise.
18722 (hash_set::hash_entry::pch_nx_helper): Likewise.
18723 (hash_set::hash_set): Adjust.
18724 (hash_set::create_ggc): New function.
18725 (hash_set::elements): Likewise.
18726 (gt_ggc_mx): Likewise.
18727 (gt_pch_nx): Likewise.
18728         * hash-table.h (hash_table::hash_table): Adjust.
18729 (hash_table::m_ggc): New member.
18730         (hash_table::~hash_table): Adjust.
18731         (hash_table::expand): Likewise.
18732         (hash_table::empty): Likewise.
18733 (gt_ggc_mx): New function.
18734         (hashtab_entry_note_pointers): Likewise.
18735 (gt_pch_nx): Likewise.
18737 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18739         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
18740         built-in definition.
18741         (XVCVUXDDP_SCALE): Likewise.
18742         (XVCVDPSXDS_SCALE): Likewise.
18743         (XVCVDPUXDS_SCALE): Likewise.
18744         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
18745         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
18746         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
18747         VSX_BUILTIN_XVCVDPUXDS_SCALE.
18748         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
18749         prototype.
18750         * config/rs6000/rs6000.c (real.h): New include.
18751         (rs6000_scale_v2df): New function.
18752         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
18753         (UNSPEC_VSX_XVCVUXDDP): Likewise.
18754         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
18755         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
18756         (vsx_xvcvsxddp_scale): New define_expand.
18757         (vsx_xvcvsxddp): New define_insn.
18758         (vsx_xvcvuxddp_scale): New define_expand.
18759         (vsx_xvcvuxddp): New define_insn.
18760         (vsx_xvcvdpsxds_scale): New define_expand.
18761         (vsx_xvcvdpsxds): New define_insn.
18762         (vsx_xvcvdpuxds_scale): New define_expand.
18763         (vsx_xvcvdpuxds): New define_insn.
18764         * doc/extend.texi (vec_ctf): Add new prototypes.
18765         (vec_cts): Likewise.
18766         (vec_ctu): Likewise.
18767         (vec_splat): Likewise.
18768         (vec_div): Likewise.
18769         (vec_mul): Likewise.
18771 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18773         PR target/62275
18774         * config/arm/neon.md
18775         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
18776         <v_cmp_result>): New pattern.
18777         * config/arm/iterators.md (NEON_VCVT): New int iterator.
18778         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
18779         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
18780         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
18781         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
18782         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
18784 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18786         PR target/62275
18787         * config/arm/iterators.md (FIXUORS): New code iterator.
18788         (VCVT): New int iterator.
18789         (su_optab): New code attribute.
18790         (su): Likewise.
18791         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
18793 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18795         * config/aarch64/predicates.md (aarch64_comparison_operation):
18796         New special predicate.
18797         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
18798         aarch64_comparison_operation instead of matching an operator.
18799         Update operand numbers.
18800         (csinc3<mode>_insn): Likewise.
18801         (*csinv3<mode>_insn): Likewise.
18802         (*csneg3<mode>_insn): Likewise.
18803         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
18804         * config/aarch64/aarch64.c (aarch64_get_condition_code):
18805         Return -1 instead of aborting on invalid condition codes.
18806         (aarch64_print_operand): Update aarch64_get_condition_code callsites
18807         to assert that the returned condition code is valid.
18808         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
18810 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
18812         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
18813         tree.def, and gimple.def
18815 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
18816             Balaji V. Iyer  <balaji.v.iyer@intel.com>
18817             Igor Zamyatin  <igor.zamyatin@intel.com>
18819         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
18820         (__cilkrts_cilk_for_64): Likewise.
18821         * cilk-common.c (declare_cilk_for_builtin): New function.
18822         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
18823         __cilkrts_cilk_for_64 bultins.
18824         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
18825         CILK_TI_F_LOOP_64.
18826         (cilk_for_32_fndecl): New define.
18827         (cilk_for_64_fndecl): Likewise.
18828         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
18829         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
18830         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
18831         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
18832         GF_OMP_FOR_COMBINED_INTO.
18833         * gimplify.c (gimplify_scan_omp_clauses): Added
18834         OMP_CLAUSE__CILK_FOR_COUNT_ case.
18835         (gimplify_adjust_omp_clauses): Ditto.
18836         (gimplify_omp_for): Added CILK_FOR case.
18837         (gimplify_expr): Ditto.
18838         * omp-low.c: Include cilk.h.
18839         (extract_omp_for_data): Set appropriate kind for
18840         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
18841         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
18842         (create_omp_child_function_name): Added second argument to handle
18843         cilk_for case.
18844         (cilk_for_check_loop_diff_type): New function.
18845         (expand_cilk_for_call): Likewise.
18846         (expand_cilk_for): Likewise.
18847         (create_omp_child_function): Set cilk_for_count; handle the cases when
18848         it is true; call create_omp_child_function_name with second argument.
18849         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
18850         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
18851         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
18852         * tree-nested.c (convert_nonlocal_omp_clauses): Added
18853         OMP_CLAUSE__CILK_FOR_COUNT_ case.
18854         (convert_local_omp_clauses): Ditto.
18855         * tree-pretty-print.c (dump_omp_clause): Added
18856         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
18857         (dump_generic_node): Added CILK_FOR case.
18858         * tree.c (omp_clause_num_ops): New element
18859         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
18860         (omp_clause_code_name): New element _Cilk_for_count_.
18861         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
18862         * tree.def: Add tree code for CILK_FOR.
18864 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
18866         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
18867         (ppc403-compare): Add "exts with dot" case.
18868         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
18869         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
18870         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
18871         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
18872         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
18873         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
18874         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
18875         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18876         cell-cmp-microcoded): Similarly.
18877         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
18878         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
18879         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
18880         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
18881         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
18882         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
18883         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
18884         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
18885         (power6-compare): Add "exts with dot" case.
18886         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
18887         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
18888         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
18890         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
18891         if avoiding Cell microcode.
18892         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
18893         (is_cracked_insn): Ditto.
18894         (insn_must_be_first_in_group): Ditto.
18895         * config/rs6000/rs6000.md (dot): Adjust comment.
18896         (cell_micro): Handle exts+dot.
18897         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
18898         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
18899         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
18900         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
18901         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
18902         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
18903         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
18905 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
18907         * config/rs6000/rs6000.md (QHSI): Delete.
18908         (EXTQI, EXTHI, EXTSI): New mode iterators.
18909         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
18910         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18911         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
18912         9 anonymous instructions, and 8 splitters): Delete.
18913         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
18914         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
18915         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
18916         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
18917         *zero_extendsi<mode>2_dot2): New.
18919 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
18921         * config/rs6000/rs6000.md (any_extend): New code iterator.
18922         (u, su): New code attributes.
18923         (dmode, DMODE): New mode attributes.
18924         (<su>mul<mode>3_highpart): New.
18925         (*<su>mul<mode>3_highpart): New.
18926         (<su>mulsi3_highpart_le): New.
18927         (<su>muldi3_highpart_le): New.
18928         (<su>mulsi3_highpart_64): New.
18929         (<u>mul<mode><dmode>3): New.
18930         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
18931         splitters): Delete.
18932         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
18933         splitters): Delete.
18935 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
18937         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
18938         *mulsi3_internal2, and two splitters): Delete.
18939         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
18940         Delete.
18941         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
18943 2014-09-02  Richard Biener  <rguenther@suse.de>
18945         PR tree-optimization/62695
18946         * tree-ssa-structalias.c (find_func_clobbers): Add missing
18947         vector truncate.
18949 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
18951         PR target/62312
18952         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
18954 2014-09-01  Andi Kleen  <ak@linux.intel.com>
18956         * file-find.c (add_prefix_begin): Add.
18957         (do_add_prefix): Rename from add_prefix with first argument.
18958         (add_prefix): Add new wrapper.
18959         * file-find.h (add_prefix_begin): Add.
18960         * gcc-ar.c (main): Support -B option.
18962 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
18964         * genemit.c: Include dumpfile.h.
18965         (gen_split): Print name of splitter function to dump file.
18967 2014-09-01  Richard Biener  <rguenther@suse.de>
18969         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
18970         Use stack auto_vecs for constraint expressions.
18971         (find_func_aliases_for_call): Likewise.
18972         (find_func_aliases): Likewise.
18973         (find_func_clobbers): Likewise.
18975 2014-09-01  Richard Biener  <rguenther@suse.de>
18977         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
18978         operands vector in most cases.  Remove redundant code.
18980 2014-09-01  Olivier Hainque  <hainque@adacore.com>
18982         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
18983         $WIND_BASE instead of designating a harcoded arbitrary home dir.
18984         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
18986 2014-09-01  Richard Biener  <rguenther@suse.de>
18988         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
18989         copy_reference_ops_from_call, vn_nary_op_compute_hash,
18990         vn_reference_compute_hash, vn_reference_insert): Remove.
18991         (vn_reference_lookup_call): New function.
18992         * tree-ssa-sccvn.c (vn_reference_compute_hash,
18993         copy_reference_ops_from_ref, copy_reference_ops_from_call,
18994         vn_reference_insert, vn_nary_op_compute_hash): Make static.
18995         (create_reference_ops_from_call): Remove.
18996         (vn_reference_lookup_3): Properly update shared_lookup_references.
18997         (vn_reference_lookup_pieces): Assert that we updated
18998         shared_lookup_references properly.
18999         (vn_reference_lookup): Likewise.
19000         (vn_reference_lookup_call): New function.
19001         (visit_reference_op_call): Use it.  Avoid re-building the
19002         reference ops.
19003         (visit_reference_op_load): Remove redundant lookup.
19004         (visit_reference_op_store): Perform special tail-merging work
19005         only when possibly doing tail-merging.
19006         (visit_use): Likewise.
19007         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
19009 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
19011         PR target/62025
19012         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
19013         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
19014         (find_inc): Revert 2014-08-13 change.
19016 2014-09-01  Marek Polacek  <polacek@redhat.com>
19018         PR middle-end/61903
19019         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
19020         Change the type of V to unsigned HOST_WIDE_INT.
19022 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19024         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
19025         the size of byte markers.
19026         (do_shift_rotate): Fix confusion between host, target and marker byte
19027         size.
19028         (verify_symbolic_number_p): Likewise.
19029         (find_bswap_or_nop_1): Likewise.
19030         (find_bswap_or_nop): Likewise.
19032 2014-09-01  Olivier Hainque  <hainque@adacore.com>
19034         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
19035         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
19037 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
19039         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
19040         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
19041         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
19043 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
19045         PR sanitizer/61897
19046         PR sanitizer/62140
19047         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
19048         (build_check_stmt): Likewise.
19049         (instrument_strlen_call): Likewise.
19050         (asan_expand_check_ifn): Likewise and fix types.
19051         (maybe_cast_to_ptrmode): New function.
19053 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19055         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
19057 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
19059         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
19061 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
19063         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
19064         prefix to function labels when generating fast indirect calls.
19066 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
19068         PR bootstrap/62304
19070         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
19071         param back from rtx_insn * to rtx.  Rename param from "label" to
19072         "label_or_return", reintroducing "label" as an rtx_insn * after
19073         we've ensured it's not a RETURN.
19074         (first_active_target_insn): Likewise for return type and param;
19075         add a checked cast to rtx_insn * once we've ensured "insn" is not
19076         a RETURN.
19077         (steal_delay_list_from_target): Convert param "pnew_thread" back
19078         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
19079         with JUMP_LABEL.
19080         (own_thread_p): Convert param "thread" back from an rtx_insn * to
19081         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
19082         cast once we've established we're not dealing with a RETURN,
19083         renaming subsequent uses of "thread" to "thread_insn".
19084         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
19085         to JUMP_LABEL.
19086         (follow_jumps): Convert return type and param "label" from
19087         rtx_insn * back to rtx.  Move initialization of "value" to after
19088         the handling for ANY_RETURN_P, adding a checked cast there to
19089         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
19090         rename to "this_label_or_return", reintroducing "this_label" as
19091         an rtx_insn * once we've handled the case where it could be an
19092         ANY_RETURN_P.
19093         (fill_slots_from_thread): Rename param "thread" to
19094         "thread_or_return", converting from an rtx_insn * back to an rtx.
19095         Reintroduce name "thread" as an rtx_insn * local with a checked
19096         cast once we've handled the case of it being an ANY_RETURN_P.
19097         Convert local "new_thread" from an rtx_insn * back to an rtx.
19098         Add a checked cast when assigning to "trial" from "new_thread".
19099         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
19100         checked cast to rtx_insn * from "new_thread" when invoking
19101         get_label_before.
19102         (fill_eager_delay_slots): Convert locals "target_label",
19103         "insn_at_target" from rtx_insn * back to rtx.
19104         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
19105         (relax_delay_slots): Convert locals "trial", "target_label" from
19106         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
19107         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
19108         invoking update_block.
19109         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
19110         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
19112         * resource.h (mark_target_live_regs): Undo erroneous conversion
19113         of second param of r214693, converting it back from rtx_insn * to
19114         rtx, since it could be a RETURN.
19116         * resource.c (find_dead_or_set_registers): Similarly, convert
19117         param "jump_target" back from an rtx_insn ** to an rtx *, as we
19118         could be writing back a RETURN.  Rename local rtx_insn * "next" to
19119         "next_insn", and introduce "lab_or_return" as a local rtx,
19120         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
19121         (mark_target_live_regs): Undo erroneous conversion
19122         of second param of r214693, converting it back from rtx_insn * to
19123         rtx, since it could be a RETURN.  Rename it from "target" to
19124         "target_maybe_return", reintroducing the name "target" as a local
19125         rtx_insn * with a checked cast, after we've handled the case of
19126         ANY_RETURN_P.
19128 2014-08-29  DJ Delorie  <dj@redhat.com>
19130         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
19131         pointer size up to a power of two.
19132         * defaults.h (DWARF2_ADDR_SIZE): Round up.
19133         (POINTER_SIZE_UNITS): New, rounded up value.
19134         * dwarf2asm.c (size_of_encoded_value): Use it.
19135         (dw2_output_indirect_constant_1): Likewise.
19136         * expmed.c (init_expmed_one_conv): We now know the sizes of
19137         partial int modes.
19138         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
19139         * optabs.c (expand_float): Use precision, not size.
19140         (expand_fix): Likewise.
19141         * simplify-rtx (simplify_unary_operation_1): Likewise.
19142         * tree-dfa.c (get_ref_base_and_extent): Likewise.
19143         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
19144         (default_assemble_integer) Likewise.
19145         (dump_tm_clone_pairs): Likewise.
19146         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
19147         * var-tracking.c (adjust_mems): Allow partial-int modes also.
19148         (prepare_call_arguments): Likewise.
19149         * stor-layout.c (finalize_type_size): Preserve precision.
19150         (layout_type): Use precision, not size.
19152         * expr.c (convert_move): If the target has an explicit converter,
19153         use it.
19155 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
19157         * gdbinit.in: Skip various inline functions in rtl.h when
19158         stepping.
19160 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
19162         PR bootstrap/62301
19163         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
19165 2014-08-29  Richard Biener  <rguenther@suse.de>
19167         PR tree-optimization/62291
19168         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
19169         exactly the vector size needed and use quick_push.
19170         (phi_translate_1): Adjust comment.
19171         (valid_in_sets): Remove block argument and remove pointless
19172         checking of NAMEs.
19173         (dependent_clean): Adjust for removal of block argument.
19174         (clean): Likewise.
19175         (compute_antic_aux): Likewise.
19176         (compute_partial_antic_aux): Likewise.
19178 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19179             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19180             Anna Tikhonova  <anna.tikhonova@intel.com>
19181             Ilya Tocar  <ilya.tocar@intel.com>
19182             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19183             Ilya Verbin  <ilya.verbin@intel.com>
19184             Kirill Yukhin  <kirill.yukhin@intel.com>
19185             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19187         * config/i386/sse.md
19188         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
19189         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
19190         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
19191         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
19193 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19194             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19195             Anna Tikhonova  <anna.tikhonova@intel.com>
19196             Ilya Tocar  <ilya.tocar@intel.com>
19197             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19198             Ilya Verbin  <ilya.verbin@intel.com>
19199             Kirill Yukhin  <kirill.yukhin@intel.com>
19200             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19202         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
19203         * config/i386/sse.md
19204         (define_mode_iterator VI4_128_8_256): New.
19205         (define_mode_iterator VI2_128_4_256): Ditto.
19206         (define_mode_iterator PMOV_DST_MODE): Rename into
19207         (define_mode_iterator PMOV_DST_MODE_1): this.
19208         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
19209         Use PMOV_DST_MODE_1 mode iterator.
19210         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
19211         Ditto.
19212         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
19213         Ditto.
19214         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
19215         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
19216         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
19217         (define_mode_iterator PMOV_DST_MODE_2): New.
19218         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
19219         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
19220         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
19221         Ditto.
19222         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
19223         (define_mode_attr pmov_dst_3): Ditto.
19224         (define_mode_attr pmov_dst_zeroed_3): Ditto.
19225         (define_mode_attr pmov_suff_3): Ditto.
19226         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
19227         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
19228         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
19229         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
19230         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
19231         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
19232         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
19233         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
19234         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
19235         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
19236         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
19237         (define_mode_attr pmov_dst_4): Ditto.
19238         (define_mode_attr pmov_dst_zeroed_4): Ditto.
19239         (define_mode_attr pmov_suff_4): Ditto.
19240         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
19241         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
19242         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
19243         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
19244         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
19245         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
19246         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
19247         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
19248         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
19249         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
19250         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
19252 2014-08-29  Richard Biener  <rguenther@suse.de>
19254         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
19255         NON_LVALUE_EXPR in gimple.
19257 2014-08-29  Richard Biener  <rguenther@suse.de>
19259         PR middle-end/62292
19260         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
19261         from previous refactoring.
19262         (gimple_fold_builtin_strncpy): Likewise.
19264 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
19266         PR bootstrap/62300
19267         * function.c (assign_parm_setup_reg): Remove erroneous checked
19268         cast to rtx_insn * on result of gen_extend_insn in favor of
19269         introducing a new local rtx "pat".
19271 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19273         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
19274         to silence warning.
19275         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
19277 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19279         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
19280         (next_insn): Likewise.
19281         * emit-rtl.c (next_insn): Likewise.
19282         (previous_insn): Likewise.
19283         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
19284         "insn" and "next" from rtx to rtx_insn *.
19285         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
19286         "insn", "insn1", "vliw_start",  "prologue_end_note",
19287         "last_insn_in_packet".
19289 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19291         * shrink-wrap.h (active_insn_between): Strengthen both params from
19292         rtx to rtx_insn *.
19293         * function.c (active_insn_between): Likewise.
19295 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19297         * genattr.c (main): When writing out insn-attr.h, strengthen param
19298         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
19299         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
19300         writing out the definition of dfa_clear_single_insn_cache to the
19301         generated insn-automata.c
19303 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19305         * resource.h (clear_hashed_info_for_insn): Strengthen param from
19306         rtx to rtx_insn *.
19307         (incr_ticks_for_insn): Likewise.
19308         (init_resource_info): Likewise.
19310         * resource.c (init_resource_info): Likewise.
19311         (clear_hashed_info_for_insn): Likewise.
19312         (incr_ticks_for_insn): Likewise.
19314         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
19315         rtx to rtx_insn *.
19316         (steal_delay_list_from_target): Use methods of "seq".
19317         (try_merge_delay_insns): Use methods of "merged_insns".
19318         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
19319         (reorg_redirect_jump): Likewise for param "jump".
19321 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19323         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
19324         rtx to rtx_insn *.
19325         * config/s390/s390.c (s390_split_branches): Eliminate top-level
19326         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
19327         "set_insn".
19328         (s390_mainpool_finish): In three places, split out a local rtx
19329         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
19330         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
19331         and split another local rtx "insn" out into rtx "pat" and
19332         rtx_insn * "insn".
19333         * config/sh/sh.c (output_branchy_insn): Rather than working
19334         directly on operands[9], introduce local rtx_code_label *
19335         variables named "lab" in two places, working on them, and then
19336         assigning them to operands[9], so that the intervening operations
19337         are known by the type system to be on insns.
19339 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19341         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
19342         const rtx_insn *.
19344         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
19345         in invocation of INSN_HAS_LOCATION.
19347 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19349         * config/rs6000/altivec.h (vec_xl): New #define.
19350         (vec_xst): Likewise.
19351         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
19352         (XXSPLTD_V2DI): Likewise.
19353         (DIV_V2DI): Likewise.
19354         (UDIV_V2DI): Likewise.
19355         (MUL_V2DI): Likewise.
19356         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19357         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
19358         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
19359         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
19360         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
19361         (UNSPEC_VSX_DIVSD): Likewise.
19362         (UNSPEC_VSX_DIVUD): Likewise.
19363         (UNSPEC_VSX_MULSD): Likewise.
19364         (vsx_mul_v2di): New insn-and-split.
19365         (vsx_div_v2di): Likewise.
19366         (vsx_udiv_v2di): Likewise.
19367         (vsx_xxspltd_<mode>): New insn.
19369 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19371         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
19372         NEXT_INSN.
19373         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
19374         (NEXT_INSN): Likewise.
19375         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
19376         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
19377         const rtx_insn *.
19378         (no_labels_between_p): Likewise for both params.
19380         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
19381         cast when using NEXT_INSN on operands[2].
19382         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
19383         "insn" from rtx to rtx_insn *, adding a checked cast.
19384         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
19385         rtx_insn *.
19386         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
19387         for third param.
19388         (arc_text_label): Likewise for param "insn".
19389         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
19390         "insn".
19391         (arc_ccfsm_record_condition): Likewise for param "jump".
19392         (arc_text_label): Likewise for local "label".
19393         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
19394         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
19395         a method for typesafety.  Add a checked cast.
19396         * config/arc/constraints.md (Clb): Add a checked cast when getting
19397         the CODE_LABEL from a LABEL_REF.
19398         * config/arm/arm.c (require_pic_register): Strengthen locals
19399         "seq", "insn" from rtx to rtx_insn *.
19400         (create_fix_barrier): Likewise for locals "selected", "next".
19401         (thumb1_reorg): Likewise for locals "prev", "insn".
19402         (arm_expand_prologue): Likewise for local "last".
19403         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
19404         operands[0].
19405         (thumb2_output_casesi): Likewise for operands[2].
19406         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
19407         strengthen local "insn" from rtx to rtx_insn *.
19408         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
19409         type and param "insn".
19410         (find_prev_insn_start): Likewise.
19411         (hwloop_optimize): Likewise for locals "insn", "last_insn",
19412         "prev".
19413         (gen_one_bundle): Likewise for loal "t".
19414         (find_load): Likewise for param "insn".
19415         (workaround_speculation): Likewise for locals "insn", "next",
19416         "target", "next_tgt".
19417         * config/c6x/c6x.c (assign_reservations): Likewise for both params
19418         and for locals "insn", "within", "last".
19419         (count_unit_reqs): Likewise for params "head", "tail" and local
19420         "insn".
19421         (try_rename_operands): Likewise for params "head", "tail".
19422         (reshuffle_units): Likewise for locals "head", "tail", "insn".
19423         (struct c6x_sched_context): Likewise for fields
19424         "last_scheduled_insn", "last_scheduled_iter0".
19425         (init_sched_state): Replace NULL_RTX with NULL.
19426         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
19427         to rtx_insn *.
19428         (undo_split_delayed_nonbranch): Likewise for param and for local
19429         "prev".
19430         (conditionalize_after_sched): Likewise for local "insn".
19431         (bb_earliest_end_cycle): Likewise.
19432         (filter_insns_above): Likewise for locals "insn", "next".
19433         (hwloop_optimize): Remove redundant checked cast.
19434         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
19435         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
19436         NULL_RTX with NULL.
19437         (cris_simple_epilogue): Likewise.
19438         (cris_expand_prologue): Likewise.
19439         (cris_expand_epilogue): Likewise.
19440         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
19441         local "insn" from rtx to rtx_insn *.
19442         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
19443         (struct frv_packet_group): Likewise for the elements within array
19444         fields "insns", "sorted", and for field "nop".
19445         (frv_packet): Likewise for the elements within array field
19446         "insns".
19447         (frv_add_insn_to_packet): Likewise for param "insn".
19448         (frv_insert_nop_in_packet): Likewise for param "insn" and local
19449         "last".
19450         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
19451         (frv_sort_insn_group_1): Likewise for local "insn".
19452         (frv_optimize_membar_local): Likewise.
19453         (frv_align_label): Likewise for locals "x", "last", "barrier",
19454         "label".
19455         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
19456         local.
19457         (ia64_sched_init): Likewise for local "insn".
19458         (scheduled_good_insn): Likewise for param "last".
19459         (struct _ia64_sched_context): Likewise for field
19460         "last_scheduled_insn".
19461         (ia64_init_sched_context): Replace NULL_RTX with NULL.
19462         (struct bundle_state): Likewise for field "insn".
19463         (issue_nops_and_insn): Likewise for param "insn".
19464         (get_next_important_insn): Likewise for return type and both
19465         params.
19466         (ia64_add_bundle_selector_before): Likewise for param "insn".
19467         (bundling): Likewise for params "prev_head_insn", "tail" and
19468         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
19469         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
19470         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
19471         Strengthen final param from rtx to rtx_insn *.
19472         (iq2000_move_1word): Likewise for second param.
19473         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
19474         param "cur_insn" and local "next_insn".
19475         (iq2000_move_1word): Likewise for param "insn".
19476         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
19477         casts when using NEXT_INSN on operands[1].
19478         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
19479         "insn" from rtx to rtx_insn *.
19480         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
19481         "x", introducing local rtx_insn * "insn" for when working with the
19482         CODE_LABEL of the LABEL_REF.
19483         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
19484         rtx_insn *.
19485         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
19486         param.
19487         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
19488         type.
19489         (conditionalize_block): Likewise for return type and param.
19490         (mcore_is_dead): Likewise for param "first" and local "insn".
19491         (emit_new_cond_insn): Likewise for return type.
19492         (conditionalize_block): Likewise for return type, param, and
19493         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
19494         "newinsn".
19495         (conditionalize_optimization): Likewise for local "insn".
19496         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
19497         using NEXT_INSN.
19498         * config/microblaze/microblaze.md: Add checked casts when using
19499         NEXT_INSN.
19500         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
19501         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
19502         and rtx_insn * "insn".
19503         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
19504         checked cast when using NEXT_INSN on operands[2].
19505         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
19506         local "insn" from rtx to rtx_insn *.
19507         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
19508         Likewise.
19509         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
19510         Add a checked cast when using NEXT_INSN on operands[1].
19511         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
19512         rtx to rtx_insn *.
19513         (pa_output_cbranch): Likewise for final param.
19514         (pa_output_lbranch): Likewise for second param.
19515         (pa_output_bb): Likewise for third param.
19516         (pa_output_bvb): Likewise.
19517         (pa_output_dbra): Likewise for second param.
19518         (pa_output_movb): Likewise.
19519         (pa_output_parallel_movb): Likewise.
19520         (pa_output_parallel_addb): Likewise.
19521         (pa_output_millicode_call): Likewise for first param.
19522         (pa_output_mul_insn): Likewise for second param.
19523         (pa_output_div_insn): Likewise for third param.
19524         (pa_output_mod_insn): Likewise for second param.
19525         (pa_jump_in_call_delay): Likewise for param.
19526         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
19527         (pa_output_div_insn): Likewise.
19528         (pa_output_mod_insn): Likewise.
19529         (pa_output_cbranch): Likewise.
19530         (pa_output_lbranch): Likewise.
19531         (pa_output_bb): Likewise.
19532         (pa_output_bvb): Likewise.
19533         (pa_output_dbra): Likewise.
19534         (pa_output_movb): Likewise.
19535         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
19536         to simplify and for typesafety.
19537         (pa_output_call): Use method of rtx_sequence *.
19538         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
19539         (pa_jump_in_call_delay): Likewise.
19540         (pa_output_parallel_movb): Likewise.
19541         (pa_output_parallel_addb): Likewise.
19542         (pa_following_call): Likewise.
19543         (pa_combine_instructions): Likewise for locals "anchor",
19544         "floater".
19545         (pa_can_combine_p): Likewise for params "anchor", "floater" and
19546         locals "start", "end".
19547         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
19548         param "insn" and local "local_insn".
19549         (picochip_final_prescan_insn): Likewise for local "local_insn".
19550         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
19551         local "insn".
19552         (uses_TOC): Likewise.
19553         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
19554         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
19555         splitting out to more tightly-scoped locals, 3 as rtx and one as
19556         rtx_insn *.
19557         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
19558         to rtx_insn *.
19559         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
19560         where needed.
19561         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
19562         to rtx_insn *.
19563         (fixup_addr_diff_vecs): Likewise.
19564         (reg_unused_after): Likewise for param 2.
19565         (sh_can_redirect_branch): Likewise for both params.
19566         (check_use_sfunc_addr): Likewise for param 1.
19567         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
19568         (find_barrier): Likewise for local "last_got".
19569         (gen_block_redirect): Likewise for return type, param "jump" and
19570         locals "prev", "scan", "next", "insn".
19571         (struct far_branch): Likewise for fields "near_label",
19572         "insert_place", "far_label".
19573         (gen_far_branch): Likewise for local "jump".
19574         (fixup_addr_diff_vecs): Likewise for param "first" and locals
19575         "insn", "prev".
19576         (barrier_align): Likewise for param and for locals "prev", "x".
19577         Introduce local rtx_sequence * "prev_seq" and use insn method for
19578         typesafety and clarity.
19579         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
19580         (get_dest_uid): Likewise for local "dest".
19581         (split_branches): Likewise for locals "next", "beyond", "label",
19582         "block", "far_label".  Add checked casts when assigning to
19583         bp->far_label and "far_label".
19584         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
19585         (sequence_insn_p): Likewise.
19586         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
19587         more loop-scoped rtx "insn" when walking LABEL_REFS.
19588         (sh_can_redirect_branch): Strengthen both params from rtx to
19589         rtx_insn *.
19590         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
19591         new local rtx_sequence * "seq" via a dyn_cast, and use a method
19592         for clarity and typesafety.
19593         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
19594         "insn" from rtx to rtx_insn *.
19595         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
19596         when using NEXT_INSN on the CODE_LABEL in operands[2].
19597         (define_insn "casesi_worker_2"): Likewise.
19598         (define_insn "casesi_shift_media"): Likewise.
19599         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
19600         operands[3].
19601         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
19602         Strengthen field "insn" from rtx to rtx_insn *.
19603         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
19604         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
19605         param "start_insn" and local "start_insn".
19606         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
19607         field "insn".
19608         (find_set_of_reg_bb): Likewise for param "insn".
19609         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
19610         (trace_reg_uses): Likewise for param "start_insn".
19611         (sh_treg_combine::cbranch_trace): Likewise for field
19612         "cbranch_insn".
19613         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
19614         param "insn".
19615         (sh_treg_combine::record_set_of_reg): Likewise for param
19616         "start_insn" and local "i".
19617         (sh_treg_combine::can_remove_cstore): Likewise for local
19618         "prev_insn".
19619         (sh_treg_combine::try_optimize_cbranch): Likewise for param
19620         "insn".
19621         (sh_treg_combine::execute): Likewise for local "i".
19622         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
19623         param.
19624         (sparc_check_64): Likewise for second param.
19625         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
19626         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
19627         dyn_cast, using its insn method for typesafety and clarity.
19628         (empty_delay_slot): Strengthen param "insn" from rtx to
19629         rtx_insn *.
19630         (set_extends): Likewise.
19631         (sparc_check_64): Likewise.
19632         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
19633         for locals "seq", "last_insn".
19634         (combine_bnp): Likewise for param "insn".
19635         (xstormy16_reorg): Likewise for local "insn".
19636         * config/v850/v850.c (substitute_ep_register): Likewise for params
19637         "first_insn", "last_insn" and local "insn".
19638         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
19639         elements of "regs" array, and local "insn".
19640         * except.c (emit_note_eh_region_end): Likewise for param "insn".
19641         * final.c (final_sequence): Strengthen this global from rtx to
19642         rtx_sequence *.
19643         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
19644         rtx_insn *.
19645         (final_scan_insn): Update assignment to "final_sequence" to be
19646         from "seq", the cast version of "body", for type-safety.
19647         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
19648         "insns" from rtx to rtx_insn *.
19649         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
19650         * genattr.c (main): When writing out generated insn-attr.h,
19651         strengthen params 1 and 3 of eligible_for_delay,
19652         eligible_for_annul_true, eligible_for_annul_false from rtx to
19653         rtx_insn *.
19654         * genattrtab.c (write_eligible_delay): Likewise when writing out
19655         generated insn-attrtab.c; also local "insn" the generated
19656         functions.
19657         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
19658         to rtx_insn *.
19659         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
19660         "start_label" from rtx to rtx_insn *.
19661         * ira.c (decrease_live_ranges_number): Likewise for local "p".
19662         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
19663         "insns" and local "insn".
19664         (validate_equiv_mem): Likewise for param "start" and local "insn".
19665         (memref_used_between_p): Likewise for params "start", "end" and
19666         local "insn".
19667         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
19668         final param.
19669         * loop-doloop.c (doloop_optimize): Within region guarded by
19670         INSN_P (doloop_pat), introduce a new local rtx_insn *
19671         "doloop_insn" via a checked cast, and use it for typesafety,
19672         eventually writing the value back into doloop_pat.
19673         * output.h (final_sequence): Strengthen this global from rtx to
19674         rtx_sequence *.
19675         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
19676         reintroducing "insn" as an rtx_insn * via a checked cast.
19677         Strengthen param "attempt" and local "new_insn"from rtx to
19678         rtx_insn *.
19679         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
19680         to rtx_insn *.
19681         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
19682         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
19683         "p" in favor of more tightly-scoped replacements, sometimes rtx
19684         and sometimes rtx_insn *, as appropriate.
19685         (delete_output_reload): Eliminate top-level rtx "i1", splitting
19686         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
19687         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
19688         local "trial" from rtx to rtx_insn *.
19689         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
19690         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
19691         rtx_sequence * and use methods for clarity and typesafety.
19692         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
19693         rtx to rtx_insn *.  Strenghten local "li" from rtx to
19694         rtx_insn_list * and use its methods for clarity and typesafety.
19695         (steal_delay_list_from_target): Strengthen param "insn" from rtx
19696         to rtx_insn *.
19697         (steal_delay_list_from_fallthrough): Likewise.
19698         (try_merge_delay_insns): Likewise for param "thread" and locals
19699         "trial", "next_trial", "delay_insn".
19700         (redundant_insn): Likewise for param "target" and local "trial".
19701         (own_thread_p): Likewise for param "thread" and locals
19702         "active_insn", "insn".
19703         (get_label_before): Likewise for param "insn".
19704         (fill_simple_delay_slots): Likewise for local "new_label"; use
19705         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
19706         (label_before_next_insn): Strengthen return type and local "insn"
19707         from rtx to rtx_insn *.
19708         (relax_delay_slots): Likewise for locals "other", "tmp".
19709         (make_return_insns): Likewise for param "first" and locals "insn",
19710         "jump_insn", "prev".  Move declaration of "pat" to its assignment
19711         and strengthen from rtx to rtx_sequence *.  Use its methods for
19712         clarity and typesafety.
19713         * rtlanal.c (no_labels_between_p): Strengthen params from
19714         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
19715         rtx_insn *.
19716         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
19717         from const_rtx to const rtx_insn *.
19718         (reg_set_between_p): Rename param "from_insn" to
19719         "uncast_from_insn", and reintroduce "from_insn" as a
19720         const rtx_insn * via a checked cast.
19721         (modified_between_p): Likewise for param "start" as "uncast_start".
19722         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
19723         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
19724         "tmp", head" from rtx to rtx_insn *.
19725         (recompute_rev_top_order): Likewise for local "insn".
19726         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
19727         * store-motion.c (build_store_vectors): Likewise for local "insn".
19728         Strengthen local "st" from rtx to rtx_insn_list * and use methods
19729         for clarity and typesafety.
19730         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
19731         rtx to rtx_insn *.
19732         (computation_cost): Likewise for local "seq".
19733         (get_address_cost): Likewise.
19735 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19737         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
19738         const rtx_insn *.
19739         (label_is_jump_target_p): Likewise for second param.
19741         * rtlanal.c (tablejump_p): Likewise for param "insn".
19742         (label_is_jump_target_p): Likewise for param "jump_insn".
19744 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19746         * rtl.h (find_first_parameter_load): Strengthen return type and
19747         both params from rtx to rtx_insn *.
19748         * rtlanal.c (find_first_parameter_load): Strengthen return type,
19749         both params and locals "before", "first_set" from rtx to
19750         rtx_insn *.  Remove now-redundant cast.
19751         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
19753 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19755         * rtl.h (find_last_value): Delete.
19756         * rtlanal.c (find_last_value): Delete.
19758 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19760         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
19761         from rtx to rtx_insn *.
19762         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
19763         rtx "note" with new local rtx_insn * "new_head" when calculating
19764         head insn of new basic block.
19765         * combine.c (combine_split_insns): Strengthen return type and local
19766         "ret" from rtx to rtx_insn *.
19767         (likely_spilled_retval_p): Likewise for locals "use" and "p".
19768         (try_combine): Eliminate local "m_split", splitting into new
19769         locals "m_split_insn" and "m_split_pat".
19770         (find_split_point): Strengthen local "seq" from rtx into
19771         rtx_insn *.
19772         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
19773         locals "label", "branch".
19774         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
19775         for local "insn".
19776         (define_expand "umulsi3_highpart"): Likewise for local "insn".
19777         * dse.c (note_add_store_info): Likewise for fields "first",
19778         "current".
19779         (note_add_store): Likewise for local "insn".
19780         (emit_inc_dec_insn_before): Likewise for locals "insn",
19781         "new_insn", "cur".
19782         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
19783         (replace_read): Likewise for locals "insns", "this_insn".
19784         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
19785         (notice_eh_throw): Likewise for param "insn".
19786         (before_next_cfi_note): Likewise for return type, param, and local
19787         "prev".
19788         (connect_traces): Likewise for local "note".
19789         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
19790         (verify_rtl_sharing): Likewise.
19791         (unshare_all_rtl_in_chain): Likewise for param "insn".
19792         (get_first_nonnote_insn): Likewise for local "insn".
19793         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
19794         "seq" and use its methods to clarify things.
19795         (next_insn): Strengthen return type from rtx to rtx_insn *.
19796         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
19797         local rtx_insn * using a checked cast, dropping a checked cast
19798         made redundant by this change.  Use a cast to and method of
19799         rtx_sequence to clarify the code.
19800         (previous_insn): Rename param "insn" to "uncast_insn" and
19801         reintroduce "insn" as a local rtx_insn * using a checked cast,
19802         dropping a checked cast made redundant by this change.  Use a cast
19803         to and method of rtx_sequence to clarify the code.
19804         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
19805         reintroduce "insn" as a local rtx_insn * using a checked cast,
19806         dropping a checked cast made redundant by this change.
19807         (next_nonnote_insn_bb): Likewise.
19808         (prev_nonnote_insn): Likewise.
19809         (prev_nonnote_insn_bb): Likewise.
19810         (next_nondebug_insn): Likewise.
19811         (prev_nondebug_insn): Likewise.
19812         (next_nonnote_nondebug_insn): Likewise.
19813         (prev_nonnote_nondebug_insn): Likewise.
19814         (next_real_insn): Likewise.
19815         (prev_real_insn): Likewise.
19816         (next_active_insn): Likewise.
19817         (prev_active_insn): Likewise.
19818         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
19819         clarity.
19820         (prev_cc0_setter): Likewise.
19821         (try_split): Rename param "trial" to "uncast_trial" and
19822         reintroduce "insn" as a local rtx_insn * using a checked cast,
19823         dropping checked casts made redundant by this change.
19824         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
19825         rtx to rtx_insn *.
19826         (remove_insn): Rename param "insn" to "uncast_insn" and
19827         reintroduce "insn" as a local rtx_insn * using a checked cast.
19828         (emit_pattern_after_setloc): Likewise for param "after", as
19829         "uncast_after".
19830         (emit_pattern_after): Likewise.  Strengthen local "prev" from
19831         rtx to rtx_insn *.
19832         (emit_pattern_before_setloc): Rename param "before" to
19833         "uncast_before" and reintroduce "before" as a local rtx_insn *
19834         using a checked cast.  Strengthen locals "first", "last" from
19835         rtx to rtx_insn *.
19836         (emit_pattern_before): Likewise rename/cast param "before" to
19837         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
19838         * except.c (copy_reg_eh_region_note_forward): Strengthen param
19839         "first" and local "insn" from rtx to rtx_insn *.
19840         (copy_reg_eh_region_note_backward): Likewise for param "last"
19841         and local "insn".
19842         * expr.c (fixup_args_size_notes): Rename param "last" to
19843         "uncast_last" and reintroduce "last" as a local rtx_insn *
19844         using a checked cast.  Strengthen local "insn" from rtx to
19845         rtx_insn *.
19846         * function.c (set_insn_locations): Strengthen param "insn" from
19847         rtx to rtx_insn *.
19848         (record_insns): Likewise for param "insns" and local "tmp".
19849         (active_insn_between): Rename param "tail" to
19850         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
19851         using a checked cast.
19852         (thread_prologue_and_epilogue_insns): Split out top-level local
19853         rtx "seq" into three different rtx_insn * locals.  Strengthen
19854         local "prologue_seq" from rtx to rtx_insn *.
19855         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
19856         from rtx to rtx_insn *.
19857         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
19858         (priority): Likewise for locals "prev_first", "twin".
19859         (setup_insn_max_reg_pressure): Likewise for param "after".
19860         (sched_setup_bb_reg_pressure_info): Likewise.
19861         (no_real_insns_p): Strengthen params from const_rtx to
19862         const rtx_insn *.
19863         (schedule_block): Strengthen local "next_tail" from rtx to
19864         rtx_insn *.
19865         * ifcvt.c (find_active_insn_before): Strengthen return type and
19866         param "insn" from rtx to rtx_insn *.
19867         (find_active_insn_after): Likewise.
19868         (cond_exec_process_insns): Likewise for param "start" and local "insn".
19869         (cond_exec_process_if_block): Likewise for locals "then_start",
19870         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
19871         (noce_process_if_block): Likewise for local "jump".
19872         (merge_if_block): Likewise for two locals named "end".
19873         (cond_exec_find_if_block): Likewise for local "last_insn".
19874         * jump.c (delete_related_insns): Rename param "insn" to
19875         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
19876         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
19877         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
19878         NULL.
19879         (split_reg): Likewise.
19880         * lra.c (lra_process_new_insns): Likewise.
19881         * modulo-sched.c (permute_partial_schedule): Strengthen param
19882         "last" from rtx to rtx_insn *.
19883         * optabs.c (add_equal_note): Likewise for param "insns" and local
19884         "last_insn".
19885         (expand_binop_directly): Add checked casts to rtx_insn * within
19886         NEXT_INSN (pat) uses.
19887         (expand_unop_direct): Likewise.
19888         (maybe_emit_unop_insn): Likewise.
19889         * recog.c (peep2_attempt): Strengthen locals "last",
19890         "before_try", "x" from rtx to rtx_insn *.
19891         * reorg.c (optimize_skip): Strengthen return type and local
19892         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
19893         and locals "trial", "next_trial" from rtx to rtx_insn *.
19894         * resource.c (next_insn_no_annul): Strengthen return type and
19895         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
19896         rtx_sequence to clarify the code.
19897         (mark_referenced_resources): Add a checked cast to rtx_insn *
19898         within PREV_INSN (x).
19899         (find_dead_or_set_registers): Strengthen return type, param
19900         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
19901         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
19902         to rtx_insn **.
19903         (mark_target_live_regs): Strengthen params "insns" and "target",
19904         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
19905         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
19906         the code.
19907         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
19908         from rtx to rtx_insn *.
19909         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
19910         from rtx to rtx_insn *.
19911         (copy_reg_eh_region_note_backward): Likewise.
19912         (unshare_all_rtl_in_chain): Likewise for sole param.
19913         (dump_rtl_slim): Strengthen second and third params from const_rtx
19914         to const rtx_insn *.
19915         * sched-deps.c (sched_free_deps): Strengthen params "head" and
19916         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
19917         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
19918         "next_tail" from rtx to rtx_insn *.
19919         (begin_move_insn): Likewise for local "next".
19920         * sched-int.h (sched_free_deps): Likewise for first and second
19921         params.
19922         (no_real_insns_p): Strengthen both params from const_rtx to
19923         const rtx_insn *.
19924         (sched_setup_bb_reg_pressure_info): Strengthen second params from
19925         rtx to rtx_insn *.
19926         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
19927         "next_tail".
19928         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
19929         and locals "insn", "tail" from const_rtx to const rtx_insn *.
19930         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
19931         rtx_insn *.
19932         (debug_rtl_slim): Strengthen params "first" and "last" from
19933         const_rtx to const rtx_insn *.
19934         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
19935         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
19936         (convert_to_simple_return): Likewise for param "returnjump".
19937         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
19938         "prologue_seq".
19939         (convert_to_simple_return): Likewise for param "returnjump".
19940         * valtrack.c (propagate_for_debug): Likewise for params
19941         "insn", "last".
19942         * valtrack.h (propagate_for_debug): Likewise for second param.
19944 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19946         * output.h (insn_current_reference_address): Strengthen param
19947         from rtx to rtx_insn *.
19948         * final.c (insn_current_reference_address): Likewise.
19950 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19952         * basic-block.h (inside_basic_block_p): Strengthen param from
19953         const_rtx to const rtx_insn *.
19954         * cfgbuild.c (inside_basic_block_p): Likewise.
19956 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19958         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
19959         rtx_insn *.
19960         (get_trace_info): Likewise for param "insn".
19961         (save_point_p): Likewise.
19962         (maybe_record_trace_start): Likewise for both params.
19963         (maybe_record_trace_start_abnormal): Likewise.
19964         (create_trace_edges): Likewise for sole param and for three of the
19965         locals named "lab".
19966         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
19967         to rtx_insn *, and update a call to pat->element to pat->insn.
19969 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19971         * function.h (struct expr_status): Convert field "x_forced_labels"
19972         from rtx_expr_list * to rtx_insn_list *.
19974         * cfgbuild.c (make_edges): Convert local "x" from an
19975         rtx_expr_list * to an rtx_insn_list *, replacing use of
19976         "element" method with "insn" method.
19977         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
19978         * except.c (sjlj_emit_dispatch_table): Replace use of
19979         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
19980         forced_labels.
19981         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
19982         rtx_expr_list * to an rtx_insn_list *, replacing use of
19983         "element" method with "insn" method.
19984         * reload1.c (set_initial_label_offsets): Likewise for local "x".
19985         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
19986         rtx_insn *, adding a checked cast.  Replace use of
19987         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
19988         forced_labels.
19989         (expand_label): Likewise for local "label_r".
19991 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
19993         * function.h (struct rtl_data): Convert field
19994         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
19995         rtx_insn_list *.
19996         * rtl.h (remove_node_from_insn_list): New prototype.
19998         * builtins.c (expand_builtin): When prepending to
19999         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
20000         gen_rtx_EXPR_LIST.
20001         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
20002         to rtx_insn_list *, and use its "insn" method rather than
20003         "element" method.
20004         * cfgrtl.c (delete_insn): Use new function
20005         remove_node_from_insn_list rather than
20006         remove_node_from_expr_list.
20007         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
20008         to rtx_insn_list *, and use its "insn" method rather than
20009         "element" method.
20010         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
20011         * reload1.c (set_initial_label_offsets): Likewise for local "x".
20012         * rtlanal.c (remove_node_from_insn_list): New function, adapted
20013         from remove_node_from_expr_list.
20014         * stmt.c (expand_label): When prepending to
20015         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
20016         gen_rtx_EXPR_LIST.
20018 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20020         * function.h (struct rtl_data): Strengthen fields "x_return_label"
20021         and "x_naked_return_label" from rtx to rtx_code_label *.
20023 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20025         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
20026         (SET_NEXT_INSN): Likewise.
20027         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
20029         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
20030         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
20031         to split out the SEQUENCE from local "bundle", strengthening the
20032         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
20033         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
20034         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
20035         and the type of the elements of the "slot" array from rtx to
20036         rtx_insn *.
20037         (reorg_split_calls): Likewise for locals "insn" and "next", and
20038         the type of the elements of the "slot" array.
20040         * config/frv/frv.c (frv_nops): Likewise for the elements of this
20041         array.
20042         (frv_function_prologue): Likewise for locals "insn", "next",
20043         "last_call".
20044         (frv_register_nop): Introduce a local "nop_insn" to be the
20045         rtx_insn * containing rtx "nop".
20047         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
20048         used as an insn and sometimes as a pattern, so rename it to
20049         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
20050         using it where dealing with the core insn.
20052         * config/picochip/picochip.c (reorder_var_tracking_notes):
20053         Strengthen locals "insn", "next", "last_insn", "queue",
20054         "next_queue", "prev" from rtx to rtx_insn *.
20056         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
20057         the second param is an rtx_insn ** rather than an rtx **.
20058         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
20059         from rtx to rtx_sequence *, and introduce local named "sequence",
20060         using methods of rtx_sequence to clarify the code.
20061         (remove_insn): Introduce local rtx_sequence * named "sequence" and
20062         use its methods.
20063         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
20064         Rename param "after" to "uncast_after", reintroducing "after" as a
20065         local rtx_insn * with a checked cast.
20066         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
20067         reintroducing "after" as a local rtx_insn * with a checked cast.
20068         Strengthen local "last" from rtx to rtx_insn * and remove the
20069         now-redundant checked casts.
20070         (copy_delay_slot_insn): Strengthen return type and param from rtx
20071         to rtx_insn *.
20073         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
20074         "last" from rtx to rtx_insn *.
20076 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
20078         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
20079         param from rtx to rtx_insn *.
20081         * emit-rtl.c (copy_delay_slot_insn): Likewise.
20083         * reorg.c (skip_consecutive_labels): Strengthen return type, param
20084         and local "insn" from rtx to rtx_insn *.
20085         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
20086         (unfilled_slots_next): Likewise.
20087         (function_return_label): Strengthen from rtx to rtx_code_label *.
20088         (function_simple_return_label): Likewise.
20089         (first_active_target_insn): Strengthen return type and param from
20090         rtx to rtx_insn *.
20091         (find_end_label): Strengthen return type from rtx to
20092         rtx_code_label *; strengthen locals as appropriate.
20093         (emit_delay_sequence): Strengthen return type, param "insn" and
20094         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
20095         and local "li" from rtx to rtx_insn_list *, using methods of
20096         rtx_insn_list for clarity and typesafety.
20097         (add_to_delay_list): Strengthen return type and param "insn" from
20098         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
20099         rtx_insn_list * and use methods of rtx_insn_list.
20100         (delete_from_delay_slot): Strengthen return type, param "insn",
20101         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
20102         Strengthen local "seq" from rtx to rtx_sequence *, and local
20103         "delay_list" from rtx to rtx_insn_list *, using methods of
20104         rtx_sequence for clarity and type-safety.
20105         (delete_scheduled_jump): Add checked cast when invoking
20106         delete_from_delay_slot.  Strengthen local "trial" from rtx to
20107         rtx_insn *.
20108         (optimize_skip): Strengthen return type and local "delay_list"
20109         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
20110         rtx_insn *.
20111         (steal_delay_list_from_target): Strengthen return type, param
20112         "delay_list" and local "new_delay_list" from rtx to
20113         rtx_insn_list *.  Strengthen param "seq" from rtx to
20114         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
20115         rtx_insn **.
20116         Split out local "temp" into multiple more-tightly scoped locals:
20117         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
20118         of rtx_insn_list and rtx_sequence for clarity and typesafety.
20119         Strengthen locals named "trial" from rtx to rtx_insn *.
20120         (steal_delay_list_from_fallthrough): Strengthen return type and
20121         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
20122         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
20123         Strengthen local "trial" from rtx to rtx_insn *.
20124         (try_merge_delay_insns): Strength local "merged_insns" from rtx
20125         to rtx_insn_list * and use its methods.  Strengthen local "pat"
20126         from rtx to rtx_sequence * and use its methods.  Strengthen locals
20127         "dtrial" and "new_rtx" from rtx to rtx_insn *.
20128         (get_label_before): Strengthen return type and local "label" from
20129         rtx to rtx_insn *.
20130         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
20131         "next_trial", "next", prev".  Strengthen local "delay_list" from
20132         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
20133         rtx_insn **.
20134         (follow_jumps): Strengthen return type, param "label" and locals
20135         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
20136         (fill_slots_from_thread): Strengthen return type, param
20137         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
20138         "insn", "thread", "opposite_thread" and locals "new_thread",
20139         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
20140         "sequence" from a checked cast to rtx_sequence so that we can call
20141         steal_delay_list_from_target and steal_delay_list_from_fallthrough
20142         with an rtx_sequence *.
20143         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
20144         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
20145         Strengthen local "delay_list" from rtx to rtx_insn_list *.
20146         (relax_delay_slots): Strengthen param "first" and locals "insn",
20147         "next", "trial", "delay_insn", "target_label" from rtx to
20148         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
20149         Introduce a local "trial_seq" for PATTERN (trial) of type
20150         rtx_sequence *, in both cases using methods of rtx_sequence.
20151         (dbr_schedule): Strengthen param "first" and locals "insn",
20152         "next", "epilogue_insn" from rtx to rtx_insn *.
20154 2014-08-28  Richard Biener  <rguenther@suse.de>
20156         PR tree-optimization/62283
20157         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20158         Do not peel loops for alignment where the vector loop likely
20159         doesn't run at least VF times.
20161 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
20163         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
20164         important_candidates.  Consider all important candidates if
20165         IVS doesn't give any result.  Remove check on ivs->upto.
20166         (try_add_cand_for): Call iv_ca_add_use only once.
20168 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20169             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20170             Anna Tikhonova  <anna.tikhonova@intel.com>
20171             Ilya Tocar  <ilya.tocar@intel.com>
20172             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20173             Ilya Verbin  <ilya.verbin@intel.com>
20174             Kirill Yukhin  <kirill.yukhin@intel.com>
20175             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20177         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
20178         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
20179         masking.
20180         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
20181         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
20182         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
20183         (define_insn "*mul<mode>3"): Add EVEX version.
20185 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20186             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20187             Anna Tikhonova  <anna.tikhonova@intel.com>
20188             Ilya Tocar  <ilya.tocar@intel.com>
20189             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20190             Ilya Verbin  <ilya.verbin@intel.com>
20191             Kirill Yukhin  <kirill.yukhin@intel.com>
20192             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20194         * config/i386/sse.md
20195         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
20196         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
20197         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
20198         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
20199         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
20200         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
20201         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
20202         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
20203         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
20204         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
20205         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
20206         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
20207         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
20208         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
20209         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
20210         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
20212 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20213             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20214             Anna Tikhonova  <anna.tikhonova@intel.com>
20215             Ilya Tocar  <ilya.tocar@intel.com>
20216             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20217             Ilya Verbin  <ilya.verbin@intel.com>
20218             Kirill Yukhin  <kirill.yukhin@intel.com>
20219             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20221         * config/i386/sse.md
20222         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
20223         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
20224         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
20226 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20227             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20228             Anna Tikhonova  <anna.tikhonova@intel.com>
20229             Ilya Tocar  <ilya.tocar@intel.com>
20230             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20231             Ilya Verbin  <ilya.verbin@intel.com>
20232             Kirill Yukhin  <kirill.yukhin@intel.com>
20233             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20235         * config/i386/sse.md
20236         (define_mode_iterator VI128_256): New.
20237         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
20239 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20240             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20241             Anna Tikhonova  <anna.tikhonova@intel.com>
20242             Ilya Tocar  <ilya.tocar@intel.com>
20243             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20244             Ilya Verbin  <ilya.verbin@intel.com>
20245             Kirill Yukhin  <kirill.yukhin@intel.com>
20246             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20248         * config/i386/sse.md
20249         (define_mode_iterator VI8_256_512): New.
20250         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
20251         Ditto.
20252         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
20253         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
20254         Ditto.
20255         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
20257 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20259         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
20260         pointer to the cumulative reloc value and return the value for
20261         this reloc instead.
20262         (compute_reloc_for_rtx): Take a const_rtx.  Call
20263         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
20264         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
20265         for_each_rtx for the CONST case.
20267 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20269         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
20270         (mark_constants_in_pattern): ...this new function to iterate over
20271         all the subrtxes.
20272         (mark_constants): Update accordingly.
20274 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20276         * varasm.c: Include rtl-iter.h.
20277         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
20278         Remove the pointer to the cumulative hashval_t and just return
20279         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
20280         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
20281         Accumulate the hashval_ts here instead of const_rtx_hash_1.
20283 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20285         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
20286         Give real type of data parameter.  Remove return value.
20287         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
20288         to iterate over subrtxes.
20290 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20292         * var-tracking.c (use_narrower_mode_test): Turn from being a
20293         for_each_rtx callback to being a function that examines each
20294         subrtx itself.
20295         (adjust_mems): Update accordingly.
20297 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20299         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
20300         callback to being a function that examines each subrtx itself.
20301         Remove handling of null rtxes.
20302         (add_uses): Update accordingly.
20304 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20306         * var-tracking.c: Include rtl-iter.h.
20307         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
20308         to being a function that examines each subrtx itself.
20309         (use_type): Update accordingly.
20311 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20313         * store-motion.c: Include rtl-iter.h.
20314         (extract_mentioned_regs_1): Delete.
20315         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
20316         for_each_rtx to iterate over subrtxes.
20318 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20320         * sel-sched.c: Include rtl-iter.h
20321         (count_occurrences_1): Delete.
20322         (count_occurrences_equiv): Turn rtxes into const_rtxes.
20323         Use FOR_EACH_SUBRTX rather than for_each_rtx.
20325 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20327         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
20328         * rtlanal.c (tls_referenced_p_1): Delete.
20329         (tls_referenced_p): Take a const_rtx rather than an rtx.
20330         Use FOR_EACH_SUBRTX rather than for_each_rtx.
20332 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20334         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
20335         (for_each_inc_dec): Take an rtx rather than an rtx *.
20336         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
20337         (cselib_record_sets): Likewise.
20338         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
20339         (check_for_inc_dec): Likewise.
20340         * rtlanal.c (for_each_inc_dec_ops): Delete.
20341         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
20342         rather than a pointer to the memory address.  Replace
20343         for_each_inc_dec_ops argument with separate function and data
20344         arguments.  Abort on non-autoinc addresses.
20345         (for_each_inc_dec_find_mem): Delete.
20346         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
20347         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
20349 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20351         * rtl.h (find_all_hard_regs): Declare.
20352         * rtlanal.c (find_all_hard_regs): New function.
20353         (record_hard_reg_uses_1): Delete.
20354         (record_hard_reg_uses): Use find_all_hard_regs.
20356 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20358         * rtl.h (replace_label_data): Delete.
20359         (replace_label): Take the old label, new label and update-nuses flag
20360         as direct arguments.  Return void.
20361         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
20362         * rtlanal.c (replace_label): Update interface as above.  Handle
20363         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
20364         iterator.  Use FOR_EACH_SUBRTX_PTR.
20366 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20368         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
20369         with const_rtx parameters.
20370         * varasm.c (get_pool_constant): Likewise.
20371         * rtlanal.c (rtx_referenced_p_1): Delete.
20372         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
20373         Assert that the rtx we're looking for is nonnull.  Allow searches
20374         for constant pool SYMBOL_REFs.
20376 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20378         * reload1.c: Include rtl-iter.h.
20379         (note_reg_elim_costly): Turn from being a for_each_rtx callback
20380         to being a function that examines each subrtx itself.
20381         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
20383 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20385         * regcprop.c (cprop_find_used_regs_1): Delete.
20386         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
20388 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20390         * regcprop.c: Include rtl-iter.h.
20391         (kill_value): Take a const_rtx.
20392         (kill_autoinc_value): Turn from being a for_each_rtx callback
20393         to being a function that examines each subrtx itself.
20394         (copyprop_hardreg_forward_1): Update accordingly.
20396 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20398         * reg-stack.c: Include rtl-iter.h.
20399         (subst_stack_regs_in_debug_insn): Delete.
20400         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
20401         instead of for_each_rtx.
20403 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20405         * lower-subreg.c (find_decomposable_subregs): Turn from being
20406         a for_each_rtx callback to being a function that examines each
20407         subrtx itself.  Remove handling of null rtxes.
20408         (decompose_multiword_subregs): Update accordingly.
20410 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20412         * lower-subreg.c (adjust_decomposed_uses): Delete.
20413         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
20414         Remove handling of null rtxes.
20416 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20418         * lower-subreg.c: Include rtl-iter.h.
20419         (resolve_subreg_use): Turn from being a for_each_rtx callback
20420         to being a function that examines each subrtx itself.  Remove
20421         handling of null rtxes.
20422         (resolve_reg_notes, resolve_simple_move): Update accordingly.
20423         (decompose_multiword_subregs): Likewise.
20425 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20427         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
20428         to being a function that examines each subrtx itself.
20429         (simplify_using_condition, simplify_using_initial_values): Update
20430         accordingly.
20432 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20434         * loop-iv.c: Include rtl-iter.h.
20435         (find_single_def_src): New function.
20436         (replace_single_def_regs): Turn from being a for_each_rtx callback
20437         to being a function that examines each subrtx itself.
20438         (replace_in_expr, simplify_using_initial_values): Update accordingly.
20440 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20442         * jump.c (eh_returnjump_p_1): Delete.
20443         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
20444         Remove handling of null rtxes.
20446 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20448         * jump.c: Include rtl-iter.h.
20449         (returnjump_p_1): Delete.
20450         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
20451         Remove handling of null rtxes.
20453 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20455         * ira.c: Include rtl-iter.h.
20456         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
20457         to being a function that examines each subrtx itself.  Remove
20458         handling of null rtxes.
20459         (update_equiv_regs): Update call accordingly.
20461 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20463         * fwprop.c: Include rtl-iter.h.
20464         (varying_mem_p): Turn from being a for_each_rtx callback to being
20465         a function that examines each subrtx itself.
20466         (propagate_rtx): Update accordingly.
20468 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20470         * function.c: Include rtl-iter.h
20471         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
20472         callback to being a function that examines each subrtx itself.
20473         Return the changed flag.
20474         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
20475         (instantiate_virtual_regs): Update calls accordingly.
20477 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20479         * final.c: Include rtl-iter.h.
20480         (mark_symbol_ref_as_used): Delete.
20481         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
20482         for_each_rtx.
20484 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20486         * emit-rtl.c: Include rtl-iter.h.
20487         (find_auto_inc): Turn from being a for_each_rtx callback to being
20488         a function that examines each subrtx itself.  Assume the first operand
20489         to an RTX_AUTOINC is the automodified register.
20490         (try_split): Update call accordingly.
20492 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20494         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
20495         Return a bool, inverting the result so that 0/false means "not ok".
20496         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
20497         subrtxes of a CONST.
20498         (mem_loc_descriptor, add_const_value_attribute)
20499         (resolve_addr_in_expr): Update calls accordingly.
20501 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20503         * dwarf2out.c: Include rtl-iter.h.
20504         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
20505         Remove unused data parameter.  Return a bool, inverting the result
20506         so that 0/false means "not ok".
20507         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
20508         instead of for_each_rtx.
20510 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20512         * dse.c: Include rtl-iter.h.
20513         (check_mem_read_rtx): Change void * parameter to real type.
20514         Remove return value.
20515         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
20516         for_each_rtx.  Don't handle null rtxes.
20518 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20520         * df-problems.c: Include rtl-iter.h.
20521         (find_memory): Turn from being a for_each_rtx callback to being
20522         a function that examines each subrtx itself.  Continue to look for
20523         volatile references even after a nonvolatile one has been found.
20524         (can_move_insns_across): Update calls accordingly.
20526 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20528         * ddg.c (walk_mems_2, walk_mems_1): Delete.
20529         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
20530         to iterate over subrtxes.  Return a bool rather than an int.
20532 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20534         * ddg.c: Include rtl-iter.h.
20535         (mark_mem_use_1): Rename to...
20536         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
20537         instead of for_each_rtx.
20538         (mem_read_insn_p): Update accordingly.
20540 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20542         * cse.c (change_cc_mode_args): Delete.
20543         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
20544         a function that examines each subrtx itself.  Take the fields of
20545         change_cc_mode_args as argument and return void.
20546         (cse_change_cc_mode_insn): Update calls accordingly.
20548 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20550         * cse.c (is_dead_reg): Change argument to const_rtx.
20551         (dead_debug_insn_data): Delete.
20552         (is_dead_debug_insn): Expand commentary.  Turn from being a
20553         for_each_rtx callback to being a function that examines
20554         each subrtx itself.  Take the fields of dead_debug_insn_data
20555         as argument.
20556         (delete_trivially_dead_insns): Update call accordingly.
20558 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20560         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
20561         being a for_each_rtx callback to being a function that examines
20562         each subrtx itself.
20563         (cse_extended_basic_block): Update call accordingly.
20565 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20567         * cse.c (check_dependence_data): Delete.
20568         (check_dependence): Change from being a for_each_rtx callback to being
20569         a function that examines all subrtxes itself.  Don't handle null rtxes.
20570         (invalidate): Update call accordingly.
20572 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20574         * cse.c: Include rtl-iter.h.
20575         (approx_reg_cost_1): Delete.
20576         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
20577         Don't handle null rtxes.
20579 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20581         * cfgcleanup.c: Include rtl-iter.h.
20582         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
20583         to being a function that examines each subrtx itself.
20584         (thread_jump): Update accordingly.
20586 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20588         * combine-stack-adj.c: Include rtl-iter.h.
20589         (record_stack_refs_data): Delete.
20590         (record_stack_refs): Turn from being a for_each_rtx callback
20591         to being a function that examines each subrtx itself.
20592         Take a pointer to the reflist.  Invert sense of return value
20593         so that true means success and false means failure.  Don't
20594         handle null rtxes.
20595         (combine_stack_adjustments_for_block): Update accordingly.
20597 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20599         * combine.c (record_truncated_value): Turn from being a for_each_rtx
20600         callback to a function that takes an rtx and returns a bool
20601         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
20602         for_each_rtx.
20604 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20606         * combine.c: Include rtl-iter.h.
20607         (unmentioned_reg_p_1): Delete.
20608         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
20609         Don't handle null rtxes.
20611 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20613         * calls.c: Include rtl-iter.h.
20614         (internal_arg_pointer_based_exp_1): Delete.
20615         (internal_arg_pointer_based_exp): Take a const_rtx.
20616         Use FOR_EACH_SUBRTX to iterate over subrtxes.
20618 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20620         * caller-save.c: Include rtl-iter.h.
20621         (add_used_regs_1): Delete.
20622         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
20623         to iterate over subrtxes.  Assert that any remaining pseudos
20624         have been spilled.
20626 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20628         * bt-load.c: Include rtl-iter.h.
20629         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
20630         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
20631         to iterate over subrtxes.
20632         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
20633         find_btr_use rather than btr_referenced_p.
20635 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20637         * alias.c: Include rtl-iter.h.
20638         (refs_newer_value_cb): Delete.
20639         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
20641 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
20643         * rtl-iter.h: New file.
20644         * rtlanal.c: Include it.
20645         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
20646         (generic_subrtx_iterator <T>::add_single_to_queue)
20647         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
20648         (generic_subrtx_iterator <T>::free_array): New functions.
20649         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
20650         (generic_subrtx_iterator <const_rtx_accessor>)
20651         (generic_subrtx_iterator <rtx_var_accessor>
20652         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
20653         (setup_reg_subrtx_bounds): New function.
20654         (init_rtlanal): Call it.
20656 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
20658         PR target/62261
20659         * config/sh/sh.md (ashlsi3): Handle negative shift count for
20660         TARGET_SHMEDIA.
20661         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
20663 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
20665         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
20667 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20669         * rtl.h (JUMP_LABEL_AS_INSN): New.
20671 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20673         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
20674         rtx_expr_list **.
20675         (alloc_EXPR_LIST): Strengthen return type from rtx to
20676         rtx_expr_list *.
20677         (remove_free_EXPR_LIST_node): Likewise for param.
20678         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
20679         from rtx to rtx_expr_list *.
20680         * sched-int.h (struct deps_desc): Strengthen fields
20681         "pending_read_mems" and "pending_write_mems" from rtx to
20682         rtx_expr_list *.
20684         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
20685         rtx to rtx_expr_list *.
20686         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
20687         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
20688         rtx_expr_list **.
20689         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
20690         from rtx to rtx_expr_list *.
20691         * loop-iv.c (simplify_using_initial_values): Strengthen local
20692         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
20693         "pnote_next" from rtx * to rtx_expr_list **.
20694         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
20695         param "exprp" from rtx * to rtx_expr_list **.
20696         (add_insn_mem_dependence): Strengthen local "mem_list" from
20697         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
20698         to rtx_expr_list *.
20699         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
20700         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
20701         param "old_mems_p" from rtx * to rtx_expr_list **.
20702         * var-tracking.c (struct adjust_mem_data): Strengthen field
20703         "side_effects" from rtx to rtx_expr_list *.
20704         (adjust_insn): Replace NULL_RTX with NULL when assigning to
20705         rtx_expr_list *.
20706         (prepare_call_arguments): Likewise.
20708 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20710         * function.h (struct rtl_data): Strengthen field
20711         "x_stack_slot_list" from rtx to rtx_expr_list *.
20713         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
20714         when assigning to stack_slot_list.
20716 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20718         * function.h (struct rtl_data): Strengthen field
20719         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
20720         * rtl.h (remove_node_from_expr_list): Strengthen second param from
20721         rtx * to rtx_expr_list **.
20723         * cfgbuild.c (make_edges): In loop over
20724         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
20725         rtx_expr_list *, and use methods of the latter class to clarify
20726         the code.
20727         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
20728         rtx_expr_list *, and use methods of the latter class to clarify
20729         the code.
20730         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
20731         * reload1.c (set_initial_label_offsets): Likewise for local "x".
20732         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
20733         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
20734         to rtx_expr_list *.  Use methods of the latter class to clarify
20735         the code.
20737 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20739         * function.h (struct expr_status): Strengthen field
20740         "x_forced_labels" from rtx to rtx_expr_list *.
20742         * cfgbuild.c (make_edges): Split local "x" into two locals,
20743         strengthening one from rtx to rtx_expr_list *, and using methods
20744         of said class.
20745         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
20746         loop over forced_labels, introduce strengthen it from rtx to
20747         rtx_expr_list *, using methods to clarify the code.
20748         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
20749         to rtx_expr_list *, using methods of said class to clarify the
20750         code.
20751         * reload1.c (set_initial_label_offsets): Split local "x" into two
20752         per-loop variables, strengthening the first from rtx to
20753         rtx_expr_list * and using methods.
20755 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20757         * coretypes.h (class rtx_expr_list): Add forward declaration.
20758         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
20759         * gengenrtl.c (special_rtx): Add EXPR_LIST.
20760         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
20761         invariant: GET_CODE (X) == EXPR_LIST.
20762         (is_a_helper <rtx_expr_list *>::test): New.
20763         (rtx_expr_list::next): New.
20764         (rtx_expr_list::element): New.
20765         (gen_rtx_EXPR_LIST): New.
20767 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20769         * varasm.c (mark_constants): Convert a GET_CODE check into a
20770         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
20771         Use methods of rtx_sequence to clarify the code.
20773 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20775         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
20776         local "seq" via a checked cast, and use methods of rtx_sequence
20777         to simplify the code.
20779 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20781         * resource.c (mark_referenced_resources): Strengthen local
20782         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
20783         using methods of rtx_sequence to clarify the code.
20784         (find_dead_or_set_registers): Within the switch statement, convert
20785         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
20786         the JUMP_P handling, introduce another local "seq", adding a
20787         checked cast to rtx_sequence *.  In both cases, use methods of
20788         rtx_sequence to clarify the code.
20789         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
20790         via a checked cast, and use methods of rtx_sequence to simplify
20791         the code.
20793 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20795         * reorg.c (redundant_insn): In two places in the function, replace
20796         a check of GET_CODE with a dyn_cast, introducing local "seq", and
20797         usings methods of rtx_sequence to clarify the code.
20799 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20801         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
20802         local "seq" with a checked cast, and use methods of rtx_sequence
20803         to clarify the code.
20805 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20807         * function.c (contains): Introduce local "seq" for PATTERN (insn),
20808         with a checked cast, in the region for where we know it's a
20809         SEQUENCE.  Use methods of rtx_sequence.
20811 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20813         * final.c (get_attr_length_1): Replace GET_CODE check with a
20814         dyn_cast, introducing local "seq" and the use of methods of
20815         rtx_sequence.
20816         (shorten_branches): Likewise, introducing local "body_seq".
20817         Strengthen local "inner_insn" from rtx to rtx_insn *.
20818         (reemit_insn_block_notes): Replace GET_CODE check with a
20819         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
20820         Use methods of rtx_sequence.
20821         (final_scan_insn): Likewise, introducing local "seq" for when
20822         "body" is known to be a SEQUENCE, using its methods.
20824 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20826         * except.c (can_throw_external): Strengthen local "seq" from rtx
20827         to rtx_sequence *.  Use methods of rtx_sequence.
20828         (insn_nothrow_p): Likewise.
20830 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20832         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
20833         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
20834         Use methods of rtx_sequence.
20835         (scan_trace): Likewise for local "pat".
20837 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20839         * coretypes.h (class rtx_sequence): Add forward declaration.
20840         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
20841         invariant: GET_CODE (X) == SEQUENCE.
20842         (is_a_helper <rtx_sequence *>::test): New.
20843         (is_a_helper <const rtx_sequence *>::test): New.
20844         (rtx_sequence::len): New.
20845         (rtx_sequence::element): New.
20846         (rtx_sequence::insn): New.
20848 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20850         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
20851         rtx_insn_list **.
20852         (alloc_INSN_LIST): Strengthen return type from rtx to
20853         rtx_insn_list *.
20854         (copy_INSN_LIST): Likewise for return type and param.
20855         (concat_INSN_LIST): Likewise for both params and return type.
20856         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
20857         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
20858         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
20859         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
20861         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
20862         "implicit_sets", "control_uses", "clobbers" from rtx to
20863         rtx_insn_list *.
20864         (struct deps_desc): Likewise for fields "pending_read_insns",
20865         "pending_write_insns", "pending_jump_insns",
20866         "last_pending_memory_flush", "last_function_call",
20867         "last_function_call_may_noreturn", "sched_before_next_call",
20868         "sched_before_next_jump".
20869         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
20870         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
20872         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
20873         from rtx to rtx_insn_list *.
20874         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
20875         rtx_insn_list *.
20877         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
20878         to rtx_insn_list **.
20879         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
20880         rtx_insn_list *.
20881         (queue_insn): Likewise for local "link".
20882         (struct haifa_saved_data): Strengthen field "insn_queue" from
20883         rtx * to rtx_insn_list **.
20884         (save_backtrack_point): Update allocation of save->insn_queue to
20885         reflect the strengthening of elements from rtx to rtx_insn_list *.
20886         (queue_to_ready): Strengthen local "link" from rtx to
20887         rtx_insn_list *; use methods "next" and "insn" when traversing the
20888         list.
20889         (early_queue_to_ready): Likewise for locals "link", "next_link",
20890         "prev_link".
20891         (schedule_block): Update allocation of insn_queue to reflect the
20892         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
20893         local "link" from rtx to rtx_insn_list *, and use methods when
20894         working it.
20895         (add_to_speculative_block): Strengthen locals "twins" and
20896         "next_node" from rtx to rtx_insn_list *, and use methods when
20897         working with them.  Strengthen local "twin" from rtx to
20898         rtx_insn *, eliminating a checked cast.
20899         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
20900         from rtx to rtx_insn_list *, and use methods when working with
20901         them.
20903         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
20904         from rtx to rtx_insn_list *, adding a checked cast.
20905         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
20906         rtx_insn_list **.
20907         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
20908         "newlink" from rtx to rtx_insn_list *.  Strengthen local
20909         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
20910         from rtx to rtx_insn *.
20911         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
20912         from rtx to rtx_insn_list *.  Use methods of the latter class.
20913         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
20914         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
20915         (remove_free_INSN_LIST_node): Strengthen return type and local
20916         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
20917         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
20918         rtx_insn_list *, using "insn" method.
20920         * sched-deps.c (add_dependence_list):  Strengthen param "list"
20921         from rtx to rtx_insn_list *, and use methods when working with it.
20922         (add_dependence_list_and_free):  Strengthen param "listp" from
20923         rtx * to rtx_insn_list **.
20924         (remove_from_dependence_list): Strenghten param "listp" from rtx *
20925         to rtx_insn_list **, and use methods when working with *listp.
20926         (remove_from_both_dependence_lists): Strengthen param "listp" from
20927         rtx * to rtx_insn_list **
20928         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
20929         to rtx_insn_list **.  Eliminate local "link", in favor of two new
20930         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
20931         respectively.
20932         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
20933         by introducing local "cond_deps".
20934         (remove_from_deps): Strengthen param "insn" from rtx to
20935         rtx_insn *.
20937         * sched-rgn.c (concat_insn_mem_list): Strengthen param
20938         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
20939         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
20940         Use methods of rtx_insn_list.
20942         * store-motion.c (struct st_expr): Strengthen fields
20943         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
20944         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
20945         rtx_insn_list *.
20946         (find_moveable_store): Split out "tmp" into multiple more-tightly
20947         scoped locals.  Use methods of rtx_insn_list *.
20948         (compute_store_table): Strengthen local "tmp" from rtx to
20949         rtx_insn *.  Use methods of rtx_insn_list *.
20951 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20953         * coretypes.h (class rtx_insn_list): Add forward declaration.
20954         * rtl.h (class rtx_insn_list): New subclass of rtx_def
20955         (is_a_helper <rtx_insn_list *>::test): New.
20956         (rtx_insn_list::next): New.
20957         (rtx_insn_list::insn): New.
20958         (gen_rtx_INSN_LIST): Add prototype.
20959         * emit-rtl.c (gen_rtx_INSN_LIST): New.
20960         * gengenrtl.c (special_rtx): Add INSN_LIST.
20962 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20964         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
20965         "prev" from rtx to rtx_insn *.
20967 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20969         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
20970         functions.  Require merely an rtx for now, not an rtx_insn *.
20971         (BLOCK_FOR_INSN): Likewise.
20972         (INSN_LOCATION): Likewise.
20973         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
20975 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20977         * rtl.h (PATTERN): Convert this macro into a pair of inline
20978         functions, for now, requiring const_rtx and rtx.
20980 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
20982         * target.def (unwind_emit): Strengthen param "insn" from rtx to
20983         rtx_insn *.
20984         (final_postscan_insn): Likewise.
20985         (adjust_cost): Likewise.
20986         (adjust_priority): Likewise.
20987         (variable_issue): Likewise.
20988         (macro_fusion_pair_p): Likewise.
20989         (dfa_post_cycle_insn): Likewise.
20990         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
20991         (first_cycle_multipass_issue): Likewise.
20992         (dfa_new_cycle): Likewise.
20993         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
20994         (speculate_insn): Likewise for param "insn".
20995         (gen_spec_check): Likewise for params "insn" and "label".
20996         (get_insn_spec_ds): Likewise for param "insn".
20997         (get_insn_checked_ds): Likewise.
20998         (dispatch_do): Likewise.
20999         (dispatch): Likewise.
21000         (cannot_copy_insn_p): Likewise.
21001         (invalid_within_doloop): Likewise.
21002         (legitimate_combined_insn): Likewise.
21003         (needed): Likewise.
21004         (after): Likewise.
21006         * doc/tm.texi: Automatically updated to reflect changes to
21007         target.def.
21009         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
21010         working with insn.
21011         (schedule_block): Likewise.
21012         (sched_init): Likewise.
21013         (sched_speculate_insn): Strengthen param "insn" from rtx to
21014         rtx_insn *.
21015         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
21016         working with insn.
21017         * hooks.c (hook_bool_rtx_true): Rename to...
21018         hook_bool_rtx_insn_true): ...this, and strengthen first param from
21019         rtx to rtx_insn *.
21020         (hook_constcharptr_const_rtx_null): Rename to...
21021         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
21022         first param from const_rtx to const rtx_insn *.
21023         (hook_bool_rtx_int_false): Rename to...
21024         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
21025         param from rtx to rtx_insn *.
21026         (hook_void_rtx_int): Rename to...
21027         (hook_void_rtx_insn_int): ...this, and strengthen first param from
21028         rtx to rtx_insn *.
21030         * hooks.h (hook_bool_rtx_true): Rename to...
21031         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
21032         rtx to rtx_insn *.
21033         (hook_bool_rtx_int_false): Rename to...
21034         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
21035         param from rtx to rtx_insn *.
21036         (hook_void_rtx_int): Rename to...
21037         (hook_void_rtx_insn_int): ...this, and strengthen first param from
21038         rtx to rtx_insn *.
21039         (hook_constcharptr_const_rtx_null): Rename to...
21040         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
21041         first param from const_rtx to const rtx_insn *.
21043         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
21044         and local "prev" from rtx to rtx_insn *.
21046         * sched-int.h (sched_speculate_insn): Strengthen first param from
21047         rtx to rtx_insn *.
21049         * sel-sched.c (create_speculation_check): Likewise for local "label".
21050         * targhooks.c (default_invalid_within_doloop): Strengthen param
21051         "insn" from const_rtx to const rtx_insn *.
21052         * targhooks.h (default_invalid_within_doloop): Strengthen param
21053         from const_rtx to const rtx_insn *.
21055         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
21056         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
21058         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
21059         "insn".
21060         (arc_invalid_within_doloop): Likewise, with const.
21062         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
21063         (arm_cannot_copy_insn_p): Likewise for param "insn".
21064         (arm_unwind_emit): Likewise.
21066         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
21067         "dep_insn".
21069         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
21070         (c6x_variable_issue): Likewise.  Removed now-redundant checked
21071         cast.
21072         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
21074         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
21075         Likewise for param "insn".
21076         (epiphany_mode_after): Likewise.
21077         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
21078         params "insn", "dep_insn".
21079         (epiphany_mode_needed): Likewise for param "insn".
21080         (epiphany_mode_after): Likewise.
21082         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
21083         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21084         (ix86_avx_u128_mode_needed): Likewise.
21085         (ix86_i387_mode_needed): Likewise.
21086         (ix86_mode_needed): Likewise.
21087         (ix86_avx_u128_mode_after): Likewise.
21088         (ix86_mode_after): Likewise.
21089         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
21090         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
21091         (ix86_adjust_priority): Likewise for param "insn".
21092         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
21093         (do_dispatch): Likewise.
21094         (has_dispatch): Likewise.
21095         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
21097         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
21098         reflect renaming of default hook implementation from
21099         hook_constcharptr_const_rtx_null to
21100         hook_constcharptr_const_rtx_insn_null.
21101         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
21102         rtx to rtx_insn *.
21103         (ia64_variable_issue): Likewise for param "insn".
21104         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
21105         (ia64_dfa_new_cycle): Likewise.
21106         (ia64_get_insn_spec_ds): Likewise.
21107         (ia64_get_insn_checked_ds): Likewise.
21108         (ia64_speculate_insn): Likewise.
21109         (ia64_gen_spec_check): Likewise for params "insn", "label".
21110         (ia64_asm_unwind_emit): Likewise for param "insn".
21112         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
21114         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
21115         "insn", "def_insn".
21116         (m68k_sched_variable_issue): Likewise for param "insn".
21118         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
21119         "def_insn".
21121         * config/microblaze/microblaze.c (microblaze_adjust_cost):
21122         Likewise for params "insn", "dep".
21124         * config/mips/mips.c (mips_adjust_cost): Likewise.
21125         (mips_variable_issue): Likewise for param "insn".
21126         (mips_final_postscan_insn): Likewise.
21128         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
21129         for params "insn", "dep".
21131         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
21132         "dep_insn".
21133         (pa_adjust_priority): Likewise for param "insn".
21135         * config/picochip/picochip.c (picochip_sched_adjust_cost):
21136         Likewise for params "insn", "dep_insn".
21138         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
21139         param "insn".
21140         (rs6000_variable_issue): Likewise.
21141         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
21142         (rs6000_debug_adjust_cost): Likewise.
21143         (rs6000_adjust_priority): Likewise for param "insn".
21144         (rs6000_use_sched_lookahead_guard): Likewise.
21145         (get_next_active_insn): Likewise for return type and both params.
21146         (redefine_groups): Likewise for params "prev_head_insn", "tail"
21147         and locals "insn", "next_insn".
21148         (pad_groups): Likewise.
21150         * config/s390/s390.c (s390_adjust_priority): Likewise for param
21151         "insn".
21152         (s390_cannot_copy_insn_p): Likewise.
21153         (s390_sched_variable_issue): Likewise for third param, eliminating
21154         checked cast.
21155         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
21156         default hook implementation from hook_constcharptr_const_rtx_null
21157         to hook_constcharptr_const_rtx_insn_null.
21159         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
21160         from rtx to rtx_insn *.
21161         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
21162         (sh_variable_issue): Likewise for param "insn".
21163         (sh_dfa_new_cycle): Likewise.
21164         (sh_mode_needed): Likewise.
21165         (sh_mode_after): Likewise.
21167         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
21168         params "insn", "dep_insn".
21169         (hypersparc_adjust_cost): Likewise.
21170         (sparc_adjust_cost): Likewise.
21172         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
21173         param, eliminated checked cast.
21174         (spu_sched_adjust_cost): Likewise for first and third params.
21176         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
21177         params "insn" and "dep_insn" from rtx to rtx_insn *.
21179         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
21181 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
21183         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
21184         (set_is_load_p): ...this, updating to work on a SET pattern rather
21185         than an insn.
21186         (is_store_insn): Rename to...
21187         (set_is_store_p): ...this, updating to work on a SET pattern
21188         rather than an insn.
21189         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
21190         top of function to where it is needed.  Rewrite the bogus
21191         condition that checks for "insn" and "dep" being PARALLEL to
21192         instead use single_set, introducing locals "insn_set" and
21193         "dep_set".  Given that we only ever returned "cost" for a non-pair
21194         of SETs, bail out early if we don't have a pair of SET.
21195         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
21196         use the new locals "insn_set" and "dep_set", and update calls to
21197         is_load_insn and is_store_insn to be calls to set_is_load_p and
21198         set_is_store_p.
21200 2014-08-27  Guozhi Wei  <carrot@google.com>
21202         PR target/62262
21203         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
21204         amount before using it.
21206 2014-08-27  Richard Biener  <rguenther@suse.de>
21208         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
21209         get_maxval_strlen inside a more useful API.
21210         (gimple_fold_builtin_with_strlen): Remove and fold into ...
21211         (gimple_fold_builtin): ... caller.
21212         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
21213         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
21214         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
21215         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
21216         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
21217         gimple_fold_builtin_sprintf): Adjust to compute maxval
21218         themselves.
21220 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
21222         PR other/62248
21223         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
21225 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
21226             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
21227             Anna Tikhonova  <anna.tikhonova@intel.com>
21228             Ilya Tocar  <ilya.tocar@intel.com>
21229             Andrey Turetskiy  <andrey.turetskiy@intel.com>
21230             Ilya Verbin  <ilya.verbin@intel.com>
21231             Kirill Yukhin  <kirill.yukhin@intel.com>
21232             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
21234         * config/i386/sse.md
21235         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
21236         Use `concat_tg_mode' attribute to determine asm register size.
21238 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
21239             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
21240             Anna Tikhonova  <anna.tikhonova@intel.com>
21241             Ilya Tocar  <ilya.tocar@intel.com>
21242             Andrey Turetskiy  <andrey.turetskiy@intel.com>
21243             Ilya Verbin  <ilya.verbin@intel.com>
21244             Kirill Yukhin  <kirill.yukhin@intel.com>
21245             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
21247         * config/i386/sse.md
21248         (define_mode_iterator VI48_AVX512VL): New.
21249         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
21250         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
21251         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
21252         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21253         with VI1): Change mode iterator.
21254         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21255         with VI_ULOADSTORE_BW_AVX512VL): New.
21256         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21257         with VI_ULOADSTORE_F_AVX512VL): Ditto.
21258         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21259         with VI1): Change mode iterator.
21260         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21261         with VI_ULOADSTORE_BW_AVX512VL): New.
21262         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
21263         with VI_ULOADSTORE_F_AVX512VL): Ditto.
21264         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
21265         with VI1): Change mode iterator.
21266         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
21267         with VI_ULOADSTORE_BW_AVX512VL): New.
21268         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
21269         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
21270         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
21271         (define_insn "<avx512>_storedqu<mode>_mask" with
21272         VI48_AVX512VL): New.
21273         (define_insn "<avx512>_storedqu<mode>_mask" with
21274         VI12_AVX512VL): Ditto.
21276 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
21277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
21278             Anna Tikhonova  <anna.tikhonova@intel.com>
21279             Ilya Tocar  <ilya.tocar@intel.com>
21280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
21281             Ilya Verbin  <ilya.verbin@intel.com>
21282             Kirill Yukhin  <kirill.yukhin@intel.com>
21283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
21285         * config/i386/sse.md
21286         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
21287         (define_mode_iterator VI48_AVX512BW): New.
21288         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
21289         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
21290         with VI48_AVX2_48_AVX512F): New.
21291         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
21292         with VI2_AVX512VL): Ditto.
21294 2014-08-27  Richard Biener  <rguenther@suse.de>
21296         PR middle-end/62239
21297         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
21298         (fold_builtin_3): Do not fold strcat_chk here.
21299         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
21300         from builtins.c.
21301         (gimple_fold_builtin): Fold strcat_chk here.
21303 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
21305         * dwarf2out.h (dwarf2out_decl): Remove prototype.
21306         * dwarf2out.c (dwarf2out_decl): Make static.
21308 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
21310         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
21312 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21314         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
21315         from rtx to rtx_insn *.
21316         (cselib_lookup_from_insn): Likewise for final param.
21317         (cselib_subst_to_values_from_insn): Likewise.
21318         (cselib_add_permanent_equiv): Likewise.
21320         * cselib.c (cselib_current_insn): Likewise for this variable.
21321         (cselib_subst_to_values_from_insn): Likewise for param "insn".
21322         (cselib_lookup_from_insn): Likewise.
21323         (cselib_add_permanent_equiv): Likewise for param "insn" and local
21324         "save_cselib_current_insn".
21325         (cselib_process_insn): Replace use of NULL_RTX with NULL.
21327         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
21328         from rtx to rtx_insn *.
21330 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21332         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
21333         rtx_insn *.
21335 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21337         * df.h (df_dump_insn_problem_function): Strengthen first param of
21338         this callback from const_rtx to const rtx_insn *.
21339         (struct df_insn_info): Strengthen field "insn" from rtx to
21340         rtx_insn *.
21341         (DF_REF_INSN): Eliminate this function, reinstating the older
21342         macro definition.
21343         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
21344         (df_reg_defined): Likewise.
21345         (df_find_use): Likewise.
21346         (df_reg_used): Likewise.
21347         (df_dump_insn_top): Strengthen param 1 from const_rtx to
21348         const rtx_insn *.
21349         (df_dump_insn_bottom): Likewise.
21350         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
21351         (df_insn_debug_regno): Likewise.
21352         (debug_df_insn): Likewise.
21353         (df_rd_simulate_one_insn): Likewise for param 2.
21354         (df_word_lr_simulate_defs): Likewise for param 1.
21355         (df_word_lr_simulate_uses): Likewise.
21356         (df_md_simulate_one_insn): Likewise for param 2.
21357         (df_simulate_find_noclobber_defs): Likewise for param 1.
21358         (df_simulate_find_defs): Likewise.
21359         (df_simulate_defs): Likewise.
21360         (df_simulate_uses): Likewise.
21361         (df_simulate_one_insn_backwards): Likewise for param 2.
21362         (df_simulate_one_insn_forwards): Likewise.
21363         (df_uses_create): Likewise for param 2.
21364         (df_insn_create_insn_record): Likewise for param 1.
21365         (df_insn_delete): Likewise.
21366         (df_insn_rescan): Likewise.
21367         (df_insn_rescan_debug_internal): Likewise.
21368         (df_insn_change_bb): Likewise.
21369         (df_notes_rescan): Likewise.
21370         * rtl.h (remove_death): Likewise for param 2.
21371         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
21372         const rtx_insn *.
21373         * sched-int.h (reemit_notes): Strengthen param from rtx to
21374         rtx_insn *.
21375         * valtrack.h (propagate_for_debug): Likewise for param 1.
21377         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
21378         local "tmp_rtx" from const_rtx to const rtx_insn *.
21379         * combine.c (remove_death): Strengthen param "insn" from rtx to
21380         rtx_insn *.
21381         (move_deaths): Likewise for local "where_dead".
21382         * cse.c (delete_trivially_dead_insns): Introduce local
21383         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
21384         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
21385         rtx_insn *.
21386         (df_reg_defined): Likewise.
21387         (df_find_use): Likewise.
21388         (df_reg_used): Likewise.
21389         (df_dump_insn_problem_data): Strengthen param "insn" from
21390         const_rtx to const rtx_insn *.
21391         (df_dump_insn_top): Likewise.
21392         (df_dump_insn_bottom): Likewise.
21393         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
21394         (df_insn_debug_regno): Likewise.
21395         (debug_df_insn): Likewise.
21396         (DF_REF_INSN): Delete.
21397         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
21398         from rtx to rtx_insn *.
21399         (df_chain_insn_top_dump): Strengthen param "insn" from
21400         const_rtx to const rtx_insn *.
21401         (df_chain_insn_bottom_dump): Likewise.
21402         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
21403         rtx_insn *.
21404         (df_word_lr_simulate_uses): Likewise.
21405         (df_print_note): Likewise.
21406         (df_remove_dead_and_unused_notes): Likewise.
21407         (df_set_unused_notes_for_mw): Likewise.
21408         (df_set_dead_notes_for_mw): Likewise.
21409         (df_create_unused_note): Likewise.
21410         (df_simulate_find_defs): Likewise.
21411         (df_simulate_find_uses): Likewise.
21412         (df_simulate_find_noclobber_defs): Likewise.
21413         (df_simulate_defs): Likewise.
21414         (df_simulate_uses): Likewise.
21415         (df_simulate_one_insn_backwards): Likewise.
21416         (df_simulate_one_insn_forwards): Likewise.
21417         (df_md_simulate_one_insn): Likewise.
21418         * df-scan.c (df_uses_create): Likewise.
21419         (df_insn_create_insn_record): Likewise.
21420         (df_insn_delete): Likewise.
21421         (df_insn_rescan): Likewise.
21422         (df_insn_rescan_debug_internal): Likewise.
21423         (df_insn_change_bb): Likewise.
21424         (df_notes_rescan): Likewise.
21425         (df_refs_add_to_chains): Likewise.
21426         (df_insn_refs_verify): Likewise.
21427         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
21428         when invoking df_insn_delete.
21429         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
21430         (set_unique_reg_note): Add checked cast.
21431         * final.c (cleanup_subreg_operands): Likewise.
21432         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
21433         "insn" from rtx to rtx_insn *.
21434         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
21435         "last" from rtx to rtx_insn *.
21436         * ira-emit.c (change_regs_in_insn): New function.
21437         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
21438         Invoke change_regs_in_insn rather than change_regs.
21439         * ira.c (update_equiv_regs): Strengthen locals "insn",
21440         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
21441         for_each_rtx_in_insn rather than for_each_rtx.
21442         * recog.c (confirm_change_group): Add checked casts.
21443         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
21444         Add checked cast.
21445         (peep2_fill_buffer): Add checked cast.
21446         * rtlanal.c (remove_note): Likewise.
21447         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
21448         locals "next" "end" from rtx to rtx_insn *.
21450 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21452         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
21453         to rtx_insn *.
21454         (struct reg_use_data): Likewise for field "insn".
21455         (insn_cost): Likewise for param.
21456         (real_insn_for_shadow): Likewise for return type and param.
21457         (increase_insn_priority): Likewise for param 1.
21458         (debug_dependencies): Likewise for both params.
21460         * haifa-sched.c (insn_delay): Likewise for param "insn".
21461         (real_insn_for_shadow): Likewise for return type and param "insn".
21462         (update_insn_after_change): Likewise for param "insn".
21463         (recompute_todo_spec): Likewise for param "next" and locals "pro",
21464         "other".
21465         (insn_cost): Likewise for param "insn".
21466         (increase_insn_priority): Likewise.
21467         (calculate_reg_deaths): Likewise.
21468         (setup_insn_reg_pressure_info): Likewise.
21469         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
21470         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
21471         (model_recompute): Likewise.
21472         (must_restore_pattern_p): Likewise for param "next".
21473         (model_excess_cost): Likewise for param "insn".
21474         (queue_remove): Likewise.
21475         (adjust_priority): Likewise for param "prev".
21476         (update_register_pressure): Likewise for param "insn".
21477         (setup_insn_max_reg_pressure): Likewise for local "insn".
21478         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
21479         (model_add_to_schedule): Likewise.
21480         (model_reset_queue_indices): Likewise for local "insn".
21481         (unschedule_insns_until): Strengthen local "recompute_vec" from
21482         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
21483         "con" from rtx to rtx_insn *.
21484         (restore_last_backtrack_point): Likewise for both locals "x". Add
21485         checked casts.
21486         (estimate_insn_tick): Likewise for param "insn".
21487         (commit_schedule): Likewise for params "prev_head", "tail" and
21488         local "x".
21489         (verify_shadows): Likewise for locals "i1", "i2".
21490         (dump_insn_stream): Likewise for params "head", "tail" and locals
21491         "next_tail", "insn".
21492         (schedule_block): Likewise for locals "insn", "x".  Add a checked
21493         cast.
21494         (fix_inter_tick): Likewise for params "head", "tail".
21495         (create_check_block_twin): Likewise for local "jump".
21496         (haifa_change_pattern): Likewise for param "insn".
21497         (haifa_speculate_insn): Likewise.
21498         (dump_new_block_header): Likewise for params "head", "tail".
21499         (fix_jump_move): Likewise for param "jump".
21500         (move_block_after_check): Likewise.
21501         (sched_init_insn_luid): Likewise for param "insn".
21502         (sched_init_luids): Likewise for local "insn".
21503         (insn_luid): Likewise for param "insn".
21504         (init_h_i_d): Likewise.
21505         (haifa_init_h_i_d): Likewise for local "insn".
21506         (haifa_init_insn): Likewise for param "insn".
21507         * sched-deps.c (add_dependence): Likewise for local "real_pro",
21508         "other".
21509         (create_insn_reg_use): Likewise for param "insn".
21510         (setup_insn_reg_uses): Likewise.  Add a checked cast.
21511         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
21512         "tail" from rtx to rtx_insn *.
21513         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
21514         "insn", "next_tail".
21516 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21518         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
21519         from rtx to rtx_insn *.
21520         (model_add_to_schedule): Likewise for locals "start", "end",
21521         "iter".
21523 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21525         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
21526         rtx_insn *.
21527         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
21528         "to" and locals "insn", "next", "copy".  Remove now-redundant
21529         checked cast.
21531 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21533         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
21534         rtx_insn * and param 4 from rtx * to rtx_insn **.
21535         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
21536         param 2 from rtx * to rtx_insn **.
21538         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
21539         rtx_insn * and final param from rtx * to rtx_insn **.
21541         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
21542         from rtx to rtx_insn *.
21543         (try_head_merge_bb): Likewise for both locals named "move_upto".
21544         * df-problems.c (can_move_insns_across): Likewise for params
21545         "from", "to", "across_from", "across_to" and locals "insn",
21546         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
21547         rtx_insn **.
21548         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
21549         from rtx to rtx_insn *.
21550         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
21551         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
21552         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
21553         rtx_insn *.
21554         (noce_try_abs): Likewise.
21555         (noce_get_condition): Likewise for param "jump".  Strengthen param
21556         "earliest" from rtx * to rtx_insn **.
21557         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
21558         rtx_insn *.
21559         (find_cond_trap): Likewise.
21560         (dead_or_predicable): Likewise for local "earliest".
21561         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
21562         checked cast.
21563         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
21564         and local "prev".  Strengthen param "earliest" from rtx * to
21565         rtx_insn **.
21566         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
21567         Strengthen param "earliest" from rtx * to rtx_insn **.
21569 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21571         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
21572         "to" and local "insn" from rtx to rtx_insn *.
21574 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21576         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
21577         from rtx to rtx_insn *.
21578         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
21579         (code_motion_path_driver): Likewise for local "last_insn".
21580         (simplify_changed_insns): Likewise for local "insn".
21582 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21584         * rtl.h (push_to_sequence): Strengthen param from rtx to
21585         rtx_insn *.
21586         (push_to_sequence2): Likewise for both params.
21587         (delete_insns_since): Likewise for param.
21588         (reorder_insns_nobb): Likewise for all three params.
21589         (set_new_first_and_last_insn): Likewise for both params.
21591         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
21592         rtx_insn *.  Remove now-redundant cast.
21593         (set_last_insn): Likewise.
21595         * builtins.c (expand_builtin_return): Strengthen local
21596         "call_fusage" from rtx to rtx_insn *.
21597         * cfgrtl.c (create_basic_block_structure): Likewise for local
21598         "after".
21599         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
21600         "first", "last" and local "insn".
21601         (delete_insns_since): Likewise for param "from".
21602         (reorder_insns_nobb): Likewise for params "from", "to", "after"
21603         and local "x".
21604         (push_to_sequence): Likewise for param "first" and local "last".
21605         (push_to_sequence2): Likewise for params "first" and "last".
21606         * lra.c (emit_add3_insn): Likewise for local "last".
21607         (lra_emit_add): Likewise.
21608         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
21609         "last_insn".
21610         (process_address_1): Likewise for locals "insn", last".
21611         * modulo-sched.c (ps_first_note): Likewise for return type.
21612         * optabs.c (expand_binop_directly): Likewise for param "last".
21614 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21616         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
21617         to rtx_insn*.
21618         * emit-rtl.c (get_last_insn_anywhere): Likewise.
21620 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21622         * function.h (struct sequence_stack): Strengthen fields "first"
21623         and "last" from rtx to rtx_insn *.
21624         (struct emit_status): Likewise for fields "x_first_insn" and
21625         "x_last_insn".
21627         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
21628         (set_first_insn): Add checked cast.
21629         (get_last_insn): Remove now-redundant checked cast.
21630         (set_last_insn): Add checked cast.
21632         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
21633         "saved_first" and "saved_last" from rtx to rtx_insn *.
21635 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21637         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
21638         (unlink_insn_chain): Strengthen both params from rtx to
21639         rtx_insn *.
21641         * cfgrtl.c (cfg_layout_function_header): Likewise for this
21642         variable.
21643         (unlink_insn_chain): Likewise for params "first" and "last".
21644         Remove now-redundant checked cast.
21645         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
21646         (fixup_reorder_chain): Strengthen local "insn" from rtx to
21647         rtx_insn *.
21648         * emit-rtl.c (link_insn_into_chain): Likewise for all three
21649         params.
21650         (add_insn): Likewise for param "insn" and local "prev".
21651         (add_insn_after_nobb): Likewise for both params and local "next".
21652         (add_insn_before_nobb): Likewise for both params and local "prev".
21653         (add_insn_after): Rename param "after" to "uncast_after",
21654         introducing local "after" with another checked cast.
21655         (add_insn_before): Rename params "insn" and "before", giving them
21656         "uncast_" prefixes, adding the old names back using checked casts.
21657         (emit_note_after): Likewise for param "after".
21658         (emit_note_before): Likewise for param "before".
21659         (emit_label): Add a checked cast.
21661 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21663         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
21664         "insn" from rtx to rtx_insn *.
21666         * cselib.c (cselib_record_sets_hook): Likewise.
21668         * var-tracking.c (add_with_sets): Likewise, renaming back from
21669         "uncast_insn" to "insn" and eliminating the checked cast from rtx
21670         to rtx_insn *.
21672 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21674         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
21675         and "header_" from rtx to rtx_insn *.
21676         (struct basic_block_d): Likewise for field "head_" within "x"
21677         field of union basic_block_il_dependent.
21678         (BB_HEAD): Drop function...
21679         (SET_BB_HEAD): ...and this function in favor of...
21680         (BB_HEAD): ...reinstate macro.
21681         (BB_END): Drop function...
21682         (SET_BB_END): ...and this function in favor of...
21683         (BB_END): ...reinstate macro.
21684         (BB_HEADER): Drop function...
21685         (SET_BB_HEADER): ...and this function in favor of...
21686         (BB_HEADER): ...reinstate macro.
21688         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
21689         (fix_crossing_unconditional_branches): Likewise.
21690         * caller-save.c (save_call_clobbered_regs): Likewise.
21691         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
21692         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
21693         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
21694         (merge_blocks_move_successor_nojumps): Likewise.
21695         (outgoing_edges_match): Update use of for_each_rtx to
21696         for_each_rtx_in_insn.
21697         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
21698         (expand_gimple_cond): Likewise.
21699         (expand_gimple_tailcall): Likewise.
21700         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
21701         SET_BB_END.
21702         (construct_exit_block): Drop use of SET_BB_END.
21703         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
21704         rtx_insn *.
21705         (delete_insn): Rename param "insn" to "uncast_insn", introducing
21706         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
21707         SET_BB_HEAD and SET_BB_END.
21708         (create_basic_block_structure): Drop use of SET_BB_HEAD and
21709         SET_BB_END.
21710         (rtl_delete_block): Drop use of SET_BB_HEAD.
21711         (rtl_split_block): Drop use of SET_BB_END.
21712         (emit_nop_for_unique_locus_between): Likewise.
21713         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
21714         (block_label): Drop use of SET_BB_HEAD.
21715         (fixup_abnormal_edges): Drop use of SET_BB_END.
21716         (record_effective_endpoints): Drop use of SET_BB_HEADER.
21717         (relink_block_chain): Likewise.
21718         (fixup_reorder_chain): Drop use of SET_BB_END.
21719         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
21720         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
21721         rtx_insn **.  Drop use of SET_BB_HEADER.
21722         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
21723         SET_BB_HEAD.
21724         (BB_HEAD): Delete this function.
21725         (SET_BB_HEAD): Likewise.
21726         (BB_END): Likewise.
21727         (SET_BB_END): Likewise.
21728         (BB_HEADER): Likewise.
21729         (SET_BB_HEADER): Likewise.
21730         * emit-rtl.c (add_insn_after):  Rename param "insn" to
21731         "uncast_insn", adding a new local "insn" and a checked cast to
21732         rtx_insn *.  Drop use of SET_BB_END.
21733         (remove_insn): Strengthen locals "next" and "prev" from rtx to
21734         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
21735         (reorder_insns): Drop use of SET_BB_END.
21736         (emit_insn_after_1): Strengthen param "first" and locals "last",
21737         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
21738         (emit_pattern_after_noloc): Add checked cast.
21739         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
21740         (restore_other_notes): Likewise.
21741         (move_insn): Likewise.
21742         (sched_extend_bb): Likewise.
21743         (fix_jump_move): Likewise.
21744         * ifcvt.c (noce_process_if_block): Likewise.
21745         (dead_or_predicable): Likewise.
21746         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
21747         * reg-stack.c (change_stack): Drop use of SET_BB_END.
21748         * sel-sched-ir.c (sel_move_insn): Likewise.
21749         * sel-sched.c (move_nop_to_previous_block): Likewise.
21751         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
21752         SET_BB_END.
21753         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
21755 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21757         * basic-block.h (create_basic_block_structure): Strengthen params
21758         1 "head" and 2 "end" from rtx to rtx_insn *.
21759         * cfgrtl.c (create_basic_block_structure): Likewise.
21760         (rtl_create_basic_block): Update casts from void * to rtx to
21761         rtx_insn *, so that we can pass them as rtx_insn * to
21762         create_basic_block_structure.
21763         * sel-sched-ir.c (sel_create_basic_block): Likewise.
21765 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21767         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
21768         rtx_insn **.
21769         (check_for_inc_dec): Strengthen param "insn" from rtx to
21770         rtx_insn *.
21772         * cselib.h (cselib_process_insn): Likewise.
21774         * cselib.c (cselib_record_sets): Likewise.
21775         (cselib_process_insn): Likewise.
21777         * dse.c (struct insn_info): Likewise for field "insn".
21778         (check_for_inc_dec_1): Likewise for local "insn".
21779         (check_for_inc_dec): Likewise for param "insn".
21780         (scan_insn): Likewise.
21781         (dse_step1): Likewise for local "insn".
21783         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
21784         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
21786 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21788         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
21789         from rtx to rtx_insn *.
21790         (DEP_PRO): Delete this function and...
21791         (SET_DEP_PRO): ...this function in favor of...
21792         (DEP_PRO): ...reinstate this macro.
21793         (DEP_CON): Delete this function and...
21794         (SET_DEP_CON): ...this function in favor of...
21795         (DEP_CON): ...reinstate this old macro.
21796         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
21797         (init_dep): Likewise.
21798         (set_priorities): Likewise for both params.
21799         (sd_copy_back_deps): Likewise for params 1 and 2.
21801         * haifa-sched.c (priority): Likewise for param "insn" and local
21802         "next".
21803         (set_priorities): Likewise for params "head" and "tail" and local
21804         "insn".
21805         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
21806         local "consumer".
21807         (add_to_speculative_block): Add a checked cast.
21808         (create_check_block_twin): Drop use of SET_DEP_CON.
21809         (add_jump_dependencies): Strengthen params "insn" and "jump" from
21810         rtx to rtx_insn *.
21812         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
21813         Drop use of SET_DEP_PRO
21814         (init_dep): Strengthen params "pro" and "con" from rtx to
21815         rtx_insn *.
21816         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
21817         use of SET_DEP_CON.
21818         (DEP_PRO): Delete.
21819         (DEP_CON): Delete.
21820         (SET_DEP_PRO): Delete.
21821         (SET_DEP_CON): Delete.
21823 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21825         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
21826         from rtx to rtx_insn *.
21827         (VINSN_INSN_RTX): Eliminate rvalue function and...
21828         (SET_VINSN_INSN): ...lvalue function in favor of...
21829         (VINSN_INSN_RTX): reinstate this old macro.
21831         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
21832         in favor of VINSN_INSN_RTX.
21833         (VINSN_INSN_RTX): Delete this function.
21834         (SET_VINSN_INSN_RTX): Likewise.
21836 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21838         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
21839         (BND_TO): Delete this function and...
21840         (SET_BND_TO): ...this functions in favor of...
21841         (BND_TO): ...reinstating this macro.
21842         (struct _fence): Strengthen field "executing_insns" from
21843         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
21844         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
21845         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
21846         and param "insn" from rtx to insn_t.
21847         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
21848         rtx_insn *.
21850         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
21851         vec<rtx_insn *> .
21852         (rtx_vec_t): Likewise.
21853         (struct sched_deps_info_def): Strengthen param of "start_insn"
21854         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
21855         "note_mem_dep" callback and first param of "note_dep" callback.
21857         * haifa-sched.c (add_to_speculative_block): Strengthen param
21858         "insn" from rtx to rtx_insn *.
21859         (clear_priorities): Likewise.
21860         (calc_priorities): Likewise for local "insn".
21862         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
21863         Remove redundant checked cast.
21864         (haifa_note_mem_dep): Likewise for param "pending_insn".
21865         (haifa_note_dep): Likewise for param "elem".
21866         (note_mem_dep): Likewise for param "e".
21867         (sched_analyze_1): Add checked casts.
21868         (sched_analyze_2): Likewise.
21870         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
21871         from rtx to rtx_insn *.
21872         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
21873         from vec<rtx> * to vec<rtx_insn *> *.
21875         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
21876         scaffolding.
21877         (flist_add): Strengthen param "executing_insns" from
21878         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
21879         (advance_deps_context): Remove now-redundant checked cast.
21880         (init_fences): Replace uses of NULL_RTX with NULL.
21881         (merge_fences): Strengthen params "last_scheduled_insn" and
21882         "sched_next" from rtx to rtx_insn * and "executing_insns" from
21883         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
21884         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
21885         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
21886         an instruction, rather than doing double-duty as a pattern.
21887         (return_nop_to_pool): Update for change of insn_t.
21888         (deps_init_id): Remove now-redundant checked cast.
21889         (struct sched_scan_info_def): Strengthen param of "init_insn"
21890         callback from rtx to insn_t.
21891         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
21892         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
21893         NULL.
21894         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
21895         "end" from rtx to rtx_insn *.
21896         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
21897         (rtx insn_rtx, bool force_unique_p)
21898         (BND_TO): Delete function.
21899         (SET_BND_TO): Delete function.
21901         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
21902         rtx to rtx_insn *.
21903         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
21904         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
21905         rtx to rtx_insn *.
21906         (undo_transformations): Likewise for param "insn".
21907         (update_liveness_on_insn): Likewise.
21908         (compute_live_below_insn): Likewise for param "insn" and local
21909         "succ".
21910         (update_data_sets): Likewise for param "insn".
21911         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
21912         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
21913         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
21914         rtx_insn *.
21915         (move_cond_jump): Likewise for param "insn".
21916         (move_cond_jump): Drop use of SET_BND_TO.
21917         (compute_av_set_on_boundaries): Likewise.
21918         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
21919         (update_and_record_unavailable_insns): Strengthen local "bb_end"
21920         from rtx to rtx_insn *.
21921         (maybe_emit_renaming_copy): Likewise for param "insn".
21922         (maybe_emit_speculative_check): Likewise.
21923         (handle_emitting_transformations): Likewise.
21924         (remove_insn_from_stream): Likewise.
21925         (code_motion_process_successors): Strengthen local "succ" from rtx
21926         to insn_t.
21928 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21930         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
21931         ilist_t, not _xlist_t;
21932         (ILIST_INSN): Define in terms of new union field "insn".
21933         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
21934         _XLIST_NEXT.
21935         (struct _list_node): Add new field "insn" to the union, of type
21936         insn_t.
21937         (ilist_add): Replace macro with an inline function, requiring an
21938         insn_t.
21939         (ilist_remove): Define this macro directly in terms of
21940         _list_remove, rather than indirectly via _xlist_remove.
21941         (ilist_clear): Likewise, in terms of _list_clear rather than
21942         _xlist_clear.
21943         (ilist_is_in_p): Replace macro with an inline function, requiring
21944         an insn_t.
21945         (_list_iter_cond_insn): New function.
21946         (ilist_iter_remove): Define this macro directly in terms of
21947         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
21948         (ilist_iterator): Define directly in terms of _list_iterator
21949         rather than indirectly through _xlist_iterator.
21950         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
21951         than in terms of _FOR_EACH_X.
21952         (FOR_EACH_INSN_1): Likewise.
21954 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
21956         PR target/60606
21957         PR target/61330
21958         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
21959         DECL_HARD_REGISTER and return for invalid register specifications.
21960         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
21961         DECL_HARD_REGISTER, call expand_one_error_var.
21962         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
21963         CC_REGNUM with non-MODE_CC modes.
21964         (arm_regno_class): Return NO_REGS for PC_REGNUM.
21966 2014-08-26  Marek Polacek  <polacek@redhat.com>
21968         PR c/61271
21969         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
21971 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
21973         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
21974         qi cost; add di cost.
21975         (cortexa57_addrcost_table): Likewise.
21977 2014-08-26  Marek Polacek  <polacek@redhat.com>
21979         PR c/61271
21980         * expr.c (is_aligning_offset): Remove logical not.
21982 2014-08-26  Marek Polacek  <polacek@redhat.com>
21984         PR c/61271
21985         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
21986         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
21988 2014-08-26  Richard Biener  <rguenther@suse.de>
21990         PR tree-optimization/62175
21991         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
21992         expand possibly trapping operations.
21994 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
21996         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
21997         "insn" from rtx to rtx_insn *.
21998         (permute_load): Likewise for param "insn".
21999         (permute_store): Likewise.
22000         (handle_special_swappables): Likewise for local "insn".
22001         (replace_swap_with_copy): Likewise for locals "insn" and
22002         "new_insn".
22003         (rs6000_analyze_swaps): Likewise for local "insn".
22005 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22007         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
22008         to rtx_insn *.
22010 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22012         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
22013         "note_list" from rtx to rtx_insn *.
22014         (BB_NOTE_LIST): Replace this function and...
22015         (SET_BB_NOTE_LIST): ...this function with...
22016         (BB_NOTE_LIST): ...the former macro implementation.
22018         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
22019         local "from_start" from rtx to rtx_insn *.  Strengthen param
22020         "to_endp" from rtx * to rtx_insn **.
22022         * haifa-sched.c (concat_note_lists): Likewise.
22023         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
22024         BB_NOTE_LIST.
22025         (sel_restore_notes): Likewise.
22026         (move_bb_info): Likewise.
22027         (BB_NOTE_LIST): Delete this function.
22028         (SET_BB_NOTE_LIST): Delete this function.
22029         * sel-sched.c (create_block_for_bookkeeping): Eliminate
22030         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
22032 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22034         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
22035         from rtx * to rtx_insn **.
22036         (reorder2): Likewise.
22037         (dependencies_evaluation_hook): Strengthen params "head", "tail"
22038         from rtx to rtx_insn *.
22040         * doc/tm.texi: Update mechanically for above change to target.def.
22042         * sched-int.h (note_list): Strengthen this variable from rtx to
22043         rtx_insn *.
22044         (remove_notes): Likewise for both params.
22045         (restore_other_notes): Likewise for return type and first param.
22046         (struct ready_list): Strengthen field "vec" from rtx * to
22047         rtx_insn **.
22048         (struct dep_replacement): Strenghten field "insn" from rtx to
22049         rtx_insn *.
22050         (struct deps_desc): Likewise for fields "last_debug_insn",
22051         "last_args_size".
22052         (struct haifa_sched_info): Likewise for callback field
22053         "can_schedule_ready_p"'s param, for first param of "new_ready"
22054         callback field, for both params of "rank" callback field, for
22055         first field of "print_insn" callback field (with a const), for
22056         both params of "contributes_to_priority" callback, for param
22057         of "insn_finishes_block_p" callback, for fields "prev_head",
22058         "next_tail", "head", "tail", for first param of "add_remove_insn"
22059         callback, for first param of "begin_schedule_ready" callback, for
22060         both params of "begin_move_insn" callback, and for second param
22061         of "advance_target_bb" callback.
22062         (add_dependence): Likewise for params 1 and 2.
22063         (sched_analyze): Likewise for params 2 and 3.
22064         (deps_analyze_insn): Likewise for param 2.
22065         (ready_element): Likewise for return type.
22066         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
22067         (try_ready): Strenghten param from rtx to rtx_insn *.
22068         (sched_emit_insn): Likewise for return type.
22069         (record_delay_slot_pair): Likewise for params 1 and 2.
22070         (add_delay_dependencies): Likewise for param.
22071         (contributes_to_priority): Likewise for both params.
22072         (find_modifiable_mems): Likewise.
22074         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
22075         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
22076         "first_older_only_insn" from rtx to rtx_insn *.
22077         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
22078         rtx_insn **.
22080         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
22081         "last_scheduled_iter0" from rtx to rtx_insn *.
22082         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
22083         (c6x_sched_reorder_1): Strengthen param "ready" and locals
22084         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
22085         "insn" from rtx to rtx_insn *.
22086         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
22087         rtx_insn **.
22088         (c6x_sched_reorder2): Strengthen param "ready" and locals
22089         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
22090         "insn" from rtx to rtx_insn *.
22091         (c6x_variable_issue):  Add a checked cast when assigning from insn
22092         to ss.last_scheduled_iter0.
22093         (split_delayed_branch): Strengthen param "insn" and local "i1"
22094         from rtx to rtx_insn *.
22095         (split_delayed_nonbranch): Likewise.
22096         (undo_split_delayed_nonbranch): Likewise for local "insn".
22097         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
22098         "entry_after", "end_packet", "head_insn", "tail_insn",
22099         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
22100         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
22101         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
22102         but add a checked cast on loop->start_label.  Consolidate calls to
22103         avoid assigning result of gen_spkernel to "insn", now an
22104         rtx_insn *.
22106         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
22107         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
22108         rtx to rtx_insn *.
22109         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
22110         rtx_insn **.  Strengthen locals "top", "next" from rtx to
22111         rtx_insn *.
22112         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
22113         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
22114         (add_parameter_dependencies): Strengthen params "call", "head" and
22115         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
22116         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
22117         (add_dependee_for_func_arg): Likewise for param "arg" and local
22118         "insn".
22119         (ix86_dependencies_evaluation_hook): Likewise for params "head",
22120         "tail" and locals "insn", "first_arg".
22122         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
22123         for params "head", "tail" and locals "insn", "next", "next_tail".
22124         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
22125         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
22126         "insn", "lowest", "highest" from rtx to rtx_insn *.
22127         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
22128         rtx_insn **.
22129         (ia64_sched_reorder2): Likewise.
22131         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
22132         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
22133         from rtx * to rtx_insn **.
22134         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
22135         rtx_insn **.
22136         (mep_print_sched_insn): Strengthen param "insn" from rtx to
22137         rtx_insn *.
22138         (mep_sched_reorder): Strengthen param "ready" from rtx * to
22139         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
22140         to rtx_insn *.
22142         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
22143         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
22144         to rtx_insn *.
22145         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
22146         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
22147         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
22148         rtx_insn **.
22149         (vr4130_reorder): Likewise.
22150         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
22151         rtx to rtx_insn *.
22152         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
22153         rtx_insn **.
22154         (mips_sched_reorder): Likewise.
22155         (mips_sched_reorder2): Likewise.
22157         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
22159         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
22160         Strengthen local "tmp" from rtx to rtx_insn *.
22161         (rs6000_sched_reorder2): Likewise.
22163         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
22164         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
22165         (s390_sched_reorder): Strengthen param "ready" from rtx * to
22166         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
22168         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
22169         "tmp2" from rtx to rtx_insn *.
22170         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
22171         Strengthen local "insn" from rtx to rtx_insn *.
22172         (ready_reorder): Strengthen param "ready" from rtx * to
22173         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
22174         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
22175         (sh_reorder2): Likewise.
22177         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
22178         local "insn" from rtx to rtx_insn *.
22180         * haifa-sched.c (note_list): Strengthen this variable from rtx to
22181         rtx_insn *.
22182         (scheduled_insns): Strengthen this variable from vec<rtx> to
22183         vec<rtx_insn *>.
22184         (set_modulo_params): Likewise for locals "i1", "i2".
22185         (record_delay_slot_pair): Likewise for params "i1", "i2".
22186         (add_delay_dependencies): Likewise for param "insn".
22187         (cond_clobbered_p): Likewise.
22188         (recompute_todo_spec): Likewise for local "prev".
22189         (last_scheduled_insn): Likewise for this variable.
22190         (nonscheduled_insns_begin): Likewise.
22191         (model_set_excess_costs): Strengthen param "insns" from rtx * to
22192         rtx_insn **.
22193         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
22194         rtx_insn *.
22195         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
22196         Strengthen local "insn" from rtx to rtx_insn *.
22197         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
22198         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
22199         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
22200         (ready_remove_first): Likewise for return type and local "t".
22201         (ready_element): Likewise for return type.
22202         (ready_remove): Likewise for return type and local "t".
22203         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
22204         (check_clobbered_conditions): Strengthen local "x" from rtx to
22205         rtx_insn *, adding a checked cast.
22206         (schedule_insn): Likewise for param "insn".
22207         (remove_notes): Likewise for params "head", "tail" and locals
22208         "next_tail", "insn", "next".
22209         (struct haifa_saved_data): Likewise for fields
22210         "last_scheduled_insn", "nonscheduled_insns_begin".
22211         (save_backtrack_point): Update for change to field "vec" of
22212         struct ready_list.
22213         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
22214         rtx_insn **.
22215         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
22216         from rtx to rtx_insn *
22217         (resolve_dependencies): Strengthen param "insn" from rtx to
22218         rtx_insn *
22219         (restore_other_notes): Likewise for return type, for param "head"
22220         and local "note_head".
22221         (undo_all_replacements): Likewise for local "insn".
22222         (first_nonscheduled_insn): Likewise for return type and local "insn".
22223         (queue_to_ready): Likewise for local "insn", adding checked casts.
22224         (early_queue_to_ready): Likewise for local "insn".
22225         (debug_ready_list_1): Strengthen local "p" from rtx * to
22226         rtx_insn **.
22227         (move_insn): Strengthen param "insn" and local "note" from rtx to
22228         rtx_insn *
22229         (insn_finishes_cycle_p): Likewise for param "insn".
22230         (max_issue): Likewise for local "insn".
22231         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
22232         to rtx_insn **.
22233         (commit_schedule): Strengthen param "prev_head" and local "insn"
22234         from rtx to rtx_insn *
22235         (prune_ready_list): Likewise for local "insn".
22236         (schedule_block): Likewise for locals "prev_head", "head", "tail",
22237         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
22238         (set_priorities): Likewise for local "prev_head".
22239         (try_ready): Likewise for param "next".
22240         (fix_tick_ready): Likewise.
22241         (change_queue_index): Likewise.
22242         (sched_extend_ready_list): Update for change to field "vec" of
22243         struct ready_list.
22244         (generate_recovery_code): Strengthen param "insn" from rtx to
22245         rtx_insn *.
22246         (begin_speculative_block): Likewise.
22247         (create_check_block_twin): Likewise for param "insn" and locals
22248         "label", "check", "twin".  Introduce local "check_pat" to avoid
22249         "check" being used as a plain rtx before being used as an insn.
22250         (fix_recovery_deps): Add a checked cast to rtx_insn * when
22251         extracting elements from ready_list.
22252         (sched_remove_insn): Strengthen param "insn" from rtx to
22253         rtx_insn *.
22254         (sched_emit_insn): Likewise for return type.
22255         (ready_remove_first_dispatch): Likewise for return type and local
22256         "insn".
22258         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
22260         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
22261         const rtx_insn *.
22263         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
22264         from rtx to rtx_insn *.
22265         (add_dependence_list): Likewise for param "insn".  Add a checked
22266         cast.
22267         (add_dependence_list_and_free): Strengthen param "insn" from rtx
22268         to rtx_insn *.  Strengthen param "list_p" from rtx * to
22269         rtx_insn **.
22270         (chain_to_prev_insn): Strengthen param "insn" and locals
22271         "prec_nonnote", "i" from rtx to rtx_insn *.
22272         (flush_pending_lists): Likewise for param "insn".
22273         (cur_insn): Likewise for this variable.
22274         (haifa_start_insn): Add a checked cast.
22275         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
22276         (sched_analyze_reg): Likewise for param "insn".
22277         (sched_analyze_1): Likewise.
22278         (sched_analyze_2): Likewise.  Add checked casts.
22279         (sched_analyze_insn): Likewise.  Also for local "prev".
22280         (deps_analyze_insn): Likewise for param "insn".
22281         (sched_analyze): Likewise for params "head", "tail" and local "insn".
22282         (add_dependence_1): Likewise for params "insn", "elem".
22283         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
22284         (parse_add_or_inc): Likewise for param "insn".
22285         (find_inc): Likewise for local "inc_cand".
22286         (find_modifiable_mems): Likewise for params "head", "tail" and
22287         locals "insn", "next_tail".
22289         * sched-ebb.c (init_ready_list): Likewise for local "insn".
22290         (begin_schedule_ready): Likewise for param "insn".
22291         (begin_move_insn): Likewise for params "insn" and "last".
22292         (ebb_print_insn): Strengthen param "insn" from const_rtx to
22293         const rtx_insn *.
22294         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
22295         (ebb_contributes_to_priority): Likewise for params "next", "insn".
22296         (ebb_add_remove_insn): Likewise for param "insn".
22297         (advance_target_bb): Likewise.
22299         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
22300         "insn".
22301         (check_live): Likewise for param "insn".
22302         (init_ready_list): Likewise for local "insn".
22303         (can_schedule_ready_p): Likewise for param "insn".
22304         (begin_schedule_ready): Likewise.
22305         (new_ready): Likewise for param "next".
22306         (rgn_print_insn): Likewise for param "insn".
22307         (rgn_rank): Likewise for params "insn1", "insn2".
22308         (contributes_to_priority): Likewise for params "next", "insn".
22309         (rgn_insn_finishes_block_p): Likewise for param "insn".
22310         (add_branch_dependences): Likewise for params "head", "tail" and
22311         locals "insn", "last".
22312         (rgn_add_remove_insn): Likewise for param "insn".
22313         (advance_target_bb): Likewise.
22315         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
22316         const_rtx to const rtx_insn *.
22318         * sel-sched-dump.h (sel_print_insn): Likewise.
22320         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
22321         (deps_init_id): Likewise.
22323         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
22324         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
22325         rtx_insn **.
22327 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22329         * output.h (final_start_function): Strengthen param 1 from rtx to
22330         rtx_insn *.
22332         * final.c (final_start_function): Likewise, renaming back from
22333         "uncast_first" to "first", and dropping the checked cast from rtx
22334         to rtx_insn *.
22336 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22338         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
22339         * final.c (final): Likewise.  Rename param back from
22340         "uncast_first" to "first" and eliminate the checked cast from rtx
22341         to rtx_insn *.
22343 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22345         * output.h (shorten_branches): Strengthen param from rtx to
22346         rtx_insn *.
22348         * final.c (shorten_branches): Likewise, renaming param back from
22349         "uncast_first" to "first", and dropping the checked cast from rtx
22350         to rtx_insn *.
22352         * genattr.c (gen_attr): Likewise when writing out the prototype of
22353         shorten_branches.
22355 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22357         * sched-int.h (struct haifa_sched_info): Strengthen fields
22358         "prev_head" and "next_tail" from rtx to rtx_insn *.
22360 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22362         * rtl.h (rtx_jump_table_data::get_labels): New method.
22363         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
22364         with use of the new rtx_jump_table_data::get_labels method.
22365         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
22366         to rtx_jump_table_data *.  Simplify by using get_labels method.
22367         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
22368         a dyn_cast, introducing local "table", using it to replace
22369         label-lookup logic with a get_labels method call.
22370         (patch_jump_insn): Simplify using get_labels method.
22371         * dwarf2cfi.c (create_trace_edges): Likewise.
22372         * rtlanal.c (label_is_jump_target_p): Likewise.
22374 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22376         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
22377         to rtx_insn *.
22379         * emit-rtl.c (unshare_all_rtl_1): Likewise.
22380         (unshare_all_rtl_again): Likewise, also for local "p".
22382 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22384         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
22385         to rtx_insn *.
22386         * cfgrtl.c (delete_insn_and_edges): Likewise.
22388 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22390         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
22391         from rtx to rtx_insn *.
22393         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
22395 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22397         * function.c (thread_prologue_and_epilogue_insns): Likewise for
22398         locals "returnjump", "epilogue_end", "insn", "next".
22400         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
22401         "returnjump" from rtx * to rtx_insn **.
22402         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
22404 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22406         * basic-block.h (struct edge_def). Strengthen "r" within
22407         union edge_def_insns from rtx to rtx_insn *.
22409         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
22410         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
22411         rtx_insn *.
22412         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
22413         from rtx to rtx_insn *.
22414         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
22415         rtx_insn *.
22416         * postreload-gcse.c (reg_killed_on_edge): Likewise.
22417         (reg_used_on_edge): Likewise.
22418         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
22419         (gt_pch_nx): New overload for rtx_insn *&.
22420         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
22421         from rtx to rtx_insn *.
22423 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22425         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
22426         from rtx to rtx_insn *.
22427         (BB_FOOTER): Replace function with access macro.
22428         (SET_BB_FOOTER): Delete.
22430         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
22431         with BB_FOOTER.
22432         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22433         (emit_barrier_after_bb): Likewise.
22434         (record_effective_endpoints): Likewise.
22435         (relink_block_chain): Likewise.
22436         (fixup_fallthru_exit_predecessor): Likewise.
22437         (cfg_layout_duplicate_bb): Likewise.
22438         (cfg_layout_split_block): Likewise.
22439         (cfg_layout_delete_block): Likewise.
22440         (cfg_layout_merge_blocks): Likewise.
22441         (BB_FOOTER): Delete function.
22442         (SET_BB_FOOTER): Delete function.
22443         * combine.c (update_cfg_for_uncondjump): Replace uses of
22444         SET_BB_FOOTER with BB_FOOTER.
22446 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22448         * except.h (struct eh_landing_pad_d): Strengthen field
22449         "landing_pad" from rtx to rtx_code_label *.
22451         * except.c (sjlj_emit_dispatch_table): Likewise for param
22452         "dispatch_label"
22453         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
22455 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22457         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
22458         first param from rtx to rtx_insn *.
22459         * config/xtensa/xtensa.c (struct machine_function): Likewise for
22460         field "set_frame_ptr_insn".
22461         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
22462         "csend" from rtx to rtx_code_label *.
22463         (xtensa_expand_atomic): Likewise for local "csloop".
22464         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
22465         rtx_insn *.
22466         (xtensa_call_tls_desc): Likewise for return type and locals
22467         "call_insn", "insns".
22468         (xtensa_legitimize_tls_address): Likewise for local "insns".
22469         (xtensa_expand_prologue): Likewise for locals "insn", "first".
22471 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22473         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
22474         first param from rtx to rtx_insn *.
22475         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
22476         "insn".
22478 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22480         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
22481         Strengthen param 1 from rtx to rtx_insn *.
22482         (tilepro_output_cbranch): Likewise.
22483         (tilepro_adjust_insn_length): Likewise.
22484         (tilepro_final_prescan_insn): Likewise for sole param.
22486         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
22487         Likewise for local "last".
22488         (cbranch_predicted_p): Likewise for param "insn".
22489         (tilepro_output_simple_cbranch_with_opcode): Likewise.
22490         (tilepro_output_cbranch_with_opcode): Likewise.
22491         (tilepro_output_cbranch): Likewise.
22492         (frame_emit_load): Likewise for return type and locals "seq",
22493         "insn".
22494         (emit_sp_adjust): Likewise for return type and local "insn".
22495         (tilepro_expand_epilogue): Likewise for locals "last_insn",
22496         "insn".
22497         (tilepro_adjust_insn_length): Likewise for param "insn".
22498         (next_insn_to_bundle): Likewise for return type and params
22499         "r", "end".
22500         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
22501         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
22502         local "new_insns".
22503         (match_addli_pcrel): Likewise for param "insn".
22504         (replace_addli_pcrel): Likewise.
22505         (match_auli_pcrel): Likewise.
22506         (replace_auli_pcrel): Likewise.
22507         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
22508         "next_insn".
22509         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
22510         "queue", "next_queue", "prev".
22511         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
22512         (tilepro_final_prescan_insn): Likewise for param "insn".
22514 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22516         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
22517         Strengthen param 1 from rtx to rtx_insn *.
22518         (tilegx_output_cbranch): Likewise.
22519         (tilegx_adjust_insn_length): Likewise.
22520         (tilegx_final_prescan_insn): Likewise for sole param.
22522         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
22523         or local "last".
22524         (cbranch_predicted_p): Likewise for param "insn".
22525         (tilegx_output_simple_cbranch_with_opcode): Likewise.
22526         (tilegx_output_cbranch_with_opcode): Likewise.
22527         (tilegx_output_cbranch): Likewise.
22528         (frame_emit_load): Likewise for return type.
22529         (set_frame_related_p): Likewise for locals "seq", "insn".
22530         (emit_sp_adjust): Likewise for return type, and for local "insn".
22531         Introduce local "pat" for use in place of "insn" where the latter
22532         isn't an instruction.
22533         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
22534         from rtx to rtx_insn *.
22535         (tilegx_adjust_insn_length): Likewise for param "insn".
22536         (next_insn_to_bundle): Likewise for return type and params "r" and
22537         "end".
22538         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
22539         "end".
22540         (replace_insns): Likewise for params "old_insn", "new_insns".
22541         (replace_mov_pcrel_step1): Likewise for param "insn" and local
22542         "new_insns".
22543         (replace_mov_pcrel_step2): Likewise.
22544         (replace_mov_pcrel_step3): Likewise.
22545         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
22546         "next_insn".
22547         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
22548         "queue", "next_queue", "prev".
22549         (tilegx_output_mi_thunk): Likewise for local "insn".
22550         (tilegx_final_prescan_insn): Likewise for param "insn".
22552 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22554         * config/spu/spu.c (frame_emit_store): Strengthen return type from
22555         rtx to rtx_insn *.
22556         (frame_emit_load): Likewise.
22557         (frame_emit_add_imm): Likewise, also for local "insn".
22558         (spu_expand_prologue): Likewise for local "insn".
22559         (struct spu_bb_info): Likewise for field "prop_jump".
22560         (emit_nop_for_insn): Likewise for param "insn" and local
22561         "new_insn".
22562         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
22563         "hbr_insn".
22564         (spu_emit_branch_hint): Likewise for params "before", "branch" and
22565         locals "hint", "insn".
22566         (get_branch_target): Likewise for param "branch".
22567         (insn_clobbers_hbr): Likewise for param "insn".
22568         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
22569         locals "insn", "before_4", "before_16".
22570         (insert_hbrp): Likewise for local "insn".
22571         (spu_machine_dependent_reorg): Likewise for locals "branch",
22572         "insn", "next", "bbend".
22573         (uses_ls_unit): Likewise for param "insn".
22574         (get_pipe): Likewise.
22575         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
22576         introducing a checked cast.
22577         (spu_sched_adjust_cost): Likewise for params "insn" and
22578         "dep_insn".
22579         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
22580         (spu_sms_res_mii): Likewise.
22582 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22584         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
22585         from rtx to rtx_insn *.
22586         (output_cbranch): Likewise for param 6.
22587         (output_return): Likewise for param 1.
22588         (output_sibcall): Likewise.
22589         (output_v8plus_shift): Likewise.
22590         (output_v8plus_mult): Likewise.
22591         (output_v9branch): Likewise for param 7.
22592         (output_cbcond):  Likewise for param 3.
22594         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
22595         for local "insn".
22596         (sparc_legitimize_pic_address): Likewise.
22597         (sparc_emit_call_insn): Likewise.
22598         (emit_save_or_restore_regs): Likewise.
22599         (emit_window_save): Likewise for return type and local "insn".
22600         (sparc_expand_prologue): Likewise for local "insn".
22601         (sparc_flat_expand_prologue): Likewise.
22602         (output_return): Likewise for param "insn".
22603         (output_sibcall): Likewise for param "insn" and local "delay".
22604         (output_ubranch): Likewise for param "insn".
22605         (output_cbranch): Likewise.
22606         (output_cbcond): Likewise.
22607         (output_v9branch): Likewise.
22608         (output_v8plus_shift): Likewise.
22609         (sparc_output_mi_thunk): Likewise for local "insn".
22610         (get_some_local_dynamic_name): Likewise.
22611         (output_v8plus_mult): Likewise for param "insn".
22613 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22615         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
22616         from rtx to rtx_insn *.
22617         (output_branchy_insn): Likewise for param 3.
22618         (output_far_jump): Likewise for param 1.
22619         (final_prescan_insn): Likewise.
22620         (sh_insn_length_adjustment): Likewise for sole param.
22622         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
22623         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
22624         rtx_code_label *.
22625         (sh_emit_compare_and_set): Likewise for local "lab".
22626         (output_far_jump): Strengthen param "insn" and local "prev" from
22627         rtx to rtx_insn *.
22628         (output_branchy_insn): Likewise for param "insn" and local
22629         "next_insn".
22630         (output_ieee_ccmpeq): Likewise for param "insn".
22631         (struct label_ref_list_d): Strengthen field "label" from rtx to
22632         rtx_code_label *.
22633         (pool_node): Likewise.
22634         (pool_window_label): Likewise for this global.
22635         (add_constant): Likewise for return type and locals "lab", "new_rtx".
22636         (dump_table): Strengthen params "start", "barrier" and local
22637         "scan" from rtx to rtx_insn *.
22638         (broken_move): Likewise for param "insn".
22639         (untangle_mova): Likewise for params "first_mova" and "new_mova".
22640         Strengthen param "first_mova" from rtx * to rtx_insn **.
22641         (mova_p): Likewise for param "insn".
22642         (fixup_mova): Likewise for param "mova".
22643         (find_barrier): Likewise for return type, params "mova" and
22644         "from", and locals "barrier_before_mova", "found_barrier",
22645         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
22646         "label" from rtx to rtx_code_label *.
22647         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
22648         rtx to rtx_insn *.
22649         (sh_reorg): Likewise for locals "link", "scan", "barrier".
22650         (split_branches): Likewise for param "first" and local "insn".
22651         (final_prescan_insn): Likewise for param "insn".
22652         (sequence_insn_p): Likewise for locals "prev", "next".
22653         (sh_insn_length_adjustment): Likewise for param "insn".
22654         (sh_can_redirect_branch): Likewise for local "insn".
22655         (find_r0_life_regions): Likewise for locals "end", "insn".
22656         (sh_output_mi_thunk): Likewise for local "insns".
22658 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22660         * config/score/score.c (score_output_mi_thunk): Strengthen local
22661         "insn" from rtx to rtx_insn *.
22662         (score_prologue): Likewise.
22664 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22666         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
22667         1 from rtx to rtx_insn *.
22668         (s390_emit_jump): Likewise for return type.
22669         (s390_emit_call): Likewise.
22670         (s390_load_got): Likewise.
22672         * config/s390/s390.c (last_scheduled_insn): Likewise for this
22673         variable.
22674         (s390_match_ccmode): Likewise for param "insn".
22675         (s390_emit_jump): Likewise for return type.
22676         (s390_split_branches): Likewise for local "label".
22677         (struct constant): Strengthen field "label" from rtx to
22678         rtx_code_label *.
22679         (struct constant_pool): Likewise for field "label".  Strengthen
22680         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
22681         rtx_insn *.
22682         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
22683         insns.
22684         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
22685         (s390_end_pool): Likewise.
22686         (s390_dump_pool): Likewise for local "insn".
22687         (s390_mainpool_start): Likewise.
22688         (s390_chunkify_start): Likewise.
22689         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
22690         with insns.  Strengthen locals "label", "jump", "barrier", "next",
22691         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
22692         (s390_chunkify_finish): Strengthen local "insn" from rtx to
22693         rtx_insn *.
22694         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
22695         "jump", "label", "next_insn".
22696         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
22697         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
22698         "tbegin_insn".
22699         (s390_load_got): Likewise for return type and local "insns".
22700         (s390_save_gprs_to_fprs): Likewise for local "insn".
22701         (s390_restore_gprs_from_fprs): Likewise.
22702         (pass_s390_early_mach::execute): Likewise.
22703         (s390_emit_prologue): Likewise for local "insns".
22704         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
22705         rtx_code_label *.
22706         (s390_emit_call): Strengthen return type and local "insn" from
22707         rtx to rtx_insn *.
22708         (s390_emit_tpf_eh_return): Likewise for local "insn".
22709         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
22710         "next_insn", introducing locals "s_pat", "rpat" to allow this.
22711         (s390_fix_long_loop_prediction): Likewise for param "insn" and
22712         local "cur_insn".
22713         (s390_non_addr_reg_read_p): Likewise for param "insn".
22714         (find_cond_jump): Likewise for return type and param "insn".
22715         (s390_swap_cmp): Likewise for param "insn".
22716         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
22717         "prev_insn", "next_insn".
22718         (s390_reorg): Likewise for locals "insn", "target".
22719         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
22720         (s390_sched_variable_issue): For now, rename param "insn" to
22721         "uncast_insn", introducing a checked cast.
22722         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
22723         insn.
22724         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
22725         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
22727 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22729         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
22730         param from rtx to rtx_insn *.
22731         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
22733 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22735         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
22736         4 from rtx to rtx_insn *.
22737         (rs6000_final_prescan_insn): Likewise for first param.
22738         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
22739         local "insn".
22740         (rs6000_get_some_local_dynamic_name): Likewise.
22741         (output_cbranch): Likewise for param "insn".
22742         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
22743         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
22744         (rs6000_emit_allocate_stack): Likewise for local "insn".
22745         (load_cr_save): Likewise.
22746         (restore_saved_cr): Likewise.
22747         (restore_saved_lr): Likewise.
22748         (emit_cfa_restores): Likewise.
22749         (rs6000_output_function_epilogue): Likewise for locals "insn" and
22750         "deleted_debug_label".
22751         (rs6000_output_mi_thunk): Likewise for local "insn".
22752         (rs6000_final_prescan_insn): Likewise for param "insn".
22754 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22756         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
22757         Strengthen param "insn" from rtx to rtx_insn *.
22758         * config/picochip/picochip.c (picochip_current_prescan_insn):
22759         Likewise for this variable.
22760         (picochip_final_prescan_insn): Likewise for param "insn".
22762 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22764         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
22765         from rtx to rtx_insn *.
22766         (pa_output_indirect_call): Likewise.
22767         (pa_adjust_insn_length): Likewise.
22768         (pa_attr_length_millicode_call): Likewise.
22769         (pa_attr_length_call): Likewise.
22770         (pa_attr_length_indirect_call): Likewise.
22772         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
22773         "insn".
22774         (pa_attr_length_millicode_call): Likewise.
22775         (pa_attr_length_call): Likewise.
22776         (pa_output_call): Likewise.
22777         (pa_attr_length_indirect_call): Likewise.
22778         (pa_output_indirect_call): Likewise.
22780 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22782         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
22783         Strengthen first param from rtx to rtx_insn *.
22784         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
22785         param "insn".
22787 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22789         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
22790         type from rtx to rtx_insn *.
22791         (mips_expand_call): Likewise.
22792         (mips_adjust_insn_length): Likewise for first param.
22793         (mips_output_conditional_branch): Likewise.
22794         (mips_output_order_conditional_branch): Likewise.
22795         (mips_final_prescan_insn): Likewise.
22797         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
22798         rtx_insn * for the SEQUENCE case.
22799         (SEQ_END): Likewise.
22800         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
22801         (mips_emit_call_insn): Likewise, also for local "insn".
22802         (mips16_gp_pseudo_reg): Likewise for local "scan".
22803         (mips16_build_call_stub): Likewise for return type and for local
22804         "insn".  Introduce a new local "pattern" so that "insn" can indeed
22805         be an insn.
22806         (mips_expand_call): Strengthen return type and local "insn" from
22807         rtx to rtx_insn *.
22808         (mips_block_move_loop): Strengthen local "label" from rtx to
22809         rtx_code_label *.
22810         (mips_expand_synci_loop): Likewise for locals "label",
22811         "end_label".
22812         (mips_set_frame_expr): Strengthen local "insn" from rtx to
22813         rtx_insn *.
22814         (mips16e_collect_argument_saves): Likewise for locals "insn",
22815         "next".
22816         (mips_find_gp_ref): Likewise for param of callback for "pred"
22817         param, and for local "insn".
22818         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
22819         (mips_insn_has_flexible_gp_ref_p): Likewise.
22820         (mips_epilogue_emit_cfa_restores): Likewise for return type and
22821         local "insn".
22822         (mips_epilogue_set_cfa): Likewise for local "insn".
22823         (mips_expand_epilogue): Likewise.
22824         (mips_adjust_insn_length): Likewise for param "insn".
22825         (mips_output_conditional_branch): Likewise.
22826         (mips_output_order_conditional_branch): Likewise.
22827         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
22828         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
22829         "falu2_turn_enabled_insn".
22830         (mips_builtin_branch_and_move): Strengthen locals "true_label",
22831         "done_label" from rtx to rtx_code_label *.
22832         (struct mips16_constant): Likewise for field "label".
22833         (mips16_add_constant): Likewise for return type.
22834         (mips16_emit_constants_1): Strengthen return type and param "insn"
22835         from rtx to rtx_insn *.
22836         (mips16_emit_constants): Likewise for param "insn".
22837         (mips16_insn_length): Likewise.
22838         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
22839         to rtx_code_label *.
22840         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
22841         from rtx to rtx_insn *.
22842         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
22843         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
22844         (r10k_simplify_address): Strengthen param "insn" and local
22845         "def_insn" from rtx to rtx_insn *.
22846         (r10k_safe_address_p): Strengthen param "insn" from rtx to
22847         rtx_insn *.
22848         (r10k_needs_protection_p_1): Update target type of cast of data
22849         from to rtx to rtx_insn *.
22850         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
22851         rtx * to rtx_insn **.
22852         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
22853         rtx_insn *.
22854         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
22855         (mips_call_expr_from_insn): Likewise for param "insn".
22856         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
22857         (mips_find_pic_call_symbol): Likewise for param "insn".
22858         (mips_annotate_pic_calls): Likewise for local "insn".
22859         (mips_sim_insn): Likewise for this variable.
22860         (struct mips_sim): Likewise for field "insn" within elements of
22861         last_set array.
22862         (mips_sim_wait_reg): Likewise for param "insn".
22863         (mips_sim_wait_regs): Likewise.
22864         (mips_sim_wait_units): Likewise.
22865         (mips_sim_wait_insn): Likewise.
22866         (mips_sim_issue_insn): Likewise.
22867         (mips_sim_finish_insn): Likewise.
22868         (mips_seq_time): Likewise for param "seq" and local "insn".
22869         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
22870         locals "first", "second".
22871         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
22872         "last", "last2", "next".
22873         (mips_avoid_hazard): Likewise for params "after", "insn".
22874         (mips_reorg_process_insns): Likewise for locals "insn",
22875         "last_insn", "subinsn", "next_insn".
22876         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
22877         (mips16_split_long_branches): Likewise for locals "insn" "jump",
22878         "jump_sequence".
22879         (mips_output_mi_thunk): Likewise for local "insn".
22880         (mips_final_prescan_insn): Likewise for param "insn".
22882 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22884         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
22885         Strengthen return type and local "insns" from rtx to rtx_insn *.
22886         (microblaze_legitimize_tls_address): Likewise for local "insns".
22887         (microblaze_block_move_loop): Strengthen local "label" from rtx
22888         to rtx_code_label *.
22889         (microblaze_expand_prologue): Strengthen two locals named "insn"
22890         from rtx to rtx_insn *.
22891         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
22892         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
22893         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
22894         to rtx_code_label *.
22896 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22898         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
22899         param from rtx to rtx_insn *.
22900         (mep_reuse_lo): Likewise for third param.
22901         (mep_use_post_modify_p): Likewise for first param.
22902         (mep_core_address_length): Likewise.
22903         (mep_cop_address_length): Likewise.
22904         (mep_final_prescan_insn): Likewise.
22905         (mep_store_data_bypass_p): Likewise for both params.
22906         (mep_mul_hilo_bypass_p): Likewise.
22907         (mep_ipipe_ldc_p): Likewise for param.
22909         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
22910         (mep_rewrite_mult): Likewise.
22911         (mep_rewrite_mulsi3): Likewise.
22912         (mep_rewrite_maddsi3): Likewise.
22913         (mep_reuse_lo_p_1): Likewise.
22914         (mep_reuse_lo_p): Likewise.
22915         (mep_frame_expr): Likewise.
22916         (mep_make_parallel): Likewise for both params.
22917         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
22918         local "insn".
22919         (mep_use_post_modify_p): Likewise for param "insn".
22920         (mep_core_address_length): Likewise.
22921         (mep_cop_address_length): Likewise.
22922         (mep_reg_set_in_function): Likewise for local "insn".
22923         (mep_asm_without_operands_p): Likewise.
22924         (F): Likewise for return type and param "x".
22925         (add_constant): Likewise for local "insn".
22926         (maybe_dead_move): Likewise for return type and local "insn".
22927         (mep_expand_prologue): Likewise for local "insn".
22928         (mep_final_prescan_insn): Likewise for param "insn".
22929         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
22930         "next", "follow", "x".
22931         (mep_insert_repeat_label_last): Likewise for return type, param
22932         "last_insn", and locals "next", "prev".  Strengthen param "label"
22933         from rtx to rtx_code_label *.
22934         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
22935         rtx_insn *.
22936         (struct mep_doloop_end): Likewise for fields "insn" and
22937         "fallthrough".
22938         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
22939         Strengthen local "repeat_label" from rtx to rtx_code_label *.
22940         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
22941         rtx_insn *.
22942         (mep_invert_branch): Likewise for params "insn" and "after".
22943         (mep_reorg_erepeat): Likewise for param "insns" and locals
22944         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
22945         "l" from rtx to rtx_code_label *.
22946         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
22947         from rtx to rtx_insn *.
22948         (mep_reorg_addcombine): Likewise for param "insns" and locals
22949         "i", "n".
22950         (add_sp_insn_p): Likewise for param "insn".
22951         (mep_reorg_noframe): Likewise for param "insns" and locals
22952         "start_frame_insn", "end_frame_insn", "next".
22953         (mep_reorg): Likewise for local "insns".
22954         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
22955         cast.
22956         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
22957         (mep_mul_hilo_bypass_p): Likewise.
22958         (mep_ipipe_ldc_p): Likewise for param "insn".
22959         (mep_make_bundle): Likewise for return type, param "cop" and local
22960         "insn", splitting out the latter into a new local "seq" for when it
22961         is a SEQUENCE rather than an insn.
22962         (core_insn_p): Likewise for param "insn".
22963         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
22964         "last", "first", "note", "prev", "core_insn".
22966 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22968         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
22969         rtx to rtx_insn *.
22970         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
22971         (m68k_final_prescan_insn): Likewise for first param.
22973         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
22974         (m68k_set_frame_related): Likewise for param "insn".
22975         (output_btst): Likewise for param "insn".
22976         (m68k_final_prescan_insn): Likewise.
22977         (m68k_move_to_reg): Likewise for local "insn".
22978         (m68k_call_tls_get_addr): Likewise for local "insns".
22979         (m68k_call_m68k_read_tp): Likewise.
22980         (strict_low_part_peephole_ok): Likewise for param "first_insn".
22981         (m68k_output_mi_thunk): Likewise for local "insn".
22983 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22985         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
22986         first param from rtx to rtx_insn *.
22987         (iq2000_adjust_insn_length): Likewise.
22988         (iq2000_output_conditional_branch): Likewise.
22989         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
22990         "insn" and local "nop_insn".
22991         (iq2000_annotate_frame_insn): Likewise for param "insn".
22992         (iq2000_expand_prologue): Likewise for both locals "insn".
22993         (iq2000_adjust_insn_length): Likewise for param "insn".
22994         (iq2000_output_conditional_branch): Likewise.
22996 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
22998         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
22999         "insns" from rtx to rtx_insn *.
23000         (ia64_emit_cond_move): Likewise for locals "insn", "first".
23001         (struct spill_fill_data): Likewise for field "init_after" and for
23002         elements of array field "prev_insn".
23003         (spill_restore_mem): Likewise for locals "insn", "first".
23004         (do_spill): Likewise for local "insn".
23005         (do_restore): Likewise.
23006         (ia64_expand_prologue): Likewise.
23007         (ia64_expand_epilogue): Likewise.
23008         (emit_insn_group_barriers): Likewise for locals "insn",
23009         "last_label".
23010         (emit_all_insn_group_barriers): Likewise for locals "insn",
23011         "last".
23012         (dfa_stop_insn): Likewise for this global.
23013         (dfa_pre_cycle_insn): Likewise.
23014         (ia64_nop): Likewise.
23015         (final_emit_insn_group_barriers): Likewise for locals "insn",
23016         "last".
23017         (emit_predicate_relation_info): Likewise for locals "head", "n",
23018         "insn", "b", "a".
23019         (ia64_reorg): Likewise for local "insn".
23020         (ia64_output_mi_thunk): Likewise.
23021         (expand_vec_perm_interleave_2): Likewise for local "seq".
23023 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23025         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
23026         param 1 "insn" from rtx to rtx_insn *.
23027         (ix86_use_lea_for_mov): Likewise.
23028         (ix86_avoid_lea_for_addr): Likewise.
23029         (ix86_split_lea_for_addr): Likewise.
23030         (ix86_lea_for_add_ok): Likewise.
23031         (ix86_output_call_insn): Likewise.
23033         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
23034         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
23035         (ix86_output_function_epilogue): Likewise for locals "insn",
23036         "deleted_debug_label".
23037         (legitimize_tls_address): Likewise for local "insn".
23038         (get_some_local_dynamic_name): Likewise.
23039         (increase_distance): Likewise for params "prev", "next".
23040         (distance_non_agu_define_in_bb): Likewise for params "insn",
23041         "start" and locals "prev", "next".
23042         (distance_non_agu_define): Likewise for param "insn".
23043         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
23044         locals "next", "prev".
23045         (distance_agu_use): Likewise for param "insn".
23046         (ix86_lea_outperforms): Likewise.
23047         (ix86_ok_to_clobber_flags): Likewise.
23048         (ix86_avoid_lea_for_add): Likewise.
23049         (ix86_use_lea_for_mov): Likewise.
23050         (ix86_avoid_lea_for_addr): Likewise.
23051         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
23052         (ix86_split_lea_for_addr): Likewise for param "insn".
23053         (ix86_lea_for_add_ok): Likewise for param "insn".
23054         (ix86_expand_carry_flag_compare): Likewise for local
23055         "compare_seq".
23056         (ix86_expand_int_movcc): Likewise.
23057         (ix86_output_call_insn): Likewise for param "insn".
23058         (ix86_output_call_insn): Likewise for local "i".
23059         (x86_output_mi_thunk): Introduce local "insn", using it in place
23060         of "tmp" when dealing with insns.
23061         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
23062         "start".
23063         (ix86_pad_returns): Likewise for locals "ret", "prev".
23064         (ix86_count_insn_bb): Likewise for local "insn".
23065         (ix86_pad_short_function): Likewise for locals "ret", "insn".
23066         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
23067         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
23068         (expand_vec_perm_interleave2): Likewise for local "seq".
23069         (expand_vec_perm_vperm2f128_vblend): Likewise.
23070         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
23071         call to for_each_rtx with for_each_rtx_in_insn.
23073 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23075         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
23076         "label" from rtx to rtx_code_label *.
23077         (ix86_expand_prologue): Likewise.
23078         (ix86_expand_split_stack_prologue): Likewise for locals "label",
23079         "varargs_label".
23080         (ix86_split_idivmod): Likewise for locals "end_label" and
23081         "qimode_label".
23082         (ix86_expand_branch): Likewise for local "label2".
23083         (ix86_expand_aligntest): Likewise for return type and local "label".
23084         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
23085         "top_label".
23086         (expand_movmem_epilogue): Likewise for the various locals named
23087         "label".
23088         (expand_setmem_epilogue): Likewise.
23089         (expand_small_movmem_or_setmem): Likewise for local "label".
23090         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
23091         Strengthen param "done_label" from rtx * to rtx_code_label **.
23092         Strengthen locals "loop_label" and "label" from rtx to
23093         rtx_code_label *.
23094         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
23095         Likewise for locals "loop_label", "label".
23096         (ix86_expand_set_or_movmem): Likewise for locals "label",
23097         "jump_around_label", "hot_label".
23098         (ix86_expand_strlensi_unroll_1): Likewise for locals
23099         "align_2_label", align_3_label", "align_4_label", "end_0_label",
23100         "end_2_label".
23101         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
23102         (void ix86_emit_i387_log1p): Likewise for locals "label1",
23103         "label2", "jump_label".
23104         (ix86_expand_sse_compare_and_jump): Likewise for return type and
23105         local "label".
23106         (ix86_expand_lfloorceil): Likewise for local "label".
23107         (ix86_expand_rint): Likewise.
23108         (ix86_expand_floorceildf_32): Likewise.
23109         (ix86_expand_floorceil): Likewise.
23110         (ix86_expand_rounddf_32): Likewise.
23111         (ix86_expand_trunc): Likewise.
23112         (ix86_expand_truncdf_32): Likewise.
23113         (ix86_expand_round): Likewise.
23115 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23117         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
23118         first param from rtx to rtx_insn *.
23119         (h8300_insn_length_from_table): Likewise.
23120         * config/h8300/h8300.c (F): Likewise for return type and param
23121         "x".
23122         (Fpa): Add a checked cast to rtx_insn *.
23123         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
23124         rtx_insn *.
23125         (final_prescan_insn): Likewise for param "insn".
23126         (h8300_binary_length): Likewise.
23127         (h8300_insn_length_from_table): Likewise.
23129 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23131         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
23132         Strengthen first param "insn" from rtx to rtx_insn *.
23134         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
23135         Likewise.
23136         (frame_insn): Likewise for return type.  Introduce local "insn"
23137         for use in place of local "x" for use as an rtx_insn *.
23138         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
23139         (epiphany_expand_prologue): Likewise for local "insn".
23140         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
23141         * config/epiphany/resolve-sw-modes.c
23142         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
23143         "seq".
23145 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23147         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
23148         param from rtx to rtx_insn *.
23149         (c6x_final_prescan_insn): Likewise for first param.
23151         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
23152         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
23153         (c6x_expand_compare): Strengthen local "insns" from rtx to
23154         rtx_insn *.
23155         (c6x_get_unit_specifier): Likewise for param "insn".
23156         (c6x_print_unit_specifier_field): Likewise.
23157         (c6x_final_prescan_insn): Likewise.
23158         (emit_add_sp_const): Likewise for local "insn".
23159         (c6x_expand_prologue): Likewise.
23161 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23163         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
23164         param 1 from rtx to rtx_insn *.
23165         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
23166         the various locals named "insn".
23167         (expand_epilogue_reg_restore): Likewise.
23168         (frame_related_constant_load): Likewise.
23169         (add_to_reg): Likewise.
23170         (emit_link_insn): Likewise.
23171         (do_link): Likewise.
23172         (expand_interrupt_handler_prologue): Likewise.
23173         (branch_dest): Likewise for param "branch".
23174         (asm_conditional_branch): Likewise for param "insn".
23175         (gen_one_bundle): Likewise for elements of param "slot" and local
23176         "t".
23177         (bfin_gen_bundles): Likewise for locals "insn", "next" and
23178         elements of local "slot".
23179         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
23180         "queue", "next_queue", "prev".
23181         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
23182         (add_sched_insns_for_speculation): Likewise for local "insn".
23184 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23186         * config/avr/avr-protos.h (output_movqi): Strengthen first param
23187         from rtx to rtx_insn *.
23188         (output_movhi): Likewise.
23189         (output_movsisf): Likewise.
23190         (avr_out_tstsi): Likewise.
23191         (avr_out_tsthi): Likewise.
23192         (avr_out_tstpsi): Likewise.
23193         (avr_out_compare): Likewise.
23194         (avr_out_compare64): Likewise.
23195         (avr_out_movpsi): Likewise.
23196         (ashlqi3_out): Likewise.
23197         (ashlhi3_out): Likewise.
23198         (ashlsi3_out): Likewise.
23199         (ashrqi3_out): Likewise.
23200         (ashrhi3_out): Likewise.
23201         (ashrsi3_out): Likewise.
23202         (lshrqi3_out): Likewise.
23203         (lshrhi3_out): Likewise.
23204         (lshrsi3_out): Likewise.
23205         (avr_out_ashlpsi3): Likewise.
23206         (avr_out_ashrpsi3): Likewise.
23207         (avr_out_lshrpsi3): Likewise.
23208         (avr_out_fract): Likewise.
23209         (avr_out_sbxx_branch): Likewise.
23210         (avr_out_round): Likewise.
23211         (avr_out_xload): Likewise.
23212         (avr_out_movmem): Likewise.
23213         (adjust_insn_length): Likewise.
23214         (avr_out_lpm): Likewise.
23215         (reg_unused_after): Likewise.
23216         (_reg_unused_after): Likewise.
23217         (avr_jump_mode): Likewise for second param.
23218         (jump_over_one_insn): Likewise for first param.
23219         (avr_final_prescan_insn): Likewise.
23220         (out_shift_with_cnt): Likewise for second param.
23222         * config/avr/avr.c (get_sequence_length): Likewise for param
23223         "insns" and local "insn".
23224         (emit_push_byte): Likewise for local "insn".
23225         (emit_push_sfr): Likewise.
23226         (avr_prologue_setup_frame): Likewise for locals "insn",
23227         "fp_plus_insns", "sp_plus_insns".
23228         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
23229         "sp_plus_insns".
23230         (avr_jump_mode): Likewise for param "insn".
23231         (avr_final_prescan_insn): Likewise.
23232         (avr_find_unused_d_reg): Likewise.
23233         (avr_out_lpm_no_lpmx): Likewise.
23234         (avr_out_lpm): Likewise.
23235         (avr_out_xload): Likewise.
23236         (output_movqi): Likewise.
23237         (output_movhi): Likewise.
23238         (out_movqi_r_mr): Likewise.
23239         (out_movhi_r_mr): Likewise.
23240         (out_movsi_r_mr): Likewise.
23241         (out_movsi_mr_r): Likewise.
23242         (output_movsisf): Likewise.
23243         (avr_out_load_psi): Likewise.
23244         (avr_out_store_psi): Likewise.
23245         (avr_out_movpsi): Likewise.
23246         (out_movqi_mr_r): Likewise.
23247         (avr_out_movhi_mr_r_xmega): Likewise.
23248         (out_movhi_mr_r): Likewise.
23249         (compare_condition): Likewise for param "insn" and local "next".
23250         (compare_sign_p): Likewise for param "insn".
23251         (compare_diff_p): Likewise.
23252         (compare_eq_p): Likewise.
23253         (avr_out_compare): Likewise.
23254         (avr_out_compare64): Likewise.
23255         (avr_out_tsthi): Likewise.
23256         (avr_out_tstpsi): Likewise.
23257         (avr_out_tstsi): Likewise.
23258         (out_shift_with_cnt): Likewise.
23259         (ashlqi3_out): Likewise.
23260         (ashlhi3_out): Likewise.
23261         (avr_out_ashlpsi3): Likewise.
23262         (ashlsi3_out): Likewise.
23263         (ashrqi3_out): Likewise.
23264         (ashrhi3_out): Likewise.
23265         (avr_out_ashrpsi3): Likewise.
23266         (ashrsi3_out): Likewise.
23267         (lshrqi3_out): Likewise.
23268         (lshrhi3_out): Likewise.
23269         (avr_out_lshrpsi3): Likewise.
23270         (lshrsi3_out): Likewise.
23271         (avr_out_fract): Likewise.
23272         (avr_out_round): Likewise.
23273         (avr_adjust_insn_length): Likewise.
23274         (reg_unused_after): Likewise.
23275         (_reg_unused_after): Likewise.
23276         (avr_compare_pattern): Likewise.
23277         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
23278         and locals "branch1", "branch2", "insn2", "jump".
23279         (avr_reorg): Likewise for local "insn".
23280         (avr_2word_insn_p): Likewise for param "insn".
23281         (jump_over_one_insn_p): Likewise.
23282         (avr_out_sbxx_branch): Likewise.
23283         (avr_out_movmem): Likewise.
23285 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23287         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
23288         param from rtx to rtx_insn *.
23289         (thumb1_final_prescan_insn): Likewise.
23290         (thumb2_final_prescan_insn): Likewise.
23292         * config/arm/arm.c (emit_set_insn): Strengthen return type from
23293         rtx to rtx_insn *.
23294         (struct minipool_node): Likewise for field "insn".
23295         (dump_minipool): Likewise for param "scan".
23296         (create_fix_barrier): Likewise for local "from".  Strengthen local
23297         "label" from rtx to rtx_code_label *.
23298         (push_minipool_barrier): Strengthen param "insn" from rtx to
23299         rtx_insn *.
23300         (push_minipool_fix): Likewise.
23301         (note_invalid_constants): Likewise.
23302         (thumb2_reorg): Likewise for local "insn".
23303         (arm_reorg): Likewise.
23304         (thumb2_final_prescan_insn): Likewise for param
23305         "insn" and local "first_insn".
23306         (arm_final_prescan_insn): Likewise for param "insn" and locals
23307         "start_insn", "this_insn".
23308         (arm_debugger_arg_offset): Likewise for param "insn".
23309         (thumb1_emit_multi_reg_push): Likewise for return type and local
23310         "insn".
23311         (thumb1_final_prescan_insn): Likewise for param "insn".
23312         (thumb_far_jump_used_p): Likewise for local "insn".
23313         (thumb1_expand_prologue): Likewise.
23314         (arm_expand_epilogue_apcs_frame): Likewise.
23315         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
23316         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
23317         from rtx to rtx_code_label *.
23318         (arm_split_atomic_op): Likewise for local "label".
23319         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
23321 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23323         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
23324         first param from rtx to rtx_insn *.
23325         (arc_verify_short): Likewise.
23326         (arc_short_long): Likewise.
23327         (arc_need_delay): Likewise.
23329         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
23330         "target_insn".
23331         (arc_ccfsm_advance): Likewise for param "insn" and locals
23332         "start_insn", "this_insn".
23333         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
23334         (arc_ccfsm_post_advance): Likewise for param "insn".
23335         (arc_next_active_insn): Likewise for return type and param "insn".
23336         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
23337         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
23338         (output_short_suffix): Likewise for local "insn".
23339         (arc_final_prescan_insn): Likewise for param "insn".  Remove
23340         now-redundant checked cast.
23341         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
23342         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
23343         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
23344         for use where lc_set became an insn.
23345         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
23346         rtx to rtx_insn *.
23347         (arc_get_insn_variants): Likewise for local "prev".
23348         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
23349         "next".
23350         (arc_predicate_delay_insns): Likewise for local "insn".
23351         (arc_pad_return): Likewise for local "prev".  For now, add a
23352         checked cast when extracting the insn from "final_sequence".
23353         (arc_short_long): Likewise for param "insn".
23354         (arc_need_delay): Likewise for param "insn" and local "next".
23355         (arc_label_align): Likewise for locals "prev", "next".
23357 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23359         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
23360         "insn" from rtx to rtx_insn *.
23361         (alpha_gp_save_rtx): Likewise for local "seq".
23362         (alpha_instantiate_decls): Likewise for local "top".
23363         (get_some_local_dynamic_name): Likewise for local "insn".
23364         (alpha_does_function_need_gp): Likewise.
23365         (set_frame_related_p): Likewise for return type and for locals
23366         "seq" and "insn".
23367         (emit_frame_store_1): Likewise for local "insn".
23368         (alpha_expand_prologue): Likewise for locals "insn", "seq".
23369         (alpha_end_function): Likewise for local "insn".
23370         (alpha_output_mi_thunk_osf): Likewise.
23371         (alphaev4_insn_pipe): Likewise for param "insn".
23372         (alphaev5_insn_pipe): Likewise.
23373         (alphaev4_next_group): Likewise for return type and param 1
23374         "insn".
23375         (alphaev5_next_group): Likewise.
23376         (alpha_align_insns_1): Likewise for return type and param 1 of
23377         callback param "next_group", and for locals "i", "next", "prev",
23378         "where", "where2", "insn".
23380 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
23382         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
23383         rather than modifying the stmt.
23385 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23387         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
23388         cgraph_state conversion.
23390 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
23392         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23393         Strengthen local "insns" from rtx to rtx_insn *.
23394         (aarch64_set_frame_expr): Likewise for local "insn".
23395         (aarch64_save_or_restore_fprs): Likewise.
23396         (aarch64_save_or_restore_callee_save_registers): Likewise.
23397         (aarch64_expand_prologue): Likewise.
23398         (aarch64_expand_epilogue): Likewise.
23399         (aarch64_output_mi_thunk): Likewise.
23400         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
23401         "label2" from rtx to rtx_code_label *.
23402         (aarch64_split_atomic_op): Likewise for local "label".
23404 2014-08-25  Martin Liska  <mliska@suse.cz>
23406         * cgraph.h (symtab_node):
23407         (bool needed_p (void)): created from decide_is_symbol_needed
23408         (bool referred_to_p (void)): created from referred_to_p
23409         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
23410         * cgraph.h (cgraph_node):
23411         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
23412         (void expand (void)): created from expand_function
23413         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
23414         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
23415         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
23416         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
23417         * cgraph.h (varpool_node):
23418         (static void add (tree decl): created from varpool_add_new_variable
23419         * cgraph.h (cgraph_edge):
23420         void remove (void);
23421         (void remove_caller (void)): created from cgraph_edge_remove_caller
23422         (void remove_callee (void)): created from cgraph_edge_remove_callee
23423         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
23424           created from cgraph_set_call_stmt
23425         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
23426         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
23427         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
23428           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
23429         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
23430           created from cgraph_speculative_call_info
23431         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
23432           int freq_scale, bool update_original)): created from cgraph_clone_edge
23433         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
23434         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
23435         (bool recursive_p (void)): created from cgraph_edge_recursive_p
23436         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
23437         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
23438         (static void rebuild_references (void)): created from cgraph_rebuild_references
23439         * cgraph.h (symbol_table):
23440         (create_reference): renamed from add_reference
23441         (maybe_create_reference): renamed from maybe_add_reference
23442         (void register_symbol (symtab_node *node)): new function
23443         (void clear_asm_symbols (void)): new function
23444         (void unregister (symtab_node *node)): new function
23445         (void release_symbol (cgraph_node *node, int uid)): new function
23446         (cgraph_node * allocate_cgraph_symbol (void)): new function
23447         (void initialize (void)): created from cgraph_init
23448         (symtab_node *first_symbol (void)):new function
23449         (asm_node *first_asm_symbol (void)):new function
23450         (symtab_node *first_defined_symbol (void)):new function
23451         (varpool_node *first_variable (void)):new function
23452         (varpool_node *next_variable (varpool_node *node)):new function
23453         (varpool_node *first_static_initializer (void)):new function
23454         (varpool_node *next_static_initializer (varpool_node *node)):new function
23455         (varpool_node *first_defined_variable (void)):new function
23456         (varpool_node *next_defined_variable (varpool_node *node)):new function
23457         (cgraph_node *first_defined_function (void)):new function
23458         (cgraph_node *next_defined_function (cgraph_node *node)):new function
23459         (cgraph_node *first_function (void)):new function
23460         (cgraph_node *next_function (cgraph_node *node)):new function
23461         (cgraph_node *first_function_with_gimple_body (void)):new function
23462         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
23463         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
23464           created from symtab_remove_unreachable_nodes
23465         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
23466         (void process_new_functions (void)): created from cgraph_process_new_functions
23467         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
23468         (bool output_variables (void)): created from varpool_node::output_variables
23469         (void output_asm_statements (void)): created from output_asm_statements
23470         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
23471         (void compile (void)): created from compile
23472         (void output_weakrefs (void)): created from output_weakrefs
23473         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
23474         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
23475           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
23476         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
23477         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
23478           created from cgraph_next_function_with_gimple_body
23479         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
23480           created from cgraph_remove_edge_removal_hook
23481         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
23482           created from cgraph_add_node_removal_hook
23483         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
23484           created from cgraph_remove_node_removal_hook
23485         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
23486           created from varpool_add_node_removal_hook
23487         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
23488           created from varpool_remove_node_removal_hook
23489         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
23490           created from cgraph_add_function_insertion_hook
23491         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
23492           created from cgraph_remove_function_insertion_hook
23493         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
23494           created from varpool_add_variable_insertion_hook
23495         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
23496           created from varpool_remove_variable_insertion_hook
23497         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
23498           created from cgraph_add_edge_duplication_hook
23499         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
23500           created from cgraph_remove_edge_duplication_hook
23501         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
23502           created from cgraph_add_node_duplication_hook
23503         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
23504           created from cgraph_remove_node_duplication_hook
23505         (void call_edge_removal_hooks (cgraph_edge *e)):
23506           created from cgraph_call_edge_removal_hooks
23507         (void call_cgraph_insertion_hooks (cgraph_node *node)):
23508           created from call_function_insertion_hooks
23509         (void call_cgraph_removal_hooks (cgraph_node *node)):
23510           created from cgraph_call_node_removal_hooks
23511         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
23512           created from cgraph_node::call_duplication_hooks
23513         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
23514           created from cgraph_call_edge_duplication_hooks
23515         (void call_varpool_removal_hooks (varpool_node *node)):
23516           created from varpool_call_node_removal_hooks
23517         (void call_varpool_insertion_hooks (varpool_node *node)):
23518           created from varpool_call_variable_insertion_hooks
23519         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
23520           created from insert_to_assembler_name_hash
23521         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
23522           created from unlink_from_assembler_name_hash
23523         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
23524           created from symtab_prevail_in_asm_name_hash
23525         (void symtab_initialize_asm_name_hash (void)):
23526           created from symtab_initialize_asm_name_hash
23527         (void change_decl_assembler_name (tree decl, tree name)):
23528           created from change_decl_assembler_name
23529         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
23530         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
23531           created from decl_assembler_name_hash
23532         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
23533           created from decl_assembler_name_equal
23534         (static hashval_t hash_node_by_assembler_name (const void *p)):
23535           created from hash_node_by_assembler_name
23536         (static int eq_assembler_name (const void *p1, const void *p2)):
23537           created from eq_assembler_name
23539 2014-08-25  Marek Polacek  <polacek@redhat.com>
23541         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
23543 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
23545         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
23546         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
23547         SWI1248_AVX512BW mode iterator.
23549 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
23551         PR target/62111
23552         * config/sh/predicates.md (general_extend_operand): Disable
23553         TRUNCATE before reload completes.
23555 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
23557         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
23559 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
23561         PR target/61996
23562         * config/sh/sh.opt (musermode): Allow negative form.
23563         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
23564         targets that don't support it.
23565         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
23566         Document -mno-usermode option.
23568 2014-08-24  Kito Cheng  <kito@0xlab.org>
23570         * system.h (CALLER_SAVE_PROFITABLE): Poison.
23571         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
23572         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
23573         * doc/tm.texi: Regenerate.
23575 2014-08-24  Kito Cheng  <kito@0xlab.org>
23577         * ira.c: Fix typo in comment.
23579 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
23581         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
23582         Deprecate c++1y. Change language to reflect greater confidence in C++14.
23584 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
23586         PR target/62038
23587         * config/pa/pa.c (pa_output_function_epilogue): Don't set
23588         last_address when the current function is a thunk.
23589         (pa_asm_output_mi_thunk): When we don't have named sections or they
23590         are not being used, check that thunk can reach the stub table with a
23591         short branch.
23593 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
23595         * web.c (union_match_dups): Strengthen param "insn" from rtx to
23596         rtx_insn *.
23597         (pass_web::execute): Likewise for local "insn".
23599 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
23601         * var-tracking.c (struct micro_operation_def): Strengthen field
23602         "insn" from rtx to rtx_insn *.
23603         (struct emit_note_data_def): Likewise.
23604         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
23605         (vt_stack_adjustments): Likewise for local "insn".
23606         (adjust_insn): Likewise for param "insn".
23607         (val_store): Likewise.
23608         (val_resolve): Likewise.
23609         (struct count_use_info): Likewise for field "insn".
23610         (log_op_type): Likewise for param "insn".
23611         (reverse_op): Likewise.
23612         (prepare_call_arguments): Likewise.
23613         (add_with_sets):  The initial param takes an insn, but we can't
23614         yet strengthen it from rtx to rtx_insn * since it's used as a
23615         cselib_record_sets_hook callback.  For now rename initial param
23616         from "insn" to "uncast_insn", and introduce a local "insn" of
23617         the stronger rtx_insn * type, with a checked cast.
23618         (compute_bb_dataflow): Strengthen local "insn" from rtx to
23619         rtx_insn *.
23620         (emit_note_insn_var_location): Likewise.
23621         (emit_notes_for_changes): Likewise.
23622         (emit_notes_for_differences): Likewise.
23623         (next_non_note_insn_var_location): Likewise for return type and
23624         for param "insn".
23625         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
23626         (vt_initialize): Likewise for local "insn".
23627         (delete_debug_insns): Likewise for locals "insn" and "next".
23629 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
23631         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
23632         rtx_insn *.
23633         (mark_constant_pool): Likewise for local "insn".
23635 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
23637         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
23638         rtx to rtx_insn *.
23639         (dead_debug_promote_uses): Likewise.
23640         (dead_debug_insert_temp): Likewise.
23642 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
23644         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
23645         from const_rtx to const rtx_insn *.
23646         (store_killed_after): Likewise.  Strengthen locals "last", "act"
23647         from rtx to rtx_insn *.
23648         (store_killed_before): Strengthen param "insn" from const_rtx to
23649         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
23650         (find_moveable_store): Strengthen param "insn" from rtx to
23651         rtx_insn *.
23652         (compute_store_table): Likewise for local "insn".
23653         (insert_insn_start_basic_block): Likewise for param "insn" and
23654         locals "prev", "before", "insn".
23655         (insert_store): For now, add a checked cast to rtx_insn * on the
23656         result of gen_move_insn.
23657         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
23658         to rtx_insn *.
23659         (replace_store_insn): Likewise.  For now, add a checked cast to
23660         rtx_insn * on the result of gen_move_insn.
23662 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23664         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
23665         rtx_insn *.
23666         (expand_sjlj_dispatch_table): Likewise.
23668 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23670         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
23671         "insn" from rtx to rtx_insn *.
23673 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23675         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
23676         "insn" from rtx to rtx_insn *.
23677         (dup_block_and_redirect): Likewise for param 3 "before".
23679         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
23680         from rtx to rtx_insn *.
23681         (move_insn_for_shrink_wrap): Likewise.
23682         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
23683         (dup_block_and_redirect): Likewise for param "before" and local
23684         "insn".
23685         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
23686         "end".
23687         (convert_to_simple_return): Likewise for local "start".
23689         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
23690         Strengthen local "insn" from rtx to rtx_insn *, for use when
23691         invoking requires_stack_frame_p.
23693 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23695         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
23696         rtx_insn *.
23697         (speculate_expr): Likewise for locals "orig_insn_rtx",
23698         "spec_insn_rtx".
23699         (eq_transformed_insns): Likewise for locals "i1", "i2".
23700         (check_for_new_jump): Likewise for return type and local "end".
23701         (find_new_jump): Likewise for return type and local "jump".
23702         (sel_split_edge): Likewise for local "jump".
23703         (sel_create_recovery_block): Likewise.
23704         (sel_redirect_edge_and_branch_force): Likewise.
23705         (sel_redirect_edge_and_branch): Likewise.
23707 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23709         * sel-sched.c (substitute_reg_in_expr): Strengthen local
23710         "new_insn" from rtx to rtx_insn *.
23711         (create_insn_rtx_with_rhs): Likewise for return type and for local
23712         "insn_rtx".
23713         (create_insn_rtx_with_lhs): Likewise.
23714         (create_speculation_check): Likewise for local "insn_rtx".
23715         (implicit_clobber_conflict_p): Likewise for local "insn".
23716         (get_expr_cost): Likewise.
23717         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
23718         (move_cond_jump): Likewise for locals "next", "prev", "link",
23719         "head", "from", "to".
23721 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23723         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
23724         "next" from rtx to rtx_insn *.
23725         (find_conditional_protection): Likewise for local "next".
23726         (is_conditionally_protected): Likewise for local "insn1".
23727         (is_pfree): Likewise for locals "insn1", "insn2".
23729 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23731         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
23732         from rtx to rtx_insn *.
23734         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
23735         locals "insn1", "insn2" from rtx to rtx_insn *.
23736         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
23737         locals "insn", "prev", "last_jump", "next_tail".
23738         (schedule_ebb): Likewise for params "head", "tail".
23739         (schedule_ebbs): Likewise for locals "tail", "head".
23741         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
23742         to rtx_insn on "last_insn" in one of the invocations of
23743         schedule_ebb.
23745 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23747         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
23748         "elem", "insn" from rtx to rtx_insn *.
23749         (change_spec_dep_to_hard): Likewise.
23750         (get_back_and_forw_lists): Likewise for local "con".
23751         (sd_add_dep): Likewise for locals "elem", "insn".
23752         (sd_resolve_dep): Likewise for locals "pro", "con".
23753         (sd_unresolve_dep): Likewise.
23754         (sd_delete_dep): Likewise.
23755         (chain_to_prev_insn): Likewise for local "pro".
23756         (find_inc): Likewise for locals "pro", "con".
23758 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23760         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
23761         to rtx_insn *.
23762         (reg_set_between_p): Strengthen local "insn" from const_rtx to
23763         const rtx_insn *.
23764         (modified_between_p): Strengthen local "insn" from rtx to
23765         rtx_insn *.
23766         (remove_reg_equal_equiv_notes_for_regno): Likewise.
23767         (keep_with_call_p): Strengthen local "i2" from const_rtx to
23768         const rtx_insn *.
23770 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23772         * resource.c (next_insn_no_annul): Strengthen local "next" from
23773         rtx to rtx_insn *.
23774         (mark_referenced_resources): Likewise for local "insn".
23776 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23778         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
23779         to rtx_insn *.
23780         (find_reloads): Likewise for param 1.
23781         (subst_reloads): Likewise for sole param.
23782         (find_equiv_reg): Likwise for param 2.
23783         (regno_clobbered_p): Likwise for param 2.
23784         (reload): Likewise for param 1.
23786         * caller-save.c (save_call_clobbered_regs): Strengthen local
23787         "insn" from rtx to rtx_insn *.
23788         (insert_one_insn): Likewise for local "insn".
23790         * reload.c (this_insn): Likewise for this global.
23791         (find_reloads): Likewise for param "insn".
23792         (find_reloads_toplev): Likewise.
23793         (find_reloads_address): Likewise.
23794         (subst_reg_equivs): Likewise.
23795         (update_auto_inc_notes): Likewise.
23796         (find_reloads_address_1): Likewise.
23797         (find_reloads_subreg_address): Likewise.
23798         (subst_reloads): Likewise.
23799         (find_equiv_reg): Likewise, also for local "p".
23800         (regno_clobbered_p): Likewise for param "insn".
23802         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
23803         array.
23804         (spill_reg_store): Likewise for the elements of this array.
23805         (remove_init_insns): Likewise for local "equiv_insn".
23806         (will_delete_init_insn_p): Likewise for param "insn".
23807         (reload): Likewise for param ""first" and local "insn".
23808         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
23809         rtx_insn *.
23810         (calculate_elim_costs_all_insns): Likewise.
23811         (delete_caller_save_insns): Likewise.
23812         (spill_failure): Likewise for param "insn".
23813         (delete_dead_insn): Likewise.
23814         (set_label_offsets): Likewise.
23815         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
23816         "prev_insn".
23817         (elimination_costs_in_insn): Likewise for param "insn".
23818         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
23819         when referring to an insn.
23820         (set_initial_label_offsets): Likewise.
23821         (set_offsets_for_label): Strengthen param "insn" from rtx to
23822         rtx_insn *.
23823         (init_eliminable_invariants): Likewise for param "first" and local
23824         "insn".
23825         (fixup_eh_region_note): Likewise for param "insn".
23826         (reload_as_needed): Likewise for locals "prev", "insn",
23827         "old_next", "old_prev", "next".
23828         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
23829         "last".
23830         (reload_inheritance_insn): Strengthen elements of this array from
23831         rtx to rtx_insn *.
23832         (failed_reload): Likewise for param "insn".
23833         (choose_reload_regs): Likewise for local "insn".  Replace use of
23834         NULL_RTX with NULL when referring to an insn.
23835         (input_reload_insns): Strengthen elements of this array from rtx
23836         to rtx_insn *.
23837         (other_input_address_reload_insns): Likewise for this global.
23838         (other_input_reload_insns): Likewise for this global.
23839         (input_address_reload_insns): Likwise for the elements of this
23840         array.
23841         (inpaddr_address_reload_insns): Likwise for the elements of this
23842         array.
23843         (output_reload_insns): Likewise for the elements of this array.
23844         (output_address_reload_insns): Likewise for the elements of this
23845         array.
23846         (outaddr_address_reload_insns): Likewise for the elements of this
23847         array.
23848         (operand_reload_insns): Likewise for this global.
23849         (other_operand_reload_insns): Likewise for this global.
23850         (other_output_reload_insns): Likewise for the elements of this
23851         array.
23852         (new_spill_reg_store): Likewise for the elements of this
23853         array.
23854         (emit_input_reload_insns): Likewise for locals "insn", "temp".
23855         Strengthen local "where" from rtx * to rtx_insn **.
23856         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
23857         from rtx to rtx_insn *.
23858         (do_input_reload): Likewise for local "insn".
23859         (do_output_reload): Likewise for local "insn".
23860         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
23861         (emit_insn_if_valid_for_reload): Likewise for return type and local
23862         "last".  Add checked cast to rtx_insn when returning "insn" since
23863         this has been through emit_insn.
23864         (gen_reload): Strengthen return type and locals "last", "insn", "set"
23865         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
23866         returning "insn" since it's been through
23867         emit_insn_if_valid_for_reload at this point.
23868         (delete_output_reload): Strengthen param "insn" and locals
23869         "output_reload_insn", "i2" from rtx to rtx_insn *.
23870         (delete_address_reloads): Likewise for params "dead_insn",
23871         "current_insn" and locals "prev", "next".
23872         (delete_address_reloads_1): Likewise for params "dead_insn",
23873         "current_insn" and locals "prev", "i2".
23874         (inc_for_reload): Likewise for locals "last", "add_insn".
23875         (add_auto_inc_notes): Strengthen param "insn" from rtx to
23876         rtx_insn *.
23878         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
23879         param of this duplicate of the prototype from reload.h
23881 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23883         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
23884         rtx to rtx_insn *.
23885         (regstat_bb_compute_calls_crossed): Likewise.
23887 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23889         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
23890         to rtx_insn *.
23891         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
23892         with an insn.
23893         (regrename_analyze): Strengthen local "insn" from rtx to
23894         rtx_insn *.
23895         (scan_rtx_reg): Likewise for param "insn".
23896         (scan_rtx_address): Likewise.
23897         (scan_rtx): Likewise.
23898         (restore_operands): Likewise.
23899         (record_out_operands): Likewise.
23900         (build_def_use): Likewise for local "insn".  Replace use of
23901         NULL_RTX with NULL when dealing with an insn.
23903 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23905         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
23906         * reginfo.c (reg_scan): Likewise, also for local "insn".
23907         (reg_scan_mark_refs): Likewise for param "insn".
23908         (init_subregs_of_mode): Likewise for local "insn".
23910 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23912         * regcprop.c (struct queued_debug_insn_change): Strengthen field
23913         "insn" from rtx to rtx_insn *.
23914         (replace_oldest_value_reg): Likewise for param "insn".
23915         (replace_oldest_value_addr): Likewise.
23916         (replace_oldest_value_mem): Likewise.
23917         (apply_debug_insn_changes): Likewise for local "last_insn".
23918         (copyprop_hardreg_forward_1): Likewise for local "insn".
23920 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23922         * reg-stack.c (next_flags_user): Strengthen return type and param
23923         "insn" from rtx to rtx_insn *.
23924         (straighten_stack): Likewise for param "insn".
23925         (check_asm_stack_operands): Likewise.
23926         (remove_regno_note): Likewise.
23927         (emit_pop_insn): Likewise for return type, param "insn", local
23928         "pop_insn".
23929         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
23930         "limit" from rtx to rtx_insn *.
23931         (swap_to_top): Likewise for param "insn".
23932         (move_for_stack_reg): Likewise.
23933         (move_nan_for_stack_reg): Likewise.
23934         (swap_rtx_condition): Likewise.
23935         (compare_for_stack_reg): Likewise.
23936         (subst_all_stack_regs_in_debug_insn): Likewise.
23937         (subst_stack_regs_pat): Likewise, and local "insn2".
23938         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
23939         rtx_insn *.
23940         (subst_stack_regs): Likewise.
23941         (change_stack): Likewise.
23942         (convert_regs_1): Likewise for locals "insn", "next".
23944 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23946         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
23947         rtx_insn *.
23948         (combine_set_extension): Likewise for param "curr_insn".
23949         (transform_ifelse): Likewise for param "def_insn".
23950         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
23951         from vec<rtx> * to vec<rtx_insn *> *.
23952         (is_cond_copy_insn): Likewise for param "insn".
23953         (struct ext_state): Strengthen the four vec fields from vec<rtx>
23954         to vec<rtx_insn *>.
23955         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
23956         local "def_insn" from rtx to rtx_insn *.
23957         (get_sub_rtx): Likewise for param "def_insn".
23958         (merge_def_and_ext): Likewise.
23959         (combine_reaching_defs): Likewise.
23960         (add_removable_extension): Likewise for param "insn".
23961         (find_removable_extensions): Likewise for local "insn".
23962         (find_and_remove_re): Likewise for locals "curr_insn" and
23963         "def_insn".  Strengthen locals "reinsn_del_list" and
23964         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
23966 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23968         * recog.c (split_insn): Strengthen param "insn" and locals
23969         "first", "last" from rtx to rtx_insn *.
23970         (split_all_insns): Likewise for locals "insn", "next".
23971         (split_all_insns_noflow): Likewise.
23973 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23975         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
23976         const rtx_insn *.
23977         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
23978         (debug_rtx_find): Likewise for param 1 "x".
23980         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
23981         const_rtx to const rtx_insn *.  Likewise for local "insn".
23982         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
23983         (debug_rtx_find): Likewise for param 1 "x".
23984         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
23985         from const_rtx to const rtx_insn * within the appropriate cases of
23986         the switch statement.
23988         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
23989         Strengthen local "insns" from rtx to rtx_insn * since this is
23990         passed to a call to debug_rtx_list.
23992 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
23994         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
23995         to rtx_insn *.
23997         * function.c (stack_protect_epilogue): Add checked cast to
23998         rtx_insn for now when invoking predict_insn_def.
24000         * predict.c (predict_insn): Strengthen param "insn" from rtx to
24001         rtx_insn *.
24002         (predict_insn_def): Likewise.
24003         (rtl_predict_edge): Likewise for local "last_insn".
24004         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
24005         const rtx_insn *.
24006         (combine_predictions_for_insn): Strengthen param "insn" from rtx
24007         to rtx_insn *.
24008         (bb_estimate_probability_locally): Likewise for local "last_insn".
24009         (expensive_function_p): Likewise for local "insn".
24011         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
24012         local "jmp", since this is used when invoking predict_insn_def.
24014 2014-08-22  Marek Polacek  <polacek@redhat.com>
24016         PR c++/62199
24017         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
24019 2014-08-22  Marek Polacek  <polacek@redhat.com>
24021         PR c/61271
24022         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
24023         a comparison in parens.
24024         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
24025         in parens.
24027 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24029         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
24030         rtx_insn *.
24032         * cprop.c (fis_get_condition): Likewise.
24034         * postreload.c (reload_cse_regs): Likewise for param "first".
24035         (reload_cse_simplify): Likewise for param "insn".
24036         (reload_cse_regs_1): Likewise for local "insn".
24037         (reload_cse_simplify_set): Likewise for param "insn".
24038         (reload_cse_simplify_operands): Likewise.
24039         (struct reg_use): Likewise for field "insn".
24040         (reload_combine_purge_insn_uses): Likewise for param "insn".
24041         (fixup_debug_insns): Likewise for params "from", "to" and local
24042         "insn".
24043         (try_replace_in_use): Likewise for local "use_insn".
24044         (reload_combine_recognize_const_pattern): Likewise for param
24045         "insn" and locals "add_moved_after_insn", "use_insn".
24046         (reload_combine_recognize_pattern): Likewise for param "insn" and
24047         local "prev".
24048         (reload_combine): Likewise for locals "insn", "prev".
24049         (reload_combine_note_use): Likewise for param "insn".
24050         (move2add_use_add2_insn): Likewise.
24051         (move2add_use_add3_insn): Likewise.
24052         (reload_cse_move2add): Likewise, also for local "next".
24053         (move2add_note_store): Likewise for local "insn".
24055 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24057         * postreload-gcse.c (struct occr): Strengthen field "insn" from
24058         rtx to rtx_insn *.
24059         (struct unoccr): Likewise.
24060         (struct modifies_mem): Likewise.
24061         (alloc_mem): Likewise for local "insn".
24062         (insert_expr_in_table): Likewise for param "insn".
24063         (dump_expr_hash_table_entry): Likewise for local "insn".
24064         (oprs_unchanged_p): Likewise for param "insn".
24065         (load_killed_in_block_p): Likewise for local "setter".
24066         (record_last_reg_set_info): Likewise for param "insn".
24067         (record_last_reg_set_info_regno): Likewise.
24068         (record_last_mem_set_info): Likewise.
24069         (record_last_set_info): Likewise for local "last_set_insn".
24070         (record_opr_changes): Likewise for param "insn".
24071         (hash_scan_set): Likewise.
24072         (compute_hash_table): Likewise for local "insn".
24073         (get_avail_load_store_reg): Likewise for param "insn".
24074         (eliminate_partially_redundant_load): Likewise, also for locals
24075         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
24076         RTX for insns.
24077         (eliminate_partially_redundant_loads): Likewise for local "insn".
24079 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24081         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
24082         rtx to rtx_insn *.
24083         (expand_binop): Likewise for locals "entry_last", "last", "insns"
24084         (expand_twoval_unop): Likewise for locals entry_last", "last".
24085         (expand_twoval_binop): Likewise.
24086         (expand_twoval_binop_libfunc): Likewise for local "insns".
24087         (widen_leading): Likewise for local "last".
24088         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
24089         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
24090         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
24091         (expand_parity): Likewise for locals "last" and "seq".
24092         (expand_ffs): Likewise for local "seq".  Strengthen local
24093         "nonzero_label" from rtx to rtx_code_label *.
24094         (expand_absneg_bit): Strengthen local "insns" from rtx to
24095         rtx_insn *.
24096         (expand_unop_direct): Likewise for local "last".
24097         (expand_unop): Likewise for locals "last", "insns".
24098         (expand_abs_nojump): Likewise for local "last".
24099         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
24100         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
24101         rtx_insn *.
24102         (expand_copysign_absneg): Strengthen local "label" from rtx to
24103         rtx_code_label *.
24104         (expand_copysign_bit): Strengthen local "insns" from rtx to
24105         rtx_insn *.
24106         (struct no_conflict_data): Likewise for fields "first", "insn".
24107         (emit_libcall_block_1): Likewise for param "insns" and locals
24108         "next", "last", "insn".
24109         (emit_libcall_block): For now, add a checked cast to rtx_insn *
24110         on "insns" when invoking emit_libcall_block_1.  Ultimately we
24111         want to strengthen insns itself.
24112         (prepare_cmp_insn): Strengthen local "last" from rtx to
24113         rtx_insn *.
24114         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
24115         (prepare_float_lib_cmp): Likewise for local "insns".
24116         (emit_conditional_move): Likewise for local "last".
24117         (emit_conditional_add): Likewise.
24118         (have_sub2_insn): Likewise for local "seq".
24119         (expand_float): Likewise for local "insns".  Strengthen locals
24120         "label", "neglabel" from rtx to rtx_code_label *.
24121         (expand_fix): Likewise for locals "last", "insn", "insns" (to
24122         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
24123         (expand_fixed_convert): Likewise for local "insns" (to
24124         rtx_insn *).
24125         (expand_sfix_optab): Likewise for local "last".
24126         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
24127         to rtx_code_label *.
24128         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
24129         from rtx to rtx_insn *.
24130         (expand_atomic_fetch_op): Likewise for local "insn".
24131         (maybe_legitimize_operand_same_code): Likewise for local "last".
24132         (maybe_legitimize_operands): Likewise.
24134 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24136         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
24137         "insn" from rtx to rtx_insn *.
24138         (ps_rtl_insn): Likewise for return type.
24139         (doloop_register_get): Likewise for params "head", "tail" and
24140         locals "insn", "first_insn_not_to_check".
24141         (schedule_reg_move): Likewise for local "this_insn".
24142         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
24143         of gen_move_insn for now.
24144         (reset_sched_times): Strengthen local "insn" from rtx to
24145         rtx_insn *.
24146         (permute_partial_schedule): Likewise.
24147         (duplicate_insns_of_cycles): Likewise for local "u_insn".
24148         (dump_insn_location): Likewise for param "insn".
24149         (loop_canon_p): Likewise for local "insn".
24150         (sms_schedule): Likewise.
24151         (print_partial_schedule): Likewise.
24152         (ps_has_conflicts): Likewise.
24154 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24156         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
24157         "tailp" from rtx * to rtx_insn **.
24159         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
24160         from rtx to rtx_insn *.
24161         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
24162         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
24163         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
24164         rtx to rtx_insn *.
24165         * modulo-sched.c (const_iteration_count): Strengthen return type
24166         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
24167         use of NULL_RTX with NULL when working with insns.
24168         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
24169         to rtx_insn *.
24170         (sms_schedule): Likewise.
24171         * sched-rgn.c (init_ready_list): Likewise, also for locals
24172         "src_head" and "src_next_tail".
24173         (compute_block_dependences): Likewise.
24174         (free_block_dependencies): Likewise.
24175         (debug_rgn_dependencies): Likewise.
24176         (free_rgn_deps): Likewise.
24177         (compute_priorities): Likewise.
24178         (schedule_region): Likewise.
24179         * sel-sched.c (find_ebb_boundaries): Likewise.
24181         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
24182         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
24184 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24186         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
24187         from rtx to rtx_insn *.
24188         (new_seginfo): Likewise for param "insn".
24189         (create_pre_exit): Likewise for locals "last_insn",
24190         "before_return_copy", "return_copy".
24191         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
24192         "mode_set".
24194 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24196         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
24197         from rtx to rtx_insn *.
24198         (lra_push_insn): Likewise for 1st param.
24199         (lra_push_insn_and_update_insn_regno_info): Likewise.
24200         (lra_pop_insn): Likewise for return type.
24201         (lra_invalidate_insn_data): Likewise for 1st param.
24202         (lra_set_insn_deleted): Likewise.
24203         (lra_delete_dead_insn): Likewise.
24204         (lra_process_new_insns): Likewise for first 3 params.
24205         (lra_set_insn_recog_data): Likewise for 1st param.
24206         (lra_update_insn_recog_data): Likewise.
24207         (lra_set_used_insn_alternative): Likewise.
24208         (lra_invalidate_insn_regno_info): Likewise.
24209         (lra_update_insn_regno_info): Likewise.
24210         (lra_former_scratch_operand_p): Likewise.
24211         (lra_eliminate_regs_1): Likewise.
24212         (lra_get_insn_recog_data): Likewise.
24214         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
24215         rtx to rtx_insn *.
24217         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
24218         "mv1" and "mv2".
24219         (substitute_within_insn): New.
24220         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
24221         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
24222         Replace call to "substitute" with call to substitute_within_insn.
24224         * lra-constraints.c (curr_insn): Strengthen from rtx to
24225         rtx_insn *.
24226         (get_equiv_with_elimination): Likewise for param "insn".
24227         (match_reload): Strengthen params "before" and "after" from rtx *
24228         to rtx_insn **.
24229         (emit_spill_move): Likewise for return type.  Add a checked cast
24230         to rtx_insn * on result of gen_move_insn for now.
24231         (check_and_process_move): Likewise for local "before".  Replace
24232         NULL_RTX with NULL when referring to insns.
24233         (process_addr_reg): Strengthen params "before" and "after" from
24234         rtx * to rtx_insn **.
24235         (insert_move_for_subreg): Likewise.
24236         (simplify_operand_subreg): Strengthen locals "before" and "after"
24237         from rtx to rtx_insn *.
24238         (process_address_1): Strengthen params "before" and "after" from
24239         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
24240         rtx to rtx_insn *.
24241         (process_address): Strengthen params "before" and "after" from
24242         rtx * to rtx_insn **.
24243         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
24244         (curr_insn_transform): Strengthen locals "before" and "after"
24245         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
24246         to insns.
24247         (loc_equivalence_callback): Update cast of "data", changing
24248         resulting type from rtx to rtx_insn *.
24249         (substitute_pseudo_within_insn): New.
24250         (inherit_reload_reg): Strengthen param "insn" from rtx to
24251         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
24252         NULL when referring to insns.  Add a checked cast to rtx_insn *
24253         when using usage_insn to invoke lra_update_insn_regno_info.
24254         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
24255         likewise for locals "restore", "save".  Add checked casts to
24256         rtx_insn * when using usage_insn to invoke
24257         lra_update_insn_regno_info and lra_process_new_insns.  Replace
24258         NULL_RTX with NULL when referring to insns.
24259         (split_if_necessary): Strengthen param "insn" from rtx to
24260         rtx_insn *.
24261         (update_ebb_live_info): Likewise for params "head", "tail" and local
24262         "prev_insn".
24263         (get_last_insertion_point): Likewise for return type and local "insn".
24264         (get_live_on_other_edges): Likewise for local "last".
24265         (inherit_in_ebb): Likewise for params "head", "tail" and locals
24266         "prev_insn", "next_insn", "restore".
24267         (remove_inheritance_pseudos): Likewise for local "prev_insn".
24268         (undo_optional_reloads): Likewise for local "insn".
24270         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
24271         "insn".
24272         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
24273         insns.
24274         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
24275         rtx_insn *.
24276         (spill_pseudos): Likewise for local "insn".
24277         (init_elimination): Likewise.
24278         (process_insn_for_elimination): Likewise for param "insn".
24280         * lra-lives.c (curr_insn): Likewise.;
24282         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
24283         (remove_pseudos): Likewise for param "insn".
24284         (spill_pseudos): Likewise for local "insn".
24285         (lra_final_code_change): Likewise for locals "insn", "curr".
24287         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
24288         (lra_set_insn_deleted): Likewise.
24289         (lra_delete_dead_insn): Likewise, and for local "prev".
24290         (new_insn_reg): Likewise for param "insn".
24291         (lra_set_insn_recog_data): Likewise.
24292         (lra_update_insn_recog_data): Likewise.
24293         (lra_set_used_insn_alternative): Likewise.
24294         (get_insn_freq): Likewise.
24295         (invalidate_insn_data_regno_info): Likewise.
24296         (lra_invalidate_insn_regno_info): Likewise.
24297         (lra_update_insn_regno_info): Likewise.
24298         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
24299         vec<rtx_insn *>.
24300         (lra_push_insn_1): Strengthen param "insn" from rtx to
24301         rtx_insn *.
24302         (lra_push_insn): Likewise.
24303         (lra_push_insn_and_update_insn_regno_info): Likewise.
24304         (lra_pop_insn): Likewise for return type and local "insn".
24305         (push_insns): Likewise for params "from", "to", and local "insn".
24306         (setup_sp_offset): Likewise for params "from", "last" and locals
24307         "before", "insn".
24308         (lra_process_new_insns): Likewise for params "insn", "before",
24309         "after" and local "last".
24310         (struct sloc): Likewise for field "insn".
24311         (lra_former_scratch_operand_p): Likewise for param "insn".
24312         (remove_scratches): Likewise for locals "insn", "last".
24313         (check_rtl): Likewise for local "insn".
24314         (add_auto_inc_notes): Likewise for param "insn".
24315         (update_inc_notes): Likewise for local "insn".
24316         (lra): Replace NULL_RTX with NULL when referring to insn.
24318 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24320         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
24321         to rtx_insn *.
24322         (resolve_reg_notes): Likewise.
24323         (resolve_simple_move): Likewise for return type, param "insn", and
24324         locals "insns", "minsn".
24325         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
24326         (resolve_use): Likewise.
24327         (resolve_debug): Likewise.
24328         (find_decomposable_shift_zext): Likewise.
24329         (resolve_shift_zext): Likewise for return type, param "insn", and
24330         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
24331         (decompose_multiword_subregs): Likewise for local "insn",
24332         "orig_insn", "decomposed_shift", "end".
24334 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24336         * basic-block.h (basic_block split_edge_and_insert): Strengthen
24337         param "insns" from rtx to rtx_insn *.
24339         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
24340         rtx to rtx_insn *.
24341         (struct iv_to_split): Likewise.
24342         (loop_exit_at_end_p): Likewise for local "insn".
24343         (split_edge_and_insert): Likewise for param "insns".
24344         (compare_and_jump_seq): Likewise for return type, param "cinsn",
24345         and locals "seq", "jump".
24346         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
24347         "branch_code"; update invocations of compare_and_jump_seq to
24348         eliminate NULL_RTX in favor of NULL.
24349         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
24350         rtx to rtx_insn *.
24351         (reset_debug_uses_in_loop): Likewise.
24352         (analyze_insn_to_expand_var): Likewise for param "insn".
24353         (analyze_iv_to_split_insn): Likewise.
24354         (analyze_insns_in_loop): Likewise for local "insn".
24355         (insert_base_initialization): Likewise for param
24356         "insn" and local "seq".
24357         (split_iv): Likewise for param "insn" and local "seq".
24358         (expand_var_during_unrolling): Likewise for param "insn".
24359         (insert_var_expansion_initialization): Likewise for local "seq".
24360         (combine_var_copies_in_loop_exit): Likewise.
24361         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
24362         "insn".
24363         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
24364         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
24365         "next".
24367 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24369         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
24370         rtx_insn *.
24371         (iv_analyze_result): Likewise.
24372         (iv_analyze_expr): Likewise.
24373         (biv_p): Likewise.
24375         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
24376         local "def_insn" from rtx to rtx_insn *.
24377         (get_biv_step_1): Likewise for local "insn".
24378         (iv_analyze_expr): Likewise for param "insn".
24379         (iv_analyze_def): Likewise for local "insn".
24380         (iv_analyze_op): Likewise for param "insn".
24381         (iv_analyze): Likewise.
24382         (iv_analyze_result): Likewise.
24383         (biv_p): Likewise.
24384         (suitable_set_for_replacement): Likewise.
24385         (simplify_using_initial_values): Likewise for local "insn".
24386         (iv_number_of_iterations): Likewise for param "insn".
24387         (check_simple_exit): Add checked cast to rtx_insn when invoking
24388         iv_number_of_iterations for now (until get_condition is
24389         strengthened).
24391         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
24392         "insn" from rtx to rtx_insn *.
24393         (analyze_insns_in_loop): Likewise for local "insn".
24395 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24397         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
24398         to rtx_insn *.
24399         (struct invariant): Likewise.
24400         (hash_invariant_expr_1): Likewise for param "insn".
24401         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
24402         (find_exits): Likewise for local "insn".
24403         (create_new_invariant): Likewise for param "insn".
24404         (check_dependencies): Likewise.
24405         (find_invariant_insn): Likewise.
24406         (record_uses): Likewise.
24407         (find_invariants_insn): Likewise.
24408         (find_invariants_bb): Likewise for local "insn".
24409         (get_pressure_class_and_nregs): Likewise for param "insn".
24410         (calculate_loop_reg_pressure): Likewise for local "insn".
24412 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24414         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
24415         to rtx_insn *.
24416         (add_test): Likewise for locals "seq", "jump".
24417         (doloop_modify): Likewise for locals "sequence", "jump_insn".
24419 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24421         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
24422         rtx_insn *.
24423         (rebuild_jump_labels_chain): Likewise for param "chain".
24425         * cfgexpand.c (pass_expand::execute): Add checked cast to
24426         rtx_insn * when calling rebuild_jump_labels_chain in region where
24427         we know e->insns.r is non-NULL.
24429         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
24430         rtx_insn *.
24431         (rebuild_jump_labels): Likewise.
24432         (rebuild_jump_labels_chain): Likewise for param "chain".
24433         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
24434         (init_label_info): Likewise for param "f".
24435         (maybe_propagate_label_ref): Likewise for params "jump_insn",
24436         "prev_nonjump_insn".
24437         (mark_all_labels): Likewise for param "f" and locals "insn",
24438         "prev_nonjump_insn".
24440 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24442         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
24443         from rtx to rtx_insn *insn.
24444         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
24445         (ira_add_allocno_copy): Likewise.
24446         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
24447         rtx to rtx_insn *.
24448         (ira_create_copy): Likewise.
24449         (ira_add_allocno_copy): Likewise.
24450         (create_bb_allocnos): Likewise for local "insn".
24451         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
24452         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
24453         process_regs_for_copy for rtx_insn * param.
24454         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
24455         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
24456         process_regs_for_copy for rtx_insn * param.
24457         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
24458         * ira-costs.c (record_reg_classes): Likewise for param "insn".
24459         (record_operand_costs): Likewise.
24460         (scan_one_insn): Likewise for return type, and for param "insn".
24461         (process_bb_for_costs): Likewise for local "insn".
24462         (process_bb_node_for_hard_reg_moves): Likewise.
24463         * ira-emit.c (struct move): Likewise for field "insn".
24464         (create_move): Eliminate use of NULL_RTX when dealing with an
24465         rtx_insn *.
24466         (emit_move_list): Strengthen return type and locals "result",
24467         "insn" from rtx to rtx_insn *insn.
24468         (emit_moves): Likewise for locals "insns", "tmp".
24469         (ira_emit): Likewise for local "insn".
24470         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
24471         "insn".
24472         (find_call_crossed_cheap_reg): Likewise.
24473         (process_bb_node_lives): Likewise for local "insn".
24474         * ira.c (decrease_live_ranges_number): Likewise.
24475         (compute_regs_asm_clobbered): Likewise.
24476         (build_insn_chain): Likewise.
24477         (find_moveable_pseudos): Likewise, also locals "def_insn",
24478         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
24479         to rtx_insn **.  Add a checked cast when assigning from
24480         "closest_use" into closest_uses array in a region where we know
24481         it's a non-NULL insn.
24482         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
24483         to rtx_insn *.
24484         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
24485         "last_interesting_insn", "uin".
24486         (move_unallocated_pseudos): Likewise for locals "def_insn",
24487         "move_insn", "newinsn".
24489 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24491         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
24492         Strengthen locals "done_label", "do_error" from rtx to
24493         rtx_code_label *.
24494         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
24495         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
24496         rtx_code_label *.
24497         (ubsan_expand_si_overflow_neg_check): Likewise for locals
24498         "done_label", "do_error" to rtx_code_label * and local  "last" to
24499         rtx_insn *.
24500         (ubsan_expand_si_overflow_mul_check): Likewise for locals
24501         "done_label", "do_error", "large_op0", "small_op0_large_op1",
24502         "one_small_one_large", "both_ops_large", "after_hipart_neg",
24503         "after_lopart_neg", "do_overflow", "hipart_different"  to
24504         rtx_code_label * and local  "last" to rtx_insn *.
24506 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24508         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
24509         "insn" and "move_insn" from rtx to rtx_insn *.
24511 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24513         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
24514         rtx_insn *.
24515         (cheap_bb_rtx_cost_p): Likewise.
24516         (first_active_insn): Likewise for return type and local "insn".
24517         (last_active_insn):  Likewise for return type and locals "insn",
24518         "head".
24519         (struct noce_if_info): Likewise for fields "jump", "insn_a",
24520         "insn_b".
24521         (end_ifcvt_sequence): Likewise for return type and locals "insn",
24522         "seq".
24523         (noce_try_move): Likewise for local "seq".
24524         (noce_try_store_flag): Likewise.
24525         (noce_try_store_flag_constants): Likewise.
24526         (noce_try_addcc): Likewise.
24527         (noce_try_store_flag_mask): Likewise.
24528         (noce_try_cmove): Likewise.
24529         (noce_try_minmax): Likewise.
24530         (noce_try_abs): Likewise.
24531         (noce_try_sign_mask): Likewise.
24532         (noce_try_bitop): Likewise.
24533         (noce_can_store_speculate_p): Likewise for local "insn".
24534         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
24535         seq".
24536         (check_cond_move_block): Likewise for local "insn".
24537         (cond_move_convert_if_block): Likewise.
24538         (cond_move_process_if_block): Likewise for locals "seq",
24539         "loc_insn".
24540         (noce_find_if_block): Likewise for local "jump".
24541         (merge_if_block): Likewise for local "last".
24542         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
24543         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
24544         (block_has_only_trap): Likewise for return type and local "trap".
24545         (find_if_case_1): Likewise for local "jump".
24546         (dead_or_predicable): Likewise for locals "head", "end", "jump",
24547         "insn".
24549 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24551         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
24552         "last_insn", "loop_end" from rtx to rtx_insn *.
24554         * hw-doloop.c (scan_loop): Likewise for local "insn".
24555         (discover_loop): Likewise for param "tail_insn".
24556         (discover_loops): Likewise for local "tail".
24558         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
24559         cast to rtx_insn * when assigning from an rtx local to a
24560         hwloop_info's "last_insn" field.
24562 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24564         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
24565         (add_delay_dependencies): Strengthen local "pro" from rtx to
24566         rtx_insn *.
24567         (recompute_todo_spec): Likewise.
24568         (dep_cost_1): Likewise for locals "insn", "used".
24569         (schedule_insn): Likewise for local "dbg".
24570         (schedule_insn): Likewise for locals "pro", "next".
24571         (unschedule_insns_until): Likewise for local "con".
24572         (restore_pattern): Likewise for local "next".
24573         (estimate_insn_tick): Likewise for local "pro".
24574         (resolve_dependencies): Likewise for local "next".
24575         (fix_inter_tick): Likewise.
24576         (fix_tick_ready): Likewise for local "pro".
24577         (add_to_speculative_block): Likewise for locals "check", "twin",
24578         "pro".
24579         (sched_extend_bb): Likewise for locals "end", "insn".
24580         (init_before_recovery): Likewise for local "x".
24581         (sched_create_recovery_block): Likewise for local "barrier".
24582         (create_check_block_twin): Likewise for local "pro".
24583         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
24584         "consumer".
24585         (unlink_bb_notes): Update for change to type of bb_header.
24586         Strengthen locals "prev", "label", "note", "next" from rtx to
24587         rtx_insn *.
24588         (clear_priorities): Likewise for local "pro".
24590 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24592         * gcse.c (struct occr): Strengthen field "insn" from rtx to
24593         rtx_insn *.
24594         (test_insn): Likewise for this global.
24595         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
24596         const rtx_insn *.
24597         (oprs_anticipatable_p): Likewise.
24598         (oprs_available_p): Likewise.
24599         (insert_expr_in_table): Strengthen param "insn" from  rtx to
24600         rtx_insn *.
24601         (hash_scan_set): Likewise.
24602         (hash_scan_clobber): Likewise.
24603         (hash_scan_call): Likewise.
24604         (hash_scan_insn): Likewise.
24605         (compute_hash_table_work): Likewise for local "insn".
24606         (process_insert_insn): Likewise for return type and local "pat".
24607         (insert_insn_end_basic_block): Likewise for locals "new_insn",
24608         "pat", "pat_end", "maybe_cc0_setter".
24609         (pre_edge_insert): Likewise for local "insn".
24610         (pre_insert_copy_insn): Likewise for param "insn".
24611         (pre_insert_copies): Likewise for local "insn".
24612         (struct set_data): Likewise for field "insn".
24613         (single_set_gcse): Likewise for param "insn".
24614         (gcse_emit_move_after): Likewise.
24615         (pre_delete): Likewise for local "insn".
24616         (update_bb_reg_pressure): Likewise for param "from" and local
24617         "insn".
24618         (should_hoist_expr_to_dom): Likewise for param "from".
24619         (hoist_code): Likewise for local "insn".
24620         (get_pressure_class_and_nregs): Likewise for param "insn".
24621         (calculate_bb_reg_pressure): Likewise for local "insn".
24622         (compute_ld_motion_mems): Likewise.
24624 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24626         * genpeep.c (main): Rename param back from "uncast_ins1" to
24627         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
24628         checked cast.
24630         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
24632 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
24634         PR target/62195
24635         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
24636         documentation to state it is only for VSX operations.
24638         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
24639         constraint only active if VSX.
24641         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
24642         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
24643         (lfiwzx): Likewise.
24645 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24647         * fwprop.c (single_def_use_dom_walker::before_dom_children):
24648         Strengthen local "insn" from rtx to rtx_insn *.
24649         (use_killed_between): Likewise for param "target_insn".
24650         (all_uses_available_at): Likewise for param "target_insn" and
24651         local "next".
24652         (update_df_init): Likewise for params "def_insn", "insn".
24653         (update_df): Likewise for param "insn".
24654         (try_fwprop_subst): Likewise for param "def_insn" and local
24655         "insn".
24656         (free_load_extend): Likewise for param "insn".
24657         (forward_propagate_subreg): Likewise for param "def_insn" and
24658         local "use_insn".
24659         (forward_propagate_asm): Likewise for param "def_insn" and local
24660         "use_insn".
24661         (forward_propagate_and_simplify): Likewise for param "def_insn"
24662         and local "use_insn".
24663         (forward_propagate_into): Likewise for locals "def_insn" and
24664         "use_insn".
24666 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24668         * function.c (emit_initial_value_sets): Strengthen local "seq"
24669         from rtx to rtx_insn *.
24670         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
24671         local "seq".
24672         (instantiate_virtual_regs): Likewise for local "insn".
24673         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
24674         (reorder_blocks_1): Likewise for param "insns" and local "insn".
24675         (expand_function_end): Likewise for locals "insn" and "seq".
24676         (epilogue_done): Likewise for local "insn".
24677         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
24678         "last", "trial".
24679         (reposition_prologue_and_epilogue_notes): Likewise for locals
24680         "insn", "last", "note", "first".
24681         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
24682         (pass_match_asm_constraints::execute): Likewise for local "insn".
24684 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24686         * output.h (final_scan_insn): Strengthen return type from rtx to
24687         rtx_insn *.
24688         (final_forward_branch_p): Likewise for param.
24689         (current_output_insn): Likewise for this global.
24691         * final.c (rtx debug_insn): Likewise for this variable.
24692         (current_output_insn): Likewise.
24693         (get_attr_length_1): Rename param "insn" to "uncast_insn",
24694         adding "insn" back in as an rtx_insn * with a checked cast, so
24695         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
24696         first param.
24697         (compute_alignments): Strengthen local "label" from rtx to
24698         rtx_insn *.
24699         (shorten_branches): Rename param from "first" to "uncast_first",
24700         introducing a new local rtx_insn * "first" using a checked cast to
24701         effectively strengthen "first" from rtx to rtx_insn * without
24702         affecting the type signature.  Strengthen locals "insn", "seq",
24703         "next", "label" from rtx to rtx_insn *.
24704         (change_scope): Strengthen param "orig_insn" and local "insn" from
24705         rtx to rtx_insn *.
24706         (final_start_function): Rename param from "first" to "uncast_first",
24707         introducing a new local rtx_insn * "first" using a checked cast to
24708         effectively strengthen "first" from rtx to rtx_insn * without
24709         affecting the type signature.  Strengthen local "insn" from rtx to
24710         rtx_insn *.
24711         (dump_basic_block_info): Strengthen param "insn" from rtx to
24712         rtx_insn *.
24713         (final): Rename param from "first" to "uncast_first",
24714         introducing a new local rtx_insn * "first" using a checked cast to
24715         effectively strengthen "first" from rtx to rtx_insn * without
24716         affecting the type signature.  Strengthen locals "insn", "next"
24717         from rtx to rtx_insn *.
24718         (output_alternate_entry_point): Strengthen param "insn" from rtx to
24719         rtx_insn *.
24720         (call_from_call_insn): Strengthen param "insn" from rtx to
24721         rtx_call_insn *.
24722         (final_scan_insn): Rename param from "insn" to "uncast_insn",
24723         introducing a new local rtx_insn * "insn" using a checked cast to
24724         effectively strengthen "insn" from rtx to rtx_insn * without
24725         affecting the type signature.  Strengthen return type and locals
24726         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
24727         now-redundant checked cast to rtx_insn * from both invocations of
24728         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
24729         introducing a local "call_insn" for use when invoking
24730         call_from_call_insn.
24731         (notice_source_line): Strengthen param "insn" from rtx to
24732         rtx_insn *.
24733         (leaf_function_p): Likewise for local "insn".
24734         (final_forward_branch_p): Likewise.
24735         (leaf_renumber_regs): Likewise for param "first".
24736         (rest_of_clean_state): Likewise for locals "insn" and "next".
24737         (self_recursive_call_p): Likewise for param "insn".
24738         (collect_fn_hard_reg_usage): Likewise for local "insn".
24739         (get_call_fndecl): Likewise for param "insn".
24740         (get_call_cgraph_rtl_info): Likewise.
24741         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
24742         introducing a new local rtx_insn * "insn" using a checked cast to
24743         effectively strengthen "insn" from rtx to rtx_insn * without
24744         affecting the type signature.
24746         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
24747         cast when assigning from param "insn" to current_output_insn.
24748         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
24749         so that we can assign it back to current_output_insn.
24751 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24753         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
24754         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
24755         atmxt540s and atmxt540sreva devices.
24756         * config/avr/avr-tables.opt: Regenerate.
24757         * config/avr/t-multilib: Regenerate.
24758         * doc/avr-mmcu.texi: Regenerate.
24760 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24762         * expr.c (convert_move): Strengthen local "insns" from rtx to
24763         rtx_insn *.
24764         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
24765         "top_label" from rtx to rtx_code_label *.
24766         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
24767         rtx_insn *.
24768         (emit_single_push_insn): Likewise for locals "prev", "last".
24769         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
24770         to rtx_code_label *.
24771         (store_constructor): Likewise for locals "loop_start", "loop_end".
24772         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
24773         rtx_insn *.
24774         (expand_expr_real_2): Likewise.
24775         (expand_expr_real_1): Strengthen local "label" from rtx to
24776         rtx_code_label *.
24778 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24780         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
24781         from rtx to rtx_insn *.
24782         (store_bit_field_1): Likewise.
24783         (extract_bit_field_1): Likewise.
24784         (expand_mult_const): Likewise for local "insns".
24785         (expmed_mult_highpart): Strengthen local "label" from rtx to
24786         rtx_code_label *.
24787         (expand_smod_pow2): Likewise.
24788         (expand_sdiv_pow2): Likewise.
24789         (expand_divmod): Strengthen locals "last", "insn" from rtx to
24790         rtx_insn *.  Strengthen locals "label", "label1", "label2",
24791         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
24792         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
24793         (emit_store_flag): Likewise.
24794         (emit_store_flag_force): Strengthen local "label" from rtx to
24795         rtx_code_label *.
24796         (do_cmp_and_jump): Likewise for param "label".
24798 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24800         * explow.c (force_reg): Strengthen local "insn" from rtx to
24801         rtx_insn *.
24802         (adjust_stack_1): Likewise.
24803         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
24804         "final_label", "available_label", "space_available" from rtx to
24805         rtx_code_label *.
24806         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
24807         (anti_adjust_stack_and_probe): Likewise.
24809 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24811         * except.h (sjlj_emit_function_exit_after): Strengthen param
24812         "after" from rtx to rtx_insn *.  This is only called with
24813         result of get_last_insn (in function.c) so type-change should be
24814         self-contained.
24816         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
24817         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
24818         to rtx_insn *.  These fields are only used from except.c so this
24819         type-change should be self-contained to this patch.
24821         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
24822         local "last" from rtx to rtx_insn *.
24823         (dw2_build_landing_pads): Likewise for local "seq".
24824         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
24825         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
24826         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
24827         rtx to rtx_insn *.
24828         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
24829         to rtx_insn *.
24830         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
24831         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
24832         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
24833         referring to an insn.  Strengthen local "dispatch_label" from
24834         rtx to rtx_code_label *.
24835         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
24836         rtx_insn *.
24837         (expand_eh_return): Strengthen local "around_label" from
24838         rtx to rtx_code_label *.
24839         (convert_to_eh_region_ranges): Strengthen locals "iter",
24840         "last_action_insn", "first_no_action_insn",
24841         "first_no_action_insn_before_switch",
24842         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
24844 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24846         * dwarf2out.c (last_var_location_insn): Strengthen this variable
24847         from rtx to rtx_insn *.
24848         (cached_next_real_insn): Likewise.
24849         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
24850         working with insns.
24851         (dwarf2out_var_location): Strengthen locals "next_real",
24852         "next_note", "expected_next_loc_note", "last_start", "insn" from
24853         rtx to rtx_insn *.
24855 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24857         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
24858         from rtx to rtx_insn *.
24859         (create_pseudo_cfg): Likewise for local "insn".
24861 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24863         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
24864         from rtx to rtx_insn *.
24865         (df_bb_regno_last_def_find): Likewise.
24867         * df-problems.c (df_rd_bb_local_compute): Likewise.
24868         (df_lr_bb_local_compute): Likewise.
24869         (df_live_bb_local_compute): Likewise.
24870         (df_chain_remove_problem): Likewise.
24871         (df_chain_create_bb): Likewise.
24872         (df_word_lr_bb_local_compute): Likewise.
24873         (df_remove_dead_eq_notes): Likewise for param "insn".
24874         (df_note_bb_compute): Likewise for local "insn".
24875         (simulate_backwards_to_point): Likewise.
24876         (df_md_bb_local_compute): Likewise.
24878         * df-scan.c (df_scan_free_bb_info): Likewise.
24879         (df_scan_start_dump): Likewise.
24880         (df_scan_start_block): Likewise.
24881         (df_install_ref_incremental): Likewise for local "insn".
24882         (df_insn_rescan_all): Likewise.
24883         (df_reorganize_refs_by_reg_by_insn): Likewise.
24884         (df_reorganize_refs_by_insn_bb): Likewise.
24885         (df_recompute_luids): Likewise.
24886         (df_bb_refs_record): Likewise.
24887         (df_update_entry_exit_and_calls): Likewise.
24888         (df_bb_verify): Likewise.
24890 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24892         * ddg.h (struct ddg_node): Strengthen fields "insn" and
24893         "first_note" from rtx to rtx_insn *.
24894         (get_node_of_insn): Likewise for param 2 "insn".
24895         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
24897         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
24898         rtx_insn *.
24899         (mem_write_insn_p): Likewise.
24900         (mem_access_insn_p): Likewise.
24901         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
24902         (def_has_ccmode_p): Likewise for param "insn".
24903         (add_cross_iteration_register_deps): Likewise for locals
24904         "def_insn" and "use_insn".
24905         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
24906         (build_intra_loop_deps): Likewise for local "src_insn".
24907         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
24908         to rtx_insn *.
24909         (get_node_of_insn): Likewise for param "insn".
24911 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24913         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
24914         (deletable_insn_p): Strengthen param "insn" from rtx to
24915         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
24916         find_call_stack_args, since this is guarded by CALL_P (insn).
24917         (marked_insn_p): Strengthen param "insn" from rtx to
24918         rtx_insn *.
24919         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
24920         invoking find_call_stack_args, since this is guarded by
24921         CALL_P (insn).
24922         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
24923         rtx_insn *; we know this is an insn since this was called by
24924         mark_nonreg_stores.
24925         (mark_nonreg_stores_2): Likewise.
24926         (mark_nonreg_stores): Strengthen param "insn" from rtx to
24927         rtx_insn *.
24928         (find_call_stack_args): Strengthen param "call_insn" from rtx to
24929         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
24930         to rtx_insn *.
24931         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
24932         from rtx to rtx_insn *.
24933         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
24934         "next", "ref_insn".
24935         (delete_unmarked_insns): Likewise for locals "insn", "next".
24936         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
24937         (mark_reg_dependencies): Likewise for param "insn".
24938         (rest_of_handle_ud_dce): Likewise for local "insn".
24939         (word_dce_process_block): Likewise.
24940         (dce_process_block): Likewise.
24942 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
24944         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
24945         from rtx to rtx_insn *.
24946         (struct change_cc_mode_args): Likewise for field "insn".
24947         (this_insn): Strengthen from rtx to rtx_insn *.
24948         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
24949         with insn.
24950         (validate_canon_reg): Strengthen param "insn" from rtx to
24951         rtx_insn *.
24952         (canon_reg): Likewise.
24953         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
24954         dealing with insn.
24955         (record_jump_equiv): Strengthen param "insn" from rtx to
24956         rtx_insn *.
24957         (try_back_substitute_reg): Likewise, also for locals "prev",
24958         "bb_head".
24959         (find_sets_in_insn): Likewise for param "insn".
24960         (canonicalize_insn): Likewise.
24961         (cse_insn): Likewise.  Add a checked cast.
24962         (invalidate_from_clobbers): Likewise for param "insn".
24963         (invalidate_from_sets_and_clobbers): Likewise.
24964         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
24965         dealing with insn.
24966         (cse_prescan_path): Strengthen local "insn" from rtx to
24967         rtx_insn *.
24968         (cse_extended_basic_block): Likewise for locals "insn" and
24969         "prev_insn".
24970         (cse_main): Likewise for param "f".
24971         (check_for_label_ref): Likewise for local "insn".
24972         (set_live_p): Likewise for second param ("insn").
24973         (insn_live_p): Likewise for first param ("insn") and for local
24974         "next".
24975         (cse_change_cc_mode_insn): Likewise for first param "insn".
24976         (cse_change_cc_mode_insns): Likewise for first and second params
24977         "start" and "end".
24978         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
24979         and "end".
24980         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
24981         "cc_src_insn".
24983 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24984             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
24985             Anna Tikhonova  <anna.tikhonova@intel.com>
24986             Ilya Tocar  <ilya.tocar@intel.com>
24987             Andrey Turetskiy  <andrey.turetskiy@intel.com>
24988             Ilya Verbin  <ilya.verbin@intel.com>
24989             Kirill Yukhin  <kirill.yukhin@intel.com>
24990             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24992         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
24993         New.
24994         * config/i386/sse.md
24995         (define_mode_iterator VI248_AVX2): Delete.
24996         (define_mode_iterator VI2_AVX2_AVX512BW): New.
24997         (define_mode_iterator VI48_AVX2): Ditto.
24998         (define_insn <shift_insn><mode>3): Delete.
24999         (define_insn "<shift_insn><mode>3<mask_name>" with
25000         VI2_AVX2_AVX512BW): New.
25001         (define_insn "<shift_insn><mode>3<mask_name>" with
25002         VI48_AVX2): Ditto.
25004 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25005             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25006             Anna Tikhonova  <anna.tikhonova@intel.com>
25007             Ilya Tocar  <ilya.tocar@intel.com>
25008             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25009             Ilya Verbin  <ilya.verbin@intel.com>
25010             Kirill Yukhin  <kirill.yukhin@intel.com>
25011             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25013         * config/i386/sse.md
25014         (define_mode_iterator VI4F_BRCST32x2): New.
25015         (define_mode_attr 64x2_mode): Ditto.
25016         (define_mode_attr 32x2mode): Ditto.
25017         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
25018         with VI4F_BRCST32x2): Ditto.
25019         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
25020         with V16FI mode iterator): Ditto.
25021         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
25022         with V16FI): Ditto.
25023         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
25024         with VI8F_BRCST64x2): Ditto.
25026 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25027             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25028             Anna Tikhonova  <anna.tikhonova@intel.com>
25029             Ilya Tocar  <ilya.tocar@intel.com>
25030             Andrey Turetskiy  <andrey.turetskiy@intel.com>
25031             Ilya Verbin  <ilya.verbin@intel.com>
25032             Kirill Yukhin  <kirill.yukhin@intel.com>
25033             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25035         * config/i386/sse.md
25036         (define_mode_iterator VI8_AVX512VL): New.
25037         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
25039 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
25041         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
25042         (define_mode_iterator V48_AVX512VL): New.
25043         (define_mode_iterator V12_AVX512VL): Ditto.
25044         (define_insn <avx512>_load<mode>_mask): Split into two similar
25045         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
25046         Refactor output template.
25047         (define_insn "<avx512>_store<mode>_mask"): Ditto.
25049 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25051         * cprop.c (struct occr): Strengthen field "insn" from rtx to
25052         rtx_insn *.
25053         (reg_available_p): Likewise for param "insn".
25054         (insert_set_in_table): Likewise.
25055         (hash_scan_set): Likewise.
25056         (hash_scan_insn): Likewise.
25057         (make_set_regs_unavailable): Likewise.
25058         (compute_hash_table_work): Likewise for local "insn".
25059         (reg_not_set_p): Strengthen param "insn" from const_rtx to
25060         const rtx_insn *.
25061         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
25062         (try_replace_reg): Likewise.
25063         (find_avail_set): Likewise.
25064         (cprop_jump): Likewise for params "setcc", "jump".
25065         (constprop_register): Likewise for param "insn".
25066         (cprop_insn): Likewise.
25067         (do_local_cprop): Likewise.
25068         (local_cprop_pass): Likewise for local "insn".
25069         (bypass_block): Likewise for params "setcc" and "jump".
25070         (bypass_conditional_jumps): Likewise for locals "setcc" and
25071         "insn".
25072         (one_cprop_pass): Likewise for local "insn".
25074 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25076         * compare-elim.c (struct comparison_use): Strengthen field "insn"
25077         from rtx to rtx_insn *.
25078         (struct comparison): Likewise, also for field "prev_clobber".
25079         (conforming_compare): Likewise for param "insn".
25080         (arithmetic_flags_clobber_p): Likewise.
25081         (find_flags_uses_in_insn): Likewise.
25082         (find_comparison_dom_walker::before_dom_children): Likewise for
25083         locals "insn", "next", "last_clobber".
25084         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
25086 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
25088         * combine-stack-adj.c (struct csa_reflist): Strengthen field
25089         "insn" from rtx to rtx_insn *.
25090         (single_set_for_csa): Likewise for param "insn".
25091         (record_one_stack_ref): Likewise.
25092         (try_apply_stack_adjustment): Likewise.
25093         (struct record_stack_refs_data): Likewise for field "insn".
25094         (maybe_move_args_size_note): Likewise for params "last" and "insn".
25095         (prev_active_insn_bb): Likewise for return type and param "insn".
25096         (next_active_insn_bb): Likewise.
25097         (force_move_args_size_note): Likewise for params "prev" and "last"
25098         and locals "test", "next_candidate", "prev_candidate".
25099         (combine_stack_adjustments_for_block): Strengthen locals
25100         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
25101         rtx_insn *.
25103 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25105         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
25106         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
25107         (subst_insn): Likewise for this variable.
25108         (added_links_insn): Likewise.
25109         (struct insn_link): Likewise for field "insn".
25110         (alloc_insn_link): Likewise for param "insn".
25111         (struct undobuf): Likewise for field "other_insn".
25112         (find_single_use): Likewise for param "insn" and local "next".
25113         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
25114         (delete_noop_moves): Likewise for locals "insn", "next".
25115         (create_log_links): Likewise for locals "insn", "use_insn".
25116         Strengthen local "next_use" from rtx * to rtx_insn **.
25117         (insn_a_feeds_b): Likewise for params "a", "b".
25118         (combine_instructions): Likewise for param "f" and locals "insn",
25119         "next", "prev", "first", "last_combined_insn", "link", "link1",
25120         "temp".  Replace use of NULL_RTX with NULL when referring to
25121         insns.
25122         (setup_incoming_promotions): Likewise for param "first"
25123         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
25124         (can_combine_p): Likewise for params "insn", "i3", "pred",
25125         "pred2", "succ", "succ2" and for local "p".
25126         (combinable_i3pat): Likewise for param "i3".
25127         (cant_combine_insn_p): Likewise for param "insn".
25128         (likely_spilled_retval_p): Likewise.
25129         (adjust_for_new_dest): Likewise.
25130         (update_cfg_for_uncondjump): Likewise, also for local "insn".
25131         (try_combine): Likewise for return type and for params "i3", "i2",
25132         "i1", "i0", "last_combined_insn", and for locals "insn",
25133         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
25134         "i0_insn".  Eliminate local "tem" in favor of new locals
25135         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
25136         checked cast for now to rtx_insn * on the return type of
25137         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
25138         insns.
25139         (find_split_point): Strengthen param "insn" from rtx to
25140         rtx_insn *.
25141         (simplify_set): Likewise for local "other_insn".
25142         (recog_for_combine): Likewise for param "insn".
25143         (record_value_for_reg): Likewise.
25144         (record_dead_and_set_regs_1): Likewise for local
25145         "record_dead_insn".
25146         (record_dead_and_set_regs): Likewise for param "insn".
25147         (record_promoted_value): Likewise.
25148         (check_promoted_subreg): Likewise.
25149         (get_last_value_validate): Likewise.
25150         (reg_dead_at_p): Likewise.
25151         (move_deaths): Likewise for param "to_insn".
25152         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
25153         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
25154         in favor of new locals "tem_note" and "tem_insn", the latter being
25155         an rtx_insn *.
25156         (distribute_links): Strengthen locals "place", "insn" from rtx to
25157         rtx_insn *.
25159 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25161         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
25162         than a const_rtx.
25163         (can_delete_label_p): Require a const rtx_code_label * rather than
25164         a const_rtx.
25165         (delete_insn): Add checked cast to rtx_code_label * when we know
25166         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
25167         rtx to rtx_insn *.
25168         (delete_insn_chain): Strengthen locals "prev" and "current" from
25169         rtx to rtx_insn *.  Add a checked cast when assigning from
25170         "finish" (strengthening the params will come later).  Add a
25171         checked cast to rtx_note * in region where we know
25172         NOTE_P (current).
25173         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
25174         rtx_insn *.
25175         (compute_bb_for_insn): Likewise.
25176         (free_bb_for_insn): Likewise for local "insn".
25177         (compute_bb_for_insn): Likewise.
25178         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
25179         local "insn" from rtx to rtx_insn *
25180         (flow_active_insn_p): Require a const rtx_insn * rather than a
25181         const_rtx.
25182         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
25183         rtx_insn *.
25184         (can_fallthru): Likewise for locals "insn" and "insn2".
25185         (bb_note): Likewise for local "note".
25186         (first_insn_after_basic_block_note): Likewise for local "note" and
25187         for return type.
25188         (rtl_split_block): Likewise for locals "insn" and "next".
25189         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
25190         "end".
25191         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
25192         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
25193         "prev", "tmp".
25194         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
25195         them), "kill_from", "barrier", "new_insn".
25196         (patch_jump_insn): Likewise for params "insn", "old_label".
25197         (redirect_branch_edge): Likewise for locals "old_label", "insn".
25198         (force_nonfallthru_and_redirect): Likewise for locals "insn",
25199         "old_label", "new_label".
25200         (rtl_tidy_fallthru_edge): Likewise for local "q".
25201         (rtl_split_edge): Likewise for locals "before", "last".
25202         (commit_one_edge_insertion): Likewise for locals "before",
25203         "after", "insns", "tmp", "last", adding a checked cast where
25204         currently necessary.
25205         (commit_edge_insertions): Likewise.
25206         (rtl_dump_bb): Likewise for locals "insn", "last".
25207         (print_rtl_with_bb): Likewise for local "x".
25208         (rtl_verify_bb_insns): Likewise for local "x".
25209         (rtl_verify_bb_pointers): Likewise for local "insn".
25210         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
25211         "head", "end".
25212         (rtl_verify_fallthru): Likewise for local "insn".
25213         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
25214         (purge_dead_edges): Likewise for local "insn".
25215         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
25216         (skip_insns_after_block): Likewise for return type and for locals
25217         "insn", "last_insn", "next_head", "prev".
25218         (record_effective_endpoints): Likewise for locals "next_insn",
25219         "insn", "end".
25220         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
25221         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
25222         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
25223         (duplicate_insn_chain): For now, add checked cast from rtx to
25224         rtx_insn * when returning insn.
25225         (cfg_layout_duplicate_bb): Likewise for local "insn".
25226         (cfg_layout_delete_block): Likewise for locals "insn", "next",
25227         "prev", "remaints".
25228         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
25229         (rtl_block_empty_p): Likewise.
25230         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
25231         "split_point", "last".
25232         (rtl_block_ends_with_call_p): Likewise for local "insn".
25233         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
25234         const rtx_insn *.
25235         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
25236         "split_at_insn" from rtx to rtx_insn *.
25237         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
25238         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
25239         to const rtx_insn *.
25240         (rtl_account_profile_record): Likewise.
25242 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25244         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
25245         rtx to rtx_insn *.
25246         (average_num_loop_insns): Likewise.
25247         (init_set_costs): Likewise for local "seq".
25248         (seq_cost): Likewise for param "seq", from const_rtx to const
25249         rtx_insn *.
25251 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25253         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
25254         rtx to rtx_insn *.
25256 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25258         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
25259         "f1" and "f2" from rtx * to rtx_insn **.
25260         (flow_find_head_matching_sequence): Likewise.
25262         * cfgcleanup.c (try_simplify_condjump): Strengthen local
25263         "cbranch_insn" from rtx to rtx_insn *.
25264         (thread_jump): Likewise for local "insn".
25265         (try_forward_edges): Likewise for local "last".
25266         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
25267         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
25268         "real_b_end".
25269         (can_replace_by): Likewise for params "i1", "i2".
25270         (old_insns_match_p): Likewise.
25271         (merge_notes): Likewise.
25272         (walk_to_nondebug_insn): Likewise for param "i1".
25273         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
25274         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
25275         "afterlast1", "afterlast2" from rtx to rtx_insn *.
25276         (flow_find_head_matching_sequence): Strengthen params "f1" and
25277         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
25278         "last1", "last2", "beforelast1", "beforelast2" from rtx to
25279         rtx_insn *.
25280         (outgoing_edges_match): Likewise for locals "last1", "last2".
25281         (try_crossjump_to_edge): Likewise for local "insn".
25282         Replace call to for_each_rtx with for_each_rtx_in_insn.
25284         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
25285         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
25286         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
25287         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
25288         (try_optimize_cfg): Strengthen local "last" from rtx to
25289         rtx_insn *.
25290         (delete_dead_jumptables): Likewise for locals "insn", "next",
25291         "label".
25293         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
25294         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
25295         "rtx else_first_tail", to reflect the basic-block.h changes above.
25297 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25299         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
25300         rtx_insn *.
25301         (purge_dead_tablejump_edges): Likewise.
25302         (find_bb_boundaries): Likewise for locals "insn", "end",
25303         "flow_transfer_insn".
25305 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25307         * caller-save.c (save_call_clobbered_regs): Strengthen locals
25308         "ins" and "prev" from rtx to rtx_insn *.
25310 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25312         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
25313         rtx_insn *.
25314         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
25315         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
25316         "scan_start".
25317         (load_register_parameters): Likewise for local "before_arg".
25318         (check_sibcall_argument_overlap): Likewise for param "insn".
25319         (expand_call): Likewise for locals "normal_call_insns",
25320         "tail_call_insns", "insns", "before_call", "after_args",
25321         "before_arg", "last", "prev".  Strengthen one of the "last" from
25322         rtx to rtx_call_insn *.
25323         (fixup_tail_calls): Strengthen local "insn" from rtx to
25324         rtx_insn *.
25325         (emit_library_call_value_1): Likewise for locals "before_call" and
25326         "last".
25328 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25330         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
25331         and "last" from rtx to rtx_insn *.
25332         (expand_builtin_nonlocal_goto): Likewise for local "insn".
25333         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
25334         rtx_call_insn *.
25335         (expand_errno_check): Strengthen local "lab" from rtx to
25336         rtx_code_label *.
25337         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
25338         rtx_insn *.
25339         (expand_builtin_mathfn_2): Likewise.
25340         (expand_builtin_mathfn_ternary): Likewise.
25341         (expand_builtin_mathfn_3): Likewise.
25342         (expand_builtin_interclass_mathfn): Likewise for local "last".
25343         (expand_builtin_int_roundingfn): Likewise for local "insns".
25344         (expand_builtin_int_roundingfn_2): Likewise.
25345         (expand_builtin_strlen): Likewise for local "before_strlen".
25346         (expand_builtin_strncmp): Likewise for local "seq".
25347         (expand_builtin_signbit): Likewise for local "last".
25348         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
25349         from rtx to rtx_code_label *.
25350         (expand_stack_restore):  Strengthen local "prev" from rtx to
25351         rtx_insn *.
25353 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25355         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
25356         to rtx_insn *.
25357         (struct btr_def_s): Likewise.
25358         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
25359         const rtx_insn *.
25360         (add_btr_def): Likewise.
25361         (new_btr_user): Likewise.
25362         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
25363         rtx to rtx_insn *.
25364         (link_btr_uses): Likewise.
25365         (move_btr_def): Likewise for locals "insp", "old_insn",
25366         "new_insn".  Add checked cast to rtx_insn * for now on result of
25367         gen_move_insn.
25368         (can_move_up): Strengthen param "insn" from const_rtx to
25369         const rtx_insn *.
25371 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25373         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
25374         rtx_insn *.
25375         (get_uncond_jump_length): Likewise for locals "label", "jump".
25376         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
25377         "jump", "insn".
25378         (add_labels_and_missing_jumps): Likewise for local "new_jump".
25379         (fix_up_fall_thru_edges): Likewise for local "old_jump".
25380         (find_jump_block): Likewise for local "insn".
25381         (fix_crossing_conditional_branches): Likewise for locals
25382         "old_jump", "new_jump".
25383         (fix_crossing_unconditional_branches): Likewise for locals
25384         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
25385         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
25387 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25389         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
25390         rtx to rtx_insn *.
25391         (struct mem_insn): Likewise for field "insn".
25392         (reg_next_use): Strengthen from rtx * to rtx_insn **.
25393         (reg_next_inc_use): Likewise.
25394         (reg_next_def): Likewise.
25395         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
25396         from rtx to rtx_insn *.
25397         (move_insn_before): Likewise for param "next_insn" and local "insns".
25398         (attempt_change): Likewise for local "mov_insn".
25399         (try_merge): Likewise for param "last_insn".
25400         (get_next_ref): Likewise for return type and local "insn".
25401         Strengthen param "next_array" from rtx * to rtx_insn **.
25402         (parse_add_or_inc): Strengthen param "insn" from rtx to
25403         rtx_insn *.
25404         (find_inc): Likewise for locals "insn" and "other_insn" (three of
25405         the latter).
25406         (merge_in_block): Likewise for locals "insn", "curr",
25407         "other_insn".
25408         (pass_inc_dec::execute): Update allocations of the arrays to
25409         reflect the stronger types.
25411 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25413         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
25414         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
25415         from rtx to rtx_code_label *.
25417 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25419         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
25420         to rtx_insn *.
25422 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25424         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
25425         generated a warning and prevented bootstrapping the compiler.
25427 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25429         * rtl.h (delete_related_insns): Strengthen return type from rtx to
25430         rtx_insn *.
25432         * jump.c (delete_related_insns): Likewise, also for locals "next"
25433         and "prev".
25435 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25437         * genautomata.c (output_internal_insn_latency_func): When writing
25438         the function "internal_insn_latency" to insn-automata.c,
25439         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
25440         allowing the optional guard function of (define_bypass) clauses to
25441         expect a pair of rtx_insn *, rather than a pair of rtx.
25442         (output_insn_latency_func): When writing the function
25443         "insn_latency", add an "uncast_" prefix to params "insn" and
25444         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
25445         using checked casts from the params, thus enabling the above
25446         change to the generated "internal_insn_latency" function.
25448 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
25450         PR tree-optimization/62091
25451         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
25452         handle correctly arrays.
25453         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
25454         inheritance binfos.
25455         (record_known_type): Walk into inner type.
25456         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
25457         condition on no type changes.
25459 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25461         * genattrtab.c (write_attr_get): Within the generated get_attr_
25462         functions, rename param "insn" to "uncast_insn" and reintroduce
25463         "insn" as an local rtx_insn * using a checked cast, so that "insn"
25464         is an rtx_insn * within insn-attrtab.c
25466 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25468         * output.h (peephole): Strengthen return type from rtx to
25469         rtx_insn *.
25470         * rtl.h (delete_for_peephole): Likewise for both params.
25471         * genpeep.c (main): In generated "peephole" function, strengthen
25472         return type and local "insn" from rtx to rtx_insn *.  For now,
25473         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
25474         rtx_insn *, with a checked cast.
25475         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
25476         locals "insn", "next", "prev" from rtx to rtx_insn *.
25478 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
25480         PR tree-optimization/62112
25481         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
25482         * gimple-iterator.h (gsi_replace): Return bool.
25483         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
25484         moved from ref_may_alias_global_p.
25485         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
25486         New overloads.
25487         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
25488         (stmt_kills_ref_p_1): Rename...
25489         (stmt_kills_ref_p): ... to this.
25490         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
25491         stmt_kills_ref_p): Declare.
25492         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
25493         Move the self-assignment case...
25494         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
25496 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25498         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
25500         * emit-rtl.c (try_split): Likewise, also for locals "before" and
25501         "after".  For now, don't strengthen param "trial", which requires
25502         adding checked casts when returning it.
25504 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25506         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
25507         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
25508         "var_location" hook from rtx to rtx_insn *.
25509         (debug_nothing_rtx): Delete in favor of...
25510         (debug_nothing_rtx_code_label): New prototype.
25511         (debug_nothing_rtx_rtx): Delete unused prototype.
25512         (debug_nothing_rtx_insn): New prototype.
25514         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
25515         invoking debug_hooks->var_location (in two places, one in a NOTE
25516         case of a switch statement, the other guarded by a CALL_P
25517         conditional.  Add checked cast to rtx_code_label * when invoking
25518         debug_hooks->label (within CODE_LABEL case of switch statement).
25520         * dbxout.c (dbx_debug_hooks): Update "label" hook from
25521         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
25522         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
25523         (xcoff_debug_hooks): Likewise.
25524         * debug.c (do_nothing_debug_hooks): Likewise.
25525         (debug_nothing_rtx): Delete in favor of...
25526         (debug_nothing_rtx_insn): New function.
25527         (debug_nothing_rtx_rtx): Delete unused function.
25528         (debug_nothing_rtx_code_label): New function.
25529         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
25530         debug_nothing_rtx to debug_nothing_rtx_code_label.
25531         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
25532         to rtx_insn *.
25533         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
25534         debug_nothing_rtx to debug_nothing_rtx_insn.
25535         (sdbout_label): Strengthen param "insn" from rtx to
25536         rtx_code_label *.
25537         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
25538         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
25539         "var_location" hook from debug_nothing_rtx to
25540         debug_nothing_rtx_insn.
25542 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25544         * recog.h (insn_output_fn): Update this function typedef to match
25545         the changes below to the generated output functions, strengthening
25546         the 2nd param from rtx to rtx_insn *.
25548         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
25549         insn when invoking an output function, to match the new signature
25550         of insn_output_fn with a stronger second param.
25552         * genconditions.c (write_header): In the generated code for
25553         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
25554         to match the other changes in this patch.
25556         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
25557         the generated "gen_" functions from rtx to rtx_insn * within their
25558         implementations.
25560         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
25561         the subfunctions within the generated "recog_", "split", "peephole2"
25562         function trees from rtx to rtx_insn *.  For now, the top-level
25563         generated functions ("recog", "split", "peephole2") continue to
25564         take a plain rtx for "insn", to avoid introducing dependencies on
25565         other patches.  Rename this 2nd param from "insn" to
25566         "uncast_insn", and reintroduce "insn" as a local variable of type
25567         rtx_insn *, initialized at the top of the generated function with
25568         a checked cast on "uncast_insn".
25569         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
25570         the generated "gen_" functions from rtx to rtx_insn * within their
25571         prototypes.
25573         * genoutput.c (process_template): Strengthen the 2nd param within
25574         the generated "output_" functions "insn" from rtx to rtx_insn *.
25576 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
25578         * tree-profile.c (tree_profiling): Skip external functions
25579         when doing coverage instrumentation.
25580         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
25582 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25584         * config/rs6000/altivec.h (vec_cpsgn): New #define.
25585         (vec_mergee): Likewise.
25586         (vec_mergeo): Likewise.
25587         (vec_cntlz): Likewise.
25588         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
25589         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
25590         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
25591         VMRGEW, and VMRGOW.
25592         * doc/extend.texi: Document various forms of vec_cpsgn,
25593         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
25594         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
25595         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
25596         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
25597         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
25599 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25601         * config/rs6000/rs6000.c (context.h): New include.
25602         (tree-pass.h): Likewise.
25603         (make_pass_analyze_swaps): New decl.
25604         (rs6000_option_override): Register pass_analyze_swaps.
25605         (swap_web_entry): New subsclass of web_entry_base (df.h).
25606         (special_handling_values): New enum.
25607         (union_defs): New function.
25608         (union_uses): Likewise.
25609         (insn_is_load_p): Likewise.
25610         (insn_is_store_p): Likewise.
25611         (insn_is_swap_p): Likewise.
25612         (rtx_is_swappable_p): Likewise.
25613         (insn_is_swappable_p): Likewise.
25614         (chain_purpose): New enum.
25615         (chain_contains_only_swaps): New function.
25616         (mark_swaps_for_removal): Likewise.
25617         (swap_const_vector_halves): Likewise.
25618         (adjust_subreg_index): Likewise.
25619         (permute_load): Likewise.
25620         (permute_store): Likewise.
25621         (handle_special_swappables): Likewise.
25622         (replace_swap_with_copy): Likewise.
25623         (dump_swap_insn_table): Likewise.
25624         (rs6000_analyze_swaps): Likewise.
25625         (pass_data_analyze_swaps): New pass_data.
25626         (pass_analyze_swaps): New rtl_opt_pass.
25627         (make_pass_analyze_swaps): New function.
25628         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
25630 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25632         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
25633         type from rtx to rtx_insn *.
25634         (create_copy_of_insn_rtx): Likewise.
25635         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
25636         (create_copy_of_insn_rtx): Likewise, also for local "res".
25638 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25640         * rtl.h (find_first_parameter_load): Strengthen return type from
25641         rtx to rtx_insn *.
25642         * rtlanal.c (find_first_parameter_load): Strengthen return type
25643         from rtx to rtx_insn *.  Add checked cast for now, to postpone
25644         strengthening the params.
25646 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25648         PR fortran/44054
25649         * diagnostic.c: Set default caret.
25650         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
25651         line is needed.
25652         * diagnostic.h (struct diagnostic_context):
25654 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25656         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
25657         (sel_bb_head): Strengthen return type insn_t (currently just an
25658         rtx) to rtx_insn *.
25659         (sel_bb_end): Likewise.
25661         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
25662         (sel_bb_head): Strengthen return type and local "head" from
25663         insn_t (currently just an rtx) to rtx_insn *.
25664         (sel_bb_end): Likewise for return type.
25665         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
25666         working with insn.
25668 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
25670         * basic-block.h (get_last_bb_insn): Strengthen return type from
25671         rtx to rtx_insn *.
25672         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
25673         end".
25675 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25677         PR fortran/44054
25678         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
25679         to here ...
25680         (diagnostic_report_diagnostic): ... from here.
25681         * toplev.c (general_init): Move code to c-family.
25683 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25685         * df.h (web_entry_base): Replace existing struct web_entry with a
25686         new class web_entry_base with only the predecessor member.
25687         (unionfind_root): Remove declaration and move to class member.
25688         (unionfind_union): Remove declaration and move to friend
25689         function.
25690         (union_defs): Remove declaration.
25691         * web.c (web_entry_base::unionfind_root): Modify to be member
25692         function and adjust accessors.
25693         (unionfind_union): Modify to be friend function and adjust
25694         accessors.
25695         (web_entry): New subclass of web_entry_base containing the reg
25696         member.
25697         (union_match_dups): Modify for struct -> class changes.
25698         (union_defs): Likewise.
25699         (entry_register): Likewise.
25700         (pass_web::execute): Likewise.
25702 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
25704         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
25705         builtin define __VEC_ELEMENT_REG_ORDER__.
25707 2014-08-20  Martin Jambor  <mjambor@suse.cz>
25708             Wei Mi  <wmi@google.com>
25710         PR ipa/60449
25711         PR middle-end/61776
25712         * tree-ssa-operands.c (update_stmt_operands): Remove
25713         MODIFIED_NORETURN_CALLS.
25714         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
25715         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
25716         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
25717         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
25718         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
25719         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
25720         (gimple_call_set_ctrl_altering): New func.
25721         (gimple_call_ctrl_altering_p): Ditto.
25722         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
25723         (make_blocks): Use gimple_call_initialize_ctrl_altering.
25724         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
25725         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
25726         remove MODIFIED_NORETURN_CALLS.
25728 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
25730         * coverage.c (coverage_compute_profile_id): Return non-0;
25731         also handle symbols with unique name.
25732         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
25734 2014-08-20  Steve Ellcey  <sellcey@mips.com>
25736         PR middle-end/49191
25737         * doc/sourcebuild.texi (non_strict_align): New.
25739 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
25741         * cgraphunit.c (ipa_passes, compile): Reshedule
25742         symtab_remove_unreachable_nodes passes; update comments.
25743         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
25744         TODO_remove_functions before the pass; the functions ought to be
25745         already removed.
25746         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
25747         TODO_remove_functions.
25748         * passes.c (pass_data_early_local_passes): Do not schedule function
25749         removal.
25750         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
25752 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25754         PR c/59304
25755         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
25756         before setting the option.
25757         * diagnostic.c (diagnostic_classify_diagnostic): Record
25758         command-line status.
25760 2014-08-20  Richard Biener  <rguenther@suse.de>
25762         PR lto/62190
25763         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
25764         to build uint{16,32,64}_type_node.
25766 2014-08-20  Terry Guo  <terry.guo@arm.com>
25768         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
25769         with immediate_operand.
25771 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
25773         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
25774         "insn" from an as_a to a safe_as_a, for the case when "insn" is
25775         NULL.
25777 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25779         PR preprocessor/51303
25780         * incpath.c (remove_duplicates): Use cpp_warning.
25782 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25784         PR c/60975
25785         PR c/53063
25786         * doc/options.texi (CPP): Document it.
25787         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
25788         * optc-gen.awk: Handle CPP.
25789         * opth-gen.awk: Likewise.
25791 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25793         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
25794         rtx_insn *.
25795         (duplicate_insn_chain): Likewise.
25796         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
25797         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
25798         checked cast for now (until we can strengthen the params in the
25799         same way).
25800         (duplicate_insn_chain): Likewise.
25802 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25804         * rtl.h (next_cc0_user): Strengthen return type from rtx to
25805         rtx_insn *.
25806         (prev_cc0_setter): Likewise.
25808         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
25809         rtx_insn *, adding checked casts for now as necessary.
25810         (prev_cc0_setter): Likewise.
25812 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25814         * expr.h (emit_move_insn): Strengthen return type from rtx to
25815         rtx_insn *.
25816         (emit_move_insn_1): Likewise.
25817         (emit_move_complex_push): Likewise.
25818         (emit_move_complex_parts): Likewise.
25820         * expr.c (emit_move_via_integer): Strengthen return type from rtx
25821         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
25822         with insns.
25823         (emit_move_complex_push): Strengthen return type from rtx to
25824         rtx_insn *.
25825         (emit_move_complex): Likewise, also for local "ret".
25826         (emit_move_ccmode): Likewise.
25827         (emit_move_multi_word): Likewise for return type and locals
25828         "last_insn", "seq".
25829         (emit_move_insn_1): Likewise for return type and locals "result",
25830         "ret".
25831         (emit_move_insn): Likewise for return type and local "last_insn".
25832         (compress_float_constant): Likewise.
25834 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25836         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
25837         from rtx to rtx_insn *.
25839         * rtl.h (emit_insn_before): Likewise.
25840         (emit_insn_before_noloc): Likewise.
25841         (emit_insn_before_setloc): Likewise.
25842         (emit_jump_insn_before): Likewise.
25843         (emit_jump_insn_before_noloc): Likewise.
25844         (emit_jump_insn_before_setloc): Likewise.
25845         (emit_call_insn_before): Likewise.
25846         (emit_call_insn_before_noloc): Likewise.
25847         (emit_call_insn_before_setloc): Likewise.
25848         (emit_debug_insn_before): Likewise.
25849         (emit_debug_insn_before_noloc): Likewise.
25850         (emit_debug_insn_before_setloc): Likewise.
25851         (emit_label_before): Likewise.
25852         (emit_insn_after): Likewise.
25853         (emit_insn_after_noloc): Likewise.
25854         (emit_insn_after_setloc): Likewise.
25855         (emit_jump_insn_after): Likewise.
25856         (emit_jump_insn_after_noloc): Likewise.
25857         (emit_jump_insn_after_setloc): Likewise.
25858         (emit_call_insn_after): Likewise.
25859         (emit_call_insn_after_noloc): Likewise.
25860         (emit_call_insn_after_setloc): Likewise.
25861         (emit_debug_insn_after): Likewise.
25862         (emit_debug_insn_after_noloc): Likewise.
25863         (emit_debug_insn_after_setloc): Likewise.
25864         (emit_label_after): Likewise.
25865         (emit_insn): Likewise.
25866         (emit_debug_insn): Likewise.
25867         (emit_jump_insn): Likewise.
25868         (emit_call_insn): Likewise.
25869         (emit_label): Likewise.
25870         (gen_clobber): Likewise.
25871         (emit_clobber): Likewise.
25872         (gen_use): Likewise.
25873         (emit_use): Likewise.
25874         (emit): Likewise.
25876         (emit_barrier_before): Strengthen return type from rtx to
25877         rtx_barrier *.
25878         (emit_barrier_after): Likewise.
25879         (emit_barrier): Likewise.
25881         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
25882         from rtx to rtx_insn *.  Add checked casts for now when converting
25883         "last" from rtx to rtx_insn *.
25884         (emit_insn_before_noloc): Likewise for return type.
25885         (emit_jump_insn_before_noloc): Likewise.
25886         (emit_call_insn_before_noloc): Likewise.
25887         (emit_debug_insn_before_noloc): Likewise.
25888         (emit_barrier_before): Strengthen return type and local "insn"
25889         from rtx to rtx_barrier *.
25890         (emit_label_before): Strengthen return type from rtx to
25891         rtx_insn *.  Add checked cast for now when returning param
25892         (emit_pattern_after_noloc): Strengthen return type from rtx to
25893         rtx_insn *.  Add checked casts for now when converting "last" from
25894         rtx to rtx_insn *.
25895         (emit_insn_after_noloc): Strengthen return type from rtx to
25896         rtx_insn *.
25897         (emit_jump_insn_after_noloc): Likewise.
25898         (emit_call_insn_after_noloc): Likewise.
25899         (emit_debug_insn_after_noloc): Likewise.
25900         (emit_barrier_after): Strengthen return type from rtx to
25901         rtx_barrier *.
25902         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
25903         Add checked cast for now when converting "label" from rtx to
25904         rtx_insn *.
25905         (emit_pattern_after_setloc): Strengthen return type from rtx to
25906         rtx_insn *.  Add checked casts for now when converting "last" from
25907         rtx to rtx_insn *.
25908         (emit_pattern_after): Strengthen return type from rtx to
25909         rtx_insn *.
25910         (emit_insn_after_setloc): Likewise.
25911         (emit_insn_after): Likewise.
25912         (emit_jump_insn_after_setloc): Likewise.
25913         (emit_jump_insn_after): Likewise.
25914         (emit_call_insn_after_setloc): Likewise.
25915         (emit_call_insn_after): Likewise.
25916         (emit_debug_insn_after_setloc): Likewise.
25917         (emit_debug_insn_after): Likewise.
25918         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
25919         when converting "last" from rtx to rtx_insn *.
25920         (emit_pattern_before): Strengthen return type from rtx to
25921         rtx_insn *.
25922         (emit_insn_before_setloc): Likewise.
25923         (emit_insn_before): Likewise.
25924         (emit_jump_insn_before_setloc): Likewise.
25925         (emit_jump_insn_before): Likewise.
25926         (emit_call_insn_before_setloc): Likewise.
25927         (emit_call_insn_before): Likewise.
25928         (emit_debug_insn_before_setloc): Likewise.
25929         (emit_debug_insn_before): Likewise.
25930         (emit_insn): Strengthen return type and locals "last", "insn",
25931         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
25932         within cases where we know we have an insn.
25933         (emit_debug_insn): Likewise.
25934         (emit_jump_insn): Likewise.
25935         (emit_call_insn): Strengthen return type and local "insn" from rtx
25936         to rtx_insn *.
25937         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
25938         a checked cast to rtx_insn * for now on "label".
25939         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
25940         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
25941         (emit_use): Likewise.
25942         (gen_use): Likewise, also for local "seq".
25943         (emit): Likewise for return type and local "insn".
25944         (rtx_insn): Likewise for return type and local "new_rtx".
25946         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
25947         from rtx to rtx_barrier *.
25949         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
25950         changed return type from rtx to rtx_insn *, we must update
25951         "emit_fn" type, and this in turn means updating...
25952         (frame_insn): ...this.  Strengthen return type from rtx to
25953         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
25955 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25957         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
25958         rtx to rtx_jump_table_data *.  Also for local.
25959         * rtl.h (emit_jump_table_data): Likewise.
25961 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
25963         * basic-block.h (create_basic_block_structure): Strengthen third
25964         param "bb_note" from rtx to rtx_note *.
25965         * rtl.h (emit_note_before): Strengthen return type from rtx to
25966         rtx_note *.
25967         (emit_note_after): Likewise.
25968         (emit_note): Likewise.
25969         (emit_note_copy): Likewise.  Also, strengthen param similarly.
25970         * function.h (struct rtl_data): Strengthen field
25971         "x_stack_check_probe_note" from rtx to rtx_note *.
25973         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
25974         from rtx to rtx_note *.
25975         * cfgrtl.c (create_basic_block_structure): Strengthen third param
25976         "bb_note" from rtx to rtx_note *.
25977         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
25978         when calling emit_note_copy.
25979         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
25980         rtx_note *.
25981         (emit_note_after): Likewise.
25982         (emit_note_before): Likewise.
25983         (emit_note_copy): Likewise.  Also, strengthen param similarly.
25984         (emit_note): Likewise.
25985         * except.c (emit_note_eh_region_end): Likewise for return type.
25986         Strengthen local "next" from rtx to rtx_insn *.
25987         (convert_to_eh_region_ranges): Strengthen local "note"
25988         from rtx to rtx_note *.
25989         * final.c (change_scope): Likewise.
25990         (reemit_insn_block_notes): Likewise, for both locals named "note".
25991         Also, strengthen local "insn" from rtx to rtx_insn *.
25992         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
25993         rtx to rtx_note *.
25994         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
25995         strengthen local "seq" from rtx to rtx_insn *.
25996         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
25997         to rtx_note *.
25998         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
25999         vec<rtx_note *>.
26000         (get_bb_note_from_pool): Strengthen return type from rtx to
26001         rtx_note *.
26002         (sel_create_basic_block): Strengthen local "new_bb_note" from
26003         insn_t to rtx_note *.
26004         * var-tracking.c (emit_note_insn_var_location): Strengthen local
26005         "note" from rtx to rtx_note *.
26006         (emit_notes_in_bb): Likewise.
26008 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26010         * function.h (struct rtl_data): Strengthen field
26011         "x_parm_birth_insn" from rtx to rtx_insn *.
26012         * function.c (struct assign_parm_data_all): Strengthen fields
26013         "first_conversion_insn" and "last_conversion_insn" from rtx to
26014         rtx_insn *.
26016 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26018         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
26019         to rtx_insn *; also for local "var_end_seq".
26020         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
26021         (maybe_cleanup_end_of_block): Likewise for param "last" and local
26022         "insn".
26023         (expand_gimple_cond): Likewise for locals "last2" and "last".
26024         (mark_transaction_restart_calls): Likewise for local "insn".
26025         (expand_gimple_stmt): Likewise for return type and locals "last"
26026         and "insn".
26027         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
26028         (avoid_complex_debug_insns): Likewise for param "insn".
26029         (expand_debug_locations): Likewise for locals "insn", "last",
26030         "prev_insn" and "insn2".
26031         (expand_gimple_basic_block): Likewise for local "last".
26032         (construct_exit_block): Likewise for locals "head", "end",
26033         "orig_end".
26034         (pass_expand::execute): Likewise for locals "var_seq",
26035         "var_ret_seq", "next".
26037 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26039         * asan.h (asan_emit_stack_protection): Strengthen return type from
26040         rtx to rtx_insn *.
26041         * asan.c (asan_emit_stack_protection): Likewise.  Add local
26042         "insns" to hold the return value.
26044 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26046         * basic-block.h (bb_note): Strengthen return type from rtx to
26047         rtx_note *.
26048         * sched-int.h (bb_note): Likewise.
26049         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
26051 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26053         * rtl.h (make_insn_raw): Strengthen return type from rtx to
26054         rtx_insn *.
26056         * emit-rtl.c (make_insn_raw): Strengthen return type and local
26057         "insn" from rtx to rtx_insn *.
26058         (make_debug_insn_raw): Strengthen return type from rtx to
26059         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
26060         (make_jump_insn_raw):  Strengthen return type from rtx to
26061         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
26062         (make_call_insn_raw):  Strengthen return type from rtx to
26063         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
26064         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
26065         callback from rtx to rtx_insn *; likewise for local "insn" and
26066         "next", adding a checked cast to rtx_insn in the relevant cases of
26067         the switch statement.
26068         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
26069         callback from rtx to rtx_insn *.
26070         (emit_pattern_after_setloc): Likewise.
26071         (emit_pattern_after): Likewise.
26072         (emit_pattern_before_setloc): Likewise.
26073         (emit_pattern_before): Likewise.
26075 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26077         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
26078         rtx_call_insn *.
26079         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
26080         accepting an rtx_insn *.
26081         (last_call_insn): Strengthen return type from rtx to
26082         rtx_call_insn *.
26084 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26086         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
26087         "insns" from rtx to rtx_insn *.
26088         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
26089         locals "insn" and "prev".
26091 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26093         * rtl.h (tablejump_p): Strengthen third param from rtx * to
26094         rtx_jump_table_data **.
26096         * cfgbuild.c (make_edges): Introduce local "table", using it in
26097         place of "tmp" for jump table data.
26098         (find_bb_boundaries): Strengthen local "table" from rtx to
26099         rtx_jump_table_data *.
26100         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
26101         (outgoing_edges_match): Likewise for locals "table1" and "table2".
26102         (try_crossjump_to_edge): Likewise.
26103         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
26104         "table".
26105         (patch_jump_insn): Introduce local "table", using it in place of
26106         "tmp" for jump table data.
26107         (force_nonfallthru_and_redirect): Introduce local "table", so that
26108         call to tablejump_p can receive an rtx_jump_table_data **.  Update
26109         logic around the call to overwrite "note" appropriately if
26110         tablejump_p returns non-zero.
26111         (get_last_bb_insn): Introduce local "table", using it in place of
26112         "tmp" for jump table data.
26113         * dwarf2cfi.c (create_trace_edges): Likewise.
26115         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
26116         from rtx to rtx_jump_table_data *.
26117         (create_fix_barrier): Strengthen local "tmp" from rtx to
26118         rtx_jump_table_data *.
26119         (arm_reorg): Likewise for local "table".
26121         * config/s390/s390.c (s390_chunkify_start): Likewise.
26123         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
26125         * jump.c (delete_related_insns): Strengthen local "lab_next" from
26126         rtx to rtx_jump_table_data *.
26128         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
26129         rtx_jump_table_data **.  Add a checked cast when writing through
26130         the pointer: we know there that local "table" is non-NULL and that
26131         JUMP_TABLE_DATA_P (table) holds.
26132         (label_is_jump_target_p): Introduce local "table", using it in
26133         place of "tmp" for jump table data.
26135 2014-08-19  Marek Polacek  <polacek@redhat.com>
26137         PR c++/62153
26138         * doc/invoke.texi: Document -Wbool-compare.
26140 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26142         * rtl.h (entry_of_function): Strengthen return type from rtx to
26143         rtx_insn *.
26144         * cfgrtl.c (entry_of_function): Likewise.
26146 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26148         * emit-rtl.h (get_insns): Strengthen return type from rtx to
26149         rtx_insn *, adding a checked cast for now.
26150         (get_last_insn): Likewise.
26152 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26154         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
26155         rtx_code_label *.
26157         * emit-rtl.c (gen_label_rtx): Likewise.
26159 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26161         * rtl.h (previous_insn): Strengthen return type from rtx to
26162         rtx_insn *.
26163         (next_insn): Likewise.
26164         (prev_nonnote_insn): Likewise.
26165         (prev_nonnote_insn_bb): Likewise.
26166         (next_nonnote_insn): Likewise.
26167         (next_nonnote_insn_bb): Likewise.
26168         (prev_nondebug_insn): Likewise.
26169         (next_nondebug_insn): Likewise.
26170         (prev_nonnote_nondebug_insn): Likewise.
26171         (next_nonnote_nondebug_insn): Likewise.
26172         (prev_real_insn): Likewise.
26173         (next_real_insn): Likewise.
26174         (prev_active_insn): Likewise.
26175         (next_active_insn): Likewise.
26177         * emit-rtl.c (next_insn): Strengthen return type from rtx to
26178         rtx_insn *, adding a checked cast.
26179         (previous_insn): Likewise.
26180         (next_nonnote_insn): Likewise.
26181         (next_nonnote_insn_bb): Likewise.
26182         (prev_nonnote_insn): Likewise.
26183         (prev_nonnote_insn_bb): Likewise.
26184         (next_nondebug_insn): Likewise.
26185         (prev_nondebug_insn): Likewise.
26186         (next_nonnote_nondebug_insn): Likewise.
26187         (prev_nonnote_nondebug_insn): Likewise.
26188         (next_real_insn): Likewise.
26189         (prev_real_insn): Likewise.
26190         (next_active_insn): Likewise.
26191         (prev_active_insn): Likewise.
26193         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
26194         param "stepfunc" so that it returns an rtx_insn * rather than an
26195         rtx, to track the change to prev_nonnote_insn_bb, which is the
26196         only function this is called with.
26197         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
26199 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
26201         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
26202         assert.
26204 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26206         * coretypes.h (class rtx_debug_insn): Add forward declaration.
26207         (class rtx_nonjump_insn): Likewise.
26208         (class rtx_jump_insn): Likewise.
26209         (class rtx_call_insn): Likewise.
26210         (class rtx_jump_table_data): Likewise.
26211         (class rtx_barrier): Likewise.
26212         (class rtx_code_label): Likewise.
26213         (class rtx_note): Likewise.
26215         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
26216         adding the invariant DEBUG_INSN_P (X).
26217         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
26218         the invariant NONJUMP_INSN_P (X).
26219         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
26220         the invariant JUMP_P (X).
26221         (class rtx_call_insn): New, a subclass of rtx_insn, adding
26222         the invariant CALL_P (X).
26223         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
26224         invariant JUMP_TABLE_DATA_P (X).
26225         (class rtx_barrier): New, a subclass of rtx_insn, adding the
26226         invariant BARRIER_P (X).
26227         (class rtx_code_label): New, a subclass of rtx_insn, adding
26228         the invariant LABEL_P (X).
26229         (class rtx_note): New, a subclass of rtx_insn, adding
26230         the invariant NOTE_P(X).
26231         (is_a_helper <rtx_debug_insn *>::test): New.
26232         (is_a_helper <rtx_nonjump_insn *>::test): New.
26233         (is_a_helper <rtx_jump_insn *>::test): New.
26234         (is_a_helper <rtx_call_insn *>::test): New.
26235         (is_a_helper <rtx_jump_table_data *>::test): New functions,
26236         overloaded for both rtx and rtx_insn *.
26237         (is_a_helper <rtx_barrier *>::test): New.
26238         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
26239         for both rtx and rtx_insn *.
26240         (is_a_helper <rtx_note *>::test): New.
26242 2014-08-19  Marek Polacek  <polacek@redhat.com>
26244         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
26245         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
26246         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
26247         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
26249 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26251         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
26252         rtx_insn *.  To help with transition, for now, convert from an
26253         access macro into a pair of functions: BND_TO, returning an
26254         rtx_insn *, and...
26255         (SET_BND_TO): New function, for use where BND_TO is used as an
26256         lvalue.
26258         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
26259         SET_BND_TO.
26260         (BND_TO): New function, adding a checked cast.
26261         (SET_BND_TO): New function.
26263         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
26264         SET_BND_TO.
26265         (compute_av_set_on_boundaries): Likewise.
26267 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26269         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
26270         destination if it is used in source.
26271         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
26272         (*popcount<mode>2_falsedep_1): Likewise.
26274 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26276         PR other/62168
26277         * configure.ac: Set install_gold_as_default to no first.
26278         * configure: Regenerated.
26280 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26282         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
26283         "note_list" field will eventually be an rtx_insn *.  To help with
26284         transition, for now, convert from an access macro into a pair of
26285         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
26286         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
26287         used as an lvalue.
26289         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
26290         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
26292         * sel-sched-ir.c (init_bb): Likewise.
26293         (sel_restore_notes): Likewise.
26294         (move_bb_info): Likewise.
26295         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
26296         (SET_BB_NOTE_LIST): New function.
26298 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26300         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
26301         field will eventually be an rtx_insn *.  To help with transition,
26302         for now, convert from an access macro into a pair of functions:
26303         VINSN_INSN_RTX, returning an rtx_insn *, and...
26304         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
26305         is used as an lvalue.
26307         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
26308         SET_VINSN_INSN_RTX where it's used as an lvalue.
26309         (VINSN_INSN_RTX): New function.
26310         (SET_VINSN_INSN_RTX): New function.
26312 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26314         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
26315         eventually be rtx_insn *, but to help with transition, for now,
26316         convert from an access macro into a pair of functions: DEP_PRO
26317         returning an rtx_insn * and...
26318         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
26319         lvalue, returning an rtx&.
26320         (DEP_CON): Analogous changes to DEP_PRO above.
26321         (SET_DEP_CON): Likewise.
26323         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
26324         an lvalue to SET_DEP_CON.
26325         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
26326         (sd_copy_back_deps): Likewise for DEP_CON.
26327         (DEP_PRO): New function, adding a checked cast for now.
26328         (DEP_CON): Likewise.
26329         (SET_DEP_PRO): New function.
26330         (SET_DEP_CON): Likewise.
26332 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
26334         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
26335         (extra_options): Add i386/cygwin.opt.
26336         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
26337         (CPP_SPEC): Accept -pthread.
26338         (LINK_SPEC): Ditto.
26339         (GOMP_SELF_SPECS): Update comment.
26340         * config/i386/cygwin.opt: New file for -pthread flag.
26342 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26344         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
26345         * df.h (DF_REF_INSN): Convert from a macro to a function, so
26346         that we can return an rtx_insn *.
26348 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
26350         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
26351         when building executables, not DLLs.  Add --large-address-aware
26352         under the same conditions.
26353         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
26354         when building executables, not DLLs.  Add --large-address-aware
26355         under the same conditions when using -m32.
26357         * config/i386/cygwin-stdint.h: Throughout, make type
26358         definitions dependent on target architecture, not host.
26360 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26362         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
26363         the return type from rtx to rtx_insn *,  which will enable various
26364         conversions in followup patches.  For now this is is done by a
26365         checked cast.
26366         (NEXT_INSN): Likewise.
26367         (SET_PREV_INSN): Convert to an inline function.  This is intended
26368         for use as an lvalue, and so returns an rtx& to allow in-place
26369         modification.
26370         (SET_NEXT_INSN): Likewise.
26372 2014-07-08  Mark Wielaard  <mjw@redhat.com>
26374         PR debug/59051
26375         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
26377 2014-08-19  Marek Polacek  <polacek@redhat.com>
26379         PR c/61271
26380         * cgraphunit.c (handle_alias_pairs): Fix condition.
26382 2014-08-19  Richard Biener  <rguenther@suse.de>
26384         * gimple-fold.c (fold_gimple_assign): Properly build a
26385         null-pointer constant when devirtualizing addresses.
26387 2014-07-07  Mark Wielaard  <mjw@redhat.com>
26389         * dwarf2out.c (decl_quals): New function.
26390         (modified_type_die): Take one cv_quals argument instead of two,
26391         one for const and one for volatile.
26392         (add_type_attribute): Likewise.
26393         (generic_parameter_die): Call add_type_attribute with one modifier
26394         argument.
26395         (base_type_for_mode): Likewise.
26396         (add_bounds_info): Likewise.
26397         (add_subscript_info): Likewise.
26398         (gen_array_type_die): Likewise.
26399         (gen_descr_array_type_die): Likewise.
26400         (gen_entry_point_die): Likewise.
26401         (gen_enumeration_type_die): Likewise.
26402         (gen_formal_parameter_die): Likewise.
26403         (gen_subprogram_die): Likewise.
26404         (gen_variable_die): Likewise.
26405         (gen_const_die): Likewise.
26406         (gen_field_die): Likewise.
26407         (gen_pointer_type_die): Likewise.
26408         (gen_reference_type_die): Likewise.
26409         (gen_ptr_to_mbr_type_die): Likewise.
26410         (gen_inheritance_die): Likewise.
26411         (gen_subroutine_type_die): Likewise.
26412         (gen_typedef_die): Likewise.
26413         (force_type_die): Likewise.
26415 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26417         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
26418         if unset.
26419         * configure: Regenerate.
26421 2014-08-19  Richard Biener  <rguenther@suse.de>
26423         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
26424         DECL_EXTERNALs in BLOCKs as non-references.
26425         * tree-streamer-out.c (streamer_write_chain): Likewise.
26427 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26428             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26429             Anna Tikhonova  <anna.tikhonova@intel.com>
26430             Ilya Tocar  <ilya.tocar@intel.com>
26431             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26432             Ilya Verbin  <ilya.verbin@intel.com>
26433             Kirill Yukhin  <kirill.yukhin@intel.com>
26434             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26436         * config/i386/sse.md
26437         (define_mode_iterator VI48_AVX512F): Delete.
26438         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
26439         (define_mode_iterator VI2_AVX512VL): Ditto.
26440         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
26441         Delete.
26442         (define_insn
26443         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
26444         New.
26445         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
26446         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
26447         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
26448         with VI48_AVX512F_AVX512VL): New.
26449         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
26450         with VI2_AVX512VL): Ditto.
26452 2014-08-19  Marek Polacek  <polacek@redhat.com>
26454         * doc/invoke.texi: Document -Wc99-c11-compat.
26456 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26458         * rtl.h (PREV_INSN): Split macro in two: the existing one,
26459         for rvalues, and...
26460         (SET_PREV_INSN): New macro, for use as an lvalue.
26461         (NEXT_INSN, SET_NEXT_INSN): Likewise.
26463         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
26464         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
26465         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
26466         (fixup_abnormal_edges): Likewise.
26467         (unlink_insn_chain): Likewise.
26468         (fixup_reorder_chain): Likewise.
26469         (cfg_layout_delete_block): Likewise.
26470         (cfg_layout_merge_blocks): Likewise.
26471         * combine.c (update_cfg_for_uncondjump): Likewise.
26472         * emit-rtl.c (link_insn_into_chain): Likewise.
26473         (remove_insn): Likewise.
26474         (delete_insns_since): Likewise.
26475         (reorder_insns_nobb): Likewise.
26476         (emit_insn_after_1): Likewise.
26477         * final.c (rest_of_clean_state): Likewise.
26478         (final_scan_insn): Likewise.
26479         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
26480         * haifa-sched.c (concat_note_lists): Likewise.
26481         (remove_notes): Likewise.
26482         (restore_other_notes): Likewise.
26483         (move_insn): Likewise.
26484         (unlink_bb_notes): Likewise.
26485         (restore_bb_notes): Likewise.
26486         * jump.c (delete_for_peephole): Likewise.
26487         * optabs.c (emit_libcall_block_1): Likewise.
26488         * reorg.c (emit_delay_sequence): Likewise.
26489         (fill_simple_delay_slots): Likewise.
26490         * sel-sched-ir.c (sel_move_insn): Likewise.
26491         (sel_remove_insn): Likewise.
26492         (get_bb_note_from_pool): Likewise.
26493         * sel-sched.c (move_nop_to_previous_block): Likewise.
26495         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
26496         * config/c6x/c6x.c (gen_one_bundle): Likewise.
26497         (c6x_gen_bundles): Likewise.
26498         (hwloop_optimize): Likewise.
26499         * config/frv/frv.c (frv_function_prologue): Likewise.
26500         (frv_register_nop): Likewise.
26501         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
26502         (ia64_reorg): Likewise.
26503         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
26504         (mep_make_bundle): Likewise.
26505         (mep_bundle_insns): Likewise.
26506         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
26507         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
26508         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
26510 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
26512         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
26513         return type from rtx to rtx_insn *.
26514         (BB_END): Likewise.
26515         (BB_HEADER): Likewise.
26516         (BB_FOOTER): Likewise.
26517         (SET_BB_HEAD): Convert to a function.
26518         (SET_BB_END): Likewise.
26519         (SET_BB_HEADER): Likewise.
26520         (SET_BB_FOOTER): Likewise.
26522         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
26523         Strengthen the return type from rtx to rtx_insn *.  For now, this
26524         is done by adding a checked cast, but this will eventually
26525         become a field lookup.
26526         (BB_END): Likewise.
26527         (BB_HEADER): Likewise.
26528         (BB_FOOTER): Likewise.
26529         (SET_BB_HEAD): New function, from macro of same name.  This is
26530         intended for use as an lvalue, and so returns an rtx& to allow
26531         in-place modification.
26532         (SET_BB_END): Likewise.
26533         (SET_BB_HEADER): Likewise.
26534         (SET_BB_FOOTER): Likewise.
26536 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
26538         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
26539         for rvalues, and...
26540         (SET_BB_HEAD): New macro, for use as a lvalue.
26541         (BB_END, SET_BB_END): Likewise.
26542         (BB_HEADER, SET_BB_HEADER): Likewise.
26543         (BB_FOOTER, SET_BB_FOOTER): Likewise.
26545         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
26546         of BB_* macros into SET_BB_* macros.
26547         (fix_crossing_unconditional_branches): Likewise.
26548         * caller-save.c (save_call_clobbered_regs): Likewise.
26549         (insert_one_insn): Likewise.
26550         * cfgbuild.c (find_bb_boundaries): Likewise.
26551         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
26552         (outgoing_edges_match): Likewise.
26553         (try_optimize_cfg): Likewise.
26554         * cfgexpand.c (expand_gimple_cond): Likewise.
26555         (expand_gimple_tailcall): Likewise.
26556         (expand_gimple_basic_block): Likewise.
26557         (construct_exit_block): Likewise.
26558         * cfgrtl.c (delete_insn): Likewise.
26559         (create_basic_block_structure): Likewise.
26560         (rtl_delete_block): Likewise.
26561         (rtl_split_block): Likewise.
26562         (emit_nop_for_unique_locus_between): Likewise.
26563         (rtl_merge_blocks): Likewise.
26564         (block_label): Likewise.
26565         (try_redirect_by_replacing_jump): Likewise.
26566         (emit_barrier_after_bb): Likewise.
26567         (fixup_abnormal_edges): Likewise.
26568         (record_effective_endpoints): Likewise.
26569         (relink_block_chain): Likewise.
26570         (fixup_reorder_chain): Likewise.
26571         (fixup_fallthru_exit_predecessor): Likewise.
26572         (cfg_layout_duplicate_bb): Likewise.
26573         (cfg_layout_split_block): Likewise.
26574         (cfg_layout_delete_block): Likewise.
26575         (cfg_layout_merge_blocks): Likewise.
26576         * combine.c (update_cfg_for_uncondjump): Likewise.
26577         * emit-rtl.c (add_insn_after): Likewise.
26578         (remove_insn): Likewise.
26579         (reorder_insns): Likewise.
26580         (emit_insn_after_1): Likewise.
26581         * haifa-sched.c (get_ebb_head_tail): Likewise.
26582         (restore_other_notes): Likewise.
26583         (move_insn): Likewise.
26584         (sched_extend_bb): Likewise.
26585         (fix_jump_move): Likewise.
26586         * ifcvt.c (noce_process_if_block): Likewise.
26587         (dead_or_predicable): Likewise.
26588         * ira.c (update_equiv_regs): Likewise.
26589         * reg-stack.c (change_stack): Likewise.
26590         * sel-sched-ir.c (sel_move_insn): Likewise.
26591         * sel-sched.c (move_nop_to_previous_block): Likewise.
26593         * config/c6x/c6x.c (hwloop_optimize): Likewise.
26594         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
26596 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
26598         * rtl.h (for_each_rtx_in_insn): New function.
26599         * rtlanal.c (for_each_rtx_in_insn): Likewise.
26601 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
26603         * coretypes.h (class rtx_insn): Add forward declaration.
26605         * rtl.h: Include is-a.h.
26606         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
26607         workaround to ensure gengtype knows inheritance is occurring,
26608         whilst continuing to use the pre-existing special-casing for
26609         rtx_def.
26610         (class rtx_insn): New subclass of rtx_def, adding the
26611         invariant that we're dealing with something we can sanely use
26612         INSN_UID, NEXT_INSN, PREV_INSN on.
26613         (is_a_helper <rtx_insn *>::test): New.
26614         (is_a_helper <const rtx_insn *>::test): New.
26616 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
26618         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
26620 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
26622         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
26623         comdats as extern.
26625 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
26627         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
26628         to BUILT_IN_UNREACHABLE.
26630 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
26632         PR target/62011
26633         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
26634         New tune flag.
26635         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
26636         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
26637         (ffs<mode>2): Do not expand with tzcnt for
26638         TARGET_AVOID_FALSE_DEP_FOR_BMI.
26639         (ffssi2_no_cmove): Ditto.
26640         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
26641         (ctz<mode>2): New expander.
26642         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
26643         (*ctz<mode>2_falsedep): New insn.
26644         (*ctz<mode>2): Rename from ctz<mode>2.
26645         (clz<mode>2_lzcnt): New expander.
26646         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
26647         (*clz<mode>2_lzcnt_falsedep): New insn.
26648         (*clz<mode>2): Rename from ctz<mode>2.
26649         (popcount<mode>2): New expander.
26650         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
26651         (*popcount<mode>2_falsedep): New insn.
26652         (*popcount<mode>2): Rename from ctz<mode>2.
26653         (*popcount<mode>2_cmp): Remove.
26654         (*popcountsi2_cmp_zext): Ditto.
26656 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
26658         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
26659         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
26660         * config/microblaze/microblaze.h
26661         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
26663 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
26665         PR other/62168
26666         * configure.ac: Set install_gold_as_default to no for
26667         --enable-gold=no.
26668         * configure: Regenerated.
26670 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
26672         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
26673         * config.in: Add undef of HAVE_isl.
26674         * configure: Regenerate.
26675         * configure.ac: Add definition of HAVE_isl.
26676         * graphite-blocking.c: Add checking of HAVE_isl.
26677         * graphite-dependences.c: Likewise.
26678         * graphite-interchange.c: Likewise.
26679         * graphite-isl-ast-to-gimple.c: Likewise.
26680         * graphite-optimize-isl.c: Likewise.
26681         * graphite-poly.c: Likewise.
26682         * graphite-scop-detection.c: Likewise.
26683         * graphite-sese-to-poly.c: Likewise.
26684         * graphite.c: Likewise.
26685         * toplev.c: Replace the checking of HAVE_cloog with the checking
26686         of HAVE_isl.
26688 2014-08-18  Richard Biener  <rguenther@suse.de>
26690         PR tree-optimization/62090
26691         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
26692         (fold_builtin_3): Do not fold snprintf.
26693         (fold_builtin_4): Likewise.
26694         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
26695         moved from builtins.c.
26696         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
26697         (gimple_fold_builtin): Do not fold sprintf here.
26699 2014-08-18  Richard Biener  <rguenther@suse.de>
26701         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
26702         code to ...
26703         (maybe_canonicalize_mem_ref_addr): ... this function.
26704         (fold_stmt_1): Apply it here before all simplification.
26706 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
26708         PR ipa/61800
26709         * cgraph.h (cgraph_node::create_indirect_edge): Add
26710         compute_indirect_info param.
26711         * cgraph.c (cgraph_node::create_indirect_edge): Compute
26712         indirect_info only when it is required.
26713         * cgraphclones.c (cgraph_clone_edge): Do not recompute
26714         indirect_info fore cloned indirect edge.
26716 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26717             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26718             Anna Tikhonova  <anna.tikhonova@intel.com>
26719             Ilya Tocar  <ilya.tocar@intel.com>
26720             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26721             Ilya Verbin  <ilya.verbin@intel.com>
26722             Kirill Yukhin  <kirill.yukhin@intel.com>
26723             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26725         * config/i386/sse.md
26726         (define_mode_iterator VI8_AVX2_AVX512BW): New.
26727         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
26729 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26730             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26731             Anna Tikhonova  <anna.tikhonova@intel.com>
26732             Ilya Tocar  <ilya.tocar@intel.com>
26733             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26734             Ilya Verbin  <ilya.verbin@intel.com>
26735             Kirill Yukhin  <kirill.yukhin@intel.com>
26736             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26738         * config/i386/sse.md
26739         (define_mode_iterator VF1_AVX512VL): New.
26740         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
26741         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
26742         New.
26744 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26745             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26746             Anna Tikhonova  <anna.tikhonova@intel.com>
26747             Ilya Tocar  <ilya.tocar@intel.com>
26748             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26749             Ilya Verbin  <ilya.verbin@intel.com>
26750             Kirill Yukhin  <kirill.yukhin@intel.com>
26751             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26753         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
26754         * config/i386/i386.md
26755         (define_code_iterator any_float): New.
26756         (define_code_attr floatsuffix): New.
26757         * config/i386/sse.md
26758         (define_mode_iterator VF1_128_256VL): New.
26759         (define_mode_iterator VF2_512_256VL): New.
26760         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
26761         TARGET check.
26762         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
26763         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
26764         New.
26765         (define_mode_attr qq2pssuff): New.
26766         (define_mode_attr sselongvecmode): New.
26767         (define_mode_attr sselongvecmodelower): New.
26768         (define_mode_attr sseintvecmode3): New.
26769         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
26770         New.
26771         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
26772         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
26773         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
26774         (define_insn "ufloatv2siv2df2<mask_name>"): New.
26776 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26777             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26778             Anna Tikhonova  <anna.tikhonova@intel.com>
26779             Ilya Tocar  <ilya.tocar@intel.com>
26780             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26781             Ilya Verbin  <ilya.verbin@intel.com>
26782             Kirill Yukhin  <kirill.yukhin@intel.com>
26783             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26785         * config/i386/sse.md
26786         (define_mode_iterator VF2_AVX512VL): New.
26787         (define_mode_attr sseintvecmode2): New.
26788         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
26789         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
26790         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
26791         (define_insn
26792         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
26793         Ditto.
26794         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
26795         Ditto.
26796         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
26797         Ditto.
26799 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26800             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26801             Anna Tikhonova  <anna.tikhonova@intel.com>
26802             Ilya Tocar  <ilya.tocar@intel.com>
26803             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26804             Ilya Verbin  <ilya.verbin@intel.com>
26805             Kirill Yukhin  <kirill.yukhin@intel.com>
26806             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26808         * config/i386/i386.md
26809         (define_insn "*movoi_internal_avx"): Add evex version.
26810         (define_insn "*movti_internal"): Ditto.
26812 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26813             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26814             Anna Tikhonova  <anna.tikhonova@intel.com>
26815             Ilya Tocar  <ilya.tocar@intel.com>
26816             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26817             Ilya Verbin  <ilya.verbin@intel.com>
26818             Kirill Yukhin  <kirill.yukhin@intel.com>
26819             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26821         * config/i386/i386.md
26822         (define_attr "isa"): Add avx512dq, noavx512dq.
26823         (define_attr "enabled"): Ditto.
26824         * config/i386/sse.md
26825         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
26827 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26828             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26829             Anna Tikhonova  <anna.tikhonova@intel.com>
26830             Ilya Tocar  <ilya.tocar@intel.com>
26831             Andrey Turetskiy  <andrey.turetskiy@intel.com>
26832             Ilya Verbin  <ilya.verbin@intel.com>
26833             Kirill Yukhin  <kirill.yukhin@intel.com>
26834             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26836         * config/i386/i386.c
26837         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
26838         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
26839         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
26840         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
26841         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
26842         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
26843         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
26844         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
26845         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
26846         * config/i386/sse.md
26847         (define_mode_iterator VMOVE): Allow V4TI mode.
26848         (define_mode_iterator V_AVX512VL): New.
26849         (define_mode_iterator V): New handling for AVX512VL.
26850         (define_insn "avx512f_load<mode>_mask"): Delete.
26851         (define_insn "<avx512>_load<mode>_mask"): New.
26852         (define_insn "avx512f_store<mode>_mask"): Delete.
26853         (define_insn "<avx512>_store<mode>_mask"): New.
26856 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
26858         PR sanitizer/62089
26859         * asan.c (instrument_derefs): Fix bitfield check.
26861 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
26863         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
26864         * config/rs6000/htm.md (ttest): Remove clobber.
26865         * config/rs6000/predicates.md (any_mask_operand): New predicate.
26866         (and_operand): Reformat.
26867         (and_2rld_operand): New predicate.
26868         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
26869         parameter.
26870         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
26871         parameter.  Handle AND directly.
26872         (rs6000_split_logical_di): Remove last parameter.
26873         (rs6000_split_logical): Remove last parameter.  Remove obsolete
26874         comment.
26875         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
26876         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
26877         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
26878         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
26879         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
26880         and 5 anonymous splitters):  Delete.
26881         (and<mode>3): New expander.
26882         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
26883         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
26884         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
26885         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
26886         (floatdisf2_internal1): Remove clobbers.
26887         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
26888         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
26889         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
26890         (and<mode>3 for BOOL_128): Remove clobber.
26891         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
26892         rs6000_split_logical.
26893         (*bool<mode>3_internal for BOOL_128): Adjust call of
26894         rs6000_split_logical.
26895         (*boolc<mode>3_internal1 for BOOL_128,
26896         *boolc<mode>3_internal2 for BOOL_128,
26897         *boolcc<mode>3_internal1 for BOOL_128,
26898         *boolcc<mode>3_internal2 for BOOL_128,
26899         *eqv<mode>3_internal1 for BOOL_128,
26900         *eqv<mode>3_internal2 for BOOL_128,
26901         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
26902         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
26903         clobber.
26904         (*vec_reload_and_reg_<mptrsize>): Delete.
26906 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
26908         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
26909         and split, *boolccsi3_internal3 and split): Delete.
26910         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
26911         *boolccdi3_internal3 and split): Delete.
26912         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
26913         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
26915 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
26917         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
26918         and split, *boolcsi3_internal3 and split): Delete.
26919         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
26920         *boolcdi3_internal3 and split): Delete.
26921         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
26923 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
26925         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
26926         <'u'>: Also support printing the low-order 16 bits.
26927         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
26928         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
26929         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
26930         *booldi3_internal3 and split): Delete.
26931         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
26932         *bool<mode>3_dot2): New.
26933         (two anonymous define_splits for non_logical_cint_operand): Merge.
26935 2014-08-17  Marek Polacek  <polacek@redhat.com>
26936             Manuel López-Ibáñez  <manu@gcc.gnu.org>
26938         PR c/62059
26939         * diagnostic.c (adjust_line): Add gcc_checking_assert.
26940         (diagnostic_show_locus): Don't print caret diagnostic
26941         if a column is larger than the line_width.
26943 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
26945         * common.opt: Make the ISL AST generator to be the main code generator
26946         of Graphite.
26948 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
26950         * wide-int.h (generic_wide_int): Declare as class instead of struct.
26952 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
26954         PR target/61641
26955         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
26956         Declare.
26957         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
26958         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
26959         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
26960         Define.
26961         * config/pa/pa.md (begin_brtab): Delete insn.
26962         (end_brtab): Likewise.
26964 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26966         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
26968 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
26970         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
26971         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
26972         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
26973         (get_dynamic_type): Remove.
26974         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
26975         (clear_speculation): Bring to ipa-deivrt.h
26976         (get_class_context): Rename to ...
26977         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
26978         (contains_type_p): Update.
26979         (get_dynamic_type): Rename to ...
26980         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
26981         (possible_polymorphic_call_targets): UPdate.
26982         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
26983         * ipa-prop.c (ipa_analyze_call_uses): Update.
26985 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
26987         * doc/invoke.texi (SH options): Document missing processor variant
26988         options.  Remove references to Hitachi.  Undocument deprecated mspace
26989         option.
26991 2014-08-15  Jason Merrill  <jason@redhat.com>
26993         * tree.c (type_hash_canon): Uncomment assert.
26995 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26997         * input.h (in_system_header_at): Add comment.
26999 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27001         PR fortran/44054
27002         * diagnostic.c (build_message_string): Make it extern.
27003         * diagnostic.h (build_message_string): Make it extern.
27005 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
27007         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
27008         load/store from/to non-floating class pseudo.
27010 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27012         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
27014 2014-08-15  Richard Biener  <rguenther@suse.de>
27016         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
27017         (get_constraint_for_ssa_var): Remove dead code.
27018         (get_constraint_for_1): Adjust.
27019         (find_what_var_points_to): Likewise.
27020         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
27022 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
27024         PR target/61878
27025         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
27026         (_mm512_mask_cmpge_epu32_mask): Ditto.
27027         (_mm512_cmpge_epu32_mask): Ditto.
27028         (_mm512_mask_cmpge_epi64_mask): Ditto.
27029         (_mm512_cmpge_epi64_mask): Ditto.
27030         (_mm512_mask_cmpge_epu64_mask): Ditto.
27031         (_mm512_cmpge_epu64_mask): Ditto.
27032         (_mm512_mask_cmple_epi32_mask): Ditto.
27033         (_mm512_cmple_epi32_mask): Ditto.
27034         (_mm512_mask_cmple_epu32_mask): Ditto.
27035         (_mm512_cmple_epu32_mask): Ditto.
27036         (_mm512_mask_cmple_epi64_mask): Ditto.
27037         (_mm512_cmple_epi64_mask): Ditto.
27038         (_mm512_mask_cmple_epu64_mask): Ditto.
27039         (_mm512_cmple_epu64_mask): Ditto.
27040         (_mm512_mask_cmplt_epi32_mask): Ditto.
27041         (_mm512_cmplt_epi32_mask): Ditto.
27042         (_mm512_mask_cmplt_epu32_mask): Ditto.
27043         (_mm512_cmplt_epu32_mask): Ditto.
27044         (_mm512_mask_cmplt_epi64_mask): Ditto.
27045         (_mm512_cmplt_epi64_mask): Ditto.
27046         (_mm512_mask_cmplt_epu64_mask): Ditto.
27047         (_mm512_cmplt_epu64_mask): Ditto.
27048         (_mm512_mask_cmpneq_epi32_mask): Ditto.
27049         (_mm512_mask_cmpneq_epu32_mask): Ditto.
27050         (_mm512_cmpneq_epu32_mask): Ditto.
27051         (_mm512_mask_cmpneq_epi64_mask): Ditto.
27052         (_mm512_cmpneq_epi64_mask): Ditto.
27053         (_mm512_mask_cmpneq_epu64_mask): Ditto.
27054         (_mm512_cmpneq_epu64_mask): Ditto.
27055         (_mm512_castpd_ps): Ditto.
27056         (_mm512_castpd_si512): Ditto.
27057         (_mm512_castps_pd): Ditto.
27058         (_mm512_castps_si512): Ditto.
27059         (_mm512_castsi512_ps): Ditto.
27060         (_mm512_castsi512_pd): Ditto.
27061         (_mm512_castpd512_pd128): Ditto.
27062         (_mm512_castps512_ps128): Ditto.
27063         (_mm512_castsi512_si128): Ditto.
27064         (_mm512_castpd512_pd256): Ditto.
27065         (_mm512_castps512_ps256): Ditto.
27066         (_mm512_castsi512_si256): Ditto.
27067         (_mm512_castpd128_pd512): Ditto.
27068         (_mm512_castps128_ps512): Ditto.
27069         (_mm512_castsi128_si512): Ditto.
27070         (_mm512_castpd256_pd512): Ditto.
27071         (_mm512_castps256_ps512): Ditto.
27072         (_mm512_castsi256_si512): Ditto.
27073         (_mm512_cmpeq_epu32_mask): Ditto.
27074         (_mm512_mask_cmpeq_epu32_mask): Ditto.
27075         (_mm512_mask_cmpeq_epu64_mask): Ditto.
27076         (_mm512_cmpeq_epu64_mask): Ditto.
27077         (_mm512_cmpgt_epu32_mask): Ditto.
27078         (_mm512_mask_cmpgt_epu32_mask): Ditto.
27079         (_mm512_mask_cmpgt_epu64_mask): Ditto.
27080         (_mm512_cmpgt_epu64_mask): Ditto.
27081         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
27082         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
27083         * config/i386/i386.c (enum ix86_builtins): Add
27084         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
27085         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
27086         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
27087         (bdesc_args): Add __builtin_ia32_si512_256si,
27088         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
27089         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
27090         __builtin_ia32_pd512_pd.
27091         (ix86_expand_args_builtin): Handle new FTYPEs.
27092         * config/i386/sse.md (castmode): Add 512-bit modes.
27093         (AVX512MODE2P): New.
27094         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
27095         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
27097 2014-08-15  Richard Biener  <rguenther@suse.de>
27099         * fold-const.c (tree_swap_operands_p): Put all constants
27100         last, also strip sign-changing NOPs when considering further
27101         canonicalization.  Canonicalize also when optimizing for size.
27103 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27105         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
27106         one_match > zero_match case to just before simple_sequence.
27108 2014-08-15  Richard Biener  <rguenther@suse.de>
27110         * data-streamer.h (streamer_string_index, string_for_index):
27111         Remove.
27112         * data-streamer-out.c (streamer_string_index): Make static.
27113         * data-streamer-in.c (string_for_index): Likewise.
27114         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
27115         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
27117 2014-08-15  Richard Biener  <rguenther@suse.de>
27119         PR tree-optimization/62031
27120         * tree-data-ref.c (dr_analyze_indices): Do not set
27121         DR_UNCONSTRAINED_BASE.
27122         (dr_may_alias_p): All indirect accesses have to go the
27123         formerly DR_UNCONSTRAINED_BASE path.
27124         * tree-data-ref.h (struct indices): Remove
27125         unconstrained_base member.
27126         (DR_UNCONSTRAINED_BASE): Remove.
27128 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
27130         PR middle-end/62092
27131         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
27132         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
27133         in OMP_CLAUSE_MAP in some outer target region.
27135 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
27137         * tree-ssa-loop-ivopts.c (ivopts_data): New field
27138         name_expansion_cache.
27139         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
27140         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
27141         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
27142         (difference_cannot_overflow_p): New parameter.  Use affine
27143         expansion for equality check.
27144         (iv_elimination_compare_lt): Pass new argument.
27146 2014-08-14  DJ Delorie  <dj@redhat.com>
27148         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
27149         variables to the accumulator.
27151         * config/rl78/predicates.md (rl78_near_mem_operand): New.
27152         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
27153         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
27154         with far-far moves.
27156         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
27157         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
27158         (umulqihi3_virt): Likewise.
27159         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
27160         (umulqihi3_real): Likewise.
27162         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
27164 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
27166         PR tree-optimization/62091
27167         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
27168         function_entry_reached.
27169         (walk_aliased_vdefs): Clear it here.
27170         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
27172 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
27174         * ipa-utils.h (compare_virtual_tables): Declare.
27175         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
27177 2014-08-14  Marek Polacek  <polacek@redhat.com>
27179         DR 458
27180         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
27181         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
27183 2014-08-14  Tom de Vries  <tom@codesourcery.com>
27185         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
27187 2014-08-14  Tom de Vries  <tom@codesourcery.com>
27189         PR rtl-optimization/62004
27190         PR rtl-optimization/62030
27191         * ifcvt.c (rtx_interchangeable_p): New function.
27192         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
27193         * emit-rtl.h (mem_attrs_eq_p): Declare.
27195 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
27197         * graphite-scop-detection.c:
27198         Add inclusion of cp-tree.h.
27199         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
27200         in case they are pointers to object types
27202 2014-08-14  Richard Biener  <rguenther@suse.de>
27204         * BASE-VER: Change to 5.0.0
27206 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27207             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27208             Anna Tikhonova  <anna.tikhonova@intel.com>
27209             Ilya Tocar  <ilya.tocar@intel.com>
27210             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27211             Ilya Verbin  <ilya.verbin@intel.com>
27212             Kirill Yukhin  <kirill.yukhin@intel.com>
27213             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27215         * config/i386/sse.md (define_mode_attr avx512): New.
27216         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
27217         V4DI modes.
27218         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
27219         (define_mode_attr ssse3_avx2): Ditto.
27220         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
27221         (define_mode_attr avx2_avx512bw): New.
27222         (define_mode_attr ssedoublemodelower): New.
27223         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
27224         V32HI, V64QI modes.
27225         (define_mode_attr ssebytemode): Allow V8DI modes.
27226         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
27227         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
27228         (define_mode_attr ssePSmode2): New.
27229         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
27230         V16HI, V32HI modes.
27231         (define_mode_attr dbpsadbwmode): New.
27232         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
27233         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
27234         (vi8_sse4_1_avx2_avx512): New.
27235         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
27236         mode attribute.
27237         (define_mode_attr blendbits): Move before its immediate use.
27239 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27240             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27241             Anna Tikhonova  <anna.tikhonova@intel.com>
27242             Ilya Tocar  <ilya.tocar@intel.com>
27243             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27244             Ilya Verbin  <ilya.verbin@intel.com>
27245             Kirill Yukhin  <kirill.yukhin@intel.com>
27246             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27248         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
27249         * config/i386/subst.md
27250         (define_mode_iterator SUBST_V): Update.
27251         (define_mode_iterator SUBST_A): Ditto.
27252         (define_subst_attr "mask_operand7"): New.
27253         (define_subst_attr "mask_operand10"): New.
27254         (define_subst_attr "mask_operand_arg34") : New.
27255         (define_subst_attr "mask_expand_op3"): New.
27256         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
27257         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
27258         (define_subst_attr "mask_avx512vl_condition"): New.
27259         (define_subst_attr "round_mask_operand4"): Ditto.
27260         (define_subst_attr "round_mask_scalar_op3"): Delete.
27261         (define_subst_attr "round_mask_op4"): New.
27262         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
27263         V16SImode.
27264         (define_subst_attr "round_modev8sf_condition"): New.
27265         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
27266         <MODE>mode.
27267         (define_subst_attr "round_saeonly_mask_operand4"): New.
27268         (define_subst_attr "round_saeonly_mask_op4"): New.
27269         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
27270         V8DImode, V16SImode.
27271         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
27272         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
27273         (define_subst_attr "mask_expand4_args"): New.
27274         (define_subst "mask_expand4"): New.
27276 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27278             Anna Tikhonova  <anna.tikhonova@intel.com>
27279             Ilya Tocar  <ilya.tocar@intel.com>
27280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27281             Ilya Verbin  <ilya.verbin@intel.com>
27282             Kirill Yukhin  <kirill.yukhin@intel.com>
27283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27285         * config/i386/i386.md
27286         (define_attr "isa"): Add avx512bw,noavx512bw.
27287         (define_attr "enabled"): Ditto.
27288         (define_split): Add 32/64-bit mask logic.
27289         (define_insn "*k<logic>qi"): New.
27290         (define_insn "*k<logic>hi"): New.
27291         (define_insn "*anddi_1"): Add mask version.
27292         (define_insn "*andsi_1"): Ditto.
27293         (define_insn "*<code><mode>_1"): Ditto.
27294         (define_insn "*<code>hi_1"): Ditto.
27295         (define_insn "kxnor<mode>"): New.
27296         (define_insn "kunpcksi"): New.
27297         (define_insn "kunpckdi"): New.
27298         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
27299         (define_insn "*one_cmplhi2_1"): Ditto.
27301 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27302             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27303             Anna Tikhonova  <anna.tikhonova@intel.com>
27304             Ilya Tocar  <ilya.tocar@intel.com>
27305             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27306             Ilya Verbin  <ilya.verbin@intel.com>
27307             Kirill Yukhin  <kirill.yukhin@intel.com>
27308             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27310         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
27311         V32HImode.
27313 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27314             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27315             Anna Tikhonova  <anna.tikhonova@intel.com>
27316             Ilya Tocar  <ilya.tocar@intel.com>
27317             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27318             Ilya Verbin  <ilya.verbin@intel.com>
27319             Kirill Yukhin  <kirill.yukhin@intel.com>
27320             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27322         * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
27323         registers.
27324         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
27325         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
27326         xmm/ymm16+ when availble.
27327         * config/i386/i386.h
27328         (HARD_REGNO_NREGS): Add mask regs.
27329         (VALID_AVX512F_REG_MODE): Ditto.
27330         (VALID_AVX512F_REG_MODE) : Define.
27331         (VALID_MASK_AVX512BW_MODE): Ditto.
27332         (reg_class) (MASK_REG_P(X)): Define.
27333         * config/i386/i386.md: Do not split long moves with mask register,
27334         use kmovb if avx512bw is availible.
27335         (movdi_internal): Handle mask registers.
27337 2014-08-14  Richard Biener  <rguenther@suse.de>
27339         PR tree-optimization/62081
27340         * tree-ssa-loop.c (pass_fix_loops): New pass.
27341         (pass_tree_loop::gate):  Do not fixup loops here.
27342         * tree-pass.h (make_pass_fix_loops): Declare.
27343         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
27345 2014-08-14  Richard Biener  <rguenther@suse.de>
27347         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
27348         (type_hash_canon): ... this and avoid 2nd lookup for the add.
27350 2014-08-14  Richard Biener  <rguenther@suse.de>
27352         PR tree-optimization/62090
27353         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
27354         (fold_builtin_2): Do not fold sprintf.
27355         (fold_builtin_3): Likewise.
27356         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
27357         moved from builtins.c.
27358         (gimple_fold_builtin): Fold sprintf.
27360 2014-08-14  Richard Biener  <rguenther@suse.de>
27362         PR rtl-optimization/62079
27363         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
27364         run cleanup_cfg.
27366 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
27368         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
27369         current_function_decl.
27371 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
27373         * cgraph.c (cgraph_node::function_symbol): Fix wrong
27374         cgraph_function_node to cgraph_node::function_symbol
27375         refactoring.
27377 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
27379         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
27380         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
27382 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
27384         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
27385         warning.
27387 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
27389         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
27390         generator.
27392 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
27394         PR target/62025
27395         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
27396         any registers that are used in mem_insn.
27398 2014-08-12  Steve Ellcey  <sellcey@mips.com>
27400         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
27402 2014-08-12  Steve Ellcey  <sellcey@mips.com>
27404         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
27405         (MULTILIB_DIRNAMES): Ditto.
27406         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
27407         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
27408         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
27409         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
27410         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
27411         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
27413 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27415         PR target/61413
27416         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
27417         of __ARM_SIZEOF_WCHAR_T.
27419 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27421         PR target/62098
27422         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
27423         Remove unnecessary attributes.
27425 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
27427         * internal-fn.c (init_internal_fns): Fix off-by-one.
27429 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27430             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27431             Anna Tikhonova  <anna.tikhonova@intel.com>
27432             Ilya Tocar  <ilya.tocar@intel.com>
27433             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27434             Ilya Verbin  <ilya.verbin@intel.com>
27435             Kirill Yukhin  <kirill.yukhin@intel.com>
27436             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27438         * config/i386/i386.c (standard_sse_constant_opcode): Use
27439         vpxord/vpternlog if avx512 is availible.
27441 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27443         PR middle-end/62103
27444         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
27445         bitfields, that is when size doesn't match the size of type or the
27446         size of the constructor.
27448 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27450         * config/rs6000/constraints.md (wh constraint): New constraint,
27451         for FP registers if direct move is available.
27452         (wi constraint): New constraint, for VSX/FP registers that can
27453         handle 64-bit integers.
27454         (wj constraint): New constraint for VSX/FP registers that can
27455         handle 64-bit integers for direct moves.
27456         (wk constraint): New constraint for VSX/FP registers that can
27457         handle 64-bit doubles for direct moves.
27458         (wy constraint): Make documentation match implementation.
27460         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
27461         scalar_in_vmx_p field to simplify tests of whether SFmode or
27462         DFmode can go in the Altivec registers.
27463         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
27464         (rs6000_setup_reg_addr_masks): Likewise.
27465         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
27466         field, and wh/wi/wj/wk constraints.
27467         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
27468         the wh/wi/wj/wk constraints.
27469         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
27470         upper registers, prefer VSX registers unless the operation is a
27471         memory operation with REG+OFFSET addressing.
27473         * config/rs6000/vsx.md (VSr mode attribute): Add support for
27474         DImode.  Change SFmode to use ww constraint instead of d to allow
27475         SF registers in the upper registers.
27476         (VSr2): Likewise.
27477         (VSr3): Likewise.
27478         (VSr5): Fix thinko in comment.
27479         (VSa): New mode attribute that is an alternative to wa, that
27480         returns the VSX register class that a mode can go in, but may not
27481         be the preferred register class.
27482         (VS_64dm): New mode attribute for appropriate register classes for
27483         referencing 64-bit elements of vectors for direct moves and normal
27484         moves.
27485         (VS_64reg): Likewise.
27486         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
27487         register allocator to only registers the data type can handle.
27488         (vsx_le_perm_load_<mode>): Likewise.
27489         (vsx_le_perm_store_<mode>): Likewise.
27490         (vsx_xxpermdi2_le_<mode>): Likewise.
27491         (vsx_xxpermdi4_le_<mode>): Likewise.
27492         (vsx_lxvd2x2_le_<mode>): Likewise.
27493         (vsx_lxvd2x4_le_<mode>): Likewise.
27494         (vsx_stxvd2x2_le_<mode>): Likewise.
27495         (vsx_add<mode>3): Likewise.
27496         (vsx_sub<mode>3): Likewise.
27497         (vsx_mul<mode>3): Likewise.
27498         (vsx_div<mode>3): Likewise.
27499         (vsx_tdiv<mode>3_internal): Likewise.
27500         (vsx_fre<mode>2): Likewise.
27501         (vsx_neg<mode>2): Likewise.
27502         (vsx_abs<mode>2): Likewise.
27503         (vsx_nabs<mode>2): Likewise.
27504         (vsx_smax<mode>3): Likewise.
27505         (vsx_smin<mode>3): Likewise.
27506         (vsx_sqrt<mode>2): Likewise.
27507         (vsx_rsqrte<mode>2): Likewise.
27508         (vsx_tsqrt<mode>2_internal): Likewise.
27509         (vsx_fms<mode>4): Likewise.
27510         (vsx_nfma<mode>4): Likewise.
27511         (vsx_eq<mode>): Likewise.
27512         (vsx_gt<mode>): Likewise.
27513         (vsx_ge<mode>): Likewise.
27514         (vsx_eq<mode>_p): Likewise.
27515         (vsx_gt<mode>_p): Likewise.
27516         (vsx_ge<mode>_p): Likewise.
27517         (vsx_xxsel<mode>): Likewise.
27518         (vsx_xxsel<mode>_uns): Likewise.
27519         (vsx_copysign<mode>3): Likewise.
27520         (vsx_float<VSi><mode>2): Likewise.
27521         (vsx_floatuns<VSi><mode>2): Likewise.
27522         (vsx_fix_trunc<mode><VSi>2): Likewise.
27523         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
27524         (vsx_x<VSv>r<VSs>i): Likewise.
27525         (vsx_x<VSv>r<VSs>ic): Likewise.
27526         (vsx_btrunc<mode>2): Likewise.
27527         (vsx_b2trunc<mode>2): Likewise.
27528         (vsx_floor<mode>2): Likewise.
27529         (vsx_ceil<mode>2): Likewise.
27530         (vsx_<VS_spdp_insn>): Likewise.
27531         (vsx_xscvspdp): Likewise.
27532         (vsx_xvcvspuxds): Likewise.
27533         (vsx_float_fix_<mode>2): Likewise.
27534         (vsx_set_<mode>): Likewise.
27535         (vsx_extract_<mode>_internal1): Likewise.
27536         (vsx_extract_<mode>_internal2): Likewise.
27537         (vsx_extract_<mode>_load): Likewise.
27538         (vsx_extract_<mode>_store): Likewise.
27539         (vsx_splat_<mode>): Likewise.
27540         (vsx_xxspltw_<mode>): Likewise.
27541         (vsx_xxspltw_<mode>_direct): Likewise.
27542         (vsx_xxmrghw_<mode>): Likewise.
27543         (vsx_xxmrglw_<mode>): Likewise.
27544         (vsx_xxsldwi_<mode>): Likewise.
27545         (vsx_xscvdpspn): Tighten constraints to only use register classes
27546         the types use.
27547         (vsx_xscvspdpn): Likewise.
27548         (vsx_xscvdpspn_scalar): Likewise.
27550         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
27551         wj, and wk constraints.
27552         (GPR_REG_CLASS_P): New helper macro for register classes targeting
27553         general purpose registers.
27555         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
27556         direct moves.
27557         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
27558         DImode instead of wm.  Use wk constraint for direct move of DFmode
27559         instead of wm.
27560         (extendsidi2_lfiwax): Likewise.
27561         (lfiwax): Likewise.
27562         (lfiwzx): Likewise.
27563         (movdi_internal64): Likewise.
27565         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
27566         wk constraints. Make the wy constraint documentation match them
27567         implementation.
27569 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
27571         Replacement of isl_int by isl_val
27572         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
27573         (compute_bounds_for_param): use isl_val instead of isl_int
27574         (compute_bounds_for_loop): likewise
27575         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
27576         (build_linearized_memory_access): use isl_val instead of isl_int
27577         (pdr_stride_in_loop): likewise
27578         * graphite-optimize-isl.c:
27579         (getPrevectorMap): use isl_val instead of isl_int
27580         * graphite-poly.c:
27581         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
27582         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
27583         (extern the_isl_ctx): declare
27584         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
27585         (extract_affine_gmp): likewise
27586         (wrap): likewise
27587         (build_loop_iteration_domains): likewise
27588         (add_param_constraints): likewise
27590 2014-08-11  Richard Biener  <rguenther@suse.de>
27592         PR tree-optimization/62075
27593         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
27594         handle uses in patterns.
27596 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27597             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27598             Anna Tikhonova  <anna.tikhonova@intel.com>
27599             Ilya Tocar  <ilya.tocar@intel.com>
27600             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27601             Ilya Verbin  <ilya.verbin@intel.com>
27602             Kirill Yukhin  <kirill.yukhin@intel.com>
27603             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27605         * common/config/i386/i386-common.c
27606         (OPTION_MASK_ISA_AVX512VL_SET): Define.
27607         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
27608         (ix86_handle_option): Handle OPT_mavx512vl.
27609         * config/i386/cpuid.h (bit_AVX512VL): Define.
27610         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
27611         set -mavx512vl accordingly.
27612         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27613         OPTION_MASK_ISA_AVX512VL.
27614         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
27615         (ix86_option_override_internal): Define PTA_AVX512VL, handle
27616         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
27617         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
27618         * config/i386/i386.h (TARGET_AVX512VL): Define.
27619         (TARGET_AVX512VL_P(x)): Ditto.
27620         * config/i386/i386.opt: Add mavx512vl.
27622 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
27624         PR tree-optimization/62073
27625         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
27626         a basic block.
27628 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27629             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27630             Anna Tikhonova  <anna.tikhonova@intel.com>
27631             Ilya Tocar  <ilya.tocar@intel.com>
27632             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27633             Ilya Verbin  <ilya.verbin@intel.com>
27634             Kirill Yukhin  <kirill.yukhin@intel.com>
27635             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27637         * common/config/i386/i386-common.c
27638         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
27639         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
27640         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
27641         (ix86_handle_option): Handle OPT_mavx512bw.
27642         * config/i386/cpuid.h (bit_AVX512BW): Define.
27643         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
27644         set -mavx512bw accordingly.
27645         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27646         OPTION_MASK_ISA_AVX512BW.
27647         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
27648         (ix86_option_override_internal): Define PTA_AVX512BW, handle
27649         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
27650         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
27651         * config/i386/i386.h (TARGET_AVX512BW): Define.
27652         (TARGET_AVX512BW_P(x)): Ditto.
27653         * config/i386/i386.opt: Add mavx512bw.
27655 2014-08-11  Richard Biener  <rguenther@suse.de>
27657         PR tree-optimization/62070
27658         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
27659         Remove SSA checking.
27661 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
27663         * asan.c (asan_check_flags): New enum.
27664         (build_check_stmt_with_calls): Removed function.
27665         (build_check_stmt): Split inlining logic to
27666         asan_expand_check_ifn.
27667         (instrument_derefs): Rename parameter.
27668         (instrument_mem_region_access): Rename parameter.
27669         (instrument_strlen_call): Likewise.
27670         (asan_expand_check_ifn): New function.
27671         (asan_instrument): Remove old code.
27672         (pass_sanopt::execute): Change handling of
27673         asan-instrumentation-with-call-threshold.
27674         (asan_clear_shadow): Fix formatting.
27675         (asan_function_start): Likewise.
27676         (asan_emit_stack_protection): Likewise.
27677         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
27678         Update description.
27679         * internal-fn.c (expand_ASAN_CHECK): New function.
27680         * internal-fn.def (ASAN_CHECK): New internal function.
27681         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
27682         Update description.
27683         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
27684         * tree.c: Small comment fix.
27686 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
27688         * gimple.c (gimple_call_fnspec): Support internal functions.
27689         (gimple_call_return_flags): Use const.
27690         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
27691         * internal-fn.def: Add fnspec information.
27692         * internal-fn.h (internal_fn_fnspec): New function.
27693         (init_internal_fns): Declare new function.
27694         * internal-fn.c (internal_fn_fnspec_array): New global variable.
27695         (init_internal_fns): New function.
27696         * tree-core.h: Update macro call.
27697         * tree.c (build_common_builtin_nodes): Initialize internal fns.
27699 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
27701         * lto-streamer.h (struct output_block::symbol): Change from
27702         struct symtab_node to plain symtab_node.
27703         (referenced_from_this_partition_p): Change first parameter
27704         from struct symtab_node to plain symtab_node.
27706 2014-08-10  Marek Polacek  <polacek@redhat.com>
27708         PR c/51849
27709         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
27711 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
27713         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
27714         DECL correctly; do not give up on types in static storage.
27716 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
27718         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
27720 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
27722         * graphite-isl-ast-to-gimple.c:
27723         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
27725         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
27727 2014-08-08  Guozhi Wei  <carrot@google.com>
27729         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
27731 2014-08-08  Cary Coutant  <ccoutant@google.com>
27733         * dwarf2out.c (get_skeleton_type_unit): Remove.
27734         (output_skeleton_debug_sections): Remove skeleton type units.
27735         (output_comdat_type_unit): Likewise.
27736         (dwarf2out_finish): Likewise.
27738 2014-08-07  Yi Yang  <ahyangyi@google.com>
27740         * predict.c (expr_expected_value_1): Remove the redundant assignment.
27742 2014-08-08  Richard Biener  <rguenther@suse.de>
27744         * lto-streamer.h (struct lto_input_block): Make it a class
27745         with a constructor.
27746         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
27747         (struct lto_function_header, struct lto_simple_header,
27748         struct lto_simple_header_with_strings,
27749         struct lto_decl_header, struct lto_function_header): Make
27750         a simple inheritance hieararchy.  Remove unused fields.
27751         (struct lto_asm_header): Remove.
27752         * lto-streamer-out.c (produce_asm): Adjust.
27753         (lto_output_toplevel_asms): Likewise.
27754         (produce_asm_for_decls): Likewise.
27755         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
27756         * data-streamer-in.c (string_for_index): Likewise.
27757         * ipa-inline-analysis.c (inline_read_section): Likewise.
27758         * ipa-prop.c (ipa_prop_read_section): Likewise.
27759         (read_replacements_section): Likewise.
27760         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
27761         * lto-section-in.c (lto_create_simple_input_block): Likewise.
27762         (lto_destroy_simple_input_block): Likewise.
27763         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
27764         (lto_input_toplevel_asms): Likewise.
27766 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
27767             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
27768             Anna Tikhonova  <anna.tikhonova@intel.com>
27769             Ilya Tocar  <ilya.tocar@intel.com>
27770             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27771             Ilya Verbin  <ilya.verbin@intel.com>
27772             Kirill Yukhin  <kirill.yukhin@intel.com>
27773             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
27775         * common/config/i386/i386-common.c
27776         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
27777         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
27778         (ix86_handle_option): Handle OPT_mavx512dq.
27779         * config/i386/cpuid.h (bit_AVX512DQ): Define.
27780         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
27781         set -mavx512dq accordingly.
27782         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27783         OPTION_MASK_ISA_AVX512DQ.
27784         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
27785         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
27786         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
27787         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
27788         * config/i386/i386.h (TARGET_AVX512DQ): Define.
27789         (TARGET_AVX512DQ_P(x)): Ditto.
27790         * config/i386/i386.opt: Add mavx512dq.
27792 2014-08-08  Richard Biener  <rguenther@suse.de>
27794         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
27795         target_percent, target_percent_s): Export.
27796         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
27797         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
27798         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
27799         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
27800         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
27801         Move to gimple-fold.c.
27802         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
27803         strcat and strcpy.
27804         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
27805         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
27806         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
27807         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
27808         (rewrite_call_expr_array): Remove.
27809         (fold_builtin_sprintf_chk): Likewise.
27810         (fold_builtin_snprintf_chk): Likewise.
27811         (fold_builtin_varargs): Remove handling of sprintf_chk,
27812         vsprintf_chk, snprintf_chk and vsnprintf_chk.
27813         (gimple_fold_builtin_sprintf_chk): Remove.
27814         (gimple_fold_builtin_snprintf_chk): Likewise.
27815         (gimple_fold_builtin_varargs): Likewise.
27816         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
27817         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
27818         * gimple.c (gimple_seq_add_seq_without_update): New function.
27819         * gimple.h (gimple_seq_add_seq_without_update): Declare.
27820         * gimple-fold.c: Include output.h.
27821         (gsi_replace_with_seq_vops): New function, split out from ...
27822         (gimplify_and_update_call_from_tree): ... here.
27823         (replace_call_with_value): New function.
27824         (replace_call_with_call_and_fold): Likewise.
27825         (var_decl_component_p): Moved from builtins.c.
27826         (gimple_fold_builtin_memory_op): Moved from builtins.c
27827         fold_builtin_memory_op and rewritten to GIMPLE.
27828         (gimple_fold_builtin_memset): Likewise.
27829         (gimple_fold_builtin_strcpy): Likewise.
27830         (gimple_fold_builtin_strncpy): Likewise.
27831         (gimple_fold_builtin_strcat): Likewise.
27832         (gimple_fold_builtin_fputs): Likewise.
27833         (gimple_fold_builtin_memory_chk): Likewise.
27834         (gimple_fold_builtin_stxcpy_chk): Likewise.
27835         (gimple_fold_builtin_stxncpy_chk): Likewise.
27836         (gimple_fold_builtin_snprintf_chk): Likewise.
27837         (gimple_fold_builtin_sprintf_chk): Likewise.
27838         (gimple_fold_builtin_strlen): New function.
27839         (gimple_fold_builtin_with_strlen): New function split out from
27840         gimple_fold_builtin.
27841         (gimple_fold_builtin): Change signature and handle
27842         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
27843         here.  Call gimple_fold_builtin_with_strlen.
27844         (gimple_fold_call): Adjust.
27846 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
27848         * calls.c (precompute_arguments): Check
27849         promoted_for_signed_and_unsigned_p and set the promoted mode.
27850         (promoted_for_signed_and_unsigned_p): New function.
27851         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
27852         and set the promoted mode.
27853         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
27854         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
27855         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
27858 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
27860         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
27861         instead of SUBREG_PROMOTED_UNSIGNED_SET.
27862         (expand_call): Likewise.
27863         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
27864         to get promoted mode.
27865         * combine.c (record_promoted_value): Skip > 0 comparison with
27866         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
27867         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
27868         of SUBREG_PROMOTED_UNSIGNED_P.
27869         (convert_modes): Likewise.
27870         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
27871         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
27872         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
27873         SUBREG_PROMOTED_UNSIGNED_SET.
27874         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
27875         instead of SUBREG_PROMOTED_UNSIGNED_SET.
27876         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
27877         SUBREG_PROMOTED_SET.
27878         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
27879         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
27880         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
27881         of SUBREG_PROMOTED_UNSIGNED_P.
27882         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
27883         (SUBREG_PROMOTED_SET): New define.
27884         (SUBREG_PROMOTED_GET): Likewise.
27885         (SUBREG_PROMOTED_SIGN): Likewise.
27886         (SUBREG_PROMOTED_SIGNED_P): Likewise.
27887         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
27888         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
27889         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
27890         instead of SUBREG_PROMOTED_UNSIGNED_GET.
27891         (nonzero_bits1): Skip > 0 comparison with the results as
27892         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
27893         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
27894         of !SUBREG_PROMOTED_UNSIGNED_P.
27895         * simplify-rtx.c (simplify_unary_operation_1): Use new
27896         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
27897         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
27898         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
27899         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
27901 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
27903         * ipa-devirt.c: Include gimple-pretty-print.h
27904         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
27905         further tests.
27906         (decl_maybe_in_construction_p): Fix conditional on cdtor check
27907         (get_polymorphic_call_info): Fix return value
27908         (type_change_info): New sturcture based on ipa-prop
27909         variant.
27910         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
27911         based on ipa-prop variant.
27912         (extr_type_from_vtbl_ptr_store): New function
27913         based on ipa-prop variant.
27914         (record_known_type): New function.
27915         (check_stmt_for_type_change): New function.
27916         (get_dynamic_type): New function.
27917         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
27918         * tree-ssa-pre.c: ipa-utils.h
27919         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
27920         machinery; sanity check with ipa-prop devirtualization.
27921         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
27922         polymorphic flag.
27924 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
27926         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
27927         * alias.c, cfgexpand.c, cgraphbuild.c,
27928         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
27929         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
27930         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
27931         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
27932         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
27933         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
27934         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
27935         dse.c, except.c, gengtype.c, gimple-expr.c,
27936         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
27937         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
27938         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
27939         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
27940         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
27941         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
27942         pointer-set.h.
27943         * pointer-set.c: Remove file.
27944         * pointer-set.h: Remove file.
27946 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27948         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
27949         * config/arm/types.md (f_sels, f_seld): Delete.
27951 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27953         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
27954         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
27955         (aarch64_movdi_<mode>high): Likewise.
27956         (aarch64_mov<mode>high_di): Likewise.
27957         (aarch64_movdi_<mode>low): Likewise.
27958         (aarch64_mov<mode>low_di): Likewise.
27959         (aarch64_movtilow_tilow): Likewise.
27960         Add comment explaining usage of fp,simd attributes and of
27961         TARGET_FLOAT and TARGET_SIMD.
27963 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
27964             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27966         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
27967         Use MOVN when one of the half-words is 0xffff.
27969 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
27971         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
27973 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27975         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
27976         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
27977         (rfs_str): String corresponding to RFS_* constants.
27978         (rank_for_schedule_stats_t): New typedef.
27979         (rank_for_schedule_stats): New static variable.
27980         (rfs_result): New static function.
27981         (rank_for_schedule): Track statistics for deciding heuristics.
27982         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
27983         static functions.
27984         (ready_sort): Use them for debug printouts.
27985         (schedule_block): Init statistics state.  Print statistics on
27986         rank_for_schedule decisions.
27988 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27990         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
27992 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
27994         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
27995         constraint.
27997 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
27999         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
28000         function to not conflict.
28001         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
28002         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
28003         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
28004         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
28005         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
28006         of pointer_map.
28008 2014-08-07  Marek Polacek  <polacek@redhat.com>
28010         * fold-const.c (fold_binary_loc): Add folding of
28011         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
28013 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
28015         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
28016         instead of type size.
28017         (ASM_FINISH_DECLARE_OBJECT): Likewise.
28019 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
28021         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
28022         (*thumb1_movqi_insn): Likewise.
28023         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
28025 2014-08-07  Tom de Vries  <tom@codesourcery.com>
28027         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
28028         (glibc_2_11_or_earlier): Remove effective-target keywords.
28030 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
28032         * config/arm/arm.c (bdesc_2arg): Fix typo.
28033         (arm_atomic_assign_expand_fenv): Remove The default implementation.
28035 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
28037         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
28039 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
28041         PR debug/61923
28042         * haifa-sched.c (advance_one_cycle): Fix dump.
28043         (schedule_block): Don't advance cycle if we are already at the
28044         beginning of the cycle.
28046 2014-08-06  Martin Jambor  <mjambor@suse.cz>
28048         PR ipa/61393
28049         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
28051 2014-08-06  Richard Biener  <rguenther@suse.de>
28053         PR lto/62034
28054         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
28055         SCCs here.
28056         (lto_input_tree): Pop SCCs here.
28058 2014-08-06  Richard Biener  <rguenther@suse.de>
28060         PR tree-optimization/61320
28061         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
28062         handle misaligned loads.
28064 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
28066         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
28067         (aarch64_expand_vec_perm_const): Check for dup before zip.
28069 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28071         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
28072         CONST_INT_P instead of GET_CODE and compare.
28073         (aarch64_select_cc_mode): Likewise.
28074         (aarch64_print_operand): Likewise.
28075         (aarch64_rtx_costs): Likewise.
28076         (aarch64_simd_valid_immediate): Likewise.
28077         (aarch64_simd_check_vect_par_cnst_half): Likewise.
28078         (aarch64_simd_emit_pair_result_insn): Likewise.
28080 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
28082         * gdbhooks.py (find_gcc_source_dir): New helper function.
28083         (class PassNames): New class, locating and parsing passes.def.
28084         (class BreakOnPass): New command "break-on-pass".
28086 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
28088         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
28089         getting olde.
28091 2014-08-05  Richard Biener  <rguenther@suse.de>
28093         PR rtl-optimization/61672
28094         * emit-rtl.h (mem_attrs_eq_p): Declare.
28095         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
28096         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
28097         * cfgcleanup.c (merge_memattrs): Likewise.
28098         Include emit-rtl.h.
28100 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28102         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
28103         rather than singleton vectors.
28104         (vqdmlsls_lane_s32): Likewise.
28106 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28108         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
28109         Use VSDQ_HSI mode iterator.
28110         (aarch64_sqrdmulh_laneq<mode>): Likewise.
28111         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
28112         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
28113         Use BUILTIN_VDQHS macro.
28114         (sqrdmulh_laneq): Likewise.
28115         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
28116         (vqdmlals_laneq_s32): Likewise.
28117         (vqdmlslh_laneq_s16): Likewise.
28118         (vqdmlsls_laneq_s32): Likewise.
28119         (vqdmulhh_laneq_s16): Likewise.
28120         (vqdmulhs_laneq_s32): Likewise.
28121         (vqrdmulhh_laneq_s16): Likewise.
28122         (vqrdmulhs_laneq_s32): Likewise.
28124 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28126         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
28127         (vmuld_laneq_f64): Likewise.
28128         (vmuls_laneq_f32): Likewise.
28129         (vmul_n_f64): Likewise.
28130         (vmuld_lane_f64): Reimplement in C.
28131         (vmuls_lane_f32): Likewise.
28133 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28135         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
28136         to reservation.
28137         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
28139 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28141         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
28142         (rbitsi2): Likewise.
28143         (*arm_rev): Set predicable and predicable_short_it attributes.
28145 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28147         * convert.c (convert_to_integer): Guard transformation to lrint by
28148         -fno-math-errno.
28150 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
28152         * config/aarch64/aarch64-builtins.c
28153         (aarch64_simd_builtin_type_mode): Delete.
28154         (v8qi_UP): Remap to V8QImode.
28155         (v4hi_UP): Remap to V4HImode.
28156         (v2si_UP): Remap to V2SImode.
28157         (v2sf_UP): Remap to V2SFmode.
28158         (v1df_UP): Remap to V1DFmode.
28159         (di_UP): Remap to DImode.
28160         (df_UP): Remap to DFmode.
28161         (v16qi_UP):V16QImode.
28162         (v8hi_UP): Remap to V8HImode.
28163         (v4si_UP): Remap to V4SImode.
28164         (v4sf_UP): Remap to V4SFmode.
28165         (v2di_UP): Remap to V2DImode.
28166         (v2df_UP): Remap to V2DFmode.
28167         (ti_UP): Remap to TImode.
28168         (ei_UP): Remap to EImode.
28169         (oi_UP): Remap to OImode.
28170         (ci_UP): Map to CImode.
28171         (xi_UP): Remap to XImode.
28172         (si_UP): Remap to SImode.
28173         (sf_UP): Remap to SFmode.
28174         (hi_UP): Remap to HImode.
28175         (qi_UP): Remap to QImode.
28176         (aarch64_simd_builtin_datum): Make mode a machine_mode.
28177         (VAR1): Build builtin name.
28178         (aarch64_init_simd_builtins): Remove dead code.
28180 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
28182         * graphite-isl-ast-to-gimple.c:
28183         (set_options): New function.
28184         (scop_to_isl_ast): Add calling of set_options.
28186 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
28188         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
28189         (analyze_iv_to_split_insn): Don't initialize them.
28190         (get_ivts_expr): Removed.
28191         (allocate_basic_variable, insert_base_initialization): Use
28192         SET_SRC instead of *get_ivts_expr.
28193         (split_iv): Use &SET_SRC instead of get_ivts_expr.
28195 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
28197         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
28198         (translate_isl_ast_for_loop): Add checking of the
28199         flag_loop_parallelize_all.
28200         (ast_build_before_for): New function.
28201         (scop_to_isl_ast): Add checking of the
28202         flag_loop_parallelize_all.
28203         * graphite-dependences.c: Move the defenition of the
28204         scop_get_dependences from graphite-optimize-isl.c to this file.
28205         (apply_schedule_on_deps): Add checking of the ux's emptiness.
28206         (carries_deps): Add checking of the x's value.
28207         * graphite-optimize-isl.c: Move the defenition of the
28208         scop_get_dependences to graphite-dependences.c.
28209         * graphite-poly.h: Add declarations of scop_get_dependences
28210         and carries_deps.
28212 2014-08-04  Rohit  <rohitarulraj@freescale.com>
28214         PR target/60102
28215         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
28216         names.
28217         (alt_reg_names): Likewise.
28218         (rs6000_dwarf_register_span): For SPE high registers, replace
28219         dwarf register numbers with GCC hard register numbers.
28220         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
28221         (rs6000_dbx_register_number): For SPE high registers, return dwarf
28222         register number for the corresponding GCC hard register number.
28223         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
28224         newly added GCC hard register numbers for SPE high registers.
28225         (DWARF_FRAME_REGISTERS):  Likewise.
28226         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
28227         (DWARF_FRAME_REGNUM): Likewise.
28228         (FIXED_REGISTERS): Likewise.
28229         (CALL_USED_REGISTERS): Likewise.
28230         (CALL_REALLY_USED_REGISTERS): Likewise.
28231         (REG_ALLOC_ORDER): Likewise.
28232         (enum reg_class): Likewise.
28233         (REG_CLASS_NAMES): Likewise.
28234         (REG_CLASS_CONTENTS): Likewise.
28235         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
28237 2014-08-04  Richard Biener  <rguenther@suse.de>
28239         * gimple-fold.h (gimple_fold_builtin): Remove.
28240         * gimple-fold.c (gimple_fold_builtin): Make static.
28241         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
28242         fold_stmt, not gimple_fold_builtin.
28244 2014-08-04  Martin Liska <mliska@suse.cz>
28246         * cgraph.h (csi_end_p): Removed.
28247         (csi_next): Likewise.
28248         (csi_node): Likewise.
28249         (csi_start): Likewise.
28250         (cgraph_node_in_set_p): Likewise.
28251         (cgraph_node_set_size): Likewise.
28252         (vsi_end_p): Likewise.
28253         (vsi_next): Likewise.
28254         (vsi_node): Likewise.
28255         (vsi_start): Likewise.
28256         (varpool_node_set_size): Likewise.
28257         (cgraph_node_set_nonempty_p): Likewise.
28258         (varpool_node_set_nonempty_p): Likewise.
28259         * cgraphunit.c (cgraph_process_new_functions): vec replaces
28260         cgraph_node_set.
28261         * ipa-inline-transform.c: Likewise.
28262         * ipa-utils.c (cgraph_node_set_new): Removed.
28263         (cgraph_node_set_add): Likewise.
28264         (cgraph_node_set_remove): Likewise.
28265         (cgraph_node_set_find): Likewise.
28266         (dump_cgraph_node_set): Likewise.
28267         (debug_cgraph_node_set): Likewise.
28268         (free_cgraph_node_set): Likewise.
28269         (varpool_node_set_new): Likewise.
28270         (varpool_node_set_add): Likewise.
28271         (varpool_node_set_remove): Likewise.
28272         (varpool_node_set_find): Likewise.
28273         (dump_varpool_node_set): Likewise.
28274         (free_varpool_node_set): Likewise.
28275         (debug_varpool_node_set): Likewise.
28276         * tree-emutls.c (struct tls_var_data):
28277         (emutls_index): Removed.
28278         (emutls_decl): Likewise.
28279         (gen_emutls_addr): Function implementation uses newly added
28280         hash_map<varpool_node *, tls_var_data>.
28281         (clear_access_vars): Likewise.
28282         (create_emultls_var): Likewise.
28283         (ipa_lower_emutls): Likewise.
28284         (reset_access): New function.
28286 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
28288         * config/i386/i386.c (ix86_option_override_internal): Add
28289         PTA_RDRND and PTA_MOVBE for bdver4.
28291 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28292             James Greenhalgh  <james.greenhalgh@arm.com>
28294         * doc/md.texi (clrsb): Document.
28295         (clz): Change reference to x into operand 1.
28296         (ctz): Likewise.
28297         (popcount): Likewise.
28299 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28301         PR target/61713
28302         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
28303         move to subtarget in serial version if result is ignored.
28305 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28306             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28308         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
28309         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
28310         (sched_analyze_insn): Update use of try_group_insn to
28311         sched_macro_fuse_insns.
28312         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
28313         arguments that are not conditional jumps.
28315 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
28317         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
28318         family information. Handle BTVER2 cpu with cpuid family value.
28320 2014-08-04  Tom de Vries  <tom@codesourcery.com>
28322         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
28323         (glibc_2_11_or_earlier): Document effective-target keywords.
28325 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
28327         * ipa-devirt.c (odr_type_warn_count): Add type.
28328         (possible_polymorphic_call_targets): Set it.
28329         (ipa_devirt): Use it.
28331 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
28333         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
28334         Document.
28335         * ipa-devirt.c: Include hash-map.h
28336         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
28337         (clear_speculation): Break out of ...
28338         (get_class_context): ... here; speed up handling obviously useless
28339         speculations.
28340         (odr_type_warn_count, decl_warn_count): New structures.
28341         (final_warning_record): New structure.
28342         (final_warning_records): New static variable.
28343         (possible_polymorphic_call_targets): Cleanup handling of
28344         speculative info; do not build speculation when user do not care;
28345         record info about warnings when asked for.
28346         (add_decl_warning): New function.
28347         (type_warning_cmp): New function.
28348         (decl_warning_cmp): New function.
28349         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
28350         (gate): Enable pass when warnings are requested.
28351         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
28352         options.
28354 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
28356         * hash-map.h (default_hashmap_traits::mark_key_deleted):
28357         Fix cast.
28358         (hash_map::remove): New method.
28359         (hash_map::traverse): New method.
28360         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
28361         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
28362         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
28363         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
28364         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
28365         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
28366         pointer_map.
28368 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
28370         * hash-set.h: new File.
28371         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
28372         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
28373         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
28374         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
28375         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
28376         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
28377         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
28378         varpool.c: Use hash_set instead of pointer_set.
28380 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
28382         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
28384 2014-08-01  Jiong Wang <jiong.wang@arm.com>
28386         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
28387         for frame access when strict_p is false.
28389 2014-08-01  Renlin Li <renlin.li@arm.com>
28390 2014-08-01  Jiong Wang <jiong.wang@arm.com>
28392         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
28393         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
28394         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
28395         Declaration.
28396         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
28397         predicate.
28398         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
28399         aarch64_mem_pair_offset.
28401 2014-08-01  Jiong Wang <jiong.wang@arm.com>
28403         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
28404         offset.
28405         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
28406         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
28408 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
28410         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
28412 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
28414         PR regression/61510
28415         * cgraphunit.c (analyze_functions): Use get_create rather than get
28416         for decls which are clones of abstract functions.
28418 2014-08-01  Martin Liska  <mliska@suse.cz>
28420         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
28421         * ipa-prop.h (count_formal_params): Global function created from static.
28422         * ipa-prop.c (count_formal_params): Likewise.
28423         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
28424         profiles for semantically equivalent functions.
28425         * passes.c (do_per_function): If we load body of a function
28426         during WPA, this condition should behave same.
28427         * varpool.c (ctor_for_folding): More tolerant assert for variable
28428         aliases created during WPA.
28430 2014-08-01  Martin Liska  <mliska@suse.cz>
28432         * doc/invoke.texi (Options That Control Optimization): Documentation
28433         for -foptimize-strlen introduced. Optimization levels default options
28434         fixed.
28436 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
28438         * opts.c (common_handle_option): Handle -fsanitize=alignment.
28439         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
28440         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
28441         type to bool.
28442         * stor-layout.h (min_align_of_type): New prototype.
28443         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
28444         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
28445         check.
28446         * ubsan.c: Include builtins.h.
28447         (ubsan_expand_bounds_ifn): Change return type to bool,
28448         always return true.
28449         (ubsan_expand_null_ifn): Change return type to bool, change
28450         argument to gimple_stmt_iterator *.  Handle both null and alignment
28451         sanitization, take type from ckind argument's type rather than
28452         first argument.
28453         (instrument_member_call): Removed.
28454         (instrument_mem_ref): Remove t argument, add mem and base arguments.
28455         Handle both null and alignment sanitization, don't say whole
28456         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
28457         call instead of 2 argument.
28458         (instrument_null): Adjust instrument_mem_ref caller.  Don't
28459         instrument calls here.
28460         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
28461         like SANITIZE_NULL.
28462         * stor-layout.c (min_align_of_type): New function.
28463         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
28464         Or it into SANITIZE_UNDEFINED.
28465         * doc/invoke.texi (-fsanitize=alignment): Document.
28467 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28469         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
28471 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28473         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
28474         inchash.
28475         (vn_reference_compute_hash): Dito.
28476         (vn_nary_op_compute_hash): Dito.
28477         (vn_phi_compute_hash): Dito.
28478         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
28480 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28482         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
28483         Rename to inchash:add_expr_commutative. Convert to inchash.
28484         (iterative_hash_hashable_expr): Rename to
28485         inchash:add_hashable_expr. Convert to inchash.
28486         (avail_expr_hash): Dito.
28488 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28490         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
28491         Convert to inchash.
28493 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28495         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
28497 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28499         * Makefile.in (OBJS): Add rtlhash.o
28500         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
28501         (loc_checksum): Dito.
28502         (loc_checksum_ordered): Dito.
28503         (hash_loc_operands): Dito.
28504         (hash_locs): Dito.
28505         (hash_loc_list): Dito.
28506         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
28507         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
28508         * rtlhash.c: New file.
28509         * rtlhash.h: New file.
28511 2014-07-31  Andi Kleen  <ak@linux.intel.com>
28513         * inchash.h (inchash): Change inchash class to namespace.
28514         (class hash): ... Rename from inchash.
28515         (add_object): Move from macro to class template.
28516         * lto-streamer-out.c (hash_tree): Change inchash
28517         to inchash::hash.
28518         * tree.c (build_type_attribute_qual_variant): Dito.
28519         (type_hash_list): Dito.
28520         (attribute_hash_list): Dito.
28521         (iterative_hstate_expr): Rename to inchash::add_expr
28522         (build_range_type_1): Change inchash to inchash::hash
28523         and use hash::add_expr.
28524         (build_array_type_1): Dito.
28525         (build_function_type): Dito
28526         (build_method_type_directly): Dito.
28527         (build_offset_type): Dito.
28528         (build_complex_type): Dito.
28529         (make_vector_type): Dito.
28530         * tree.h (iterative_hash_expr): Dito.
28532 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
28534         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
28536 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
28538         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
28539         correct alphabetical position.
28540         (vpaddd_f64): Rewrite using builtins.
28541         (vpaddd_s64): Move to correct alphabetical position.
28542         (vpaddd_u64): New.
28544 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
28546         PR target/61844
28547         * config/sh/sh.c (sh_legitimate_address_p,
28548         sh_legitimize_reload_address): Handle reg+reg address modes when
28549         ALLOW_INDEXED_ADDRESS is false.
28550         * config/sh/predicates.md (general_movsrc_operand,
28551         general_movdst_operand): Likewise.
28553 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
28555         * config/aarch64/aarch64-builtins.c
28556         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
28557         BYTES_BIG_ENDIAN.
28559 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
28561         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
28562         the generated mask based on BYTES_BIG_ENDIAN.
28563         (aarch64_simd_check_vect_par_cnst_half): New.
28564         * config/aarch64/aarch64-protos.h
28565         (aarch64_simd_check_vect_par_cnst_half): New.
28566         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
28567         the check out to aarch64_simd_check_vect_par_cnst_half.
28568         (vect_par_cnst_lo_half): Likewise.
28569         * config/aarch64/aarch64-simd.md
28570         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
28571         (move_hi_quad_<mode>): Always generate a low mask.
28573 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28575         * doc/invoke.texi (AVR Options): Add documentation about
28576         __AVR_DEVICE_NAME__ built-in macro.
28578 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
28580         PR target/61948
28581         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
28582         constraints are satisfied.
28583         (<shift>di3_neon): Likewise.
28585 2014-07-31  Richard Biener  <rguenther@suse.de>
28587         PR tree-optimization/61964
28588         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
28589         by structural equality.
28591 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
28593         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
28594         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
28595         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
28596         New enums.
28597         * gcc.c (sanitize_spec_function): Support new option.
28598         (SANITIZER_SPEC): Remove now redundant check.
28599         * opts.c (common_handle_option): Support new option.
28600         (finish_options): Check for incompatibilities.
28601         * toplev.c (process_options): Split userspace-specific checks.
28603 2014-07-31  Richard Biener  <rguenther@suse.de>
28605         * lto-streamer.h (struct output_block): Remove global.
28606         (struct data_in): Remove labels, num_named_labels and
28607         num_unnamed_labels.
28608         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
28609         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
28611 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
28613         PR c++/60517
28614         * common.opt (-Wreturn-local-addr): Moved from c.opt.
28615         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
28616         (isolate_path): New argument to avoid inserting a trap.
28617         (find_implicit_erroneous_behaviour): Handle returning the address
28618         of a local variable.
28619         (find_explicit_erroneous_behaviour): Likewise.
28621 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
28623         PR lto/61868
28624         * toplev.c (init_random_seed): Move piece of code never called to
28625         set_random_seed.
28626         (set_random_seed): see above.
28628 2014-07-31  Tom de Vries  <tom@codesourcery.com>
28630         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
28632 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
28634         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
28635         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
28637 2014-07-31  Richard Biener  <rguenther@suse.de>
28639         * data-streamer.h (streamer_write_data_stream): Declare here,
28640         renamed from ...
28641         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
28642         * lto-cgraph.c (lto_output_node): Adjust.
28643         (lto_output_varpool_node): Likewise.
28644         * data-streamer-out.c (streamer_string_index): Likewise.
28645         (streamer_write_data_stream, lto_append_block): Move from ...
28646         * lto-section-out.c (lto_output_data_stream,
28647         lto_append_block): ... here.
28649 2014-07-30  Mike Stump  <mikestump@comcast.net>
28651         * configure.ac: Also check for popen.
28652         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
28653         * configure: Regenerate.
28654         * config.in:  Regenerate.
28656 2014-07-30  Martin Jambor  <mjambor@suse.cz>
28658         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
28659         parameter to gimple.
28661 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28663         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
28664         address as second parameter to __tpf_eh_return routine.
28666 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
28668         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
28669         Thumb2.
28671 2014-07-30  Tom Tromey  <tromey@redhat.com>
28673         PR c/59855
28674         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
28675         * doc/extend.texi (Type Attributes): Document designated_init
28676         attribute.
28678 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
28680         * graphite-isl-ast-to-gimple.c:
28681         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
28682         (gcc_expression_from_isl_expression): Pass type to
28683         gcc_expression_from_isl_ast_expr_id.
28685 2014-07-30  Richard Biener  <rguenther@suse.de>
28687         * lto-streamer.h (lto_write_data): New function.
28688         * langhooks.c (lhd_append_data): Do not free block.
28689         * lto-section-out.c (lto_write_data): New function writing
28690         raw data to the current section.
28691         (lto_write_stream): Adjust for langhook semantic change.
28692         (lto_destroy_simple_output_block): Write header directly.
28693         * lto-opts.c (lto_write_options): Write options directly.
28694         * lto-streamer-out.c (produce_asm): Write heaeder directly.
28695         (lto_output_toplevel_asms): Likewise.
28696         (copy_function_or_variable): Copy data directly.
28697         (write_global_references): Output index table directly.
28698         (lto_output_decl_state_refs): Likewise.
28699         (write_symbol): Write data directly.
28700         (produce_symtab): Adjust.
28701         (produce_asm_for_decls): Output header and refs directly.
28703 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
28705         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
28706         to speculative_targets
28707         (get_class_context): Fix handling of contextes without outer type;
28708         avoid matching non-polymorphic types in LTO.
28709         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
28710         parameter to speculative_targetsp; handle speculation.
28711         (dump_possible_polymorphic_call_targets): Update dumping.
28713 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
28715         * common.opt (Wodr): Enable by default.
28717 2014-07-29  Olivier Hainque  <hainque@adacore.com>
28719         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
28721 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
28723         PR bootstrap/61914
28724         * gengtype.c (strtoken): New function.
28725         (create_user_defined_type): Replace strtok with strtoken.
28727 2014-07-29  Nathan Sidwell  <nathan@acm.org>
28729         * gcov-io.c (gcov_var): Make hidden.
28730         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
28731         (gcov_do_dump): Declare.
28732         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
28734 2014-07-29  Martin Jambor  <mjambor@suse.cz>
28736         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
28737         parameter to gimple.
28738         (sra_modify_assign): Likewise.
28740 2014-07-29  Richard Biener  <rguenther@suse.de>
28742         PR middle-end/52478
28743         * expr.c (expand_expr_real_2): Revert last change.
28745 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
28747         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
28748         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
28749         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
28750         call.
28751         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
28752         (contains_type_p): Forward declare.
28753         (polymorphic_call_target_hasher::hash): Hash speculative info.
28754         (polymorphic_call_target_hasher::equal): Compare speculative info.
28755         (get_class_context): Handle speuclation.
28756         (contains_type_p): Update.
28757         (get_polymorphic_call_info_for_decl): Update.
28758         (walk_ssa_copies): Break out from ...
28759         (get_polymorphic_call_info): ... here; set speculative context
28760         before giving up.
28761         * ipa-prop.c (ipa_write_indirect_edge_info,
28762         ipa_read_indirect_edge_info): Stream speculative context.
28763         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
28764         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
28765         SPECULATIVE_MAYBE_DERIVED_TYPE).
28766         (possible_polymorphic_call_targets overriders): Update.
28767         (dump_possible_polymorphic_call_targets overriders): Update.
28768         (dump_possible_polymorphic_call_target_p overriders): Update.
28770 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
28772         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
28773         ipa-devirt path; fix thinko there.
28775 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
28777         * config/i386/i386.c (ix86_return_in_memory): Replace one
28778         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
28780 2014-07-28  Marek Polacek  <polacek@redhat.com>
28782         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
28784 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
28786         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
28787         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
28788         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
28789         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
28790         (USE_LD_AS_NEEDED): Likewise.
28791         (ASM_APP_ON): Likewise.
28792         (ASM_APP_OFF): Likewise.
28793         (TARGET_POSIX_IO): Likewise.
28794         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
28795         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
28796         (USE_LD_AS_NEEDED): Likewise.
28797         (ASM_APP_ON): Likewise.
28798         (ASM_APP_OFF): Likewise.
28799         (TARGET_POSIX_IO): Likewise.
28801 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
28803         PR middle-end/61734
28804         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
28805         operators other than the equality operators.
28807 2014-07-28  Richard Biener  <rguenther@suse.de>
28809         PR middle-end/52478
28810         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
28811         sure to register SImode ones, not only >= word_mode ones.
28812         * expr.c (expand_expr_real_2): When expanding -ftrapv
28813         binops do not use OPTAB_LIB_WIDEN.
28815 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
28817         PR middle-end/61919
28818         * tree-outof-ssa.c (insert_partition_copy_on_edge)
28819         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
28820         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
28821         inserting them in the insn stream.
28823 2014-07-28  Marek Polacek  <polacek@redhat.com>
28825         PR middle-end/61913
28826         * common.opt (Wodr): Add Var.
28828 2014-07-28  Richard Biener  <rguenther@suse.de>
28830         PR tree-optimization/61921
28831         * tree-ssa-structalias.c (create_variable_info_for_1): Check
28832         if there is a varpool node before dereferencing it.
28834 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
28836         * graphite-sese-to-poly.c:
28837         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
28838         id of the pbb), which contains pointer to the pbb1.
28840         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
28842 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
28844         * graphite-isl-ast-to-gimple.c:
28845         (graphite_create_new_guard): New function.
28846         (translate_isl_ast_node_if): New function.
28847         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
28849         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
28851 2014-07-27  Anthony Green  <green@moxielogic.com>
28853         * config.gcc: Add moxie-*-moxiebox* configuration.
28854         * config/moxie/moxiebox.h: New file.
28856 2014-07-26  Andrew Pinski  <apinski@cavium.com>
28858         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
28859         from the read only register.
28861 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
28863         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
28864         as the allocation class if it isn't likely to be spilled.
28866 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
28868         * rtl.h (tls_referenced_p): Declare.
28869         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
28870         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
28871         (mips_cannot_force_const_mem): Use tls_referenced_p.
28872         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
28873         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
28874         instead of pa_tls_referenced_p.
28875         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
28876         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
28877         (pa_legitimate_constant_p): Likewise.
28878         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
28879         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
28880         (rs6000_cannot_force_const_mem, rs6000_emit_move)
28881         (rs6000_address_for_altivec): Use tls_referenced_p instead of
28882         rs6000_tls_referenced_p.
28883         (rs6000_tls_symbol_ref_1): Delete.
28885 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
28887         PR target/44551
28888         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
28889         Optimize inverse of a VEC_CONCAT.
28891 2014-07-25  Xinliang David Li  <davidxl@google.com>
28893         * params.def: New parameter.
28894         * coverage.c (get_coverage_counts): Check new flag.
28895         (coverage_compute_profile_id): Check new flag.
28896         (coverage_begin_function): Check new flag.
28897         (coverage_end_function): Check new flag.
28898         * value-prof.c (coverage_node_map_initialized_p): New function.
28899         (init_node_map): Populate map with all functions.
28900         * doc/invoke.texi: Document new parameter.
28902 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
28903             Richard Biener <rguenther@suse.de>
28905         * lto-streamer-out.c (struct sccs): Turn to ...
28906         (class DFS): ... this one; refactor the DFS walk so it can
28907         be re-done on per-SCC basis.
28908         (DFS::DFS): New constructor.
28909         (DFS::~DFS): New destructor.
28910         (hash_tree): Add new MAP argument holding in-SCC hash values;
28911         remove POINTER_TYPE hashing hack.
28912         (scc_entry_compare): Rename to ...
28913         (DFS::scc_entry_compare): ... this one.
28914         (hash_scc): Rename to ...
28915         (DFS::hash_scc): ... this one; pass output_block instead
28916         of streamer_cache; work harder to get unique and stable SCC
28917         hashes.
28918         (DFS_write_tree): Rename to ...
28919         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
28920         (lto_output_tree): Update.
28922 2014-07-25  Andi Kleen  <ak@linux.intel.com>
28924         * lto-streamer-out.c (hash_tree): Convert to inchash.
28926 2014-07-25  Andi Kleen  <ak@linux.intel.com>
28928         * tree.c (build_type_attribute_qual_variant): Use inchash.
28929         (type_hash_list): Dito.
28930         (attribute_hash_list): Dito
28931         (iterative_hstate_expr): Dito.
28932         (iterative_hash_expr): Dito.
28933         (build_range_type_1): Dito.
28934         (build_array_type_1): Dito.
28935         (build_function_type): Dito.
28936         (build_method_type_directly): Dito.
28937         (build_offset_type): Dito.
28938         (build_complex_type): Dito.
28939         (make_vector_type): Dito.
28940         * tree.h (iterative_hash_expr): Add compat wrapper.
28941         (iterative_hstate_expr): Add.
28943 2014-07-25  Andi Kleen  <ak@linux.intel.com>
28945         * Makefile.in (OBJS): Add inchash.o.
28946         (PLUGIN_HEADERS): Add inchash.h.
28947         * ipa-devirt.c: Include inchash.h.
28948         * lto-streamer-out.c: Dito.
28949         * tree-ssa-dom.c: Dito.
28950         * tree-ssa-pre.c: Dito.
28951         * tree-ssa-sccvn.c: Dito.
28952         * tree-ssa-tail-merge.c: Dito.
28953         * asan.c: Dito.
28954         * tree.c (iterative_hash_hashval_t): Move to ...
28955         (iterative_hash_host_wide_int): Move to ...
28956         * inchash.c: Here. New file.
28957         * tree.h (iterative_hash_hashval_t): Move to ...
28958         (iterative_hash_host_wide_int): Move to ...
28959         * inchash.h: Here. New file.
28961 2014-07-25  Richard Biener  <rguenther@suse.de>
28963         PR middle-end/61762
28964         PR middle-end/61894
28965         * fold-const.c (native_encode_int): Add and handle offset
28966         parameter to do partial encodings of expr.
28967         (native_encode_fixed): Likewise.
28968         (native_encode_real): Likewise.
28969         (native_encode_complex): Likewise.
28970         (native_encode_vector): Likewise.
28971         (native_encode_string): Likewise.
28972         (native_encode_expr): Likewise.
28973         * fold-const.c (native_encode_expr): Add offset parameter
28974         defaulting to -1.
28975         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
28976         (fold_ctor_reference): Handle all reads from tcc_constant
28977         ctors.
28979 2014-07-25  Richard Biener  <rguenther@suse.de>
28981         * tree-inline.c (estimate_move_cost): Mark speed_p argument
28982         as possibly unused.
28984 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28986         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
28988 2014-07-24  Kyle McMartin  <kyle@redhat.com>
28990         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
28992 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28994         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
28995         Add prototype.
28996         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
28997         function.
28998         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
28999         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
29000         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
29002 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29004         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
29005         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
29006         aggregate types.  Instead, *all* aggregate types, except for single-
29007         element or homogeneous float/vector aggregates, are quadword-aligned
29008         if required by their type alignment.  Issue -Wpsabi note when a type
29009         is now treated differently than before.
29011 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29013         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
29014         does not fit fully into floating-point registers, and there is still
29015         space in the register parameter area, use GPRs to pass those parts
29016         of the argument.  Issue -Wpsabi note if any parameter is now treated
29017         differently than before.
29018         (rs6000_arg_partial_bytes): Update.
29020 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
29022         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
29024 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
29026         * rtl.h (target_rtl): Remove lang_dependent_initialized.
29027         * toplev.c (initialize_rtl): Don't use it.  Move previously
29028         "language-dependent" calls to...
29029         (backend_init): ...here.
29030         (lang_dependent_init_target): Don't set lang_dependent_initialized.
29031         Assert that RTL initialization hasn't happend yet.
29033 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
29035         PR rtl-optimization/61629
29036         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
29037         they have already been initialized.
29039 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
29041         PR middle-end/61268
29042         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
29043         DECL_INCOMING_RTL and entry_parm.
29044         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
29045         * calls.c (load_register_parameters): Likewise argument values.
29046         (emit_library_call_value_1, store_one_arg): Likewise argument
29047         save areas.
29048         * config/i386/i386.c (assign_386_stack_local): Likewise the local
29049         stack slot.
29050         * explow.c (validize_mem): Modify the argument in-place.
29052 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
29054         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
29055         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
29057 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
29059         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
29060         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
29062 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
29064         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
29065         (aarch64_save_callee_saves): New parameter "skip_wb".
29066         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
29068 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
29070         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
29071         "wb_candidate2".
29072         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
29074 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
29076         * graphite-isl-ast-to-gimple.c:
29077         (graphite_create_new_loop): Add calling of isl_id_free to properly
29078         decrement reference counts.
29080         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
29082 2014-07-24  Martin Liska  <mliska@suse.cz>
29083         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
29084         function used.
29085         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
29086         (rs6000_code_end): Likewise.
29088 2014-07-24  Martin Liska  <mliska@suse.cz>
29090         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
29091         symtab_node funtion used.
29092         (rs6000_xcoff_declare_object_name): Likewise.
29094 2014-07-24  Martin Liska  <mliska@suse.cz>
29096         * cgraphunit.c (compile): Correct function used.
29098 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
29100         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
29101         as non-indexable.
29103 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
29105         PR lto/61802
29106         * varasm.c (bss_initializer_p): Handle offlined ctors.
29107         (align_variable, get_variable_align): Likewise.
29108         (make_decl_one_only): Likewise.
29109         (default_binds_local_p_1): Likewise.
29110         (decl_binds_to_current_def_p): Likewise.
29111         (get_variable_section): Get constructor if it is offlined.
29112         (assemble_variable_contents): Sanity check that the caller
29113         streamed in the ctor in LTO.
29115 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
29117         * graphite-isl-ast-to-gimple.c:
29118         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
29119         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
29120         isl_ast_op_pdiv_r to the different case.
29122         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
29124 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29126         PR middle-end/61876
29127         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
29128         when flag_errno_math is on.
29130 2014-07-24  Martin Liska  <mliska@suse.cz>
29132         * cgraph.h (varpool_node):
29133         (availability get_availability (void)):
29134         created from cgraph_variable_initializer_availability
29135         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
29136         created from: cgraph_variable_initializer_availability
29137         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
29138         (void finalize_named_section_flags (void)):
29139         created from varpool_finalize_named_section_flags
29140         (bool assemble_decl (void)): created from varpool_assemble_decl
29141         (void analyze (void)): created from varpool_analyze_node
29142         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
29143         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
29144         (void remove_initializer (void)): created from varpool_remove_initializer
29145         (tree get_constructor (void)): created from varpool_get_constructor
29146         (bool externally_visible_p (void)): created from varpool_externally_visible_p
29147         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
29148         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
29149         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
29150         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
29151         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
29152         (static bool output_variables (void)): created from varpool_output_variables
29153         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
29154         created from varpool_extra_name_alias
29155         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
29156         (static void dump_varpool (FILE *f)): created from dump_varpool
29157         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
29158         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
29159         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
29160         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
29161         (void assemble_aliases (void)): created from assemble_aliases
29163 2014-07-24  Martin Liska  <mliska@suse.cz>
29165         * cgraph.h (symtab_node):
29166         (void register_symbol (void)): created from symtab_register_node
29167         (void remove (void)): created from symtab_remove_node
29168         (void dump (FILE *f)): created from dump_symtab_node
29169         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
29170         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
29171         (struct ipa_ref *add_reference (symtab_node *referred_node,
29172         enum ipa_ref_use use_type)): created from add_reference
29173         (struct ipa_ref *add_reference (symtab_node *referred_node,
29174         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
29175         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
29176         gimple stmt)): created from maybe_add_reference
29177         (bool semantically_equivalent_p (symtab_node *target)): created from
29178         symtab_semantically_equivalent_p
29179         (void remove_from_same_comdat_group (void)): created from
29180         remove_from_same_comdat_group
29181         (void add_to_same_comdat_group (symtab_node *old_node)): created from
29182         symtab_add_to_same_comdat_group
29183         (void dissolve_same_comdat_group_list (void)): created from
29184         symtab_dissolve_same_comdat_group_list
29185         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
29186         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
29187         created from symtab_alias_ultimate_target
29188         (inline symtab_node *next_defined_symbol (void)): created from
29189         symtab_next_defined_symbol
29190         (bool resolve_alias (symtab_node *target)): created from
29191         symtab_resolve_alias
29192         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
29193         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
29194         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
29195         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
29196         (void set_section (const char *section)): created from set_section_1
29197         (enum availability get_availability (void)): created from symtab_node_availability
29198         (void make_decl_local (void)): created from symtab_make_decl_local
29199         (bool real_symbol_p (void)): created from symtab_read_node
29200         (can_be_discarded_p (void)): created from symtab_can_be_discarded
29201         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
29202         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
29203         symtab_in_same_comdat_p;
29204         (bool address_taken_from_non_vtable_p (void)): created from
29205         address_taken_from_non_vtable_p
29206         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
29207         (static void dump_table (FILE *)): created from dump_symtab
29208         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
29209         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
29210         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
29211         symtab_used_from_object_file_p
29212         (void dump_base (FILE *)): created from dump_symtab_base
29213         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
29214         (void unregister (void)): created from symtab_unregister_node
29215         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
29216         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
29217         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
29218         symtab_nonoverwritable_alias_1
29219         * cgraph.h (cgraph_node):
29220         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
29221         created from cgraph_remove_node_and_inline_clones
29222         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
29223         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
29224         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
29225         (cgraph_node *function_symbol (enum availability *avail = NULL)):
29226         created from cgraph_function_node
29227         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
29228         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
29229         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
29230         created from cgraph_create_clone
29231         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
29232         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
29233         created from cgraph_create_virtual_clone
29234         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
29235         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
29236         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
29237         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
29238         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
29239         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
29240         created from cgraph_function_version_info
29241         (struct cgraph_function_version_info *insert_new_function_version (void)):
29242         created from insert_new_cgraph_node_version
29243         (struct cgraph_function_version_info *function_version (void)): created from
29244         get_cgraph_node_version
29245         (void analyze (void)): created from analyze_function
29246         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
29247         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
29248         tree real_alias) cgraph_add_thunk
29249         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
29250         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
29251         created from cgraph_function_or_thunk_node
29252         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
29253         created from expand_thunk
29254         (void reset (void)): created from cgraph_reset_node
29255         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
29256         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
29257         (void remove (void)): created from cgraph_remove_node
29258         (void dump (FILE *f)): created from dump_cgraph_node
29259         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
29260         (bool get_body (void)): created from cgraph_get_body
29261         (void release_body (void)): created from cgraph_release_function_body
29262         (void unnest (void)): created from cgraph_unnest_node
29263         (void make_local (void)): created from cgraph_make_node_local
29264         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
29265         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
29266         gcov_type count, int freq)): created from cgraph_create_edge
29267         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
29268         gcov_type count, int freq)): created from cgraph_create_indirect_edge
29269         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
29270         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
29271         created from cgraph_create_edge_including_clones
29272         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
29273         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
29274         (void remove_callers (void)): created from cgraph_node_remove_callers
29275         (void remove_callees (void)): created from cgraph_node_remove_callees
29276         (enum availability get_availability (void)): created from cgraph_function_body_availability
29277         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
29278         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
29279         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
29280         (void call_duplication_hooks (cgraph_node *node2)): created from
29281         cgraph_call_node_duplication_hooks
29282         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
29283         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
29284         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
29285         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
29286         (void call_function_insertion_hooks (void)):
29287         created from cgraph_call_function_insertion_hooks
29288         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
29289         (bool local_p (void)): created from cgraph_local_node
29290         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
29291         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
29292         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
29293         (inline bool only_called_directly_or_aliased_p (void)):
29294         created from cgraph_only_called_directly_or_aliased_p
29295         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
29296         created from cgraph_will_be_removed_from_program_if_no_direct_calls
29297         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
29298         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
29299         (bool can_remove_if_no_direct_calls_p (void)):
29300         created from cgraph_can_remove_if_no_direct_calls_p
29301         (inline bool has_gimple_body_p (void)):
29302         created from cgraph_function_with_gimple_body_p
29303         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
29304         (static void dump_cgraph (FILE *f)): created from dump_cgraph
29305         (static inline void debug_cgraph (void)): created from debug_cgraph
29306         (static void record_function_versions (tree decl1, tree decl2)):
29307         created from record_function_versions
29308         (static void delete_function_version (tree decl)):
29309         created from delete_function_version
29310         (static void add_new_function (tree fndecl, bool lowered)):
29311         created from cgraph_add_new_function
29312         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
29313         (static cgraph_node * create (tree decl)): created from cgraph_create_node
29314         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
29315         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
29316         (static cgraph_node *get_for_asmname (tree asmname)):
29317         created from cgraph_node_for_asm
29318         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
29319         created from cgraph_same_body_alias
29320         (static bool used_from_object_file_p_worker (cgraph_node *node,
29321         void *): new function
29322         (static bool non_local_p (cgraph_node *node, void *)):
29323         created from cgraph_non_local_node_p_1
29324         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
29325         created from verify_cgraph
29326         (static bool make_local (cgraph_node *node, void *)):
29327         created from cgraph_make_node_local
29328         (static cgraph_node *create_alias (tree alias, tree target)):
29329         created from cgraph_create_function_alias
29330         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
29331         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
29332         created from cgraph_create_edge_1
29333         * cgraph.h (varpool_node):
29334         (void remove (void)): created from varpool_remove_node
29335         (void dump (FILE *f)): created from dump_varpool_node
29337 2014-07-24  Richard Biener  <rguenther@suse.de>
29339         PR ipa/61823
29340         * tree-ssa-structalias.c (create_variable_info_for_1):
29341         Use varpool_get_constructor.
29342         (create_variable_info_for): Likewise.
29344 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
29346         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
29347         subtract outgoing area size when restoring stack_pointer_rtx.
29349 2014-07-24  Nick Clifton  <nickc@redhat.com>
29351         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
29352         that operations are taking place in parallel.
29353         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
29355 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
29357         * omp-low.c (extract_omp_for_data): Add missing break statement.
29359 2014-07-24  Richard Biener  <rguenther@suse.de>
29361         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
29362         * tree-inline.c (estimate_move_cost): Add speed_p parameter
29363         and adjust MOVE_RATIO query accordingly.
29364         (estimate_num_insns): Adjust callers.
29365         * ipa-prop.c (ipa_populate_param_decls): Likewise.
29366         * ipa-cp.c (gather_context_independent_values,
29367         estimate_local_effects): Likewise.
29368         * ipa-split.c (consider_split): Likewise.
29370 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
29372         * config/i386/driver-i386.c: Remove names of unused arguments and
29373         unnecessary unused attributes.
29374         * config/i386/host-mingw32.c: Likewise.
29375         * config/i386/i386.c: Likewise.
29376         * config/i386/winnt-stubs.c: Likewise.
29377         * config/i386/winnt.c: Likewise.
29379 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29381         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
29382         (aarch64_gen_loadwb_pair): New helper function.
29383         (aarch64_expand_epilogue): Simplify code using new helper functions.
29384         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
29386 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29388         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
29389         (aarch64_gen_storewb_pair): New helper function.
29390         (aarch64_expand_prologue): Simplify code using new helper functions.
29391         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
29393 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29395         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
29396         Rename to aarch64_save_callee_saves, remove restore code.
29397         (aarch64_restore_callee_saves): New function.
29399 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29401         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
29402         (aarch64_save_callee_saves): New function to handle reg save
29403         for both core and vectore regs.
29405 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29407         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
29408         (aarch64_gen_store_pair): New helper function.
29409         (aarch64_save_or_restore_callee_save_registers)
29410         (aarch64_save_or_restore_fprs): Use new helper functions.
29412 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29414         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
29415         (aarch64_save_or_restore_callee_save_registers)
29416         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
29418 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29420         * config/aarch64/aarch64.c
29421         (aarch64_save_or_restore_callee_save_registers)
29422         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
29424 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29426         * config/aarch64/aarch64.c
29427         (aarch64_save_or_restore_callee_save_registers)
29428         (aarch64_save_or_restore_fprs): Remove 'increment'.
29430 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29432         * config/aarch64/aarch64.c
29433         (aarch64_save_or_restore_callee_save_registers)
29434         (aarch64_save_or_restore_fprs): Use register offset in
29435         cfun->machine->frame.reg_offset.
29437 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29439         * config/aarch64/aarch64.c
29440         (aarch64_save_or_restore_callee_save_registers)
29441         (aarch64_save_or_restore_fprs): Remove base_rtx.
29443 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29445         * config/aarch64/aarch64.c
29446         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
29447         to 'start_offset'.  Remove local variable 'start_offset'.
29449 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29451         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
29452         type to HOST_WIDE_INT.
29454 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29456         * config/aarch64/aarch64.c (aarch64_expand_prologue)
29457         (aarch64_save_or_restore_fprs)
29458         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
29460 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29462         * config/arm/t-rtems-eabi: Add
29463         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
29464         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
29465         mbig-endian/mthumb/march=armv7-r, and
29466         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
29467         multilibs.
29469 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29470             Chris Johns <chrisj@rtems.org>
29471             Joel Sherrill <joel.sherrill@oarcorp.com>
29473         * config.gcc: Add nios2-*-rtems*.
29474         * config/nios2/rtems.h: New file.
29475         * gcc/config/nios2/t-rtems: New file.
29477 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
29479         PR target/61396
29480         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
29481         constant numbers, not general constants.
29482         (rs6000_expand_vector_init): Ditto.
29484 2014-07-23  Nathan Sidwell  <nathan@acm.org>
29486         * gcov-tool.c (gcov_list): Declare here.
29487         (set_gcov_list): Remove.
29488         (gcov_output_files): Set gcov_list directly.
29490 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
29492         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
29494 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
29496         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
29497         callee-saved registers are available for padding purpose
29498         and r3 is not mandatory, then prefer use those callee-saved
29499         instead of r3.
29501 2014-07-23  Richard Biener  <rguenther@suse.de>
29503         * params.def (PARAM_MAX_COMBINE_INSNS): New.
29504         * combine.c: Include statistics.h and params.h.
29505         (combine_instructions): Guard three and four insn combines
29506         with max-combine-insns value.  Record statistics for combines
29507         performed.
29508         * doc/invoke.texi (max-combine-insns): Document new param.
29510 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
29512         * graphite-isl-ast-to-gimple.c:
29513         (translate_isl_ast_node_block): New function.
29514         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
29516         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
29517         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
29519 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
29521         * graphite-isl-ast-to-gimple.c:
29522         (get_max_schedule_dimensions): New function.
29523         (extend_schedule): Likewise.
29524         (generate_isl_schedule): Add calling of extend_schedule and
29525         get_max_schedule_dimensions.
29527 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29529         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
29530         (case UNSPEC): Handle UNSPEC_RBIT.
29532 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29534         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
29535         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
29537 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29539         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
29541 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
29543         * graphite-isl-ast-to-gimple.c:
29544         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
29545         (ivs_params_clear):
29546         (build_iv_mapping): New function.
29547         (translate_isl_ast_node_user): Likewise.
29548         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
29550         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
29551         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
29552         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
29554 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
29556         PR target/55701
29557         * config/arm/arm.md (setmem): New pattern.
29558         * config/arm/arm-protos.h (struct tune_params): New fields.
29559         (arm_gen_setmem): New prototype.
29560         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
29561         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
29562         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
29563         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
29564         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
29565         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
29566         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
29567         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
29568         (arm_const_inline_cost): New function.
29569         (arm_block_set_max_insns): New function.
29570         (arm_block_set_non_vect_profit_p): New function.
29571         (arm_block_set_vect_profit_p): New function.
29572         (arm_block_set_unaligned_vect): New function.
29573         (arm_block_set_aligned_vect): New function.
29574         (arm_block_set_unaligned_non_vect): New function.
29575         (arm_block_set_aligned_non_vect): New function.
29576         (arm_block_set_vect, arm_gen_setmem): New functions.
29578 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
29580         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
29582 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
29584         PR target/61855
29585         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
29586         out of #ifdef __OPTIMIZE__.
29588 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
29590         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
29591         different trapping status if -fnon-call-exceptions is enabled.
29593 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
29595         * expr.c (store_field): Handle VOIDmode for calls that return values
29596         in multiple locations.
29598 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29600         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
29601         (altivec_vsldoi_<mode>): Likewise.
29603 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
29605         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
29606         to the number of characters in the line.
29608 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
29610         * graphite-isl-ast-to-gimple.c: Add using of
29611         build_nonstandard_integer_type instead of int128_integer_type_node.
29613 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
29615         * toplev.c (output_stack_usage): Adjust the location of the warning.
29617 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
29619         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
29620         (*membar_storeload): Disable for LEON3.
29622 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29624         PR rtl-optimization/61461
29625         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
29627 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
29629         PR target/61794
29630         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
29631         Fix instruction constraint.
29632         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
29634 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
29636         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
29638 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
29640         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
29641         GNU coding standards.
29642         (nds32_register_move_cost): Likewise.
29643         (nds32_memory_move_cost): Likewise.
29644         (nds32_address_cost): Likewise.
29646 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29648         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
29650 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
29652         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
29653         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
29654         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
29655         (HAVE_sync_compare_and_swapqi): Define.
29656         (HAVE_sync_compare_and_swaphi): Likewise.
29657         (HAVE_sync_compare_and_swapsi): Likewise.
29659 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
29661         * config/mips/p5600.md: Add missing cpu tests.
29663 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29665         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
29666         (vmla_f64): Likewise.
29667         (vfms_f64): Likewise.
29668         (vmls_f64): Likewise.
29670 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29672         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
29673         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
29675 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29677         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
29678         (vmlal_high_lane_s32): Likewise.
29679         (vmlal_high_lane_u16): Likewise.
29680         (vmlal_high_lane_u32): Likewise.
29681         (vmlsl_high_lane_s16): Likewise.
29682         (vmlsl_high_lane_s32): Likewise.
29683         (vmlsl_high_lane_u16): Likewise.
29684         (vmlsl_high_lane_u32): Likewise.
29686 2014-07-17  Terry Guo  <terry.guo@arm.com>
29688         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
29689         (alus_reg): Renamed to alus_sreg.
29690         * config/arm/arm-fixed.md: Change type of non-dsp instructions
29691         from alu_reg to alu_sreg.  Change type of dsp instructions from
29692         alu_reg to alu_dsp_reg.
29693         * config/arm/thumb1.md: Likewise.
29694         * config/arm/thumb2.md: Likewise.
29695         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
29696         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
29697         with alu_sreg and alus_sreg.
29698         * config/arm/arm1026ejs.md (alu_op): Likewise.
29699         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
29700         * config/arm/arm926ejs.md (9_alu_op): Likewise.
29701         * config/arm/fa526.md (526_alu_op): Likewise.
29702         * config/arm/fa606te.md (606te_alu_op): Likewise.
29703         * config/arm/fa626te.md (626te_alu_op): Likewise.
29704         * config/arm/fa726te.md (726te_alu_op): Likewise.
29705         * config/arm/fmp626.md (mp626_alu_op): Likewise.
29706         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
29707         alu_sreg, alu_dsp_reg and alus_sreg.
29708         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
29709         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
29710         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
29711         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
29712         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
29713         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
29714         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
29715         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
29716         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
29717         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
29718         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
29719         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
29720         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
29721         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
29722         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
29723         alus_reg to alus_sreg.
29725 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
29727         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
29728         infinity format.
29730 2014-07-17  Richard Biener  <rguenther@suse.de>
29732         PR rtl-optimization/61801
29733         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
29734         don't set reg_pending_barrier if it appears in a debug-insn.
29736 2014-07-16  DJ Delorie  <dj@redhat.com>
29738         * config/rx/rx.c (rx_option_override): Fix alignment values.
29739         (rx_align_for_label): Likewise.
29741 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
29743         PR target/61737.
29744         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
29745         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
29746         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
29747         functions.
29748         (cris_print_index, cris_print_operand, cris_constant_index_p)
29749         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
29750         (cris_address_cost): Ditto last CONSTANT_P.
29751         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
29752         callers changed.  Yield cris_offsettable_symbol for non-PIC
29753         constant symbolic expressions including labels.  Yield cris_unspec
29754         for all unspecs.
29755         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
29756         target to pic_offset_table_rtx for calls that will likely go
29757         through PLT, const0_rtx when they can't.  All callers changed.
29758         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
29759         symbolic expressions to be PICified.  Remove second, redundant,
29760         assert on can_create_pseudo_p returning non-zero.  Use
29761         replace_equiv_address_nv, not replace_equiv_address, for final
29762         operand update.
29763         * config/cris/cris.md ("movsi"): Move variable t to pattern
29764         toplevel. Adjust assert for new cris_symbol_type member.  Use
29765         CONSTANT_P instead of CONSTANT_ADDRESS_P.
29766         ("*movsi_internal") <case 9>: Make check for valid unspec operands
29767         for lapc stricter.
29768         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
29769         ("call", "call_value"): Use second incoming operand as a marker
29770         for pic-offset-table-register being used.
29771         ("*expanded_call_non_v32", "*expanded_call_v32")
29772         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
29773         second incoming operand to CALL, match cris_call_type_marker.
29774         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
29775         ("*expanded_call_side"): Ditto.  Fix typo in comment.
29776         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
29777         CONSTANT_P.
29778         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
29779         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
29780         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
29781         users changed.  Add members cris_offsettable_symbol and cris_unspec.
29782         (cris_symbol_type): Rename from cris_pic_symbol_type.
29783         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
29784         just CONSTANT_P.
29785         * config/cris/cris-protos.h (cris_symbol_type_of,
29786         cris_expand_pic_call_address): Adjust prototypes.
29787         (cris_legitimate_constant_p): New prototype.
29789         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
29790         an existing tmake_file.  Don't add t-slibgcc and t-linux.
29792 2014-07-17  Jason Merrill  <jason@redhat.com>
29794         PR c++/61623
29795         * symtab.c (symtab_remove_from_same_comdat_group): Also
29796         set_comdat_group to NULL_TREE.
29797         (verify_symtab): Fix diagnostic.
29799 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
29801         PR target/61662
29802         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
29804 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
29806         Support location tracking for built-in macro tokens
29807         * input.h (is_location_from_builtin_token): New function declaration.
29808         * input.c (is_location_from_builtin_token): New function definition.
29809         * toplev.c (general_init): Tell libcpp what the pre-defined
29810         spelling location for built-in tokens is.
29812 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
29814         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
29815         on the FUNCTION_DECL.
29817 2014-07-16  Richard Biener  <rguenther@suse.de>
29819         PR other/61782
29820         * doc/extend.texi (always_inline): Clarify.
29822 2014-07-15  Eric Christopher  <echristo@gmail.com>
29824         * doc/invoke.texi (Link Options): Document -z option.
29826 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
29828         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
29829         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
29831 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
29833         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
29835 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
29837         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
29838         varpool_assemble_decl.
29839         * varpool.c (varpool_assemble_decl): Assert that node->definition is
29840         true.
29842 2014-07-15  Michael Matz  <matz@suse.de>
29844         PR rtl-optimization/61772
29845         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
29847 2014-07-15  Richard Biener  <rguenther@suse.de>
29849         * opts.c (default_options_table): Disable bit-ccp at -Og.
29851 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
29853         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
29855 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
29857         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
29858         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
29859         call langhook for unknown declaration.
29860         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
29861         * tree.h (DECL_ARGUMENTS): Update.
29862         * print-tree.c (print_node): Update.
29863         * tree-core.h (tree_decl_non_common): Remove arguments.
29864         (tree_function_decl): Add arguments.
29866 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
29868         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
29870 2014-07-14  Richard Biener  <rguenther@suse.de>
29872         PR tree-optimization/61779
29873         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
29874         simplifying a condition.
29876 2014-07-14  Richard Biener  <rguenther@suse.de>
29878         * builtins.c (c_strlen): Make only_value == 2 really only
29879         affect warning generation.
29881 2014-07-14  Richard Biener  <rguenther@suse.de>
29883         PR tree-optimization/61757
29884         PR tree-optimization/61783
29885         PR tree-optimization/61787
29886         * tree-ssa-dom.c (record_equality): Revert canonicalization
29887         change and add comment.
29888         (propagate_rhs_into_lhs): Revert previous fix, removing
29889         loop depth restriction again.
29891 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29893         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
29894         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
29895         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
29896         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
29897         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
29898         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
29899         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
29901 2014-07-14  Richard Biener  <rguenther@suse.de>
29903         * cgraph.h (decl_in_symtab_p): Make inline.
29905 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
29907         PR middle-end/61294
29908         * doc/invoke.texi (-Wmemset-transposed-args): Document.
29910         PR target/61656
29911         * config/i386/i386.c (classify_argument): Don't merge classes above
29912         number of words.
29914 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
29916         * cgraph.h (symtab_node): Add nonzero_address.
29917         (decl_in_symtab_p): Break out from ...
29918         (symtab_get_node): ... here.
29919         * fold-const.c: Include cgraph.h
29920         (tree_single_nonzero_warnv_p): Use symtab to determine
29921         if symbol is non-zero.
29922         * symtab.c (symtab_node::nonzero_address): New method.
29924 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
29926         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
29927         forgotten in previous commit.
29929 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
29931         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
29932         on builtin types.
29933         * ipa-devirt.c: Include stor-layout.h and intl.h
29934         (odr_subtypes_equivalent_p): New function.
29935         (warn_odr): New function.
29936         (warn_type_mismatch): New function.
29937         (odr_types_equivalent_p): New function.
29938         (add_type_duplicate): Use it.
29939         * common.opt (Wodr): New flag.
29940         * doc/invoke.texi (Wodr): Document new warning.
29942 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
29944         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
29945         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
29946         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
29947         (varpool_get_constructor): Push CTORS_IN timevar.
29948         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
29950 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
29952         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
29953         Remove VOID_FTYPE_PUSHORT.
29954         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
29955         Change code to USHORT_FTYPE_VOID.
29956         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
29957         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
29958         (ix86_atomic_assign_expand_fenv): Update for
29959         __builtin_ia32_fnstsw changes.
29960         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
29961         (fnstsw): Change operand 0 to nonimmediate operand.
29963 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
29965         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
29966         (varpool_get_constructor): New function.
29967         (varpool_ctor_useable_for_folding_p): Break out from ...
29968         (ctor_for_folding): ... here; use varpool_get_constructor.
29969         (varpool_assemble_decl): Likewise.
29970         * lto-streamer.h (struct output_block): Turn cgraph_node
29971         to symbol filed.
29972         (lto_input_variable_constructor): Declare.
29973         * ipa-visibility.c (function_and_variable_visibility): Use
29974         varpool_get_constructor.
29975         * cgraph.h (varpool_get_constructor): Declare.
29976         (varpool_ctor_useable_for_folding_p): New function.
29977         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
29978         parameter; return error_mark_node for non-trivial constructors.
29979         (lto_write_tree_1, DFS_write_tree): Update use of
29980         get_symbol_initial_value.
29981         (output_function): Update initialization of symbol.
29982         (output_constructor): New function.
29983         (copy_function): Rename to ..
29984         (copy_function_or_variable): ... this one; handle vars too.
29985         (lto_output): Output variable sections.
29986         * lto-streamer-in.c (input_constructor): New function.
29987         (lto_read_body): Rename from ...
29988         (lto_read_body_or_constructor): ... this one; handle vars too.
29989         (lto_input_variable_constructor): New function.
29990         * ipa-prop.c (ipa_prop_write_jump_functions,
29991         ipa_prop_write_all_agg_replacement): Update.
29992         * lto-cgraph.c (compute_ltrans_boundary): Use it.
29993         (output_cgraph_opt_summary): Set symbol to NULL.
29995 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
29997         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
29998         non-polymorphic types.
29999         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
30000         * ipa-devirt.c (types_same_for_odr): Do not explode when one
30001         of types is not polymorphic.
30003 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
30005         * lra-constraints.c (remove_inheritance_pseudos): Process
30006         destination pseudo too.
30008 2014-07-11  Rong Xu  <xur@google.com>
30010         * gcov-tool.c (gcov_output_files): Fix build error introduced in
30011         commit r212448.
30013 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
30015         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
30016         * config/avr/avr-devices.c (AVR_MCU): Same.
30017         (avr_mcu_types): add text start value to end of device list.
30018         * config/avr/avr-mcus.def: Add text section start for all devices.
30019         (ata5782): Add new avr5 device.
30020         (ata5831): Same.
30021         * config/avr/avr-tables.opt: Regenerate.
30022         * config/avr/avr.h: Add declaration for text section start handler.
30023         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
30024         SPEC functions.
30025         (LINK_SPEC): Include text section start handler to linker spec.
30026         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
30027         pass -Ttext option to linker if the text section start for the device
30028         is not zero.
30029         * config/avr/t-multilib: Regenerate.
30030         * doc/avr-mmcu.texi: Regenerate.
30032 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
30034         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
30035         * config/rs6000/aix52.h (LINK_SPEC): Same.
30036         * config/rs6000/aix53.h (LINK_SPEC): Same.
30037         * config/rs6000/aix61.h (LINK_SPEC): Same.
30038         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
30040 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
30042         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
30043         (graphite_verify): New function.
30044         (ivs_params_clear): New function.
30045         (gcc_expression_from_isl_ast_expr_id): New function.
30046         (gcc_expression_from_isl_expr_int): New function.
30047         (binary_op_to_tree): New function.
30048         (ternary_op_to_tree): New function.
30049         (unary_op_to_tree): New function.
30050         (nary_op_to_tree): New function.
30051         (gcc_expression_from_isl_expr_op): New function.
30052         (gcc_expression_from_isl_expression): New function.
30053         (graphite_create_new_loop): New function.
30054         (translate_isl_ast_for_loop): New function.
30055         (get_upper_bound): New function.
30056         (graphite_create_new_loop_guard): New function.
30057         (translate_isl_ast_node_for): New function.
30058         (translate_isl_ast): New function.
30059         (add_parameters_to_ivs_params): New function.
30060         (scop_to_isl_ast): New parameter ip.
30061         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
30063 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
30065         * config/xtensa/predicates.md (call expander): Update for
30066         DECL_SECTION_NAME being string.
30068 2014-07-11  Richard Biener  <rguenther@suse.de>
30070         PR middle-end/61473
30071         * builtins.c (fold_builtin_memory_op): Inline memory moves that
30072         can be implemented with a single load followed by a single store.
30073         (c_strlen): Only warn when only_value is not 2.
30075 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
30077         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
30079 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
30081         PR target/61561
30082         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
30083         (*movhi_bytes): Likewise.
30084         (*arm_movqi_insn): Likewise.
30086 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
30088         PR target/56858
30089         * config/alpha/alpha.c: Include tree-pass.h, context.h
30090         and pass_manager.h.
30091         (pass_data_handle_trap_shadows): New pass.
30092         (pass_handle_trap_shadows::gate): New pass gate function.
30093         (make_pass_handle_trap_shadows): New function.
30094         (rest_of_handle_trap_shadows): Ditto.
30096         (alpha_align_insns_1): Rename from alpha_align_insns.
30097         (pass_data_align_insns): New pass.
30098         (pass_align_insns::gate): New pass gate function.
30099         (make_pass_aling_insns): New function.
30100         (rest_of_align_insns): Ditto.
30101         (alpha_align_insns): Ditto.
30103         (alpha_option_override): Declare handle_trap_shadows info
30104         and align_insns_info.  Register handle_trap_shadows and align_insns
30105         passes here.
30106         (alpha_reorg): Do not call alpha_trap_shadows and
30107         alpha_align_insn from here.
30109         (alpha_pad_function_end): Do not skip BARRIERs.
30111 2014-07-10  Rong Xu  <xur@google.com>
30113         Add gcov-tool: an offline gcda profile processing tool support.
30114         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
30115         (gcov_is_error): Ditto.
30116         (gcov_read_string): Ditto.
30117         (gcov_read_sync): Ditto.
30118         * gcov-io.h: Move counter defines to gcov-counter.def.
30119         * gcov-dump.c (tag_counters): Use gcov-counter.def.
30120         * coverage.c: Ditto.
30121         * gcov-tool.c: Offline gcda profile processing tool.
30122         (unlink_gcda_file): Remove one gcda file.
30123         (unlink_profile_dir): Remove gcda files from the profile path.
30124         (gcov_output_files): Output gcda files to an output dir.
30125         (profile_merge): Merge two profiles in directory.
30126         (print_merge_usage_message): Print merge usage.
30127         (merge_usage): Print merge usage and exit.
30128         (do_merge): Driver for profile merge sub-command.
30129         (profile_rewrite): Rewrite profile.
30130         (print_rewrite_usage_message): Print rewrite usage.
30131         (rewrite_usage): Print rewrite usage and exit.
30132         (do_rewrite): Driver for profile rewrite sub-command.
30133         (print_usage): Print gcov-info usage and exit.
30134         (print_version): Print gcov-info version.
30135         (process_args): Process arguments.
30136         (main): Main routine for gcov-tool.
30137         * Makefile.in: Build and install gcov-tool.
30138         * gcov-counter.def: New file split from gcov-io.h.
30139         * doc/gcc.texi: Include gcov-tool.texi.
30140         * doc/gcov-tool.texi: Document for gcov-tool.
30142 2014-07-10  Richard Biener  <rguenther@suse.de>
30144         PR tree-optimization/61757
30145         * tree-ssa-dom.c (loop_depth_of_name): Restore.
30146         (propagate_rhs_into_lhs): Revert part of last change.
30148 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
30150         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
30151         FUNCTION_DECLs.
30153 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
30155         PR middle-end/53590
30156         * function.c (allocate_struct_function): Revert r188667 change.
30158         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
30160 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
30162         * doc/install.texi: Remove links to defunct package providers for
30163         Solaris.
30165 2014-07-09  Tom de Vries  <tom@codesourcery.com>
30167         * final.c (get_call_fndecl): Declare.
30168         (self_recursive_call_p): New function.
30169         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
30171 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30173         * ipa-devirt.c (record_node): Walk through aliases.
30175 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30177         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
30179 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30181         Revert:
30182         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
30184 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30186         * ipa-visibility.c (function_and_variable_visibility): Remove
30187         temporary hack disabling local aliases on AIX.
30189 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30191         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
30192         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
30194 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30196         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
30197         * rs6000/rs6000.c: Inline output of .set instruction.
30198         (declare_alias_data): New struct.
30199         (rs6000_declare_alias): New function.
30200         (rs6000_xcoff_declare_function_name): Use it.
30201         (rs6000_xcoff_declare_object_name): New function.
30202         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
30203         (ASM_OUTPUT_DEF): Turn to empty definition.
30205 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
30207         PR bootstrap/61679
30208         * hash-table.h: use hash_table::value_type instead of
30209         Descriptor::value_type in the return types of several methods.
30211 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
30213         * tree-pass.h (pass_data): Remove has_execute member.
30214         * passes.c (execute_one_pass): Don't check pass->has_execute.
30215         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
30216         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
30217         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
30218         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
30219         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
30220         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
30221         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
30222         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
30223         gimple-low.c, gimple-ssa-isolate-paths.c,
30224         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
30225         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
30226         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
30227         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
30228         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
30229         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
30230         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
30231         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
30232         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
30233         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
30234         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
30235         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
30236         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
30237         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
30238         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
30239         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
30240         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
30241         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
30242         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
30243         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
30244         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
30245         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
30246         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
30247         web.c: Remove initializer for pass_data::has_execute.
30249 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
30251         * graphite-htab.h: Use hash_map instead of hash_table.
30252         * graphite-clast-to-gimple.c: Adjust.
30253         * passes.c: Use hash_map instead of hash_table.
30254         * sese.c: Likewise.
30255         * sese.h: Remove now unused code.
30257 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
30259         PR target/61599
30260         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
30261         than zero.
30263 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
30265         PR rtl-optimization/61673
30266         * combine.c (simplify_comparison): Test just mode's sign bit
30267         in tmode rather than the sign bit and any bits above it.
30269 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
30271         * graphite-isl-ast-to-gimple.c (generate_isl_context):
30272         Add __isl_give to the declaration.
30273         (generate_isl_schedule): Likewise.
30274         (scop_to_isl_ast): Likewise.
30276 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30278         * config/arm/arm.c (cortexa5_extra_costs): New table.
30279         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
30281 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
30283         PR tree-optimization/61725
30284         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
30285         range, use range_includes_zerop_p instead of integer_zerop on
30286         vr0->min, only use log2 of max if min is not negative.
30288 2014-07-08  Richard Biener  <rguenther@suse.de>
30290         * tree-ssa-dom.h (loop_depth_of_name): Remove.
30291         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
30292         restriction on loop depth difference.
30293         (record_equality): Likewise.
30294         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
30295         (loop_depth_of_name): Remove.
30296         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
30297         restriction on loop depth difference.
30298         (init_copy_prop): Likewise.
30300 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
30302         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
30303         parameter.
30304         (walk_aliased_vdefs): Likewise.
30305         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
30306         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
30307         (detect_type_change_from_memory_writes): Check if entry was reached.
30309 2014-07-08  Richard Biener  <rguenther@suse.de>
30311         PR tree-optimization/61681
30312         * tree-ssa-structalias.c (find_what_var_points_to): Expand
30313         NONLOCAL inside ESCAPED.
30315 2014-07-08  Richard Biener  <rguenther@suse.de>
30317         PR tree-optimization/61680
30318         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30319         Handle properly all read-write dependences with group accesses.
30321 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
30323         PR tree-optimization/61576
30324         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
30325         block containing reduction statement is predecessor of phi basi block.
30327 2014-07-08  Marek Polacek  <polacek@redhat.com>
30329         PR c/60226
30330         * fold-const.c (round_up_loc): Change the parameter type.
30331         Remove assert.
30332         * fold-const.h (round_up_loc): Adjust declaration.
30333         * stor-layout.c (finalize_record_size): Check for too large types.
30335 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
30337         * symtab.c: Include calls.h.
30338         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
30340 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
30342         * config/rs6000/rs6000.c (output_vec_const_move): Handle
30343         little-endian code generation.
30344         * config/rs6000/spe.md (spe_evmergehi): Rename to...
30345         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
30346         (spe_evmergehilo): Rename to...
30347         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
30348         (spe_evmergelo): Rename to...
30349         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
30350         (spe_evmergelohi): Rename to...
30351         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
30352         (spe_evmergehi, spe_evmergehilo): New expanders.
30353         (spe_evmergelo, spe_evmergelohi): Likewise.
30354         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
30355         (*frob_tf_ti): Likewise.
30356         (*frob_<mode>_di_2): Likewise.
30357         (*frob_tf_di_8_2): Likewise.
30358         (*frob_di_<mode>): Likewise.
30359         (*frob_ti_tf): Likewise.
30360         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
30361         (*frob_ti_<mode>_8_2): Likewise.
30362         (*frob_ti_tf_2): Likewise.
30363         (mov_si<mode>_e500_subreg0): Rename to...
30364         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
30365         endianness only.
30366         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
30367         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
30368         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
30369         the big endianness only.
30370         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
30371         (*mov_si<mode>_e500_subreg0_2): Rename to...
30372         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
30373         big big endianness only.
30374         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
30375         (*mov_si<mode>_e500_subreg4): Rename to...
30376         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
30377         endianness only.
30378         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
30379         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
30380         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
30381         the big endianness only.
30382         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
30383         pattern.
30384         (*mov_si<mode>_e500_subreg4_2): Rename to...
30385         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
30386         endianness only.
30387         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
30388         (*mov_sitf_e500_subreg8): Rename to...
30389         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
30390         endianness only.
30391         (*mov_sitf_e500_subreg8_le): New instruction pattern.
30392         (*mov_sitf_e500_subreg8_2): Rename to...
30393         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
30394         endianness only.
30395         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
30396         (*mov_sitf_e500_subreg12): Rename to...
30397         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
30398         endianness only.
30399         (*mov_sitf_e500_subreg12_le): New instruction pattern.
30400         (*mov_sitf_e500_subreg12_2): Rename to...
30401         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
30402         endianness only.
30403         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
30405 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30407         * asan.c (instrument_strlen_call): Do not instrument first byte
30408         in strlen if already instrumented.
30410 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30412         * config/arm/arm.opt (mwords-little-endian): Delete.
30413         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
30414         of TARGET_LITTLE_WORDS.
30415         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
30416         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
30417         warning.
30418         * doc/invoke.texi: Remove references to -mwords-little-endian.
30420 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
30422         * expmed.c (struct init_expmed_rtl): Change all fields but
30423         pow2 and cint from struct rtx_def to rtx.
30424         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
30425         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
30426         at the end again.
30428 2014-07-06  Marek Polacek  <polacek@redhat.com>
30430         PR c/6940
30431         * doc/invoke.texi: Document -Wsizeof-array-argument.
30433 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
30435         * wide-int.h (wide_int_storage): Change declaration from struct
30436         to class.
30438 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
30440         * cgraph.c (cgraph_create_indirect_edge): Update call of
30441         get_polymorphic_call_info.
30442         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
30443         (possible_polymorphic_call_targets): Add parameter call.
30444         (decl_maybe_in_construction_p): New predicate.
30445         (get_polymorphic_call_info): Add parameter call;
30446         use decl_maybe_in_construction_p.
30447         * gimple-fold.c (fold_gimple_assign): Update use of
30448         possible_polymorphic_call_targets.
30449         (gimple_fold_call): Likewise.
30450         * ipa-prop.c: Inlcude calls.h
30451         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
30452         (param_type_may_change_p): New predicate.
30453         (detect_type_change_from_memory_writes): Break out from ...
30454         (detect_type_change): ... this one; use param_type_may_change_p.
30455         (detect_type_change_ssa): Use param_type_may_change_p.
30456         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
30458 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
30460         PR target/49423
30461         * config/arm/arm-protos.h (arm_legitimate_address_p,
30462         arm_is_constant_pool_ref): Add prototypes.
30463         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
30464         (arm_is_constant_pool_ref) New function.
30465         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
30466         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
30467         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
30468         operand. Remove pool_range and neg_pool_range attributes.
30469         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
30470         pool_range and neg_pool_range attributes.
30471         * config/arm/constraints.md (Uh): New constraint.
30472         (Uq): Don't allow constant pool references.
30474 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
30476         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
30477         (move_lo_quad_internal_be_<mode>): Likewise.
30478         (move_lo_quad_<mode>): Convert to define_expand.
30479         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
30480         (aarch64_simd_move_hi_quad_be_<mode>): New.
30481         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
30482         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
30483         (aarch64_combinez_be<mode>): New.
30484         (aarch64_combine<mode>): Convert to define_expand.
30485         (aarch64_combine_internal<mode>): New.
30486         (aarch64_simd_combine<mode>): Remove bogus RTL description.
30488 2014-07-04  Tom de Vries  <tom@codesourcery.com>
30490         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
30491         combination of earlyclobber and read/write modifiers.
30493 2014-07-04  Tom de Vries  <tom@codesourcery.com>
30495         * config/aarch64/aarch64-simd.md
30496         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
30498 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
30500         PR target/61714
30501         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
30503 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
30505         PR middle-end/61654
30506         * cgraphunit.c (expand_thunk): Call free_dominance_info.
30508         PR tree-optimization/61684
30509         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
30510         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
30512 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30513             Kito Cheng  <kito@0xlab.org>
30514             Monk Chiang  <sh.chiang04@gmail.com>
30516         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
30517         (nds32_symbol_load_store_p): Move to ...
30518         (nds32_fp_as_gp_check_available): Move to ...
30519         * config/nds32/nds32-fp-as-gp.c: ... here.
30520         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
30521         extern declaration.
30523 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30524             Kito Cheng  <kito@0xlab.org>
30525             Monk Chiang  <sh.chiang04@gmail.com>
30527         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
30528         (nds32_expand_store_multiple): Move to ...
30529         (nds32_expand_movmemqi): Move to ...
30530         * config/nds32/nds32-memory-manipulation.c: ... here.
30532 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30533             Kito Cheng  <kito@0xlab.org>
30534             Monk Chiang  <sh.chiang04@gmail.com>
30536         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
30537         (nds32_output_casesi_pc_relative): Move to ...
30538         (nds32_output_casesi): Move to ...
30539         (nds32_mem_format): Move to ...
30540         (nds32_output_16bit_store): Move to ...
30541         (nds32_output_16bit_load): Move to ...
30542         (nds32_output_32bit_store): Move to ...
30543         (nds32_output_32bit_load): Move to ...
30544         (nds32_output_32bit_load_s): Move to ...
30545         (nds32_output_stack_push): Move to ...
30546         (nds32_output_stack_pop): Move to ...
30547         * config/nds32/nds32-md-auxiliary.c: ... here.
30549 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30550             Ling-Hua Tseng  <uranus@tinlans.org>
30552         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
30553         the purpose of this file.
30555 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30556             Kito Cheng  <kito@0xlab.org>
30557             Monk Chiang  <sh.chiang04@gmail.com>
30559         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
30560         (nds32_address_cost): Move implementation to ...
30561         * config/nds32/nds32-cost.c: ... here.
30562         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
30563         (nds32_address_cost_impl): Declare.
30565 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30566             Kito Cheng  <kito@0xlab.org>
30567             Monk Chiang  <sh.chiang04@gmail.com>
30569         * config/nds32/nds32.c
30570         (nds32_consecutive_registers_load_store_p): Move to ...
30571         (nds32_valid_multiple_load_store): Move to ...
30572         (nds32_valid_stack_push_pop): Move to ...
30573         (nds32_can_use_bclr_p): Move to ...
30574         (nds32_can_use_bset_p): Move to ...
30575         (nds32_can_use_btgl_p): Move to ...
30576         (nds32_can_use_bitci_p): Move to ...
30577         * config/nds32/nds32-predicates.c: ... here.
30579 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30580             Kito Cheng  <kito@0xlab.org>
30581             Monk Chiang  <sh.chiang04@gmail.com>
30583         * config/nds32/nds32.c
30584         (nds32_expand_builtin_null_ftype_reg): Move to ...
30585         (nds32_expand_builtin_reg_ftype_imm): Move to ...
30586         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
30587         (nds32_init_builtins): Move implementation to ...
30588         (nds32_expand_builtin): Move implementation to ...
30589         * config/nds32/nds32-intrinsic.c: ... here.
30590         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
30591         (nds32_expand_builtin_impl): Declare.
30593 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30594             Kito Cheng  <kito@0xlab.org>
30595             Monk Chiang  <sh.chiang04@gmail.com>
30597         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
30598         (nds32_emit_section_tail_template): Move to ...
30599         (nds32_emit_isr_jmptbl_section): Move to ...
30600         (nds32_emit_isr_vector_section): Move to ...
30601         (nds32_emit_isr_reset_conten): Move to ...
30602         (nds32_check_isr_attrs_conflict): Move to ...
30603         (nds32_construct_isr_vectors_information): Move to ...
30604         (nds32_asm_file_start): Move implementation to ...
30605         (nds32_asm_file_end): Move implementation to ...
30606         * config/nds32/nds32-isr.c: ... here.
30607         * config/nds32/nds32-protos.h
30608         (nds32_check_isr_attrs_conflict): Declare.
30609         (nds32_construct_isr_vectors_information): Declare.
30610         (nds32_asm_file_start_for_isr): Declare.
30611         (nds32_asm_file_end_for_isr): Declare.
30613 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
30614             Kito Cheng  <kito@0xlab.org>
30615             Monk Chiang  <sh.chiang04@gmail.com>
30617         * config.gcc (nds32*): Add new modules to extra_objs.
30618         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
30619         (nds32be-*-*): Likewise.
30620         * config/nds32/nds32-cost.c: New file.
30621         * config/nds32/nds32-fp-as-gp.c: New file.
30622         * config/nds32/nds32-intrinsic.c: New file.
30623         * config/nds32/nds32-isr.c: New file.
30624         * config/nds32/nds32-md-auxiliary.c: New file.
30625         * config/nds32/nds32-memory-manipulation.c: New file.
30626         * config/nds32/nds32-pipelines-auxiliary.c: New file.
30627         * config/nds32/nds32-predicates.c: New file.
30628         * config/nds32/t-nds32: New file.
30630 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
30632         PR tree-optimization/61682
30633         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
30634         using cases and when one of the operands is equal to 1.
30636 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
30638         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
30639         ashr<mode>3): Correct mode of operands[2].
30640         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
30641         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
30642         Correct mode of operands[2].  Fix split condition.
30644 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
30646         * arm.md (arch): Add armv6_or_vfpv3.
30647         (arch_enabled): Add test for the above.
30648         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
30649         on VFP9.
30650         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
30652 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
30654         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
30655         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
30656         HWI 1 and negate the unsigned value.
30657         * expmed.c (expand_sdiv_pow2): For modes wider than word always
30658         use AND instead of shift.
30659         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
30661 2014-07-03  Marek Polacek  <polacek@redhat.com>
30663         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
30664         (-fsanitize=float-divide-by-zero): Move to the table with
30665         -fsanitize=undefined suboptions.
30666         (-fsanitize=float-cast-overflow): Likewise.
30668 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
30670         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
30671         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
30672         endianness.
30674 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30676         * loop-invariant.c (struct invariant): Add a new member: eqno;
30677         (find_identical_invariants): Update eqno;
30678         (create_new_invariant): Init eqno;
30679         (get_inv_cost): Compute comp_cost with eqno;
30681 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
30683         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
30684         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
30685         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
30686         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
30687         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
30689 2014-07-02  Christian Bruel  <christian.bruel@st.com>
30691         PR target/29349
30692         PR target/53513
30693         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
30694         (make_preds_opaque): Delete.
30695         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
30696         (commit_mode_sets): New function.
30697         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
30698         Process all modes at once.
30699         * basic-block.h (pre_edge_lcm_avs): Declare.
30700         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
30701         Call clear_aux_for_edges. Fix comments.
30702         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
30703         (pre_edge_rev_lcm): Idem.
30704         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
30705         parameter.
30706         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
30707         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
30708         Idem.
30709         * config/i386/i386.c (x96_emit_mode_set): Idem.
30710         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
30711         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
30712         (fpscr_toggle) Disallow from delay slot.
30713         * target.def (emit_mode_set): Add prev_mode parameter.
30714         * doc/tm.texi: Regenerate.
30716 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30718         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
30719         variable i.
30721 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
30723         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
30724         vtable_pointer_value_to_vtable): Constify.
30725         (contains_polymorphic_type_p): Declare.
30726         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
30727         vtable_pointer_value_to_vtable): Constify.
30728         (contains_polymorphic_type_p): New predicate.
30729         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
30730         polymorphic types.
30731         (ipa_set_ancestor_jf): Likewise.
30732         (detect_type_change): Return false in easy cases.
30733         (compute_complex_assign_jump_func): Require type to contain
30734         polymorphic type.
30735         (compute_known_type_jump_func): Likewise.
30737 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
30739         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
30740         Remove.
30741         (type_in_anonymous_namespace_p): Constify argument.
30742         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
30743         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
30744         (main_odr_variant): New function.
30745         (hash_type_name): Make static; update assert; do not ICE on
30746         non-records.
30747         (types_same_for_odr): Bring here from tree.c; simplify and remove
30748         old structural comparing code that doesn't work for templates.
30749         (odr_hasher::equal): Update assert.
30750         (add_type_duplicate): Return true when bases should be computed;
30751         replace incomplete loader by complete; do not output duplicated
30752         warnings; do not ICE on non-records; set odr_violated flag.
30753         (get_odr_type): Be ready to replace incomplete type by complete
30754         one; work on ODR variants instead of main variants; reorder item
30755         in array so bases have still smaller indexes.
30756         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
30757         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
30759 2014-07-01  Cary Coutant  <ccoutant@google.com>
30761         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
30762         lookup.
30763         (resolve_addr_in_expr): When replacing the rtx in a location list
30764         entry, get a new address table entry.
30765         (dwarf2out_finish): Call index_location_lists even if there are no
30766         addr_index_table entries yet.
30768 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
30770         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
30771         change for not being obvious.
30773 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
30775         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
30776         unused argument.
30778 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30780         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
30781         (vcagt_f64): Likewise.
30782         (vcale_f64): Likewise.
30783         (vcaled_f64): Likewise.
30784         (vcales_f32): Likewise.
30785         (vcalt_f64): Likewise.
30786         (vcaltd_f64): Likewise.
30787         (vcalts_f32): Likewise.
30789 2014-07-01  Marek Polacek  <polacek@redhat.com>
30791         * doc/invoke.texi: Document -Wint-conversion.
30793 2014-07-01  Marek Polacek  <polacek@redhat.com>
30795         PR c/58286
30796         * doc/invoke.texi: Document -Wincompatible-pointer-types.
30798 2014-07-01  Martin Liska  <mliska@suse.cz>
30800         IPA REF alias refactoring
30801         * cgraph.h (iterate_direct_aliases): New function.
30802         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
30803         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
30804         FOR_EACH_ALIAS added.
30805         (cgraph_for_node_and_aliases): Likewise.
30806         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
30807         * ipa-inline.c (reset_edge_caches): Likewise.
30808         (update_caller_keys): Likewise.
30809         * trans-mem.c (ipa_tm_execute): Likewise.
30810         *varpool.c (varpool_analyze_node): Likewise.
30811         (varpool_for_node_and_aliases): Likewise.
30812         * ipa-ref.h (first_alias): New function.
30813         (last_alias): Likewise.
30814         (has_aliases_p): Likewise.
30815         * ipa-ref.c (ipa_ref::remove_reference): Removal function
30816         is sensitive to IPA_REF_ALIASes.
30817         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
30818         are put at the beginning of the list.
30819         (symtab_node::iterate_direct_aliases): New function.
30821 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30823         Revert:
30824         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
30825         type is complete.
30826         (write_ts_type_common_tree_pointers): Do not stream fields not set
30827         for incomplete types; do not stream duplicated fields for variants;
30828         sanity check that variant and type match.
30829         (write_ts_type_non_common_tree_pointers): Likewise.
30830         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
30831         TYPE_SIZE whether type is complete.
30832         (lto_input_ts_type_common_tree_pointers): Do same changes as in
30833         write_ts_type_common_tree_pointers
30834         (lto_input_ts_type_non_common_tree_pointers): Likewise.
30836 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
30838         * var-tracking.c (add_stores): Return instead of asserting if old
30839         and new values for conditional store are the same.
30841 2014-06-30  Richard Henderson  <rth@redhat.com>
30843         PR rtl-opt/61608
30844         PR target/39284
30845         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
30846         the cfg if there were any changes.
30847         * passes.def: Revert move of peephole2 after reorder_blocks;
30848         move duplicate_computed_gotos before peephole2.
30850 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
30852         * except.c (emit_note_eh_region_end): New helper function.
30853         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
30854         emit EH_REGION_END note.
30855         * jump.c (cleanup_barriers): Do not split a call and its
30856         corresponding CALL_ARG_LOCATION note.
30858 2014-06-30  Jeff Law  <law@redhat.com>
30860         PR tree-optimization/61607
30861         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
30862         deeper into the SSA_NAME_VALUE chain.
30864 2014-06-30  Marek Polacek  <polacek@redhat.com>
30866         * convert.c (convert_to_integer): Don't instrument conversions if the
30867         function has no_sanitize_undefined attribute.
30868         * ubsan.c: Don't run the ubsan pass if the function has
30869         no_sanitize_undefined attribute.
30871 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
30873         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
30874         -fsanitize=undefined suboptions.
30876 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
30878         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
30879         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
30880         against bigendian and adjust indices.
30882 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
30884         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
30886 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30888         PR target/61633
30889         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
30890         Add alternative; make early clobber.  Adjust both split patterns
30891         to use operand 0 as the working register.
30893 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
30895         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
30896         as ira_object_id_map might be NULL, or 1.
30898 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30900         * loop-invariant.c (get_inv_cost): Handle register class.
30901         (gain_for_invariant): Check the register pressure of the inv
30902         and its overlapped register class, other than all.
30904 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
30906         * doc/invoke.texi (Optimize Options): Fix descriptions of
30907         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
30909 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
30911         * doc/extend.texi (Function Attributes): Update 'naked' attribute
30912         documentation.
30914 2014-06-29  Tobias Grosser <tobias@grosser.es>
30916         PR bootstrap/61650
30917         * graphite-isl-ast-to-gimple.c: Add missing guards.
30919 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
30921         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
30922         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
30923         * flag-types.h: Add new enum fgraphite_generator.
30924         * graphite-isl-ast-to-gimple.c: New.
30925         * graphite-isl-ast-to-gimple.h: New.
30926         * graphite.c (graphite_transform_loops): Add choice of Graphite
30927         code generator, which depends on flag_graphite_code_gen.
30929 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
30931         * graphite-dependences.c (subtract_commutative_associative_deps):
30932         Add NULL checking of the following variables: must_raw_no_source,
30933         may_raw_no_source, must_war_no_source, may_war_no_source,
30934         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
30935         must_war, may_war, must_waw, may_waw.
30937 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
30939         * graphite-clast-to-gimple.c: gloog is renamed to
30940         graphite_regenerate_ast_cloog.  gloog_error is renamed to
30941         graphite_regenerate_error.
30942         * graphite-clast-to-gimple.h: The definition of the struct
30943         bb_pbb_def is moved to graphite-htab.h.
30944         Add inclusion of the hash-table.h.
30945         * graphite-htab.h: The declaration of the function gloog is moved
30946         to graphite-clast-to-gimple.h and renamed to
30947         graphite_regenerate_ast_cloog.
30948         * graphite.c (graphite_transform_loops): gloog is renamed
30949         to graphite_regenerate_ast_cloog.
30951 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30953         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
30954         type is complete.
30955         (write_ts_type_common_tree_pointers): Do not stream fields not set
30956         for incomplete types; do not stream duplicated fields for variants;
30957         sanity check that variant and type match.
30958         (write_ts_type_non_common_tree_pointers): Likewise.
30959         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
30960         TYPE_SIZE whether type is complete.
30961         (lto_input_ts_type_common_tree_pointers): Do same changes as in
30962         write_ts_type_common_tree_pointers
30963         (lto_input_ts_type_non_common_tree_pointers): Likewise.
30965 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30967         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
30969 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30971         * tree-inline.c (remap_type_1): Do not duplicate fields
30972         that are shared in between type and its main variant.
30974 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30976         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
30977         of the type.
30978         (ipa_set_ancestor_jf) Likewise.
30979         (check_stmt_for_type_change): Check that we work on main variant.
30980         (detect_type_change): Look into main variant.
30981         (compute_known_type_jump_func): Check that main variant has BINFO.
30983 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30985         * ipa-devirt.c (set_type_binfo): New function.
30986         (add_type_duplicate): Use it.
30987         (get_odr_type): Sanity check that binfos points to main variants.
30988         (get_class_context): Be sure the context's outer_type is main variant.
30989         (contains_type_p): Walk main variant.
30990         (get_polymorphic_call_info_for_decl): Set outer_type to be
30991         main variant.
30992         (get_polymorphic_call_info): Likewise.
30993         (possible_polymorphic_call_targets): Sanity check that we operate
30994         on main variant.
30996 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
30998         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
31000 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31002         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
31003         accidental change due to wide-int branch merge.
31005 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31007         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
31008         compressed debug support.
31009         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
31010         * configure: Regenerate.
31011         * config.in: Regenerate.
31012         * common.opt (compressed_debug_sections): New enum.
31013         (gz, gz=): New options.
31014         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
31015         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
31016         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
31017         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
31018         LINK_COMPRESS_DEBUG_SPEC.
31019         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
31020         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
31021         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
31022         (Debugging Options): Document -gz[=type].
31024 2014-06-27  Martin Jambor  <mjambor@suse.cz>
31026         PR ipa/61160
31027         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
31028         args_to_skip, use those from node instead.  Copy args_to_skip and
31029         combined_args_to_skip from node to the new thunk.
31030         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
31031         (cgraph_create_virtual_clone): Moved computation of
31032         combined_args_to_skip...
31033         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
31035 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
31037         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
31038         redundant diagnostic machinary.
31040 2014-06-27  Richard Biener  <rguenther@suse.de>
31042         * tree-ssa-math-opts.c (bswap_replace): Fix
31043         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
31045 2014-06-27  Martin Liska  <mliska@suse.cz>
31047         * gimple.h (gimple_location_safe): New function introduced.
31048         * cgraphunit.c (walk_polymorphic_call_targets): Usage
31049         of gimple_location_safe replaces gimple_location.
31050         (gimple_fold_call): Likewise.
31051         * ipa-devirt.c (ipa_devirt): Likewise.
31052         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
31053         * ipa.c (walk_polymorphic_call_targets): Likewise.
31054         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
31056 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
31058         PR tree-optimization/57233
31059         PR tree-optimization/61299
31060         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
31061         functions.
31062         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
31063         would be lowered to scalar shifts, check if corresponding
31064         shifts and vector BIT_IOR_EXPR are supported and don't lower
31065         or lower just to narrower vector type in that case.
31066         * expmed.c (expand_shift_1): Fix up handling of vector
31067         shifts and rotates.
31069 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
31071         PR target/61586
31072         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
31074 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
31076         * doc/invoke.texi (-fsemantic-interposition): Document.
31077         * common.opt (fsemantic-interposition): New flag.
31078         * varasm.c (decl_replaceable_p): Use it.
31080 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31082         PR target/61542
31083         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
31084         extraction other than index 3.
31086 2014-06-26  Teresa Johnson  <tejohnson@google.com>
31088         * doc/invoke.texi: Fix typo.
31089         * dumpfile.c: Add support for documented -fdump-* options
31090         optimized/missed/note/optall.
31092 2014-06-26  Martin Jambor  <mjambor@suse.cz>
31094         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
31095         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
31096         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
31097         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
31098         * opts.c (default_options_optimization): Set
31099         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
31100         * doc/invoke.texi (allow-load-data-races)
31101         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
31102         (allow-store-data-races): Document the new default.
31104 2014-06-26  Martin Jambor  <mjambor@suse.cz>
31106         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
31107         renamed to ipa_impossible_devirt_target.  Fix typo.
31108         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
31109         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
31110         ipa_impossible_devirt_target.
31112 2014-06-26  Richard Biener  <rguenther@suse.de>
31114         PR tree-optimization/61607
31115         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
31116         explaining why we restrict copies on loop depth.
31117         * tree-ssa-dom.c (cprop_operand): Remove restriction on
31118         on loop depth.
31119         (record_equivalences_from_phis): Instead add it here.
31121 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
31123         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
31124         (LTO_WRAPPER_OBJS): New variable.
31125         (lto-wrapper$(exeext)): Use it.
31126         * collect2.c: Include "collect-utils.h".
31127         (verbose, debug): Remove variables.
31128         (at_file_supplied): No longer static.
31129         (tool_name): New variable.
31130         (do_wait, fork_execute, maybe_unlink): Don't declare.
31131         (tool_cleanup): No longer static.
31132         (notice): Remove function.
31133         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
31134         fork_execute calls.
31135         (collect_wait, do_wait, collect_execute): Remove functions.
31136         (maybe_unlink): No longer static.
31137         * collect2.h (verbose, debug): Don't declare.
31138         (at_file_supplied): Declare.
31139         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
31140         changed.
31141         (collect_execute): Replace with implementation from collect2, plus a
31142         new arg use_atfile.  All callers changed.
31143         (collect_wait): Replace with implementation from collect2.
31144         (maybe_unlink_file): Remove function.
31145         (fork_execute): Replace with implementation from collect2, plus a
31146         new arg use_atfile.  All callers changed.
31147         (do_wait): Add call to utils_cleanup to the error path.
31148         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
31149         (tool_cleanup): Adjust declarations.
31150         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
31151         * tlink.c: Include "collect-utils.h".
31152         (tlink_execute): New arg use_atfile.  All callers changed.
31153         (tlink_init, tlink_execute): Remove declarations.
31155         * collect-utils.c (save_temps): New variable.
31156         (do_wait): Use it instead of debug.  Use fatal_error.
31157         * collect-utils.h (save_temps): Declare.
31158         * collect2.c (verbose): Rename from vflag.  All uses changed.
31159         (tool_cleanup): New function, copied from collect_atexit.
31160         (collect_atexit, handler): Just call it.
31161         * collect2.h (verbose): Declaration renamed from vflag.
31162         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
31163         debug.
31165         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
31166         (lto-wrapper$(exeext)): Link with collect-utils.o.
31167         * collect-utils.c: New file.
31168         * collect-utils.h: New file.
31169         * lto-wrapper.c: Include "collect-utils.h".
31170         (args_name): Delete variable.
31171         (tool_name): New variable.
31172         (tool_cleanup): New function.
31173         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
31174         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
31175         (fork_execute): Remove functions.
31177 2014-06-26  Nick Clifton  <nickc@redhat.com>
31179         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
31181         * doc/extend.texi (Function Attributes): Fix typo in description
31182         of RX vector attribute.
31184 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
31186         * config.gcc (supported_defaults): Error when passing either
31187         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
31189 2014-06-26  Richard Biener  <rguenther@suse.de>
31191         * tree-ssa-dom.c (cprop_operand): Remove restriction on
31192         propagating volatile pointers.
31194 2014-06-26  Richard Biener  <rguenther@suse.de>
31196         PR tree-optimization/61607
31197         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
31198         loop if we redirected its latch edge.
31199         (thread_block_1): Do not cancel loops prematurely.
31201 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
31203         * toplev.c (backend_init_target): Move init_emit_regs and
31204         init_regs to...
31205         (backend_init) ... here; skip ira_init_once and backend_init_target.
31206         (target_reinit) ... and here; clear
31207         this_target_rtl->lang_dependent_initialized.
31208         (lang_dependent_init_target): Clear
31209         this_target_rtl->lang_dependent_initialized;
31210         break out rtl initialization to ...
31211         (initialize_rtl): ... here; call also backend_init_target
31212         and ira_init_once.
31213         * toplev.h (initialize_rtl): New function.
31214         * function.c: Include toplev.h
31215         (init_function_start): Call initialize_rtl.
31216         * rtl.h (target_rtl): Add target_specific_initialized,
31217         lang_dependent_initialized.
31219 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
31220             Jakub Jelinek  <jakub@redhat.com>
31222         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
31224 2014-06-25  Tom de Vries  <tom@codesourcery.com>
31226         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
31228 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31230         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
31231         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
31232         Issue a strict overflow warning if appropriate.
31234 2014-06-25  Martin Liska  <mliska@suse.cz>
31236         IPA REF refactoring
31237         * Makefile.in: Removed header file (ipa-ref-inline.h).
31238         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
31239         called.
31240         (cgraph_speculative_call_info): Likewise.
31241         (cgraph_for_node_thunks_and_aliases): Likewise.
31242         (cgraph_for_node_and_aliases): Likewise.
31243         (verify_cgraph_node): Likewise.
31244         * cgraph.h: Batch of IPA REF functions become member functions of
31245         symtab_node: add_reference, maybe_add_reference, clone_references,
31246         clone_referring, clone_reference, find_reference,
31247         remove_stmt_references, remove_all_references,
31248         remove_all_referring, dump_references, dump_referring,
31249         has_alias_p, iterate_reference, iterate_referring.
31250         * cgraphbuild.c (record_reference): New IPA REF function used.
31251         (record_type_list): Likewise.
31252         (record_eh_tables): Likewise.
31253         (mark_address): Likewise.
31254         (mark_load): Likewise.
31255         (mark_store): Likewise.
31256         (pass_build_cgraph_edges): Likewise.
31257         (rebuild_cgraph_edge): Likewise.
31258         (cgraph_rebuild_references): Likewise.
31259         (pass_remove_cgraph_callee_edges): Likewise.
31260         * cgraphclones.c (cgraph_clone_node): Likewise.
31261         (cgraph_create_virtual_clone): Likewise.
31262         (cgraph_materialize_clone): Likewise.
31263         (cgraph_materialize_all_clones): Likewise.
31264         * cgraphunit.c (cgraph_reset_node): Likewise.
31265         (cgraph_reset_node): Likewise.
31266         (analyze_function): Likewise.
31267         (assemble_thunks_and_aliases): Likewise.
31268         (expand_function): Likewise.
31269         * ipa-comdats.c (propagate_comdat_group): Likewise.
31270         (enqueue_references): Likewise.
31271         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
31272         (create_specialized_node): Likewise.
31273         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
31274         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
31275         * ipa-inline.c (reset_edge_caches): Likewise.
31276         (update_caller_keys): Likewise.
31277         (execute): Likewise.
31278         * ipa-prop.c (remove_described_reference): Likewise.
31279         (propagate_controlled_uses): Likewise.
31280         (ipa_edge_duplication_hook): Likewise.
31281         (ipa_modify_call_arguments): Likewise.
31282         * ipa-pure-const.c (propagate_pure_const): Likewise.
31283         * ipa-ref-inline.h: Header file removed, functions moved
31284         to symtab_node class.
31285         * ipa-ref.c (remove_reference): New class member function.
31286         (cannot_lead_to_return): New class member function.
31287         (referring_ref_list): Likewise.
31288         (referred_ref_list): Likewise.
31289         Rest of functions moved to symtab_node class.
31290         * ipa-ref.h: New member functions remove_reference,
31291         cannot_lead_to_return, referring_ref_list, referred_ref_list added
31292         to ipa_ref class.
31293         ipa_ref_list class has new member functions: first_reference,
31294         first_referring, clear, nreferences.
31295         * ipa-reference.c (analyze_function): New IPA REF function used.
31296         (write_node_summary_p): Likewise.
31297         (ipa_reference_write_optimization_summary): Likewise.
31298         * ipa-split.c (split_function): Likewise.
31299         * ipa-utils.c (ipa_reverse_postorder): Likewise.
31300         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
31301         (function_and_variable_visibility): Likewise.
31302         * ipa.c (has_addr_references_p): Likewise.
31303         (process_references): Argument type changed.
31304         (symtab_remove_unreachable_nodes): New IPA REF function used.
31305         (process_references): Likewise.
31306         (set_writeonly_bit): Likewise.
31307         * lto-cgraph.c: Implementation of new symtab_node member functions
31308         that uses new IPA REF functions.
31309         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
31310         function used.
31311         * lto-streamer-out.c (output_symbol_p): Likewise.
31312         * lto-streamer.h (referenced_from_this_partition_p): Argument type
31313         changed.
31314         * symtab.c: Implementation of new IPA REF API.
31315         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
31316         (ipa_tm_create_version): Likewise.
31317         (ipa_tm_execute): Likewise.
31318         * tree-emutls.c (gen_emutls_addr): Likewise.
31319         * tree-inline.c (copy_bb): Likewise.
31320         (delete_unreachable_blocks_update_callgraph): Likewise.
31321         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
31322         (varpool_for_node_and_aliases): Likewise.
31324 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
31326         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
31328 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
31330         PR bootstrap/61598
31331         * fold-const.c (fold_checksum_tree): Use a hash_table of const
31332         tree_node * instead of tree_node *.
31333         (fold): Adjust.
31334         (print_fold_checksum): Likewise.
31335         (fold_check_failed): Likewise.
31336         (debug_fold_checksum): Likewise.
31337         (fold_build1_stat_loc): Likewise.
31338         (fold_build2_stat_loc): Likewise.
31339         (fold_build3_stat_loc): Likewise.
31340         (fold_build_call_array_loc): Likewise.
31342 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
31344         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
31345         implementation with call to...
31346         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
31347         function.
31348         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
31349         Declare.
31351 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
31353         PR tree-optimization/57742
31354         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
31355         after replacing the statement.
31357 2014-06-25  Nick Clifton  <nickc@redhat.com>
31359         * config/v850/v850.c (GHS_default_section_names): Change to const
31360         char * type.
31361         (GHS_current_section_names): Likewise.
31362         (v850_insert_attributes): Do not build strings, just assign the
31363         names directly.  Change the type of 'chosen_section' to const
31364         char*.
31365         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
31366         directly to the array entry.
31367         * config/v850/v850.h (GHS_default_section_names): Change to const
31368         char * type.
31369         (GHS_current_section_names): Likewise.
31371 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
31373         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
31374         (LANG_HOOKS_DECLS): Add it.
31375         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
31376         has correct type.
31377         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
31378         * langhooks.h (struct lang_hooks_for_decls): Add
31379         omp_clause_linear_ctor hook.
31380         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
31381         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
31382         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
31383         combined simd loop use omp_clause_linear_ctor hook.
31385 2014-06-24  Cong Hou  <congh@google.com>
31387         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
31388         pattern recognition.
31389         (type_conversion_p): PROMOTION is true if it's a type promotion
31390         conversion, and false otherwise.  Return true if the given expression
31391         is a type conversion one.
31392         * tree-vectorizer.h: Adjust the number of patterns.
31393         * tree.def: Add SAD_EXPR.
31394         * optabs.def: Add sad_optab.
31395         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
31396         * expr.c (expand_expr_real_2): Likewise.
31397         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
31398         * gimple.c (get_gimple_rhs_num_ops): Likewise.
31399         * optabs.c (optab_for_tree_code): Likewise.
31400         * tree-cfg.c (estimate_operator_cost): Likewise.
31401         * tree-ssa-operands.c (get_expr_operands): Likewise.
31402         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
31403         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
31404         * doc/generic.texi: Add document for SAD_EXPR.
31405         * doc/md.texi: Add document for ssad and usad.
31407 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
31409         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
31410         qualification in cast.
31412 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
31414         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
31415         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
31416         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
31417         (tree_function_decl): ... here.
31418         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
31419         streaming of vindex to ...
31420         (write_ts_function_decl_tree_pointers): ... here.
31421         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
31422         Do not stream DECL_VINDEX.
31423         (lto_input_ts_function_decl_tree_pointers): Stream it here.
31425 2014-06-24  Catherine Moore  <clm@codesourcery.com>
31426             Sandra Loosemore  <sandra@codesourcery.com>
31428         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
31429         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
31430         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
31432 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
31434         * doc/invoke.texi (Warning Options): Remove duplicated
31435         -Wmaybe-uninitialized.
31437 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
31439         PR tree-optimization/57742
31440         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
31441         (handle_builtin_malloc, handle_builtin_memset): New functions.
31442         (strlen_optimize_stmt): Call them.
31443         * passes.def: Move strlen after loop+dom but before vrp.
31445 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
31447         PR target/61570
31448         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
31449         model family 6 CPU with has_longmode never use a CPU without
31450         64-bit support.
31452 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
31454         PR target/61570
31455         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
31456         the last change.
31458 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
31460         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
31461         * dominance.c (iterate_fix_dominators): Use hash_map instead of
31462         pointer_map.
31463         * hash-map.h: New file.
31464         * ipa-comdats.c: Use hash_map instead of pointer_map.
31465         * ipa.c: Likewise.
31466         * lto-section-out.c: Adjust.
31467         * lto-streamer.h: Replace pointer_map with hash_map.
31468         * symtab.c (verify_symtab): Likewise.
31469         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
31470         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
31471         * tree-streamer.h: Likewise.
31472         * tree-streamer.c: Adjust.
31473         * pointer-set.h: Remove pointer_map.
31475 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
31477         * hash-table.h: Add a template arg to choose between storing values
31478         and storing pointers to values, and then provide partial
31479         specializations for both.
31480         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
31481         should store, not the type values should point to.
31482         * tree-into-ssa.c (var_info_hasher): Likewise.
31483         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
31484         * tree-complex.c: Adjust.
31485         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
31486         table instead of int_tree_map *.
31487         * tree-parloops.c: Adjust.
31488         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
31489         type is being stored.
31490         * tree-vectorizer.c: Adjust.
31492 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
31494         * hash-table.h: Remove a layer of indirection from hash_table so that
31495         it contains the hash table's data instead of a pointer to the data.
31496         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
31497         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
31498         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
31499         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
31500         fold-const.c, gcse.c, ggc-common.c,
31501         gimple-ssa-strength-reduction.c, gimplify.c,
31502         graphite-clast-to-gimple.c, graphite-dependences.c,
31503         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
31504         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31505         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
31506         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
31507         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
31508         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
31509         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
31510         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
31511         tree-ssa-live.c, tree-ssa-loop-im.c,
31512         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
31513         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
31514         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31515         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
31516         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
31517         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
31518         vtable-verify.c, vtable-verify.h: Adjust.
31520 2014-06-24  Richard Biener  <rguenther@suse.de>
31522         PR tree-optimization/61572
31523         * tree-ssa-sink.c (statement_sink_location): Do not sink
31524         loads from hard registers.
31526 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
31528         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
31529         not mentioned in clauses use private clause if the iterator is
31530         declared in #pragma omp for simd, and when adding lastprivate
31531         instead, add it to the outer #pragma omp for too.  Diagnose
31532         if the variable is private in outer context.  For simd collapse > 1
31533         loops, replace all iterators with temporaries.
31534         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
31535         same even in collapse > 1 loops.
31537         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
31538         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
31539         non-NULL.
31540         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
31541         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
31542         non-NULL.
31543         (gimplify_adjust_omp_clauses): Likewise.
31544         * omp-low.c (lower_rec_simd_input_clauses,
31545         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
31546         safelen the same as safelen(1).
31547         * tree-nested.c (convert_nonlocal_omp_clauses,
31548         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
31549         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
31550         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
31551         Fixup handling of GIMPLE_OMP_TARGET.
31552         (convert_tramp_reference_stmt, convert_gimple_call): Handle
31553         GIMPLE_OMP_TARGET.
31555 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
31557         PR tree-optimization/61554
31558         * tree-ssa-propagate.c: Include "bitmap.h".
31559         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
31560         properly update constructor/destructor.
31561         (substitute_and_fold_dom_walker::before_dom_children):
31562         Remove call to gimple_purge_dead_eh_edges, add bb->index to
31563         need_eh_cleaup instead.
31564         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
31565         need_eh_cleanup.
31567 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
31569         * varpool.c (dump_varpool_node): Dump used_by_single_function.
31570         * tree-pass.h (make_pass_ipa_single_use): New pass.
31571         * cgraph.h (used_by_single_function): New flag.
31572         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
31573         Stream it.
31574         * passes.def (pass_ipa_single_use): Scedule.
31575         * ipa.c (BOTTOM): New macro.
31576         (meet): New function
31577         (propagate_single_user): New function.
31578         (ipa_single_use): New function.
31579         (pass_data_ipa_single_use): New pass.
31580         (pass_ipa_single_use): New pass.
31581         (pass_ipa_single_use::gate): New gate.
31582         (make_pass_ipa_single_use): New function.
31584 2014-06-23  Kai Tietz  <ktietz@redhat.com>
31586         PR target/39284
31587         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
31588         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
31590 2014-06-23  Richard Biener  <rguenther@suse.de>
31592         * tree-ssa-loop.c (gate_loop): New function.
31593         (pass_tree_loop::gate): Call it.
31594         (pass_data_tree_no_loop, pass_tree_no_loop,
31595         make_pass_tree_no_loop): New.
31596         * tree-vectorizer.c: Include tree-scalar-evolution.c
31597         (pass_slp_vectorize::execute): Initialize loops and SCEV if
31598         required.
31599         (pass_slp_vectorize::clone): New method.
31600         * timevar.def (TV_TREE_NOLOOP): New.
31601         * tree-pass.h (make_pass_tree_no_loop): Declare.
31602         * passes.def (pass_tree_no_loop): New pass group with
31603         SLP vectorizer.
31605 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
31607         PR target/61570
31608         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
31609         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
31611 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
31613         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
31614         "yes" where needed.
31616 2014-06-23  Alan Modra  <amodra@gmail.com>
31618         PR bootstrap/61583
31619         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
31620         to zero on debug statements.
31622 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
31624         PR target/60825
31625         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
31626         Ignore third operand if present by marking qualifier_internal.
31628         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
31630         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
31631         vector extension.
31632         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
31633         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
31634         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
31635         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
31636         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
31637         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
31638         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
31639         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
31640         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
31641         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
31642         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
31643         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
31644         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
31645         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
31646         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
31647         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
31648         logic in GCC vector extensions
31650         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
31651         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
31652         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
31653         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
31654         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
31655         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
31656         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
31657         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
31658         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
31659         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
31661         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
31663         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
31664         extensions.
31666         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
31667         (vget_low_s64): Use __GET_LOW macro.
31668         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
31669         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
31670         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
31671         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
31672         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
31674         (vcombine_s64): Use GCC vector extensions; remove cast.
31675         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
31676         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
31677         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
31678         Fix type signature; remove cast.
31680 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
31682         PR target/60825
31683         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
31684         V1DFmode.
31685         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
31686         add V1DFmode
31687         (BUILTIN_VD1): New.
31688         (BUILTIN_VD_RE): Remove.
31689         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
31690         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
31691         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
31692         variant but not df.
31693         (vreinterpretv1df*, vreinterpret*v1df): New.
31694         (vreinterpretdf*, vreinterpret*df): Remove.
31695         * config/aarch64/aarch64-simd.md (aarch64_create,
31696         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
31697         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
31698         (VD1): New.
31699         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
31700         (vcreate_f64): Remove cast, use v1df builtin.
31701         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
31702         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
31703         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
31704         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
31705         vmov_n_f64, vst1_f64): Use gcc vector extensions.
31706         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
31707         add range check using __builtin_aarch64_im_lane_boundsi.
31708         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
31709         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
31710         type signature, use gcc vector extensions.
31711         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
31712         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
31713         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
31714         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
31715         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
31716         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
31717         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
31718         vreinterpret_u64_f64): Use v1df builtin not df.
31720 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
31722         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
31723         vector registers.
31725 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
31727         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
31728         priority directly.
31730 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31732         * loop-invariant.c (pre_check_invariant_p): New function.
31733         (find_invariant_insn): Call pre_check_invariant_p.
31735 2014-06-22  Richard Henderson  <rth@redhat.com>
31737         PR target/61565
31738         * compare-elim.c (struct comparison): Add eh_note.
31739         (find_comparison_dom_walker::before_dom_children): Don't eliminate
31740         a redundant comparison in a different EH region.  Purge EH edges if
31741         necessary.
31743 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31745         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
31746         (var_shift): Use it.
31747         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
31748         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
31749         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
31750         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
31751         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
31752         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
31753         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
31754         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
31755         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
31756         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
31757         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
31758         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
31759         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
31760         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
31761         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
31762         *rotldi3_internal15be): Use the new attribute.  Merge register and
31763         integer alternatives.
31765 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31767         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
31768         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
31769         split, *ashrdi3_internal3 and split): Delete, merge into...
31770         (ashr<mode>3): New expander.
31771         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
31772         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
31774 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31776         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
31777         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
31778         *rotldi3_internal3 and split): Delete, merge into...
31779         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
31780         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
31781         Use "rotlw" extended mnemonic.
31783 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31785         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
31786         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
31787         and split, *ashldi3_internal3 and split): Delete, merge into...
31788         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
31789         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
31791 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31793         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
31794         (lshrsi3, two anonymous define_insns and define_splits,
31795         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
31796         *lshrdi3_internal3 and split): Delete, merge into...
31797         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
31798         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
31800 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
31802         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
31803         Remove "O" alternative.
31805 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
31807         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
31808         (mips_move_from_gpr_cost): Likewise.
31809         (mips_register_move_cost): Update accordingly.
31810         (mips_secondary_reload_class): Remove name of in_p.
31812 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
31814         PR target/61503
31815         * config/i386/i386.md (x86_64_shrd, x86_shrd,
31816         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
31818 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31820         * config/nios2/nios2.c: Include "builtins.h".
31822 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
31824         * cgraph.h (tls_model_names): New variable.
31825         * print-tree.c (print_node): Simplify.
31826         * varpool.c (tls_model_names): New variable.
31827         (dump_varpool_node): Output tls model.
31829 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
31831         * ipa-visibility.c (function_and_variable_visibility): Disable
31832         temporarily local aliases for some targets.
31834 2014-06-20  Marek Polacek  <polacek@redhat.com>
31836         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
31837         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
31838         into SANITIZE_UNDEFINED.
31839         * doc/invoke.texi: Describe -fsanitize=bounds.
31840         * gimplify.c (gimplify_call_expr): Add gimplification of internal
31841         functions created in the FEs.
31842         * internal-fn.c: Move "internal-fn.h" after "tree.h".
31843         (expand_UBSAN_BOUNDS): New function.
31844         * internal-fn.def (UBSAN_BOUNDS): New internal function.
31845         * internal-fn.h: Don't define internal functions here.
31846         * opts.c (common_handle_option): Add -fsanitize=bounds.
31847         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
31848         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
31849         * tree-core.h: Define internal functions here.
31850         (struct tree_base): Add ifn field.
31851         * tree-pretty-print.c: Include "internal-fn.h".
31852         (dump_generic_node): Handle functions without CALL_EXPR_FN.
31853         * tree.c (get_callee_fndecl): Likewise.
31854         (build_call_expr_internal_loc): New function.
31855         * tree.def (CALL_EXPR): Update description.
31856         * tree.h (CALL_EXPR_IFN): Define.
31857         (build_call_expr_internal_loc): Declare.
31858         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
31859         types.
31860         (ubsan_type_descriptor): Change bool parameter to enum
31861         ubsan_print_style.  Adjust the code.  Add handling of
31862         UBSAN_PRINT_ARRAY.
31863         (ubsan_expand_bounds_ifn): New function.
31864         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
31865         (ubsan_build_overflow_builtin): Likewise.
31866         (instrument_bool_enum_load): Likewise.
31867         (ubsan_instrument_float_cast): Likewise.
31868         * ubsan.h (enum ubsan_print_style): New enum.
31869         (ubsan_expand_bounds_ifn): Declare.
31870         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
31872 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
31874         * config/rs6000/rs6000.md: Append `DONE' to preparation
31875         statements of `bswap' pattern splitters.
31877 2014-06-20  Tom de Vries  <tom@codesourcery.com>
31879         * target.def (call_fusage_contains_non_callee_clobbers): Update
31880         definition.
31881         * doc/tm.texi: Regenerate.
31883 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
31884             Max Ostapenko  <m.ostapenko@partner.samsung.com>
31886         PR sanitizer/61547
31887         * asan.c (instrument_strlen_call): Fixed instrumentation of
31888         trailing byte.
31890 2014-06-20  Martin Jambor  <mjambor@suse.cz>
31892         PR ipa/61540
31893         * ipa-prop.c (impossible_devirt_target): New function.
31894         (try_make_edge_direct_virtual_call): Use it, also instead of
31895         asserting.
31897 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
31898             Max Ostapenko  <m.ostapenko@partner.samsung.com>
31900         PR sanitizer/61530
31901         * asan.c (build_check_stmt): Add condition.
31903 2014-06-20  Martin Jambor  <mjambor@suse.cz>
31905         PR ipa/61211
31906         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
31907         expanded clones.
31909 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31911         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
31912         Update comments.
31913         (VCONQ): Make comment more helpful.
31914         (VCON): Delete.
31915         * config/aarch64/aarch64-simd.md
31916         (aarch64_sqdmulh_lane<mode>):
31917         Use VCOND for operands 2.  Update lane checking and flipping logic.
31918         (aarch64_sqrdmulh_lane<mode>): Likewise.
31919         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
31920         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
31921         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
31922         attribute of operand 3 to VCOND.
31923         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
31924         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31925         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
31926         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
31927         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31928         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
31929         define_insn.
31930         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
31931         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
31932         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
31933         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
31934         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
31935         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
31936         operand to VCOND.  Update lane flipping and bounds checking logic.
31937         (aarch64_sqdmlal2_lane<mode>): Likewise.
31938         (aarch64_sqdmlsl_lane<mode>): Likewise.
31939         (aarch64_sqdmull_lane<mode>): Likewise.
31940         (aarch64_sqdmull2_lane<mode>): Likewise.
31941         (aarch64_sqdmlal_laneq<mode>):
31942         Replace VCON usage with VCONQ.
31943         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
31944         (aarch64_sqdmlal2_laneq<mode>): Emit
31945         aarch64_sqdmlal2_laneq<mode>_internal insn.
31946         Replace VCON with VCONQ.
31947         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
31948         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
31949         (aarch64_sqdmull_laneq<mode>): Emit
31950         aarch64_sqdmull_laneq<mode>_internal insn.
31951         Replace VCON with VCONQ.
31952         (aarch64_sqdmull2_laneq<mode>): Emit
31953         aarch64_sqdmull2_laneq<mode>_internal insn.
31954         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
31955         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
31956         of 3rd argument to int16x4_t.
31957         (vqdmlalh_lane_s16): Likewise.
31958         (vqdmlslh_lane_s16): Likewise.
31959         (vqdmull_high_lane_s16): Likewise.
31960         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
31961         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
31962         (vqdmlsl_lane_s16): Likewise.
31963         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
31964         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
31965         (vqdmlals_lane_s32): Likewise.
31966         (vqdmlsls_lane_s32): Likewise.
31967         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
31968         (vqdmulls_lane_s32): Likewise.
31969         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
31970         (vqdmlsl_lane_s32): Likewise.
31971         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
31972         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
31973         (vqrdmulhh_lane_s16): Likewise.
31974         (vqdmlsl_high_lane_s16): Likewise.
31975         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
31976         (vqdmlsl_high_lane_s32): Likewise.
31977         (vqrdmulhs_lane_s32): Likewise.
31979 2014-06-20  Tom de Vries  <tom@codesourcery.com>
31981         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
31982         get_call_reg_set_usage.
31984 2014-06-20  Tom de Vries  <tom@codesourcery.com>
31986         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
31987         it contains all call_used_regs.
31989 2014-06-20  Tom de Vries  <tom@codesourcery.com>
31991         * final.c (collect_fn_hard_reg_usage): Add and use variable
31992         function_used_regs.
31994 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
31996         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
31997         (set_init_priority, get_init_priority, set_fini_priority,
31998         get_fini_priority): New methods.
31999         * tree.c (init_priority_for_decl): Remove.
32000         (init_ttree): Do not initialize init priority.
32001         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
32002         (decl_priority_info): Remove.
32003         (decl_init_priority_insert): Rewrite.
32004         (decl_fini_priority_insert): Rewrite.
32005         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
32006         tree_priority_map_marked_p): Remove.
32007         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
32008         * lto-streamer-out.c (hash_tree): Do not hash priorities.
32009         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
32010         not output priorities.
32011         (pack_ts_function_decl_value_fields): Likewise.
32012         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
32013         not input priorities.
32014         (unpack_ts_function_decl_value_fields): Likewise.
32015         * symtab.c (symbol_priority_map): Declare.
32016         (init_priority_hash): Declare.
32017         (symtab_unregister_node): Unregister from priority hash, too.
32018         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
32019         New methods.
32020         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
32021         (symbol_priority_info): New function.
32022         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
32023         New methods.
32024         * tree-core.h (tree_priority_map): Remove.
32026 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
32028         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
32029         0xff to uint64_t before shifting it up.
32031 2014-06-20  Julian Brown  <julian@codesourcery.com>
32032             Chung-Lin Tang  <cltang@codesourcery.com>
32034         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
32035         TARGET_THUMB1_ONLY. Add comments.
32037 2014-06-19  Tom de Vries  <tom@codesourcery.com>
32039         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
32040         return type to void.
32041         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
32043 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
32045         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
32046         as "move", from depends_on.
32048 2014-06-19  Terry Guo  <terry.guo@arm.com>
32050         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
32051         stage.
32053 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
32055         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
32056         Remove cr5.
32057         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
32059 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
32061         PR target/61550
32062         * config/sh/sh.c (prepare_move_operands): Don't process TLS
32063         addresses here if reload in progress or completed.
32065 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
32067         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
32068         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
32069         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
32070         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
32071         (mips_register_priority): New function that implements the target
32072         hook TARGET_REGISTER_PRIORITY.
32073         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
32074         (mips_lra_p): Likewise for TARGET_LRA_P.
32075         (TARGET_REGISTER_PRIORITY): Define macro.
32076         (TARGET_SPILL_CLASS): Likewise.
32077         (TARGET_LRA_P): Likewise.
32078         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
32079         classes.
32080         (REG_CLASS_NAMES): Likewise.
32081         (REG_CLASS_CONTENTS): Likewise.
32082         (BASE_REG_CLASS): Use M16_SP_REGS.
32083         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
32084         New set attribute to enable alternatives depending on the register
32085         allocator used.
32086         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
32087         (*lea64): Disable pattern for MIPS16.
32088         * config/mips/mips.opt (mlra): New option.
32090 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
32092         * lra-constraints.c (base_to_reg): New function.
32093         (process_address): Use new function.
32095 2014-06-18  Tom de Vries  <tom@codesourcery.com>
32097         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
32098         * config/aarch64/aarch64.c
32099         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
32100         (aarch64_emit_call_insn): New function.
32101         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
32102         of emit_call_insn.
32103         * config/aarch64/aarch64.md (define_expand "call_internal")
32104         (define_expand "call_value_internal", define_expand "sibcall_internal")
32105         (define_expand "sibcall_value_internal"): New.
32106         (define_expand "call", define_expand "call_value")
32107         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
32108         expand variant and aarch64_emit_call_insn.
32110 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
32111             Tom de Vries  <tom@codesourcery.com>
32113         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
32114         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
32115         Redefine to true.
32116         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
32117         clobbers to CALL_INSN_FUNCTION_USAGE.
32118         (define_expand "sibcall_internal")
32119         (define_expand "sibcall_value_internal"): New.
32120         (define_expand "call", define_expand "call_value"): Add argument to
32121         arm_emit_call_insn.
32122         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
32123         (define_expand "sibcall_value"): Use sibcall_value_internal and
32124         arm_emit_call_insn.
32126 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32128         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
32130 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32132         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
32133         __udivmoddi4.
32135 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32137         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
32138         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
32139         annotations. Fix DWARF information.
32141 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32143         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
32144         __udivmoddi4, and fixups for negative operands.
32146 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32148         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
32150 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32152         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
32153         to __udivmoddi4.
32155 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32157         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
32158         manipulation.
32160 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32162         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
32163         describing register usage on function entry and exit.
32165 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32167         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
32168         (__aeabi_ldivmod): Fix whitespace.
32170 2014-06-18  Andreas Schwab  <schwab@suse.de>
32172         * doc/md.texi (Standard Names): Use @itemx for grouped items.
32173         Remove blank line after @item.
32175 2014-06-18  Richard Henderson  <rth@redhat.com>
32177         PR target/61545
32178         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
32180 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
32182         * config/arm/arm.c (neon_vector_mem_operand): Allow register
32183         POST_MODIFY for neon loads and stores.
32184         (arm_print_operand): Output post-index register for neon loads and
32185         stores.
32187 2014-06-18  Richard Biener  <rguenther@suse.de>
32189         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
32191 2014-06-18  Richard Biener  <rguenther@suse.de>
32193         * tree-pass.h (make_pass_dce_loop): Remove.
32194         * passes.def: Replace pass_dce_loop with pass_dce.
32195         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
32196         changed free niter estimates and reset the scev cache.
32197         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
32198         make_pass_dce_loop): Remove.
32199         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
32200         (fini_copy_prop): Return whether something changed.  Always
32201         let substitute_and_fold perform DCE and free niter estimates
32202         and reset the scev cache if so.
32203         (execute_copy_prop): If sth changed schedule cleanup-cfg.
32204         (pass_data_copy_prop): Do not unconditionally schedule
32205         cleanup-cfg or update-ssa.
32207 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
32209         PR tree-optimization/61518
32210         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
32211         reduction var is used in reduction stmt or phi-function only.
32213 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32215         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
32217 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32219         PR tree-optimization/61517
32220         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
32221         whose rhs's first tree is the source expression instead of the
32222         expression itself.
32223         (find_bswap_or_nop): Likewise.
32224         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
32225         gimple stmt whose rhs's first tree is the source. In the memory source
32226         case, move the stmt to be replaced close to one of the original load to
32227         avoid the problem of a store between the load and the stmt's original
32228         location.
32229         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
32230         signature.
32232 2014-06-18  Andreas Schwab  <schwab@suse.de>
32234         PR rtl-optimization/54555
32235         * postreload.c (move2add_use_add2_insn): Substitute
32236         STRICT_LOW_PART only if it is cheaper.
32238 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
32240         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
32241         Do not use unspec as call operand.  Use memory_operand instead of
32242         memory_nox32_operand and add "m" operand constraint.  Disable
32243         pattern for TARGET_X32.
32244         (*sibcall_pop_memory): Ditto.
32245         (*sibcall_value_memory): Ditto.
32246         (*sibcall_value_pop_memory): Ditto.
32247         (sibcall peepholes): Merge SImode and DImode patterns using
32248         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
32249         Disable pattern for TARGET_X32.  Check if eliminated register is
32250         really dead after call insn.  Generate call RTX without unspec operand.
32251         (sibcall_value peepholes): Ditto.
32252         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
32253         instead of memory_nox32_operand.  Check if eliminated register is
32254         really dead after call insn. Generate call RTX without unspec operand.
32255         (sibcall_value_pop peepholes): Ditto.
32256         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
32258 2014-06-18  Terry Guo  <terry.guo@arm.com>
32260         PR target/61544
32261         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
32262         reach the head.
32264 2014-06-18  Olivier Hainque  <hainque@adacore.com>
32266         * tree-core.h (tree_block): Add an "end_locus" field, allowing
32267         memorization of the end of block source location.
32268         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
32269         * gimplify.c (gimplify_bind_expr): Propagate the block start and
32270         end source location info we have on the block entry/exit code we
32271         generate.
32273 2014-06-18  Richard Biener  <rguenther@suse.de>
32275         * common.opt (fssa-phiopt): New option.
32276         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
32277         but not with -Og.
32278         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
32279         * doc/invoke.texi (-fssa-phiopt): Document.
32281 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32283         * genattrtab.c (n_bypassed): New variable.
32284         (process_bypasses): Initialise n_bypassed.
32285         Count number of bypassed reservations.
32286         (make_automaton_attrs): Allocate space for bypassed reservations
32287         rather than number of bypasses.
32289 2014-06-18  Richard Biener  <rguenther@suse.de>
32291         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
32292         we propagated anything.
32293         (substitute_and_fold_dom_walker::before_dom_children): Something
32294         changed if we propagated into PHI arguments.
32295         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
32296         we removed a stmt.
32298 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
32300         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
32301         vector case.
32302         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
32303         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
32304         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
32305         Introduces alternative way of loads group permutaions.
32306         (vect_transform_grouped_load): Try alternative way of permutations.
32308 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
32310         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
32311         changed in ORT_TARGET region, don't jump to do_outer.
32312         (struct gimplify_adjust_omp_clauses_data): New type.
32313         (gimplify_adjust_omp_clauses_1): Adjust for data being
32314         a struct gimplify_adjust_omp_clauses_data pointer instead
32315         of tree *.  Pass pre_p as a new argument to
32316         lang_hooks.decls.omp_finish_clause hook.
32317         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
32318         splay_tree_foreach to pass both list_p and pre_p.
32319         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
32320         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
32321         gimplify_adjust_omp_clauses callers.
32322         * langhooks.c (lhd_omp_finish_clause): New function.
32323         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
32324         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
32325         * langhooks.h (struct lang_hooks_for_decls): Add a new
32326         gimple_seq * argument to omp_finish_clause hook.
32327         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
32328         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
32329         (scan_omp_parallel, lower_omp_for): When adding
32330         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
32331         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
32332         * tree-nested.c (convert_nonlocal_omp_clauses,
32333         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
32334         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
32336 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
32338         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
32339         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
32341 2014-06-17  Xinliang David Li  <davidxl@google.com>
32343         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
32344         * passes.c (pass_init_dump_file): Do not set initialize
32345         flag to false unconditionally.
32347 2014-06-17  Richard Biener  <rguenther@suse.de>
32349         * genopinit.c (main): Use vec<>::qsort method.
32350         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
32351         Likewise.
32352         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
32354 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
32356         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
32357         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
32358         (mips_move_to_gpr_cost): Remove ST_REGS case.
32359         (mips_move_from_gpr_cost): Likewise.
32360         (mips_register_move_cost): Likewise.
32361         (mips_secondary_reload_class): Likewise.
32363 2014-06-17  Richard Biener  <rguenther@suse.de>
32365         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
32366         (pass_all_optimizations): Move 3rd copy-prop pass from after
32367         fre to before ifcombine/phiopt.
32369 2014-06-17  Richard Biener  <rguenther@suse.de>
32371         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
32372         and allow all blocks to be forwarders.
32374 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
32376         PR target/61483
32377         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
32378         variable 'size'; calculate 'size' right in the front; use
32379         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
32380         pcum->aapcs_stack_words.
32382 2014-06-17  Nick Clifton  <nickc@redhat.com>
32384         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
32385         (umulhi3, mulsidi3, umulsidi3): Likewise.
32387 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
32389         PR middle-end/61508
32390         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
32391         check for section name.
32393 2014-06-17  Richard Biener  <rguenther@suse.de>
32395         * tree-ssa-propagate.c: Include domwalk.h.
32396         (substitute_and_fold): Outline main worker into a domwalker ...
32397         (substitute_and_fold_dom_walker::before_dom_children): ... here.
32398         Schedule stmts we can fully propagate for removal.  Remove
32399         poor-mans DCE.
32400         (substitute_and_fold): Apply a dominator walk to perform
32401         substitution.  Process stmts scheduled for removal here.
32403 2014-06-17  Richard Biener  <rguenther@suse.de>
32405         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
32406         of PHI node moving.
32408 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
32410         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
32411         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
32412         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
32413         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
32414         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
32415         TARGET_HARD_FLOAT.
32416         (get_fpscr) : Likewise.
32418 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
32420         PR rtl-optimization/61325
32421         * lra-constraints.c (valid_address_p): Add forward declaration.
32422         (simplify_operand_subreg): Check address validity before and after
32423         alter_reg of memory subreg.
32425 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
32427         * config/i386/i386.c (decide_alg): Correctly handle
32428         maximum size of stringop algorithm.
32430 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
32432         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
32434 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
32436         PR rtl-optimization/61522
32437         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
32439 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
32441         Revert:
32442         * symtab.c (symtab_node::reset_section): New method.
32443         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
32444         for localization.
32445         * cgraph.h (reset_section): Declare.
32446         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
32447         do not consider comdat locals.
32448         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
32449         for new symbol.
32450         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
32451         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
32452         reset sections of symbols dragged out of the comdats.
32453         (function_and_variable_visibility): Reset sections of
32454         localized symbols.
32456 2014-06-16  Richard Biener  <rguenther@suse.de>
32458         PR tree-optimization/61482
32459         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
32460         [-INF(OVF), +INF(OVF)] range.
32462 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
32464         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
32465         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
32466         handling 32-bit multiplication.
32468 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
32470         PR middle-end/61430
32471         * lra-lives.c (process_bb_lives): Skip creating copy during
32472         insn scan when src/dest has constrained to same regno.
32474 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
32476         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
32477         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
32479 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
32481         * asan.c (check_func): New function.
32482         (maybe_create_ssa_name): Likewise.
32483         (build_check_stmt_with_calls): Likewise.
32484         (use_calls_p): Likewise.
32485         (report_error_func): Change interface.
32486         (build_check_stmt): Allow non-integer lengths; add support
32487         for new parameter.
32488         (asan_instrument): Likewise.
32489         (instrument_mem_region_access): Moved code to build_check_stmt.
32490         (instrument_derefs): Likewise.
32491         (instrument_strlen_call): Likewise.
32492         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
32493         * doc/invoke.texi: Describe new parameter.
32494         * params.def: Define new parameter.
32495         * params.h: Likewise.
32496         * sanitizer.def: Describe new builtins.
32498 2014-06-16  Richard Biener  <rguenther@suse.de>
32500         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32501         Make all defs available at the end.
32502         (eliminate): If we remove a PHI node schedule cfg-cleanup.
32504 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
32506         PR plugins/45078
32507         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
32509 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
32511         PR bootstrap/61516
32512         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
32513         initialization.  Replace remaining use of uid.
32515 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
32517         * c-family/c-common.c (handle_tls_model_attribute): Use
32518         set_decl_tls_model.
32519         * c-family/c-common.c (handle_tls_model_attribute): Use
32520         set_decl_tls_model.
32521         * cgraph.h (struct varpool_node): Add tls_model.
32522         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
32523         * tree.h (DECL_TLS_MODEL): Update.
32524         (DECL_THREAD_LOCAL_P): Check that variable is static.
32525         (decl_tls_model): Declare.
32526         (set_decl_tls_model): Declare.
32527         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
32528         set symbol prorperties.
32529         (get_emutls_init_templ_addr): Cleanup.
32530         (new_emutls_decl): Update.
32531         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
32532         (lto_input_varpool_node): Likewise.
32533         * lto-streamer-out.c (hash_tree): Likewise.
32534         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
32535         not stream DECL_TLS_MODEL.
32536         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
32537         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
32539 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32541         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
32543 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32545         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
32546         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
32547         lists.
32548         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
32549         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
32550         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
32551         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
32552         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
32553         (df_get_artificial_defs, df_get_artificial_uses)
32554         (df_single_def, df_single_use): Update accordingly.
32555         (df_refs_chain_dump): Take the first element in a linked list as
32556         parameter, rather than a pointer to an array of pointers.
32557         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
32558         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
32559         (df_chain_create_bb_process_use): Likewise.
32560         (df_md_bb_local_compute_process_def): Likewise.
32561         * fwprop.c (process_defs, process_uses): Likewise.
32562         (register_active_defs, update_uses): Likewise.
32563         (forward_propagate_asm): Update for new df_ref linking.
32564         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
32565         (df_null_ref_rec, df_null_mw_rec): Likewise.
32566         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
32567         explicitly.
32568         (df_scan_free_bb_info): Remove check for null artificial_defs.
32569         (df_install_ref_incremental): Adjust for new df_ref linking.
32570         Use a single-element insertion rather than a full sort.
32571         (df_ref_chain_delete_du_chain): Take the first element
32572         in a linked list as parameter, rather than a pointer to an array of
32573         pointers.
32574         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
32575         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
32576         (df_insn_info_delete): Remove check for null defs and call to
32577         df_scan_free_mws_vec.
32578         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
32579         null rather than df_null_*_rec.
32580         (df_insn_rescan_debug_internal): Likewise, and update null
32581         checks in the same way.  Remove check for null defs.
32582         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
32583         Move a single element rather doing a full sort.
32584         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
32585         linking.
32586         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
32587         Initialize df_ref and df_mw_hardreg lists to null rather than
32588         df_null_*_rec.
32589         (df_ref_compare): Take df_refs as parameter, transferring the
32590         old interface to...
32591         (df_ref_ptr_compare): ...this new function.
32592         (df_sort_and_compress_refs): Update accordingly.
32593         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
32594         old interface to...
32595         (df_mw_ptr_compare): ...this new function.
32596         (df_sort_and_compress_mws): Update accordingly.
32597         (df_install_refs, df_install_mws): Return a linked list rather than
32598         an array of pointers.
32599         (df_refs_add_to_chains): Assert that old lists are empty rather
32600         than freeing them.
32601         (df_insn_refs_verify): Don't handle null defs speciailly.
32602         * web.c (union_match_dups): Update for new df_ref linking.
32604 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32606         * df.h (df_ref_create, df_ref_remove): Delete.
32607         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
32608         (df_ref_remove): Likewise.
32610 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32612         * df.h (df_single_def, df_single_use): New functions.
32613         * ira.c (find_moveable_pseudos): Use them.
32615 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32617         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
32618         * df-problems.c (df_note_bb_compute): Use it.
32619         * regstat.c (regstat_bb_compute_ri): Likewise.
32621 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32623         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
32624         * cse.c (cse_extended_basic_block): Use them.
32625         * dce.c (mark_artificial_use): Likewise.
32626         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
32627         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
32628         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
32629         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
32630         (df_simulate_initialize_backwards): Likewise.
32631         (df_simulate_finalize_backwards): Likewise.
32632         (df_simulate_initialize_forwards): Likewise.
32633         (df_md_simulate_artificial_defs_at_top): Likewise.
32634         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
32635         * regrename.c (init_rename_info): Likewise.
32636         * regstat.c (regstat_bb_compute_ri): Likewise.
32637         (regstat_bb_compute_calls_crossed): Likewise.
32639 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
32641         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
32642         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
32643         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
32644         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
32645         * combine.c (create_log_links): Likewise.
32646         * compare-elim.c (find_flags_uses_in_insn): Likewise.
32647         (try_eliminate_compare): Likewise.
32648         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
32649         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
32650         (remove_reg_equal_equiv_notes_for_defs): Likewise.
32651         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
32652         (word_dce_process_block, dce_process_block): Likewise.
32653         * ddg.c (def_has_ccmode_p): Likewise.
32654         * df-core.c (df_bb_regno_first_def_find): Likewise.
32655         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
32656         * df-problems.c (df_rd_simulate_one_insn): Likewise.
32657         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
32658         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
32659         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
32660         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
32661         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
32662         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
32663         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
32664         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
32665         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
32666         * fwprop.c (local_ref_killed_between_p): Likewise.
32667         (all_uses_available_at, free_load_extend): Likewise.
32668         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
32669         * hw-doloop.c (scan_loop): Likewise.
32670         * ifcvt.c (dead_or_predicable): Likewise.
32671         * init-regs.c (initialize_uninitialized_regs): Likewise.
32672         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
32673         (process_bb_node_lives): Likewise.
32674         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
32675         (find_moveable_pseudos): Likewise.
32676         * loop-invariant.c (check_dependencies, record_uses): Likewise.
32677         * recog.c (peep2_find_free_register): Likewise.
32678         * ree.c (get_defs): Likewise.
32679         * regstat.c (regstat_bb_compute_ri): Likewise.
32680         (regstat_bb_compute_calls_crossed): Likewise.
32681         * sched-deps.c (find_inc, find_mem): Likewise.
32682         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
32683         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
32684         * shrink-wrap.c (requires_stack_frame_p): Likewise.
32685         (prepare_shrink_wrap): Likewise.
32686         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
32687         * web.c (union_defs, pass_web::execute): Likewise.
32688         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
32689         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
32691 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
32693         * lra-assign.c (assign_by_spills): Add code to assign vector regs
32694         to inheritance pseudos.
32695         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
32697 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
32699         PR target/61415
32700         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
32701         (BU_MISC_2): Rename to ...
32702         (BU_LDBL128_2): ... this.
32703         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
32704         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
32705         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
32706         RS6000_BTM_LDBL128.
32707         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
32708         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
32709         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
32710         (unpacktf_1): Likewise.
32711         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
32712         (__builtin_longdouble_dw1): Likewise.
32713         * doc/sourcebuild.texi (longdouble128): Document.
32715 2014-06-13  Jeff Law  <law@redhat.com>
32717         PR rtl-optimization/61094
32718         PR rtl-optimization/61446
32719         * ree.c (combine_reaching_defs): Get the mode for the copy from
32720         the extension insn rather than the defining insn.
32722 2014-06-13  Dehao Chen  <dehao@google.com>
32724         * dwarf2out.c (add_linkage_name): Emit more linkage name.
32726 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
32728         * doc/install.texi (--enable-linker-plugin-configure-flags)
32729         (--enable-linker-plugin-flags): Document new flags.
32731 2014-06-13  Martin Jambor  <mjambor@suse.cz>
32733         PR ipa/61186
32734         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
32735         cache_token if returning early.
32737 2014-06-13  Nick Clifton  <nickc@redhat.com>
32739         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
32740         requested alignment is active.
32741         (LABEL_ALIGN): Likewise.
32742         (LOOP_ALIGN): Likewise.
32744 2014-06-13  Richard Biener  <rguenther@suse.de>
32746         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32747         Rewrite to propagate the VN result into all uses where
32748         possible and to remove stmts becoming dead because of that.
32749         (eliminate): Generalize stmt removal handling, remove in
32750         reverse dominator order to support proper debug stmt
32751         generation.  Update stmts before removing stmts.
32752         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
32754 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32756         PR tree-optimization/61375
32757         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
32758         symbolic number cannot be represented in an uint64_t.
32759         (find_bswap_or_nop_1): Likewise.
32761 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
32763         * symtab.c (symtab_node::reset_section): New method.
32764         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
32765         for localization.
32766         * cgraph.h (reset_section): Declare.
32767         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
32768         do not consider comdat locals.
32769         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
32770         for new symbol.
32771         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
32772         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
32773         reset sections of symbols dragged out of the comdats.
32774         (function_and_variable_visibility): Reset sections of
32775         localized symbols.
32777 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
32779         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
32780         to use symtab and decl_binds_to_current_def_p
32781         * tree-vectorizer.c (increase_alignment): Increase alignment
32782         of alias target, too.
32784 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
32786         PR middle-end/61486
32787         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
32788         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
32789         if outer combined construct is distribute.
32790         (gimplify_omp_for): For OMP_DISTRIBUTE set
32791         gimplify_omp_ctxp->distribute.
32792         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
32793         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
32794         mapping into decl map.
32796 2014-06-12  Jason Merrill  <jason@redhat.com>
32798         * common.opt (fabi-version): Change default to 0.
32800 2014-06-12  Jason Merrill  <jason@redhat.com>
32802         * toplev.c (process_options): Reject -fabi-version=1.
32804 2014-06-12  Jeff Law  <law@redhat.com>
32806         PR tree-optimization/61009
32807         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
32808         value when we stop processing a block due to problematic PHIs.
32810 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
32812         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
32813         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
32814         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
32815         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
32816         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
32817         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
32818         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
32819         are not in the spec.
32821 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
32823         PR target/59843
32824         * config/aarch64/aarch64-modes.def: Add V1DFmode.
32825         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
32826         Support V1DFmode.
32828 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
32830         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
32832 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
32834         PR target/61443
32835         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
32836         loading from address spaces.
32838 2014-06-12  Martin Liska  <mliska@suse.cz>
32840         PR ipa/61462
32841         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
32842         statement is reachable.
32844 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
32846         * symtab.c (section_hash): New hash.
32847         (symtab_unregister_node): Clear section before freeing.
32848         (hash_section_hash_entry): New haser.
32849         (eq_sections): New function.
32850         (symtab_node::set_section_for_node): New method.
32851         (set_section_1): Update.
32852         (symtab_node::set_section): Take string instead of tree as parameter.
32853         (symtab_resolve_alias): Update.
32854         * cgraph.h (section_hash_entry_d): New structure.
32855         (section_hash_entry): New typedef.
32856         (cgraph_node): Change comdat_group_ to x_comdat_group,
32857         change section_ to x_section and turn into section_hash_entry;
32858         update accestors; put set_section_for_node offline.
32859         * tree.c (decl_section_name): Turn into string.
32860         (set_decl_section_name): Change parameter to be string.
32861         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
32862         * sdbout.c (sdbout_one_type): Update.
32863         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
32864         * varasm.c (IN_NAMED_SECTION, get_named_section,
32865         resolve_unique_section, hot_function_section, get_named_text_section,
32866         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
32867         make_decl_rtl, default_unique_section): Update.
32868         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
32869         (c6x_elf_unique_section): Update.
32870         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
32871         * config/pa/pa.c (pa_function_section): Update.
32872         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
32873         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
32874         * config/arc/arc.c (arc_in_small_data_p): Update.
32875         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
32876         * config/mcore/mcore.c (mcore_unique_section): Update.
32877         * config/mips/mips.c (mips16_build_function_stub): Update.
32878         (mips16_build_call_stub): Update.
32879         (mips_function_rodata_section): Update.
32880         (mips_in_small_data_p): Update.
32881         * config/score/score.c (score_in_small_data_p): Update.
32882         * config/rx/rx.c (rx_in_small_data): Update.
32883         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
32884         (rs6000_xcoff_asm_named_section): Update.
32885         (rs6000_xcoff_unique_section): Update.
32886         * config/frv/frv.c (frv_string_begins_with): Update.
32887         (frv_in_small_data_p): Update.
32888         * config/v850/v850.c (v850_encode_data_area): Update.
32889         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
32890         (bfin_handle_l1_data_attribute): Update.
32891         (bfin_handle_l2_attribute): Update.
32892         * config/mep/mep.c (mep_unique_section): Update.
32893         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
32894         Update.
32895         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
32896         (h8300_handle_tiny_data_attribute): Update.
32897         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
32898         (m32r_in_small_data_p): Update.
32899         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
32900         * config/i386/i386.c (ix86_in_large_data_p): Update.
32901         * config/i386/winnt.c (i386_pe_unique_section): Update.
32902         * config/darwin.c (darwin_function_section): Update.
32903         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
32904         * tree-emutls.c (get_emutls_init_templ_addr): Update.
32905         (new_emutls_decl): Update.
32906         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
32907         input_varpool_node): Update.
32908         (ead_string_cst): Turn to ...
32909         (read_string): ... this one.
32910         * dwarf2out.c (secname_for_decl): Update.
32911         * asan.c (asan_protect_global): Update.
32913 2014-06-11  DJ Delorie  <dj@redhat.com>
32915         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
32916         cache lines.
32917         * config/rx/rx.c (rx_option_override): Likewise.
32918         (rx_align_for_label): Likewise.
32920         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
32922 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
32924         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
32925         prototype.
32927 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32929         * common.md: New file.
32930         * doc/md.texi: Update description of generic, machine-independent
32931         constraints.
32932         * config/s390/constraints.md (e): Delete.
32933         * Makefile.in (md_file): Include common.md.
32934         * config/m32c/t-m32c (md_file): Likewise.
32935         * genpreds.c (general_mem): New array.
32936         (generic_constraint_letters): Remove constraints now defined by
32937         common.md.
32938         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
32939         Allow the first character to be '<' or '>' as well.
32940         * genoutput.c (general_mem): New array.
32941         (indep_constraints): Remove constraints now defined by common.md.
32942         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
32943         Remove special handling of 'm'.
32944         * ira-costs.c (record_reg_classes): Remove special handling of
32945         constraints now defined by common.md.
32946         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
32947         * ira-lives.c (single_reg_class): Likewise.
32948         (ira_implicitly_set_insn_hard_regs): Likewise.
32949         * lra-constraints.c (reg_class_from_constraints): Likewise.
32950         (process_alt_operands, process_address, curr_insn_transform): Likewise.
32951         * postreload.c (reload_cse_simplify_operands): Likewise.
32952         * reload.c (push_secondary_reload, scratch_reload_class)
32953         (find_reloads, alternative_allows_const_pool_ref): Likewise.
32954         * reload1.c (maybe_fix_stack_asms): Likewise.
32955         * targhooks.c (default_secondary_reload): Likewise.
32956         * stmt.c (parse_output_constraint): Likewise.
32957         * recog.c (preprocess_constraints): Likewise.
32958         (constrain_operands, peep2_find_free_register): Likewise.
32959         (asm_operand_ok): Likewise, but add a comment saying why 'o'
32960         must be handled specially.
32962 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32964         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
32965         * genpreds.c (have_const_dbl_constraints): Delete.
32966         (add_constraint): Don't set it.
32967         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
32968         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
32969         constraints using the lookup_constraint logic.
32970         * ira-lives.c (single_reg_class): Likewise.
32971         * ira.c (ira_setup_alts): Likewise.
32972         * lra-constraints.c (process_alt_operands): Likewise.
32973         * recog.c (asm_operand_ok, constrain_operands): Likewise.
32974         * reload.c (find_reloads): Likewise.
32976 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32978         * genpreds.c (const_int_start, const_int_end): New variables.
32979         (choose_enum_order): Output CONST_INT constraints before memory
32980         constraints.
32981         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
32982         Add CT_CONST_INT.
32983         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
32984         * ira.c (ira_setup_alts): Likewise.
32985         * lra-constraints.c (process_alt_operands): Likewise.
32986         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
32987         * reload.c (find_reloads): Likewise.
32989 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32991         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
32992         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
32993         * recog.c (preprocess_constraints): Update accordingly.
32995 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
32997         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
32998         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
32999         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
33000         * genpreds.c (print_type_tree): New function.
33001         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
33002         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
33003         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
33004         Write out enum constraint_type and get_constraint_type.
33005         * lra-constraints.c (satisfies_memory_constraint_p): Take a
33006         constraint_num rather than a constraint string.
33007         (satisfies_address_constraint_p): Likewise.
33008         (reg_class_from_constraints): Avoid old constraint macros.
33009         (process_alt_operands, process_address_1): Likewise.
33010         (curr_insn_transform): Likewise.
33011         * ira-costs.c (record_reg_classes): Likewise.
33012         (record_operand_costs): Likewise.
33013         * ira-lives.c (single_reg_class): Likewise.
33014         (ira_implicitly_set_insn_hard_regs): Likewise.
33015         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
33016         * postreload.c (reload_cse_simplify_operands): Likewise.
33017         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
33018         (constrain_operands, peep2_find_free_register): Likewise.
33019         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
33020         (find_reloads, alternative_allows_const_pool_ref): Likewise.
33021         * reload1.c (maybe_fix_stack_asms): Likewise.
33022         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
33023         * targhooks.c (default_secondary_reload): Likewise.
33024         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
33025         to EXTRA_CONSTRAINT_STR.
33026         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
33028 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33030         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
33031         (write_constraint_satisfied_p_array): ...this new function.
33032         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
33033         an array.
33034         (write_insn_preds_c): Update accordingly.
33036 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33038         * genpreds.c (write_lookup_constraint): Rename to...
33039         (write_lookup_constraint_1): ...this.
33040         (write_lookup_constraint_array): New function.
33041         (write_tm_preds_h): Define lookup_constraint as an inline function
33042         that uses write_lookup_constraint_array where possible.
33043         (write_insn_preds_c): Update for the changes above.
33045 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
33047         * doc/md.texi (regclass_for_constraint): Rename to...
33048         (reg_class_for_constraint): ...this.
33049         * genpreds.c (num_constraints, enum_order, register_start)
33050         (register_end, satisfied_start, memory_start, memory_end)
33051         (address_start, address_end): New variables.
33052         (add_constraint): Count the number of constraints.
33053         (choose_enum_order): New function.
33054         (write_enum_constraint_num): Iterate over enum_order.
33055         (write_regclass_for_constraint): Rename to...
33056         (write_reg_class_for_constraint_1): ...this and update output
33057         accordingly.
33058         (write_constraint_satisfied_p): Rename to...
33059         (write_constraint_satisfied_p_1): ...this and update output
33060         accordingly.  Do nothing if all extra constraints are register
33061         constraints.
33062         (write_insn_extra_memory_constraint): Delete.
33063         (write_insn_extra_address_constraint): Delete.
33064         (write_range_function): New function.
33065         (write_tm_preds_h): Define constraint_satisfied_p and
33066         reg_class_for_constraint as inline functions that do a range check
33067         before calling the out-of-line function.  Use write_range_function
33068         to implement insn_extra_{register,memory,address}_constraint,
33069         the first of which is new.
33070         (write_insn_preds_c): Update after above changes to write_* functions.
33071         (main): Call choose_enum_order.
33073 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33075         PR tree-optimization/61306
33076         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
33077         expression instead of its size.
33078         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
33079         false to prevent optimization when the result is unpredictable due to
33080         arithmetic right shift of signed type with highest byte is set.
33081         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
33082         (init_symbolic_number): Likewise.
33083         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
33084         when the result is unpredictable due to sign extension.
33086 2014-06-11  Terry Guo  <terry.guo@arm.com>
33088         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
33089         (*thumb1_addsi3): Ditto.
33090         (*thumb_subdi3): Ditto.
33091         (thumb1_subsi3_insn): Ditto.
33092         (*thumb_mulsi3): Ditto.
33093         (*thumb_mulsi3_v6): Ditto.
33094         (*thumb1_andsi3_insn): Ditto.
33095         (thumb1_bicsi3): Ditto.
33096         (*thumb1_iorsi3_insn): Ditto.
33097         (*thumb1_xorsi3_insn): Ditto.
33098         (*thumb1_ashlsi3): Ditto.
33099         (*thumb1_ashrsi3): Ditto.
33100         (*thumb1_lshrsi3): Ditto.
33101         (*thumb1_rotrsi3): Ditto.
33102         (*thumb1_negdi2): Ditto.
33103         (*thumb1_negsi2): Ditto.
33104         (*thumb1_abssi2): Ditto.
33105         (*thumb1_neg_abssi2): Ditto.
33106         (*thumb1_one_cmplsi2): Ditto.
33107         (*thumb1_zero_extendhisi2): Ditto.
33108         (*thumb1_zero_extendqisi2): Ditto.
33109         (*thumb1_zero_extendqisi2_v6): Ditto.
33110         (thumb1_extendhisi2): Ditto.
33111         (thumb1_extendqisi2): Ditto.
33112         (*thumb1_movdi_insn): Ditto.
33113         (*thumb1_movsi_insn): Ditto.
33114         (*thumb1_movhi_insn): Ditto.
33115         (thumb_movhi_clobber): Ditto.
33116         (*thumb1_movqi_insn): Ditto.
33117         (*thumb1_movhf): Ditto.
33118         (*thumb1_movsf_insn): Ditto.
33119         (*thumb_movdf_insn): Ditto.
33120         (movmem12b): Ditto.
33121         (movmem8b): Ditto.
33122         (cbranchqi4): Ditto.
33123         (cbranchsi4_insn): Ditto.
33124         (cbranchsi4_scratch): Ditto.
33125         (*negated_cbranchsi4): Ditto.
33126         (*tbit_cbranch): Ditto.
33127         (*tlobits_cbranch): Ditto.
33128         (*tstsi3_cbranch): Ditto.
33129         (*cbranchne_decr1): Ditto.
33130         (*addsi3_cbranch): Ditto.
33131         (*addsi3_cbranch_scratch): Ditto.
33132         (*thumb_cmpdi_zero): Ditto.
33133         (cstoresi_eq0_thumb1): Ditto.
33134         (cstoresi_ne0_thumb1): Ditto.
33135         (*cstoresi_eq0_thumb1_insn): Ditto.
33136         (*cstoresi_ne0_thumb1_insn): Ditto.
33137         (cstoresi_nltu_thumb1): Ditto.
33138         (cstoresi_ltu_thumb1): Ditto.
33139         (thumb1_addsi3_addgeu): Ditto.
33140         (*thumb_jump): Ditto.
33141         (*call_reg_thumb1_v5): Ditto.
33142         (*call_reg_thumb1): Ditto.
33143         (*call_value_reg_thumb1_v5): Ditto.
33144         (*call_value_reg_thumb1): Ditto.
33145         (*call_insn): Ditto.
33146         (*call_value_insn): Ditto.
33147         (thumb1_casesi_internal_pic): Ditto.
33148         (thumb1_casesi_dispatch): Ditto.
33149         (*thumb1_indirect_jump): Ditto.
33150         (prologue_thumb1_interwork): Ditto.
33151         (*epilogue_insns): Ditto.
33152         (consttable_1): Ditto.
33153         (consttable_2): Ditto.
33154         (tablejump): Ditto.
33155         (*thumb1_tablejump): Ditto.
33156         (thumb_eh_return): Ditto.
33157         (define_peephole2): Two of them are thumb1 only and got moved into
33158         new file thumb1.md.
33159         (define_split): Six of them are thumb1 only and got moved into new
33160         file thumb1.md.
33161         * config/arm/thumb1.md: New file comprised of above thumb1 only
33162         patterns.
33164 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33166         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
33167         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
33168         dependencies.
33169         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
33170         (aarch64_crc_builtin_datum): New struct.
33171         (aarch64_crc_builtin_data): New.
33172         (aarch64_init_crc32_builtins): New function.
33173         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
33174         (aarch64_crc32_expand_builtin): New.
33175         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
33176         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
33177         __ARM_FEATURE_CRC32 when appropriate.
33178         (TARGET_CRC32): Define.
33179         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
33180         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
33181         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
33182         (aarch64_<crc_variant>): New pattern.
33183         * config/aarch64/arm_acle.h: New file.
33184         * config/aarch64/iterators.md (CRC): New int iterator.
33185         (crc_variant, crc_mode): New int attributes.
33186         * doc/aarch64-acle-intrinsics.texi: New file.
33187         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
33188         Include aarch64-acle-intrinsics.texi.
33190 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
33192         * tree-vect-data-refs.c (vect_grouped_store_supported): New
33193         check for stores group of length 3.
33194         (vect_permute_store_chain): New permutations for stores group of
33195         length 3.
33196         * tree-vect-stmts.c (vect_model_store_cost): Change cost
33197         of vec_perm_shuffle for the new permutations.
33199 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
33201         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
33202         table rewriting temporarily on targets not supporting ONE_ONLY.
33204 2014-06-11  Richard Biener  <rguenther@suse.de>
33206         PR middle-end/61437
33207         Revert
33208         2014-06-04  Richard Biener  <rguenther@suse.de>
33210         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
33211         TREE_PUBLIC and DECL_EXTERNAL decls.
33213 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
33215         * varasm.c (set_implicit_section): New function.
33216         (resolve_unique_section): Use it to set implicit section
33217         for aliases, too.
33218         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
33219         (default_function_section): Likewise.
33220         (decl_binds_to_current_def_p): Constify argument.
33221         * varasm.h (decl_binds_to_current_def_p): Update prototype.
33222         * asan.c (asan_protect_global): Use
33223         symtab_get_node (decl)->implicit_section.
33224         * symtab.c (dump_symtab_base): Dump implicit sections.
33225         (verify_symtab_base): Verify sanity of sectoins and comdats.
33226         (symtab_resolve_alias): Alias share the section of its target.
33227         (set_section_1): New function.
33228         (symtab_node::set_section): Move here, recurse to aliases.
33229         (verify_symtab): Check for duplicated symtab lists.
33230         * tree-core.h (implicit_section_name_p): Remove.
33231         * tree-vect-data-refs.c: Include varasm.h.
33232         (vect_can_force_dr_alignment_p): Fix conditional on when
33233         decl bints to current definition; use
33234         symtab_get_node (decl)->implicit_section.
33235         * cgraph.c (cgraph_make_node_local_1): Fix section set.
33236         * cgraph.h (struct symtab_node): Add implicit_section.
33237         (set_section): Rename to ...
33238         (set_section_for_node): ... this one.
33239         (set_section): Declare.
33240         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
33241         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
33242         input_overwrite_node, input_varpool_node): Stream implicit_section.
33243         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
33244         removal; it will fail in LTO.
33246 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33248         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
33249         Change second alternative type to f_mcr.
33250         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
33251         and 12th alternatives' types to f_mcr and f_mrc.
33252         (*movdi_aarch64): Same for 12th and 13th alternatives.
33253         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
33254         (aarch64_movtilow_tilow): Change type to fmov.
33256 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
33258         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
33259         (aarch64_save_or_restore_callee_save_registers): Fix layout.
33261 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33263         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
33264         New expander.
33265         (aarch64_sqrdmulh_lane<mode>): Likewise.
33266         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
33267         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
33268         (aarch64_sqdmulh_laneq<mode>): New expander.
33269         (aarch64_sqrdmulh_laneq<mode>): Likewise.
33270         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
33271         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
33272         (aarch64_sqdmulh_lane<mode>): New expander.
33273         (aarch64_sqrdmulh_lane<mode>): Likewise.
33274         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
33275         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
33276         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
33277         (aarch64_sqdmlal_laneq<mode>): Likewise.
33278         (aarch64_sqdmlsl_lane<mode>): Likewise.
33279         (aarch64_sqdmlsl_laneq<mode>): Likewise.
33280         (aarch64_sqdmlal2_lane<mode>): Likewise.
33281         (aarch64_sqdmlal2_laneq<mode>): Likewise.
33282         (aarch64_sqdmlsl2_lane<mode>): Likewise.
33283         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
33284         (aarch64_sqdmull_lane<mode>): Likewise.
33285         (aarch64_sqdmull_laneq<mode>): Likewise.
33286         (aarch64_sqdmull2_lane<mode>): Likewise.
33287         (aarch64_sqdmull2_laneq<mode>): Likewise.
33289 2014-06-10  Richard Biener  <rguenther@suse.de>
33291         PR tree-optimization/61438
33292         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
33293         (eliminate_dom_walker::before_dom_children): Only try to inhibit
33294         insertion of IVs if running PRE.
33295         (eliminate): Adjust.
33296         (pass_pre::execute): Likewise.
33297         (pass_fre::execute): Likewise.
33299 2014-06-10  Richard Biener  <rguenther@suse.de>
33301         PR middle-end/61456
33302         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
33303         Do not use the main variant for the type comparison.
33304         (ncr_compar): Likewise.
33305         (nonoverlapping_component_refs_p): Likewise.
33307 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33309         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
33310         REG_CFA_RESTORE mode.
33312 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
33314         * config/i386/i386.c (expand_vec_perm_pblendv): New.
33315         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
33316         expand_vec_perm_pblendv.
33318 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33320         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
33321         available.
33322         Simplify description of __crc32d and __crc32cd intrinsics.
33323         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
33324         availability.
33326 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
33328         PR lto/61334
33329         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
33330         * config.in: Regenerate.
33331         * configure: Likewise.
33333 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
33335         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
33336         and public vars.
33337         (intersect_static_var_sets): Remove.
33338         (propagate): Do not prune local statics.
33340 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
33342         PR fortran/60928
33343         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
33344         Set lastprivate_firstprivate even if omp_private_outer_ref
33345         langhook returns true.
33346         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
33347         langhook, call unshare_expr on new_var and call
33348         build_outer_var_ref to get the last argument.
33350 2014-06-10  Marek Polacek  <polacek@redhat.com>
33352         PR c/60988
33353         * doc/extend.texi: Add cindex for transparent_union.
33355 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33357         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
33358         init_symbolic_number ().
33360 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
33362         PR middle-end/61141
33363         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
33364         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
33365         (verify_rtl_sharing): Likewise.
33367 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
33369         PR c++/54442
33370         * tree.c (build_qualified_type): Use a canonical type for
33371         TYPE_CANONICAL.
33373 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33375         * config/arm/arm-modes.def: Remove XFmode.
33377 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
33379         PR target/61062
33380         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
33381         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
33382         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
33383         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
33384         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
33385         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
33386         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
33387         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
33388         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
33390 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
33392         * tree-core.h (tree_decl_with_vis): Remove section_name.
33394 2014-06-09  Kito Cheng  <kito@0xlab.org>
33396         * ira.c (ira): Don't call init_caller_save if LRA enabled
33397         since LRA use its own infrastructure to handle that.
33399 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
33401         * symtab.c (dump_symtab_base): Update dumping.
33402         (symtab_make_decl_local): Clear only DECL_COMDAT.
33403         * tree-vect-data-refs.c (Check that variable is static before
33404         tampering with sections.
33405         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
33406         (cgraph_create_virtual_clone): Likewise.
33407         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
33408         (decl_section_name, set_decl_section_name): New accessors.
33409         (find_decls_types_r): Do not walk section name
33410         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
33411         (decl_comdat_group, decl_comdat_group_id): Constify.
33412         (decl_section_name, set_decl_section_name): Update.
33413         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
33414         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
33415         (cgraph_make_node_local_1): Clear section and comdat group.
33416         * cgraph.h (set_comdat_group): Sanity check.
33417         (get_section, set_section): New.
33418         * ipa-comdats.c (ipa_comdats): Use get_section.
33419         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
33420         * lto-streamer-out.c: Do not follow section names.
33421         * c-family/c-common.c (handle_section_attribute): Update.
33422         * lto-cgraph.c (lto_output_node): Output section.
33423         (lto_output_varpool_node): Likewise.
33424         (read_comdat_group): Rename to ...
33425         (read_identifier): ... this one.
33426         (read_string_cst): New function.
33427         (input_node, input_varpool_node): Input section names.
33428         * tree-emutls.c (get_emutls_init_templ_addr): Update.
33429         (new_emutls_decl): Update.
33430         (secname_for_decl): Check section names only of static vars.
33431         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
33432         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
33433         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
33434         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
33435         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
33436         * config/mcore/mcore.c (mcore_unique_section): Likewise.
33437         * config/mips/mips.c (mips16_build_function_stub): Likewise.
33438         * config/v850/v850.c (v850_insert_attributes): Likewise.
33439         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
33440         Likewise.
33441         (h8300_handle_tiny_data_attribute): Likewise.
33442         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
33443         (bfin_handle_l2_attribute): Likewise.
33445 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
33447         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
33448         remove static initializer.
33450 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
33452         * varasm.c (use_blocks_for_decl_p): Check symbol table
33453         instead of alias attribute.
33454         (place_block_symbol): Recurse on aliases.
33456 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
33458         * ipa-visibility.c: Include varasm.h
33459         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
33461 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
33463         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
33464         outputting aliases.
33466 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
33468         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
33469         from test_insn into GGC space escape via SET_SRC.
33471 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
33473         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
33474         call statement, if any.
33475         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
33476         statements, if any.  Tidy up.
33478 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33480         PR target/61431
33481         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
33482         iterators, VSX_D that handles 64-bit types, and VSX_LE that
33483         handles swapping the two 64-bit double words on little endian
33484         systems.  Include V1TImode and optionally TImode in VSX_LE so that
33485         these types are properly swapped.  Change all of the insns and
33486         splits that do the 64-bit swaps to use VSX_LE.
33487         (vsx_le_perm_load_<mode>): Likewise.
33488         (vsx_le_perm_store_<mode>): Likewise.
33489         (splitters for little endian memory operations): Likewise.
33490         (vsx_xxpermdi2_le_<mode>): Likewise.
33491         (vsx_lxvd2x2_le_<mode>): Likewise.
33492         (vsx_stxvd2x2_le_<mode>): Likewise.
33494 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
33496         PR target/61423
33497         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
33498         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
33499         and corresponding splitters.  Zero extend general register
33500         or memory input operand to XMM temporary.  Enable for
33501         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
33502         (floatunssi<mode>2): Update expander predicate.
33504 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
33506         PR rtl-optimization/61325
33507         * lra-constraints.c (process_address_1): Check scale equal to one
33508         to prevent transformation: base + scale * index => base + new_reg.
33510 2014-06-06  Richard Biener  <rguenther@suse.de>
33512         PR tree-optimization/59299
33513         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
33514         a def operand.
33515         (nearest_common_dominator_of_uses): Likewise.
33516         (statement_sink_location): Adjust.  Support sinking loads.
33518 2014-06-06  Martin Jambor  <mjambor@suse.cz>
33520         * ipa-prop.c (get_place_in_agg_contents_list): New function.
33521         (build_agg_jump_func_from_list): Likewise.
33522         (determine_known_aggregate_parts): Renamed to
33523         determine_locally_known_aggregate_parts.  Moved some functionality
33524         to the two functions above, removed bound checks.
33526 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
33528         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
33529         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
33530         (aarch64_progress_pointer): Likewise.
33531         (aarch64_copy_one_part_and_move_pointers): Likewise.
33532         (aarch64_expand_movmen): Likewise.
33533         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
33534         * config/aarch64/aarch64.md (movmem<mode>): New.
33536 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
33538         * targhooks.c (default_add_stmt_cost): Call target specific
33539         hook instead of default one.
33541 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33543         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
33544         endianness instead of host endianness.
33545         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
33546         comments.
33548 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
33550         PR debug/53927
33551         * function.c (instantiate_decls): Process the saved static chain.
33552         (expand_function_start): If not optimizing, save the static chain
33553         onto the stack.
33554         * tree-nested.c (convert_all_function_calls): Always create the static
33555         chain for nested functions if not optimizing.
33557 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
33559         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
33561 2014-06-06  Richard Biener  <rguenther@suse.de>
33563         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
33564         (construct_init_block): Likewise.
33565         (construct_exit_block): Likewise.
33566         (pass_expand::execute): Likewise.
33567         * graphite.c (graphite_transforms): Replace check for current_loops
33568         with a check for > 1 loops.
33569         (pass_graphite_transforms::execute): Adjust.
33570         * ipa-split.c (split_function): Remove check for current_loops.
33571         * omp-low.c (expand_parallel_call): Likewise.
33572         (expand_omp_for_init_counts): Likewise.
33573         (extract_omp_for_update_vars): Likewise.
33574         (expand_omp_for_generic): Likewise.
33575         (expand_omp_sections): Likewise.
33576         (expand_omp_target): Likewise.
33577         * tracer.c (tail_duplicate): Likewise.
33578         (pass_tracer::execute): Likewise.
33579         * trans-mem.c (expand_transaction): Likewise.
33580         * tree-complex.c (expand_complex_div_wide): Likewise.
33581         * tree-eh.c (lower_resx): Likewise.
33582         (cleanup_empty_eh_merge_phis): Likewise.
33583         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
33584         current_loops with a check for > 1 loops.
33585         (pass_predcom::execute): Adjust.
33586         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
33587         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
33588         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
33589         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
33590         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
33591         * tree-switch-conversion.c (process_switch): Likewise.
33592         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
33593         * tree-vrp.c (vrp_visit_phi_node): Likewise.
33594         (execute_vrp): Likewise.
33595         * ubsan.c (ubsan_expand_null_ifn): Likewise.
33597 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
33599         * rtl.h (insn_location): Declare.
33600         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
33601         with UNKNOWN_LOCATION.
33602         * emit-rtl.c (insn_location): New function.
33603         * final.c (notice_source_line): Check that the instruction has a
33604         location before retrieving it and use insn_location.
33605         * modulo-sched.c (loop_single_full_bb_p): Likewise.
33606         * print-rtl.c (print_rtx): Likewise.
33608 2014-06-06  Richard Biener  <rguenther@suse.de>
33610         * passes.def: Move 2nd VRP pass before phi-only-cprop.
33612 2014-06-06  Christian Bruel  <christian.bruel@st.com>
33614         PR tree-optimization/43934
33615         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
33616         cost.
33618 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
33620         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
33621         return NO_REGS for extra address and memory constraints.  Handle
33622         operands that match (or are equivalent to something that matches)
33623         extra constant constraints.  Ignore other non-register operands.
33625 2014-06-06  Alan Modra  <amodra@gmail.com>
33627         PR target/61300
33628         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
33629         * doc/tm.texi: Regenerate.
33630         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
33631         Use throughout in place of REG_PARM_STACK_SPACE.
33632         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
33633         "incoming" param.  Pass to rs6000_function_parms_need_stack.
33634         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
33635         prototype_p when incoming.  Use function decl when incoming
33636         to handle K&R style functions.
33637         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
33638         (INCOMING_REG_PARM_STACK_SPACE): Define.
33640 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
33642         PR target/52472
33643         * cfgexpand.c (expand_debug_expr): Use address space of nested
33644         TREE_TYPE for ADDR_EXPR and MEM_REF.
33646 2014-06-05  Jeff Law  <law@redhat.com>
33648         PR tree-optimization/61289
33649         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
33650         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
33651         looking for those which match LHS.  All callers changed.
33652         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
33653         parameters and code which manipulated them.  All callers changed.
33654         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
33655         and DST_MAP parameters.  Simplify invalidation code by just calling
33656         invalidate_equivalences.  All callers changed.
33657         (thread_across_edge): Simplify now that we don't need to maintain
33658         the map of equivalences to invalidate.
33660 2014-06-05  Kai Tietz  <ktietz@redhat.com>
33661             Richard Henderson  <rth@redhat.com>
33663         PR target/46219
33664         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
33665         checking for !TARGET_X32.
33666         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
33667         (sibcall_intern): New define_insn, plus required peepholes.
33668         (sibcall_pop_intern): Likewise.
33669         (sibcall_value_intern): Likewise.
33670         (sibcall_value_pop_intern): Likewise.
33672 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
33674         * tree-inline.c (tree_function_versioning): Check DF info existence
33675         before accessing it.
33677 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33679         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
33680         frame_size.
33681         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
33682         aarch64_frame hard_fp_offset and frame_size.
33683         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
33684         frame_size; remove original_frame_size.
33685         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
33686         (aarch64_initial_elimination_offset): Remove frame_size and
33687         offset.  Use aarch64_frame frame_size.
33689 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33690             Jiong Wang  <jiong.wang@arm.com>
33691             Renlin  <renlin.li@arm.com>
33693         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
33694         initialization of R30 offset.  Update offset.  Iterate core
33695         regisers upto X30.  Remove X29, X30 specific code.
33697 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33698             Jiong Wang  <jiong.wang@arm.com>
33700         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
33701         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
33702         (aarch64_register_saved_on_entry): Adjust test.
33704 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33706         * config/aarch64/aarch64.h (machine_function): Move
33707         saved_varargs_size from here...
33708         (aarch64_frame): ... to here.
33710         * config/aarch64/aarch64.c (aarch64_expand_prologue)
33711         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
33712         (aarch64_initial_elimination_offset)
33713         (aarch64_setup_incoming_varargs): Adjust location of
33714         saved_varargs_size.
33716 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33718         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
33719         layout comment.
33721 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
33722             Prachi Godbole  <Prachi.Godbole@imgtec.com>
33724         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
33725         mips32r5 entry to use PROCESSOR_P5600.
33726         * config/mips/mips-tables.opt: Regenerate.
33727         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
33728         * config/mips/mips.c (mips_fmadd_bypass): New function.
33729         (mips_rtx_cost_data): Add costs for p5600.
33730         (mips_issue_rate): Add support for p5600.
33731         (mips_multipass_dfa_lookahead): Likewise.
33732         * config/mips/mips.h (TUNE_P5600): New define.
33733         (TUNE_MACC_CHAINS): Add TUNE_P5600.
33734         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
33735         * config/mips/mips.md: Include p5600.md.
33736         (processor): Add p5600.
33737         * config/mips/p5600.md: New file.
33739 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
33741         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
33742         * config/i386/predicates.md (palignr_operand): New.
33743         Indicates if permutation is suitable for palignr instruction.
33745 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
33747         PR tree-optimization/61319
33748         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
33749         stmt belongs to loop.
33751 2014-06-05  Richard Biener  <rguenther@suse.de>
33753         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
33754         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
33755         (lookup_tmp_var): Adjust.
33756         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
33758 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33760         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
33762 2014-06-05  Marek Polacek  <polacek@redhat.com>
33764         PR c/49706
33765         * doc/invoke.texi: Document -Wlogical-not-parentheses.
33767 2014-06-04  Tom de Vries  <tom@codesourcery.com>
33769         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
33770         CONST_INT.
33772 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
33774         PR tree-optimization/61385
33775         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
33777 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
33779         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
33780         changed to use fatal_error.
33781         (main): Ensure lto_wrapper_cleanup is run atexit.
33783 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33785         * lra-constraints.c (valid_address_p): Move earlier in file.
33786         (address_eliminator): New structure.
33787         (satisfies_memory_constraint_p): New function.
33788         (satisfies_address_constraint_p): Likewise.
33789         (process_alt_operands, process_address, curr_insn_transform): Use them.
33791 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33793         * lra-int.h (lra_static_insn_data): Make operand_alternative a
33794         const pointer.
33795         (target_lra_int, default_target_lra_int, this_target_lra_int)
33796         (op_alt_data): Delete.
33797         * lra.h (lra_init): Delete.
33798         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
33799         (init_insn_code_data_once): Remove op_alt_data handling.
33800         (finish_insn_code_data_once): Likewise.
33801         (init_op_alt_data): Delete.
33802         (get_static_insn_data): Initialize operand_alternative to null.
33803         (free_insn_recog_data): Cast operand_alternative before freeing it.
33804         (setup_operand_alternative): Take the operand_alternative as
33805         parameter and assume it isn't already cached in the static
33806         insn data.
33807         (lra_set_insn_recog_data): Update accordingly.
33808         (lra_init): Delete.
33809         * ira.c (ira_init): Don't call lra_init.
33810         * target-globals.h (this_target_lra_int): Declare.
33811         (target_globals): Remove lra_int.
33812         (restore_target_globals): Update accordingly.
33813         * target-globals.c: Don't include lra-int.h.
33814         (default_target_globals, save_target_globals): Remove lra_int.
33816 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33818         * recog.h (operand_alternative): Convert reg_class, reject,
33819         matched and matches into bitfields.
33820         (preprocess_constraints): New overload.
33821         (preprocess_insn_constraints): New function.
33822         (preprocess_constraints): Take the insn as parameter.
33823         (recog_op_alt): Change into a pointer.
33824         (target_recog): Add x_op_alt.
33825         * recog.c (asm_op_alt): New variable.
33826         (recog_op_alt): Change into a pointer.
33827         (preprocess_constraints): New overload, replacing the old function
33828         definition with one that doesn't use global state.
33829         (preprocess_insn_constraints): New function.
33830         (preprocess_constraints): Use them.  Take the insn as parameter.
33831         Use asm_op_alt for asms.
33832         (recog_init): Free existing x_op_alt entries.
33833         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
33834         pointer const.
33835         (make_early_clobber_and_input_conflicts): Likewise.
33836         (process_bb_node_lives): Pass the insn to process_constraints.
33837         * reg-stack.c (check_asm_stack_operands): Likewise.
33838         (subst_asm_stack_regs): Likewise.
33839         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
33840         * regrename.c (build_def_use): Likewise.
33841         * sched-deps.c (sched_analyze_insn): Likewise.
33842         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
33843         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
33844         (note_invalid_constants): Likewise.
33845         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
33846         (ix86_legitimate_combined_insn): Make operand_alternative pointer
33847         const.
33849 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33851         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
33852         * ira-lives.c (check_and_make_def_conflict): Check for disabled
33853         alternatives.
33854         (make_early_clobber_and_input_conflicts): Likewise.
33855         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
33857 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33859         * recog.h (alternative_class): New function.
33860         (which_op_alt): Return a const recog_op_alt.
33861         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
33862         (subst_asm_stack_regs): Likewise.
33863         * config/arm/arm.c (note_invalid_constants): Likewise.
33864         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
33865         the operand_alternative; use alternative class instead.
33866         * sel-sched.c (get_reg_class): Likewise.
33867         * regrename.c (build_def_use): Likewise.
33868         (hide_operands, restore_operands, record_out_operands): Update type
33869         accordingly.
33871 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
33873         * recog.h (recog_op_alt): Convert to a flat array.
33874         (which_op_alt): New function.
33875         * recog.c (recog_op_alt): Convert to a flat array.
33876         (preprocess_constraints): Update accordingly, grouping all
33877         operands of the same alternative together, rather than the
33878         other way around.
33879         * ira-lives.c (check_and_make_def_conflict): Likewise.
33880         (make_early_clobber_and_input_conflicts): Likewise.
33881         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
33882         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
33883         (subst_asm_stack_regs): Likewise.
33884         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
33885         * regrename.c (hide_operands, record_out_operands): Likewise.
33886         (build_def_use): Likewise.
33887         * sel-sched.c (get_reg_class): Likewise.
33888         * config/arm/arm.c (note_invalid_constants): Likewise.
33890 2014-06-04  Jason Merrill  <jason@redhat.com>
33892         PR c++/51253
33893         PR c++/61382
33894         * gimplify.c (gimplify_arg): Non-static.
33895         * gimplify.h: Declare it.
33897 2014-06-04  Richard Biener  <rguenther@suse.de>
33899         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
33900         TREE_PUBLIC and DECL_EXTERNAL decls.
33902 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
33904         * regcprop.c (copyprop_hardreg_forward_1): Account for
33905         HARD_REGNO_CALL_PART_CLOBBERED.
33907 2014-06-04  Richard Biener  <rguenther@suse.de>
33909         * configure.ac: Check whether the underlying type of int64_t
33910         is long or long long.
33911         * configure: Regenerate.
33912         * config.in: Likewise.
33913         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
33914         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
33916 2014-06-04  Richard Biener  <rguenther@suse.de>
33918         PR tree-optimization/60098
33919         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
33920         we hit a kill.
33921         (dse_optimize_stmt): Simplify, now that we found a kill
33922         earlier.
33924 2014-06-04  Richard Biener  <rguenther@suse.de>
33926         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
33927         of accesses with non-invariant address.
33929 2014-06-04  Martin Liska  <mliska@suse.cz>
33931         * cgraph.h (cgraph_make_wrapper): New function introduced.
33932         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
33933         * ipa-inline.h (inline_analyze_function): The function is global.
33934         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
33936 2014-06-04  Martin Liska  <mliska@suse.cz>
33938         * tree.h (private_lookup_attribute_starting): New function.
33939         (lookup_attribute_starting): Likewise.
33940         * tree.c (private_lookup_attribute_starting): Likewise.
33942 2014-06-04  Martin Liska  <mliska@suse.cz>
33944         * cgraph.h (expand_thunk): New argument added.
33945         (address_taken_from_non_vtable_p): New global function.
33946         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
33947         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
33948         * cgraphunit.c (analyze_function): Likewise.
33949         (assemble_thunks_and_aliases): Argument added to call.
33950         (expand_thunk): New argument forces to produce GIMPLE thunk.
33952 2014-06-04  Martin Liska  <mliska@suse.cz>
33954         * coverage.h (coverage_compute_cfg_checksum): Argument added.
33955         * coverage.c (coverage_compute_cfg_checksum): Likewise.
33956         * profile.c (branch_prob): Likewise.
33958 2014-06-04  Martin Jambor  <mjambor@suse.cz>
33960         PR ipa/61340
33961         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
33962         handler for switch on an ipa_ref_use enum.
33963         * ipa-reference.c (analyze_function): Likewise.
33965 2014-06-04  Kai Tietz  <ktietz@redhat.com>
33967         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
33968         from old call-instruction.
33970 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
33972         * config/aarch64/aarch64.c (aarch64_classify_address)
33973         (aarch64_legitimize_reload_address): Support full addressing modes
33974         for vector modes.
33975         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
33976         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
33978 2014-06-03  Andrew Pinski  <apinski@cavium.com>
33980         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
33981         for OP0.
33983 2014-06-03  Andrew Pinski  <apinski@cavium.com>
33985         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
33986         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
33988 2014-06-03  Kai Tietz  <ktietz@redhat.com>
33990         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
33991         for 64-bit ms-abi.
33993 2014-06-03  Dehao Chen  <dehao@google.com>
33995         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
33996         the same loop.
33998 2014-06-03  Marek Polacek  <polacek@redhat.com>
34000         PR c/60439
34001         * doc/invoke.texi: Document -Wswitch-bool.
34002         * function.c (stack_protect_epilogue): Cast controlling expression of
34003         the switch to int.
34004         * gengtype.c (walk_type): Generate switch expression with its
34005         controlling expression cast to int.
34007 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
34009         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
34010         and attiny841.
34011         * config/avr/avr-tables.opt: Regenerate.
34012         * config/avr/t-multilib: Regenerate.
34013         * doc/avr-mmcu.texi: Regenerate.
34015 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
34016             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
34018         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
34019         (ata6617c, ata664251): Add new avr35 devices.
34020         (ata6612c): Add new avr4 device.
34021         (ata6613c, ata6614q): Add new avr5 devices.
34022         * config/avr/avr-tables.opt: Regenerate.
34023         * config/avr/t-multilib: Regenerate.
34024         * doc/avr-mmcu.texi: Regenerate.
34026 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
34028         * gcc/config/aarch64/aarch64-builtins.c
34029         (aarch64_types_binop_ssu_qualifiers): New static data.
34030         (TYPES_BINOP_SSU): Define.
34031         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
34032         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
34033         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
34034         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
34035         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
34036         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
34037         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
34038         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
34039         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
34040         suffix to builtin function name, remove cast.
34041         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
34042         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
34043         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
34045 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
34047         * gcc/config/aarch64/aarch64-builtins.c
34048         (aarch64_types_binop_uus_qualifiers,
34049         aarch64_types_shift_to_unsigned_qualifiers,
34050         aarch64_types_unsigned_shiftacc_qualifiers): Define.
34051         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
34052         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
34053         sqshlu_n, uqshl_n): Update qualifiers.
34054         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
34055         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
34056         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
34057         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
34058         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
34059         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
34060         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
34061         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
34062         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
34063         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
34064         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
34065         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
34066         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
34067         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
34068         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
34069         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
34070         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
34071         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
34072         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
34073         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
34074         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
34075         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
34076         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
34077         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
34078         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
34079         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
34080         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
34082 2014-06-03  Teresa Johnson  <tejohnson@google.com>
34084         * tree-sra.c (modify_function): Record caller nodes after rebuild.
34086 2014-06-02  Jason Merrill  <jason@redhat.com>
34088         PR c++/61020
34089         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
34091 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
34093         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
34094         location == 0.
34096 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
34098         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
34099         New pattern.
34100         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
34101         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
34102         * config/aarch64/iterators.md (REVERSE): New iterator.
34103         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
34104         (rev_op): New int_attribute.
34105         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
34106         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
34107         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
34108         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
34109         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
34110         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
34111         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
34112         Replace temporary __asm__ with __builtin_shuffle.
34114 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
34116         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
34117         mips64r5.
34118         * config/mips/mips-tables.opt: Regenerate.
34119         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
34120         to use mips_isa_rev rather than ISA_MIPS32R2.
34121         * config/mips/mips.h (ISA_MIPS32R3): New define.
34122         (ISA_MIPS32R5): New define.
34123         (ISA_MIPS64R3): New define.
34124         (ISA_MIPS64R5): New define.
34125         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
34126         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
34127         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
34128         and mips64r5.
34129         (MIPS_ISA_SYNCI_SPEC): Likewise.
34130         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
34131         (LINK_SPEC): Added mips32r3 and mips32r5.
34132         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
34133         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
34134         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
34135         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
34136         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
34137         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
34138         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
34140 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
34142         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
34143         options.
34144         * config/mips/mips.opt (mxpa): New option.
34145         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
34146         assembler.
34148 2014-06-03  Martin Jambor  <mjambor@suse.cz>
34150         PR ipa/61160
34151         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
34152         thunks.
34154 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34156         PR tree-optimization/61328
34157         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
34158         initialization from find_bswap_or_nop_1.
34159         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
34160         in source_expr2 before using the size value the function sets. Also
34161         make use of init_symbolic_number () in both the old place and
34162         find_bswap_or_nop_load () to avoid reading uninitialized memory when
34163         doing recursion in the GIMPLE_BINARY_RHS case.
34165 2014-06-03  Richard Biener  <rguenther@suse.de>
34167         PR tree-optimization/61383
34168         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
34169         stmts can't trap.
34171 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
34173         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
34174         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
34175         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
34176         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
34177         in this file.
34178         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
34179         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
34180         * system.h: ...here and make it unconditional.
34181         * target.def (conditional_register_usage): Mention
34182         define_register_constraint instead of old-style constraint macros.
34183         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
34184         * doc/tm.texi: Regenerate.
34185         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
34186         protected by !USE_MD_CONSTRAINTS.
34187         * config/frv/frv.md: Remove quote from old version of documentation.
34188         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
34189         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
34190         CONST_DOUBLE_OK_FOR_LETTER.
34191         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
34193 2014-06-02  Andrew Pinski  <apinski@cavium.com>
34195         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
34196         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
34197         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
34198         file whose name depends on -mabi= and -mbig-endian.
34199         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
34200         Handle LP64 better and handle ilp32 too.
34201         (MULTILIB_OPTIONS): Delete.
34202         (MULTILIB_DIRNAMES): Delete.
34204 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
34206         * expr.h: Remove prototypes of functions defined in builtins.c.
34207         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
34208         Remove prototypes of functions defined in builtins.c.
34209         * builtins.h: Update prototype list to include all exported functions.
34210         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
34211         no_c99_libc_has_function): Move to targhooks.c
34212         (build_string_literal, build_call_expr_loc_array,
34213         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
34214         to tree.c.
34215         (expand_builtin_object_size, fold_builtin_object_size): Make static.
34216         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
34217         no_c99_libc_has_function): Relocate from builtins.c.
34218         * tree.c: Include builtins.h.
34219         (build_call_expr_loc_array, build_call_expr_loc_vec,
34220         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
34221         from builtins.c.
34222         * fold-const.h (fold_fma): Move prototype to builtins.h.
34223         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
34224         * asan.c: Include builtins.h.
34225         * cfgexpand.c: Likewise.
34226         * convert.c: Likewise.
34227         * emit-rtl.c: Likewise.
34228         * except.c: Likewise.
34229         * expr.c: Likewise.
34230         * fold-const.c: Likewise.
34231         * gimple-fold.c: Likewise.
34232         * gimple-ssa-strength-reduction.c: Likewise.
34233         * gimplify.c: Likewise.
34234         * ipa-inline.c: Likewise.
34235         * ipa-prop.c: Likewise.
34236         * lto-streamer-out.c: Likewise.
34237         * stmt.c: Likewise.
34238         * tree-inline.c: Likewise.
34239         * tree-object-size.c: Likewise.
34240         * tree-sra.c: Likewise.
34241         * tree-ssa-ccp.c: Likewise.
34242         * tree-ssa-forwprop.c: Likewise.
34243         * tree-ssa-loop-ivcanon.c: Likewise.
34244         * tree-ssa-loop-ivopts.c: Likewise.
34245         * tree-ssa-math-opts.c: Likewise.
34246         * tree-ssa-reassoc.c: Likewise.
34247         * tree-ssa-threadedge.c: Likewise.
34248         * tree-streamer-in.c: Likewise.
34249         * tree-vect-data-refs.c: Likewise.
34250         * tree-vect-patterns.c: Likewise.
34251         * tree-vect-stmts.c: Likewise.
34252         * config/aarch64/aarch64.c: Likewise.
34253         * config/alpha/alpha.c: Likewise.
34254         * config/arc/arc.c: Likewise.
34255         * config/arm/arm.c: Likewise.
34256         * config/avr/avr.c: Likewise.
34257         * config/bfin/bfin.c: Likewise.
34258         * config/c6x/c6x.c: Likewise.
34259         * config/cr16/cr16.c: Likewise.
34260         * config/cris/cris.c: Likewise.
34261         * config/epiphany/epiphany.c: Likewise.
34262         * config/fr30/fr30.c: Likewise.
34263         * config/frv/frv.c: Likewise.
34264         * config/h8300/h8300.c: Likewise.
34265         * config/i386/i386.c: Likewise.
34266         * config/i386/winnt.c: Likewise.
34267         * config/ia64/ia64.c: Likewise.
34268         * config/iq2000/iq2000.c: Likewise.
34269         * config/lm32/lm32.c: Likewise.
34270         * config/m32c/m32c.c: Likewise.
34271         * config/m32r/m32r.c: Likewise.
34272         * config/m68k/m68k.c: Likewise.
34273         * config/mcore/mcore.c: Likewise.
34274         * config/mep/mep.c: Likewise.
34275         * config/microblaze/microblaze.c: Likewise.
34276         * config/mips/mips.c: Likewise.
34277         * config/mmix/mmix.c: Likewise.
34278         * config/mn10300/mn10300.c: Likewise.
34279         * config/moxie/moxie.c: Likewise.
34280         * config/msp430/msp430.c: Likewise.
34281         * config/nds32/nds32.c: Likewise.
34282         * config/pa/pa.c: Likewise.
34283         * config/pdp11/pdp11.c: Likewise.
34284         * config/picochip/picochip.c: Likewise.
34285         * config/rl78/rl78.c: Likewise.
34286         * config/rs6000/rs6000.c: Likewise.
34287         * config/rx/rx.c: Likewise.
34288         * config/s390/s390.c: Likewise.
34289         * config/score/score.c: Likewise.
34290         * config/sh/sh.c: Likewise.
34291         * config/sparc/sparc.c: Likewise.
34292         * config/spu/spu.c: Likewise.
34293         * config/stormy16/stormy16.c: Likewise.
34294         * config/tilegx/tilegx.c: Likewise.
34295         * config/tilepro/tilepro.c: Likewise.
34296         * config/v850/v850.c: Likewise.
34297         * config/vax/vax.c: Likewise.
34298         * config/xtensa/xtensa.c: Likewise.
34300 2014-06-02  Jeff Law  <law@redhat.com>
34302         PR rtl-optimization/61094
34303         * ree.c (combine_reaching_defs): Do not reextend an insn if it
34304         was marked as do_no_reextend.  If a copy is needed to eliminate
34305         an extension, then mark it as do_not_reextend.
34307 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34309         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
34311 2014-06-02  Richard Henderson  <rth@redhat.com>
34313         PR target/61336
34314         * config/alpha/alpha.c (print_operand_address): Allow symbolic
34315         addresses inside asms.  Use output_operand_lossage instead of
34316         gcc_unreachable.
34318 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
34320         PR target/61239
34321         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
34322         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
34324 2014-06-02  Tom de Vries  <tom@codesourcery.com>
34326         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
34327         case that x has VOIDmode.
34329 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
34331         * varasm.c (copy_constant): Delete function.
34332         (build_constant_desc): Don't call it.
34334 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34336         PR target/61154
34337         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
34338         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
34339         with immediate_operand.
34341 2014-06-02  Andreas Schwab  <schwab@suse.de>
34343         * config/ia64/ia64.c
34344         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
34345         pending_data_specs first.
34347 2014-06-02  Richard Biener  <rguenther@suse.de>
34349         PR tree-optimization/61378
34350         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
34351         valueized_anything.
34353 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
34355         * config/i386/constraints.md (Bw): Rename from 'w'.
34356         (Bz): Rename from 'z'.
34357         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
34359 2014-06-01  Kai Tietz  <ktietz@redhat.com>
34361         PR target/61377
34362         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
34363         * config/i386/i386.md (sibcall_insn_operand): Use Bs
34364         instead of m constraint.
34366 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
34368         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
34369         a separate alternative where the scratch operand 2 is marked as
34370         early clobber.
34372 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
34374         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
34375         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
34376         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
34377         and __builtins_arm_get_fpscr.
34378         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
34379         __builtins_arm_get_fpscr.
34380         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
34381         __builtins_arm_ldfpscr.
34382         (arm_atomic_assign_expand_fenv): New function.
34383         * config/arm/vfp.md (set_fpscr): New pattern.
34384         (get_fpscr) : Likewise.
34385         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
34386         VUNSPEC_SET_FPSCR.
34387         * doc/extend.texi (AARCH64 Built-in Functions) : Document
34388         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
34390 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
34392         * asan.c (report_error_func): Add SLOW_P argument, use
34393         BUILT_IN_ASAN_*_N if set.
34394         (build_check_stmt): Likewise.
34395         (instrument_derefs): If T has insufficient alignment,
34396         force same handling as for odd sizes.
34398         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
34399         BUILT_IN_ASAN_REPORT_STORE_N): New.
34400         * asan.c (struct asan_mem_ref): Change access_size type to
34401         HOST_WIDE_INT.
34402         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
34403         update_mem_ref_hash_table): Likewise.
34404         (asan_mem_ref_hasher::hash): Hash in a HWI.
34405         (report_error_func): Change size_in_bytes argument to HWI.
34406         Use *_N builtins if size_in_bytes is larger than 16 or not power of
34407         two.
34408         (build_shadow_mem_access): New function.
34409         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
34410         Handle size_in_bytes not power of two or larger than 16.
34411         (instrument_derefs): Don't give up if size_in_bytes is not
34412         power of two or is larger than 16.
34414 2014-05-30  Kai Tietz  <ktietz@redhat.com>
34416         PR target/60104
34417         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
34418         for sibling-tail-calls.
34419         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
34420         to its use.
34421         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
34422         (sibcall_insn_operand): Add check for sibcall_memory_operand.
34424 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
34426         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
34427         * config/avr/avr-tables.opt: Regenerate.
34428         * config/avr/t-multilib: Regenerate.
34429         * doc/avr-mmcu.texi: Regenerate.
34431 2014-05-30  Ian Lance Taylor  <iant@google.com>
34433         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
34434         target("sse").
34436 2014-05-30  Tom de Vries  <tom@codesourcery.com>
34438         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
34439         Redefine as true.
34441 2014-05-30  Tom de Vries  <tom@codesourcery.com>
34443         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
34444         * lra.c (initialize_lra_reg_info_element): Add init of
34445         actual_call_used_reg_set field.
34446         (lra): Call lra_create_live_ranges before lra_inheritance for
34447         -fuse-caller-save.
34448         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
34449         -fuse-caller-save.
34450         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
34451         instead of call_used_reg_set for -fuse-caller-save.
34452         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
34454 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34456         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
34457         to mov_imm.
34458         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
34460 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
34462         * ira.c (ira_get_dup_out_num): Check for output operands at
34463         the start of the loop.  Handle cases where an included alternative
34464         follows an excluded one.
34466 2014-05-29  Mike Stump  <mikestump@comcast.net>
34468         PR debug/61352
34469         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
34470         post ld passes when lto is used.
34472 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
34474         PR rtl-optimization/61325
34475         * lra-constraints.c (process_address): Rename to process_address_1.
34476         (process_address): New function.
34478 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
34480         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
34481         TYPES_BINOPV): New static data.
34482         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
34483         New builtin.
34484         * config/aarch64/aarch64-simd.md (aarch64_ext,
34485         aarch64_im_lane_boundsi): New patterns.
34486         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
34487         patterns for EXT.
34488         (aarch64_evpc_ext): New function.
34490         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
34492         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
34493         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
34494         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
34495         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
34496         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
34498 2014-05-29  Tom de Vries  <tom@codesourcery.com>
34500         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
34502 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
34503             Richard Sandiford  <rdsandiford@googlemail.com>
34505         * arm/iterators.md (shiftable_ops): New code iterator.
34506         (t2_binop0, arith_shift_insn): New code attributes.
34507         * arm/predicates.md (shift_nomul_operator): New predicate.
34508         * arm/arm.md (insn_enabled): Delete.
34509         (enabled): Remove insn_enabled test.
34510         (*arith_shiftsi): Delete.  Replace with ...
34511         (*<arith_shift_insn>_multsi): ... new pattern.
34512         (*<arith_shift_insn>_shiftsi): ... new pattern.
34513         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
34515 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
34516             Tom de Vries  <tom@codesourcery.com>
34518         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
34519         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
34520         clobber.
34521         (mips_split_call): Use POST_CALL_TMP_REG.
34522         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
34524 2014-05-29  Tom de Vries  <tom@codesourcery.com>
34526         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
34527         with #ifdef STACK_REGS.
34529 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
34531         * varasm.c (get_variable_section): Walk aliases.
34532         (place_block_symbol): Walk aliases.
34534 2014-05-28  Tom de Vries  <tom@codesourcery.com>
34536         Revert:
34537         2014-05-28  Tom de Vries  <tom@codesourcery.com>
34539         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
34540         * lra.c (initialize_lra_reg_info_element): Add init of
34541         actual_call_used_reg_set field.
34542         (lra): Call lra_create_live_ranges before lra_inheritance for
34543         -fuse-caller-save.
34544         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
34545         -fuse-caller-save.
34546         * lra-constraints.c (need_for_call_save_p): Use
34547         actual_call_used_reg_set instead of call_used_reg_set for
34548         -fuse-caller-save.
34549         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
34551 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
34553         * doc/md.texi: Document that the % constraint character must
34554         be at the beginning of the string.
34555         * genoutput.c (validate_insn_alternatives): Check that '=',
34556         '+' and '%' only appear at the beginning of a constraint.
34557         * ira.c (commutative_constraint_p): Delete.
34558         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
34559         at the start of the string.
34560         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
34561         duplicate '='s.
34562         * config/arm/neon.md (bicdi3_neon): Likewise.
34563         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
34564         (slt_si, sltu_si): Likewise.
34565         * config/vax/vax.md (sbcdi3): Likewise.
34566         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
34567         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
34568         (mul64): Move '%' to beginning of constraint.
34569         * config/arm/arm.md (*xordi3_insn): Likewise.
34570         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
34571         (xorsi3): Likewise.
34573 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
34575         * doc/md.texi: Document the restrictions on the "enabled" attribute.
34577 2014-05-28  Jason Merrill  <jason@redhat.com>
34579         PR c++/47202
34580         * cgraph.h (symtab_node::get_comdat_group_id): New.
34581         * cgraphunit.c (analyze_functions): Call it.
34582         * symtab.c (dump_symtab_node): Likewise.
34583         * tree.c (decl_comdat_group_id): New.
34584         * tree.h: Declare it.
34585         * lto-streamer-out.c (write_symbol): Use it.
34586         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
34588 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
34590         PR bootstrap/PR61146
34591         * wide-int.cc: Do not include longlong.h when compiling with clang.
34593 2014-05-28  Richard Biener  <rguenther@suse.de>
34595         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
34596         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
34597         (vrp_visit_assignment_or_call): Print less vertical space.
34598         (vrp_visit_stmt): Likewise.
34599         (vrp_visit_phi_node): Likewise.  For a PHI argument with
34600         VR_VARYING range consider recording it as copy.
34602 2014-05-28  Richard Biener  <rguenther@suse.de>
34604         Revert
34605         2014-05-28  Richard Biener  <rguenther@suse.de>
34607         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
34609 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34611         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
34612         sufficiently aligned and an offset is used at the same time.
34613         (expand_expr_real_1): Likewise.
34615 2014-05-28  Richard Biener  <rguenther@suse.de>
34617         PR middle-end/61045
34618         * fold-const.c (fold_comparison): When folding
34619         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
34620         the sign of the remaining constant operand stays the same.
34622 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
34624         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
34625         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
34626         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
34627         to the assembler.
34628         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
34629         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
34630         (m32bit-doubles) Likewise.
34631         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
34632         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
34633         option for RL78.
34635 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34637         * configure.ac ($gcc_cv_ld_clearcap): New test.
34638         * configure: Regenerate.
34639         * config.in: Regenerate.
34640         * config/sol2.opt (mclear-hwcap): New option.
34641         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
34642         * config/sol2-clearcap.map: Moved here from
34643         testsuite/gcc.target/i386/clearcap.map.
34644         * config/sol2-clearcapv2.map: Move here from
34645         gcc.target/i386/clearcapv2.map.
34646         * config/t-sol2 (install): Depend on install-clearcap-map.
34647         (install-clearcap-map): New target.
34648         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
34649         -mclear-hwcap.
34651 2014-05-28  Richard Biener  <rguenther@suse.de>
34653         * hwint.h (*_HALF_WIDE_INT*): Move to ...
34654         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
34655         ... here and remove the rest.
34656         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
34658 2014-05-28  Richard Biener  <rguenther@suse.de>
34660         PR tree-optimization/61335
34661         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
34662         new range fails, drop to varying.
34664 2014-05-28  Olivier Hainque  <hainque@adacore.com>
34666         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
34667         (CPP_SPEC): Add entry for -mcpu=8548.
34668         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
34669         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
34671 2014-05-28  Tom de Vries  <tom@codesourcery.com>
34673         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
34674         * lra.c (initialize_lra_reg_info_element): Add init of
34675         actual_call_used_reg_set field.
34676         (lra): Call lra_create_live_ranges before lra_inheritance for
34677         -fuse-caller-save.
34678         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
34679         -fuse-caller-save.
34680         * lra-constraints.c (need_for_call_save_p): Use
34681         actual_call_used_reg_set instead of call_used_reg_set for
34682         -fuse-caller-save.
34683         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
34685 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
34686             Tom de Vries  <tom@codesourcery.com>
34688         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
34689         to gccoptlist.
34690         (@item -fuse-caller-save): New item.
34692 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
34693             Tom de Vries  <tom@codesourcery.com>
34695         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
34696         OPT_fuse_caller_save.
34698 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
34699             Tom de Vries  <tom@codesourcery.com>
34701         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
34702         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
34703         get_call_reg_set_usage.
34704         * resource.c (mark_set_resources, mark_target_live_regs): Use
34705         get_call_reg_set_usage.
34706         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
34707         field.
34708         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
34709         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
34710         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
34711         * ira-build.c (ira_create_allocno): Init
34712         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
34713         (create_cap_allocno, propagate_allocno_info)
34714         (propagate_some_info_from_allocno)
34715         (copy_info_to_removed_store_destinations): Handle
34716         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
34717         * ira-costs.c (ira_tune_allocno_costs): Use
34718         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
34720 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
34721             Tom de Vries  <tom@codesourcery.com>
34723         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
34724         and function_used_regs_valid fields.
34725         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
34726         find_all_hard_reg_sets.
34727         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
34728         (get_call_reg_set_usage): New function.
34729         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
34730         * regs.h (get_call_reg_set_usage): Declare.
34732 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
34734         PR libgcc/61152
34735         * config/dbx.h (License): Add Runtime Library Exception.
34736         * config/newlib-stdint.h (License): Same.
34737         * config/rtems.h (License): Same
34738         * config/initfini-array.h (License): Same
34739         * config/v850/v850.h (License): Same.
34740         * config/v850/v850-opts.h (License): Same
34741         * config/v850/rtems.h (License): Same.
34743 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
34745         PR target/61044
34746         * doc/extend.texi (Local Labels): Note that label differences are
34747         not supported for AVR.
34749 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
34750             Olivier Hainque  <hainque@adacore.com>
34752         * rtl.h (set_for_reg_notes): Declare.
34753         * emit-rtl.c (set_for_reg_notes): New function.
34754         (set_unique_reg_note): Use it.
34755         * optabs.c (add_equal_note): Likewise
34757 2014-05-27  Andrew Pinski  <apinski@cavium.com>
34759         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
34760         Use <w> for the register in assembly template.
34761         (stack_protect_test): Use the mode of operands[0] for the result.
34762         (stack_protect_test_<mode>): Use <w> for the register
34763         in assembly template.
34765 2014-05-27  DJ Delorie  <dj@redhat.com>
34767         * config/rx/rx.c (add_vector_labels): New.
34768         (rx_output_function_prologue): Call it.
34769         (rx_handle_func_attribute): Don't require empty arguments.
34770         (rx_handle_vector_attribute): New.
34771         (rx_attribute_table): Add "vector" attribute.
34772         * doc/extend.texi (interrupt, vector): Document new/changed
34773         RX-specific attributes.
34775         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
34777 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
34779         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
34780         predicate to detect a negative quotient.
34782 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
34784         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
34785         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
34786         Add X - Y CMP 0 to X CMP Y transformation.
34787         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
34789 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
34791         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
34792         before printing.
34794 2014-05-27  Steve Ellcey  <sellcey@mips.com>
34796         * config/mips/mips.c: Add include of cgraph.h.
34798 2014-05-27  Richard Biener  <rguenther@suse.de>
34800         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
34802 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
34804         PR libgcc/61152
34805         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
34806         * config/arm/arm-cores.def (License): Same.
34807         * config/arm/arm-opts.h (License): Same.
34808         * config/arm/aout.h (License): Same.
34809         * config/arm/bpabi.h (License): Same.
34810         * config/arm/elf.h (License): Same.
34811         * config/arm/linux-elf.h (License): Same.
34812         * config/arm/linux-gas.h (License): Same.
34813         * config/arm/netbsd-elf.h (License): Same.
34814         * config/arm/uclinux-eabi.h (License): Same.
34815         * config/arm/uclinux-elf.h (License): Same.
34816         * config/arm/vxworks.h (License): Same.
34818 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34820         * config/arm/neon.md (neon_bswap<mode>): New pattern.
34821         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
34822         (arm_init_neon_builtins): Handle NEON_BSWAP.
34823         Define required type nodes.
34824         (arm_expand_neon_builtin): Handle NEON_BSWAP.
34825         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
34826         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
34827         * config/arm/iterators.md (VDQHSD): New mode iterator.
34829 2014-05-27  Richard Biener  <rguenther@suse.de>
34831         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
34832         Try using literal operands when comparing value-ranges failed.
34834 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
34836         * ira.c (commutative_operand): Adjust for change to recog_data.
34837         [Missing from previous commit.]
34839 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
34841         * system.h (TEST_BIT): New macro.
34842         * recog.h (alternative_mask): New type.
34843         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
34844         (recog_data_d): Replace alternative_enabled_p array with
34845         enabled_alternatives.
34846         (target_recog): New structure.
34847         (default_target_recog, this_target_recog): Declare.
34848         (get_enabled_alternatives, recog_init): Likewise.
34849         * recog.c (default_target_recog, this_target_recog): New variables.
34850         (get_enabled_alternatives): New function.
34851         (extract_insn): Use it.
34852         (recog_init): New function.
34853         (preprocess_constraints, constrain_operands): Adjust for change to
34854         recog_data.
34855         * postreload.c (reload_cse_simplify_operands): Likewise.
34856         * reload.c (find_reloads): Likewise.
34857         * ira-costs.c (record_reg_classes): Likewise.
34858         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
34859         all alternatives after a disabled one would be skipped.
34860         (ira_implicitly_set_insn_hard_regs): Likewise.
34861         * ira.c (ira_setup_alts): Adjust for change to recog_data.
34862         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
34863         with enabled_alternatives.
34864         * lra.c (free_insn_recog_data): Update accordingly.
34865         (lra_update_insn_recog_data): Likewise.
34866         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
34867         * lra-constraints.c (process_alt_operands): Likewise.  Handle
34868         only_alternative as part of the enabled mask.
34869         * target-globals.h (this_target_recog): Declare.
34870         (target_globals): Add a recog field.
34871         (restore_target_globals): Restore this_target_recog.
34872         * target-globals.c: Include recog.h.
34873         (default_target_globals): Initialize recog field.
34874         (save_target_globals): Likewise.
34875         * reginfo.c (reinit_regs): Call recog_init.
34876         * toplev.c (backend_init_target): Likewise.
34878 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
34880         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
34881         rather than any named insn's code.
34883 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
34885         PR libgcc/61152
34886         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
34887         * config/arm/arm-cores.def (License): Same.
34889 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
34891         * tree.h (decl_comdat_group): Declare.
34892         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
34893         * tree.c (decl_comdat_group): Here.
34895 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
34897         PR rtl-optimization/61222
34898         * combine.c (simplify_shift_const_1): When moving a PLUS outside
34899         the shift, truncate the PLUS operand to the result mode.
34901 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
34903         PR target/61271
34904         * config/i386/i386.c (ix86_rtx_costs)
34905         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
34906         Fix condition.
34908 2014-05-26  Martin Jambor  <mjambor@suse.cz>
34910         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
34911         subreg uses.
34913 2014-05-26  Richard Biener  <rguenther@suse.de>
34915         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
34916         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
34917         Provide specializations.
34918         (wi::int_traits <HOST_WIDE_INT>,
34919         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
34921 2014-05-26  Alan Modra  <amodra@gmail.com>
34923         PR target/61098
34924         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
34925         params and return a bool.  Remove dead code.  Update comment.
34926         Assert we have a const_int source.  Remove bogus code from
34927         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
34928         handling of constants > 2G and reg_equal note, from..
34929         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
34930         return value.  Update comment.  If we can, use a new pseudo
34931         for intermediate calculations.
34932         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
34933         prototype.
34934         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
34935         call to rs6000_emit_set_const in splitter.
34936         (movdi_internal64+2, +3): Likewise.
34938 2014-05-26  Richard Biener  <rguenther@suse.de>
34940         * system.h: Define __STDC_FORMAT_MACROS before
34941         including inttypes.h.
34942         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
34943         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
34944         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
34945         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
34946         HOST_WIDEST_INT_C): Remove.
34947         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
34948         if C99 inttypes.h is not available.
34949         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
34950         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
34951         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
34952         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
34953         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
34954         (struct output_info): Likewise.
34955         (print_statistics): Adjust.
34956         (dump_bitmap_statistics): Likewise.
34957         * bt-load.c (migrate_btr_defs): Print with PRId64.
34958         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
34959         (MAX_SAFE_MULTIPLIER): Adjust.
34960         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
34961         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
34962         dump_cgraph_node): Likewise.
34963         * final.c (dump_basic_block_info): Likewise.
34964         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
34965         * gcov.c (format_gcov): Likewise.
34966         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
34967         for calculation.
34968         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
34969         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
34970         (inline_small_functions, dump_overall_stats, dump_inline_stats):
34971         Use PRId64 for dumping.
34972         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
34973         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
34974         (add_allocno_hard_regs): Adjust.
34975         * loop-doloop.c (doloop_modify): Print using PRId64.
34976         * loop-iv.c (inverse): Compute in uint64_t.
34977         (determine_max_iter, iv_number_of_iterations): Likewise.
34978         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
34979         Print using PRId64.
34980         * lto-streamer-out.c (write_symbol): Use uint64_t.
34981         * mcf.c (CAP_INFINITY): Use int64_t maximum.
34982         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
34983         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
34984         * modulo-sched.c (const_iteration_count): Use int64_t.
34985         (sms_schedule): Dump using PRId64.
34986         * predict.c (dump_prediction): Likewise.
34987         * pretty-print.h (pp_widest_integer): Remove.
34988         * profile.c (get_working_sets, is_edge_inconsistent,
34989         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
34990         * tree-pretty-print.c (pp_double_int): Remove case handling
34991         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
34992         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
34993         and adjust users.
34994         (pass_optimize_bswap::execute): Remove restriction on hosts.
34995         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
34996         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
34997         * tree.c (widest_int_cst_value): Remove.
34998         * tree.h (widest_int_cst_value): Likewise.
34999         * value-prof.c (dump_histogram_value): Print using PRId64.
35000         * gengtype.c (main): Also inject int64_t.
35001         * ggc-page.c (struct max_alignment): Use int64_t.
35002         * alloc-pool.c (struct allocation_object_def): Likewise.
35003         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
35004         for computation.
35005         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
35006         * doc/tm.texi: Regenerated.
35007         * gengtype-lex.l (IWORD): Handle [u]int64_t.
35008         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
35009         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
35010         mmix_output_register_setting): Use [u]int64_t in prototypes.
35011         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
35012         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
35013         mmix_output_octa, mmix_output_shifted_value): Adjust.
35014         (mmix_intval): Adjust.  Remove unreachable case.
35015         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
35017 2014-05-26  Richard Biener  <rguenther@suse.de>
35019         * configure.ac: Drop __int64 type check.  Insist that we
35020         found uint64_t and int64_t.
35021         * hwint.h (HOST_BITS_PER___INT64): Remove.
35022         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
35023         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
35024         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
35025         (HOST_WIDEST_FAST_INT): Remove __int64 case.
35026         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
35027         for dst_q_src_df_rms_cdt.
35028         * configure: Regenerate.
35029         * config.in: Likewise.
35031 2014-05-26  Michael Tautschnig  <mt@debian.org>
35033         PR target/61249
35034         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
35035         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
35037 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
35039         PR rtl-optimization/61278
35040         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
35042 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
35044         PR rtl-optimization/61220
35045         Part of PR rtl-optimization/61225
35046         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
35047         insn; skip split_edge for a block with only one successor.
35049 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35051         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
35052         for variables.
35054 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35056         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
35057         (update_vtable_references): New function.
35058         (function_and_variable_visibility): Rewrite also vtable initializers.
35059         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
35061 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35063         * ggc.h (ggc_grow): New function.
35064         * ggc-none.c (ggc_grow): New function.
35065         * ggc-page.c (ggc_grow): Likewise.
35067 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35069         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
35070         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
35071         comdat_can_be_unshared_p, cgraph_externally_visible_p,
35072         varpool_externally_visible_p, can_replace_by_local_alias,
35073         update_visibility_by_resolution_info, function_and_variable_visibility,
35074         pass_data_ipa_function_and_variable_visibility,
35075         make_pass_ipa_function_and_variable_visibility,
35076         whole_program_function_and_variable_visibility,
35077         pass_data_ipa_whole_program_visibility,
35078         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
35079         * cgraph.h (cgraph_local_node_p): Declare.
35080         * ipa-visibility.c: New file.
35081         * Makefile.in (OBJS): Add ipa-visiblity.o
35083 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35085         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
35086         that var decl is available.
35088 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35090         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
35091         symtab_node pointer.
35092         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
35093         (find_decls_types_r): Do not walk COMDAT_GROUP.
35094         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
35095         * varasm.c (make_decl_one_only): Use set_comdat_group;
35096         create node if needed.
35097         * ipa-inline-transform.c (save_inline_function_body): Update
35098         way we decl->symtab mapping.
35099         * symtab.c (symtab_hash, hash_node, eq_node
35100         symtab_insert_node_to_hashtable): Remove.
35101         (symtab_register_node): Update.
35102         (symtab_unregister_node): Update.
35103         (symtab_get_node): Reimplement as inline function.
35104         (symtab_add_to_same_comdat_group): Update.
35105         (symtab_dissolve_same_comdat_group_list): Update.
35106         (dump_symtab_base): Update.
35107         (verify_symtab_base): Update.
35108         (symtab_make_decl_local): Update.
35109         (fixup_same_cpp_alias_visibility): Update.
35110         (symtab_nonoverwritable_alias): Update.
35111         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
35112         * ipa.c (update_visibility_by_resolution_info): UPdate.
35113         * bb-reorder.c: Include cgraph.h
35114         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
35115         with comdat groups.
35116         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
35117         * cgraph.c (cgraph_get_create_node): Update.
35118         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
35119         and comdat_group_.
35120         (symtab_get_node): Make inline.
35121         (symtab_insert_node_to_hashtable): Remove.
35122         (symtab_can_be_discarded): Update.
35123         (decl_comdat_group): New function.
35124         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
35125         Update.
35126         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
35127         comdat group name.
35128         (read_comdat_group): New function.
35129         (input_node, input_varpool_node): Use it.
35130         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
35131         comdat groups.
35132         * mips.c (mips_start_unique_function): Likewise.
35133         (ix86_code_end): Likewise.
35134         (rs6000_code_end): Likweise.
35135         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
35137 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35139         * gengtype-state.c (fatal_reading_state): Bring offline.
35140         * optabs.c (widening_optab_handler): Bring offline.
35141         * optabs.h (widening_optab_handler): Likewise.
35142         * final.c (get_attr_length_1): Likewise.
35144 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
35146         * sched-int.h (sd_iterator_cond): Manually tail recurse.
35148 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35150         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
35151         (ppc440-compare): Include shift with dot.
35152         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
35153         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
35154         without dot.
35155         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
35156         without dot.
35157         (e6500_sfx2): Include it.
35158         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
35159         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
35160         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
35161         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
35162         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
35163         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
35164         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
35165         *lshiftrt_internal1le, *lshiftrt_internal1be,
35166         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
35167         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
35168         *rotldi3_internal10le, *rotldi3_internal10be,
35169         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
35170         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
35171         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
35172         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
35173         define_insns): Use type "shift" in the appropriate alternatives.
35175 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35177         * config/rs6000/rs6000.md (type): Add "logical".  Delete
35178         "fast_compare".
35179         (dot): Adjust comment.
35180         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
35181         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
35182         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
35183         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
35184         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
35185         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
35186         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
35187         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
35189         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
35190         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
35191         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
35192         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
35193         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
35194         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
35195         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
35196         * config/rs6000/8540.md (ppc8540_su): Adjust.
35197         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
35198         cell-cmp-microcoded): Adjust.
35199         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
35200         * config/rs6000/e500mc.md (e500mc_su): Adjust.
35201         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
35202         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
35203         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
35204         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
35205         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
35206         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
35207         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
35208         Adjust.
35209         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
35210         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
35211         Adjust.  Adjust comment.
35212         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
35213         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
35215 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35217         * config/rs6000/rs6000.md (type): Add "add".
35218         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
35219         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
35220         define_insns): Use it.
35221         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
35223         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
35224         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
35225         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
35226         * config/rs6000/601.md (ppc601-integer): Adjust.
35227         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
35228         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
35229         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
35230         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
35231         * config/rs6000/8540.md (ppc8540_su): Adjust.
35232         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
35233         cell-cmp-microcoded): Adjust.
35234         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
35235         * config/rs6000/e500mc.md (e500mc_su): Adjust.
35236         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
35237         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
35238         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
35239         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
35240         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
35241         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
35242         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
35243         Adjust.
35244         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
35245         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
35246         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
35247         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
35249 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35251         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
35252         "delayed_compare", "var_delayed_compare".
35253         (var_shift): New attribute.
35254         (cell_micro): Adjust.
35255         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
35256         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
35257         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
35258         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
35259         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
35260         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
35261         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
35262         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
35263         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
35264         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
35265         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
35266         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
35267         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
35268         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
35269         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
35270         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
35271         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
35272         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
35273         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
35274         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
35275         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
35276         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
35277         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
35278         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
35279         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
35281         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
35282         * config/rs6000/440.md (ppc440-integer): Adjust.
35283         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
35284         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
35285         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
35286         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
35287         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
35288         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
35289         * config/rs6000/8540.md (ppc8540_su): Adjust.
35290         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
35291         cell-cmp-microcoded): Adjust.
35292         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
35293         * config/rs6000/e500mc.md (e500mc_su): Adjust.
35294         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
35295         e500mc64_delayed): Adjust.
35296         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
35297         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
35298         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
35299         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
35300         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
35301         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
35302         power6-delayed-compare, power6-var-delayed-compare): Adjust.
35303         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
35304         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
35305         Adjust comment.
35306         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
35307         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
35309 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35311         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
35312         (bits): New mode_attr.
35313         (idiv_ldiv): Delete mode_attr.
35314         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
35315         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
35316         rs6000_adjust_priority, is_nonpipeline_insn,
35317         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
35319         * config/rs6000/40x.md (ppc403-idiv): Adjust.
35320         * config/rs6000/440.md (ppc440-idiv): Adjust.
35321         * config/rs6000/476.md (ppc476-idiv): Adjust.
35322         * config/rs6000/601.md (ppc601-idiv): Adjust.
35323         * config/rs6000/603.md (ppc603-idiv): Adjust.
35324         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
35325         ppc620-ldiv): Adjust.
35326         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
35327         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
35328         * config/rs6000/8540.md (ppc8540_divide): Adjust.
35329         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
35330         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
35331         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
35332         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
35333         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
35334         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
35335         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
35336         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
35337         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
35338         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
35339         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
35340         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
35341         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
35342         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
35343         * config/rs6000/titan.md (titan_fxu_div): Adjust.
35345 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35347         * config/rs6000/rs6000.md (type): Delete "insert_word",
35348         "insert_dword".  Add "insert".
35349         (size): Update comment.
35350         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
35351         insn_must_be_first_in_group): Adjust.
35352         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
35353         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
35354         *insvsi_internal6, insvdi_internal): Adjust.
35356         * config/rs6000/40x.md (ppc403-integer): Adjust.
35357         * config/rs6000/440.md (ppc440-integer): Adjust.
35358         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
35359         * config/rs6000/601.md (ppc601-integer): Adjust.
35360         * config/rs6000/603.md (ppc603-integer): Adjust.
35361         * config/rs6000/6xx.md (ppc604-integer): Adjust.
35362         * config/rs6000/7450.md (ppc7450-integer): Adjust.
35363         * config/rs6000/7xx.md (ppc750-integer): Adjust.
35364         * config/rs6000/8540.md (ppc8540_su): Adjust.
35365         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
35366         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
35367         * config/rs6000/e500mc.md (e500mc_su): Adjust.
35368         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
35369         * config/rs6000/e5500.md (e5500_sfx): Adjust.
35370         * config/rs6000/e6500.md (e6500_sfx): Adjust.
35371         * config/rs6000/mpc.md (mpccore-integer): Adjust.
35372         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
35373         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
35374         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
35375         * config/rs6000/power7.md (power7-integer): Adjust.
35376         * config/rs6000/power8.md (power8-1cyc): Adjust.
35377         * config/rs6000/rs64.md (rs64a-integer): Adjust.
35378         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
35380 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35382         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
35383         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
35384         (size): New attribute.
35385         (dot): New attribute.
35386         (cell_micro): Adjust.
35387         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
35388         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
35389         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
35390         umuldi3_highpart): Adjust.
35391         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
35392         rs6000_adjust_priority, is_nonpipeline_insn,
35393         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
35395         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
35396         ppc405-imul3): Adjust.
35397         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
35398         * config/rs6000/476.md (ppc476-imul): Adjust.
35399         * config/rs6000/601.md (ppc601-imul): Adjust.
35400         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
35401         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
35402         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
35403         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
35404         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
35405         Adjust.
35406         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
35407         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
35408         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
35409         cell-imul): Adjust.
35410         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
35411         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
35412         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
35413         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
35414         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
35415         * config/rs6000/mpc.md (mpccore-imul): Adjust.
35416         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
35417         power4-lmul, power4-imul, power4-imul3): Adjust.
35418         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
35419         power5-lmul, power5-imul, power5-imul3): Adjust.
35420         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
35421         power6-lmul, power6-imul, power6-imul3): Adjust.
35422         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
35423         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
35425         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
35426         rs64a-lmul): Adjust.
35427         * config/rs6000/titan.md (titan_imul): Adjust.
35429 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35431         * config/rs6000/rs6000.md (type): Add new value "halfmul".
35432         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
35433         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
35434         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
35435         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
35436         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
35437         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
35438         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
35439         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
35440         * config/rs6000/titan.md: Delete nonsensical comment.
35441         (titan_imul): Add type imul3.
35442         (titan_mulhw): Remove type imul3; add type halfmul.
35444 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
35446         * config/rs6000/rs6000.md (type): Reorder, reformat.
35448 2014-05-23  Martin Jambor  <mjambor@suse.cz>
35450         PR tree-optimization/53787
35451         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
35452         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
35453         analysis_done, update all uses.
35454         * ipa-prop.c: Include domwalk.h
35455         (param_analysis_info): Removed.
35456         (param_aa_status): New type.
35457         (ipa_bb_info): Likewise.
35458         (func_body_info): Likewise.
35459         (ipa_get_bb_info): New function.
35460         (aa_overwalked): Likewise.
35461         (find_dominating_aa_status): Likewise.
35462         (parm_bb_aa_status_for_bb): Likewise.
35463         (parm_preserved_before_stmt_p): Changed to use new param AA info.
35464         (load_from_unmodified_param): Accept func_body_info as a parameter
35465         instead of parms_ainfo.
35466         (parm_ref_data_preserved_p): Changed to use new param AA info.
35467         (parm_ref_data_pass_through_p): Likewise.
35468         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
35469         (compute_complex_assign_jump_func): Changed to use new param AA info.
35470         (compute_complex_ancestor_jump_func): Likewise.
35471         (ipa_compute_jump_functions_for_edge): Likewise.
35472         (ipa_compute_jump_functions): Removed.
35473         (ipa_compute_jump_functions_for_bb): New function.
35474         (ipa_analyze_indirect_call_uses): Likewise, moved variable
35475         declarations down.
35476         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
35477         and info, moved variable declarations down.
35478         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
35479         node and info.
35480         (ipa_analyze_stmt_uses): Likewise.
35481         (ipa_analyze_params_uses): Removed.
35482         (ipa_analyze_params_uses_in_bb): New function.
35483         (ipa_analyze_controlled_uses): Likewise.
35484         (free_ipa_bb_info): Likewise.
35485         (analysis_dom_walker): New class.
35486         (ipa_analyze_node): Handle node-specific forbidden analysis,
35487         initialize and free func_body_info, use dominator walker.
35488         (ipcp_modif_dom_walker): New class.
35489         (ipcp_transform_function): Create and free func_body_info, use
35490         ipcp_modif_dom_walker, moved a lot of functionality there.
35492 2014-05-23  Marek Polacek  <polacek@redhat.com>
35493             Jakub Jelinek  <jakub@redhat.com>
35495         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
35496         * gcc.c (sanitize_spec_function): Likewise.
35497         * convert.c (convert_to_integer): Include "ubsan.h".  Add
35498         floating-point to integer instrumentation.
35499         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
35500         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
35501         SANITIZE_NONDEFAULT.
35502         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
35503         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
35504         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
35505         * ubsan.c: Include "realmpfr.h" and "dfp.h".
35506         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
35507         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
35508         float/double/long double.
35509         (ubsan_instrument_float_cast): New function.
35510         * ubsan.h (ubsan_instrument_float_cast): Declare.
35512 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
35514         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
35515         predicate.
35516         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
35517         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
35518         Adjust for tailcalling through registers.
35519         * config/aarch64/aarch64.h (enum reg_class): New caller save
35520         register class.
35521         (REG_CLASS_NAMES): Likewise.
35522         (REG_CLASS_CONTENTS): Likewise.
35523         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
35524         Allow tailcalling without decls.
35526 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
35528         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
35529         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
35531         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
35532         gsi, and variables v_* to v*.
35534 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
35536         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
35538 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
35540         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
35541         * omp-low.c: Update accordingly.
35543         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
35544         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
35545         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
35546         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
35547         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
35548         GF_OMP_TARGET_KIND_UPDATE.
35550         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
35551         Explicitly enumerate the expected region types.
35553 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35555         PR other/56955
35556         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
35557         documentation; the old documentation didn't clearly state the
35558         constraints on the contents of the pointed-to storage.
35560 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35562         Fix bootstrap error on ia64
35563         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
35564         Return default value.
35566 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35568         PR tree-optimization/54733
35569         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
35570         (CMPNOP): Define.
35571         (find_bswap_or_nop_load): New.
35572         (find_bswap_1): Renamed to ...
35573         (find_bswap_or_nop_1): This. Also add support for memory source.
35574         (find_bswap): Renamed to ...
35575         (find_bswap_or_nop): This. Also add support for memory source and
35576         detection of bitwise operations equivalent to load in target
35577         endianness.
35578         (execute_optimize_bswap): Likewise. Also move its leading comment back
35579         in place and split statement transformation into ...
35580         (bswap_replace): This.
35582 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
35584         PR rtl-optimization/61215
35585         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
35586         simplify_gen_subreg until final substitution.
35588 2014-05-23  Alan Modra  <amodra@gmail.com>
35590         PR target/61231
35591         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
35592         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
35593         Use "Y" constraint rather than "m".
35595 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
35597         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
35598         define.
35599         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
35600         New function declaration.
35601         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
35602         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
35603         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
35604         (aarch64_init_builtins) : Initialize builtins
35605         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
35606         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
35607         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
35608         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
35609         and __builtins_aarch64_set_fpsr.
35610         (aarch64_atomic_assign_expand_fenv): New function.
35611         * config/aarch64/aarch64.md (set_fpcr): New pattern.
35612         (get_fpcr) : Likewise.
35613         (set_fpsr) : Likewise.
35614         (get_fpsr) : Likewise.
35615         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
35616         and UNSPECV_SET_FPSR.
35617         * doc/extend.texi (AARCH64 Built-in Functions) : Document
35618         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
35619         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
35621 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
35623         PR rtl-optimization/60969
35624         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
35625         constraints.  Set up mem cost for NO_REGS case.
35627 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
35629         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
35631 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
35633         * config/darwin.c: Include "lto-section-names.h".
35634         (LTO_SEGMENT_NAME): Don't define.
35635         * config/i386/winnt.c: Include "lto-section-names.h".
35636         * lto-streamer.c: Include "lto-section-names.h".
35637         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
35638         * lto-wrapper.c: Include "lto-section-names.h".
35639         (LTO_SECTION_NAME_PREFIX): Don't define.
35640         * lto-section-names.h: New file.
35641         * cgraphunit.c: Include "lto-section-names.h".
35643 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
35645         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
35647 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
35649         PR target/61208
35650         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
35652 2014-05-22  Nick Clifton  <nickc@redhat.com>
35654         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
35656 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
35658         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
35659         -> (T)A transformation to integer types.
35661 2014-05-22  Teresa Johnson  <tejohnson@google.com>
35663         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
35664         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
35665         (gcov_rewrite): Use gcov_nonruntime_assert.
35666         (gcov_open): Ditto.
35667         (gcov_write_words): Ditto.
35668         (gcov_write_length): Ditto.
35669         (gcov_read_words): Use gcov_nonruntime_assert, and remove
35670         gcc_assert from IN_LIBGCOV code.
35671         (gcov_read_summary): Use gcov_error to flag profile corruption.
35672         (gcov_sync): Use gcov_nonruntime_assert.
35673         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
35674         (gcov_histo_index): Use gcov_nonruntime_assert.
35675         (static void gcov_histogram_merge): Ditto.
35676         (compute_working_sets): Ditto.
35677         * gcov-io.h (gcov_nonruntime_assert): Define.
35678         (gcov_error): Define for !IN_LIBGCOV
35680 2014-05-22  Richard Biener  <rguenther@suse.de>
35682         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
35683         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
35684         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
35685         and deallocation site.
35686         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35687         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
35688         passing through the incoming points-to set.
35689         (handle_lhs_call): Use flags argument instead of recomputing it.
35690         (find_func_aliases_for_call): Call handle_lhs_call with proper
35691         call return flags.
35693 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
35695         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
35696         all padding bits in REAL_VALUE_TYPE are cleared.
35698 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35700         Cleanup and improve multipass_dfa_lookahead_guard
35701         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
35702         (core2i7_first_cycle_multipass_begin,)
35703         (core2i7_first_cycle_multipass_issue,)
35704         (core2i7_first_cycle_multipass_backtrack): Update signature.
35705         * config/ia64/ia64.c
35706         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
35707         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
35708         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
35709         hook definition.
35710         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
35711         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
35712         values.
35713         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
35714         return values.
35715         * doc/tm.texi: Regenerate.
35716         * doc/tm.texi.in
35717         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
35718         * haifa-sched.c (ready_try): Make signed to allow negative values.
35719         (rebug_ready_list_1): Update.
35720         (choose_ready): Simplify.
35721         (sched_extend_ready_list): Update.
35723 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35725         Remove IA64 speculation tweaking flags
35726         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
35727         speculation tuning flags.
35728         (msched-prefer-non-data-spec-insns,)
35729         (msched-prefer-non-control-spec-insns): Obsolete options.
35730         * haifa-sched.c (choose_ready): Remove handling of
35731         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
35732         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
35733         and PREFER_NON_DATA_SPEC.
35734         * sel-sched.c (process_spec_exprs): Remove handling of
35735         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
35737 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35739         Improve scheduling debug output
35740         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
35741         (advance_one_cycle): Update.
35742         (schedule_insn, queue_to_ready): Add debug printouts.
35743         (debug_ready_list_1): New static function.
35744         (debug_ready_list): Update.
35745         (max_issue): Add debug printouts.
35746         (dump_insn_stream): New static function.
35747         (schedule_block): Use it.  Also better indent printouts.
35749 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35751         Fix sched_insn debug counter
35752         * haifa-sched.c (schedule_insn): Update.
35753         (struct haifa_saved_data): Add nonscheduled_insns_begin.
35754         (save_backtrack_point, restore_backtrack_point): Update.
35755         (first_nonscheduled_insn): New static function.
35756         (queue_to_ready, choose_ready): Use it.
35757         (schedule_block): Init nonscheduled_insns_begin.
35758         (sched_emit_insn): Update.
35761 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
35763         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
35764         to GENERAL_REGS.
35765         (aarch64_secondary_reload) : LikeWise.
35766         (aarch64_class_max_nregs) : Remove CORE_REGS.
35767         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
35768         (REG_CLASS_NAMES) : Likewise.
35769         (REG_CLASS_CONTENTS) : LikeWise.
35770         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
35772 2014-05-21  Guozhi Wei  <carrot@google.com>
35774         PR target/61202
35775         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
35776         constraint.
35777         (vqdmulhq_n_s16): Likewise.
35779 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
35781         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
35783 2014-05-21  Marek Polacek  <polacek@redhat.com>
35785         PR sanitizer/61272
35786         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
35788 2014-05-21  Martin Jambor  <mjambor@suse.cz>
35790         * doc/invoke.texi (Optimize Options): Document parameters
35791         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
35792         ipa-cp-array-index-hint-bonus.
35794 2014-05-21  Mark Wielaard  <mjw@redhat.com>
35796         PR debug/16063
35797         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
35798         version >= 3 or not strict DWARF.
35799         * langhooks.h (struct lang_hooks_for_types): Add
35800         enum_underlying_base_type.
35801         * langhooks.c (lhd_enum_underlying_base_type): New function.
35802         * gcc/langhooks.h (struct lang_hooks_for_types): Add
35803         enum_underlying_base_type.
35804         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
35805         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
35806         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
35808 2014-05-21  Richard Biener  <rguenther@suse.de>
35810         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
35812 2014-05-21  John Marino  <gnugcc@marino.st>
35814         * config.gcc (*-*-dragonfly*): New target.
35815         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
35816         * configure: Regenerate.
35817         * config/dragonfly-stdint.h: New.
35818         * config/dragonfly.h: New.
35819         * config/dragonfly.opt: New.
35820         * config/i386/dragonfly.h: New.
35821         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
35823 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35825         * tree.def (VOID_CST): New.
35826         * tree-core.h (TI_VOID): New.
35827         * tree.h (void_node): New.
35828         * tree.c (tree_node_structure_for_code, tree_code_size)
35829         (iterative_hash_expr): Handle VOID_CST.
35830         (build_common_tree_nodes): Initialize void_node.
35832 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
35834         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
35835         functions.
35836         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
35838         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
35839         more places.
35841         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
35842         flag_reorder_blocks_and_partition.
35843         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
35845 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
35847         PR target/54236
35848         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
35849         constraints.
35850         (*addc_r_t): Add new insn_and_split.
35852 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
35854         PR middle-end/61252
35855         * omp-low.c (handle_simd_reference): New function.
35856         (lower_rec_input_clauses): Use it.  Defer adding reference
35857         initialization even for reduction without placeholder if in simd,
35858         handle it properly later on.
35860 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
35862         PR tree-optimization/60899
35863         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
35864         assume all static symbols will have definition wile parsing and
35865         check the do have definition later in compilation; check that
35866         variable referring symbol will be output before concluding that
35867         reference is safe; be conservative for referring local statics;
35868         be more precise about when comdat is output in other partition.
35870 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
35872         PR bootstrap/60984
35873         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
35874         parameter.
35875         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
35876         (ipa_inline): Loop inline_to_all_callers until no more aliases
35877         are removed.
35879 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
35881         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
35882         set writeonly flag only for vars actually written to.
35884 2014-05-20  Dehao Chen  <dehao@google.com>
35886         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
35887         and callee count to get clone count.
35888         * tree-inline.c (expand_call_inline): Use callee count instead of bb
35889         count in copy_body.
35891 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
35893         PR rtl-optimization/61243
35894         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
35896 2014-05-20  Xinliang David Li  <davidxl@google.com>
35898         * cgraphunit.c (walk_polymorphic_call_targets): Add
35899         dbgcnt and fopt-info support.
35900         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
35901         * ipa-devirt.c (ipa_devirt): Ditto.
35902         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
35903         * ipa.c (walk_polymorphic_call_targets): Ditto.
35904         * gimple-fold.c (fold_gimple_assign): Ditto.
35905         (gimple_fold_call): Ditto.
35906         * dbgcnt.def: New counter.
35908 2014-05-20  DJ Delorie  <dj@redhat.com>
35910         * config/msp430/msp430.md (split): Don't allow subregs when
35911         splitting SImode adds.
35912         (andneghi): Fix subtraction logic.
35913         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
35915 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
35917         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
35918         symbols.
35919         * except.c (switch_to_exception_section, resolve_unique_section,
35920         get_named_text_section, default_function_rodata_section,
35921         align_variable, get_block_for_decl, default_section_type_flags):
35922         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
35923         * symtab.c (symtab_add_to_same_comdat_group,
35924         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
35925         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
35926         Likewise.
35927         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
35928         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
35929         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
35930         (c6x_function_in_section_p): Likewise.
35931         * config/darwin.c (machopic_select_section): Likewise.
35932         * config/arm/arm.c (arm_function_in_section_p): Likewise.
35933         * config/mips/mips.c (mips_function_rodata_section): Likewise.
35934         * config/mep/mep.c (mep_select_section): LIkewise.
35935         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
35937 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
35939         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
35940         EH region of calls to pure functions that can throw an exception.
35941         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
35942         (copy_reference_ops_from_call): Also copy the EH region of the call if
35943         it can throw an exception.
35945 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35947         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
35948         nested VEC_SELECTs that are inverses of each other.
35950 2014-05-20  Richard Biener  <rguenther@suse.de>
35952         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
35953         (extract_and_process_scc_for_name): not here.
35954         (cond_dom_walker::before_dom_children): Only process
35955         stmts that end the BB in interesting ways.
35956         (run_scc_vn): Mark param uses as visited.
35958 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35960         * config/arm/arm.md (arith_shiftsi): Do not predicate for
35961         arm_restrict_it.
35963 2014-05-20  Nick Clifton  <nickc@redhat.com>
35965         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
35966         (msp430_gimplify_va_arg_expr): New function.
35967         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
35969         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
35970         operand 0 in order to prevent confusion about the number of
35971         registers involved.
35973 2014-05-20  Richard Biener  <rguenther@suse.de>
35975         PR tree-optimization/61221
35976         * tree-ssa-pre.c (el_to_update): Remove.
35977         (eliminate_dom_walker::before_dom_children): Handle released
35978         VDEFs by value-numbering them to the associated VUSE.  Update
35979         stmt immediately for substituted call address.
35980         (eliminate): Remove delayed stmt updating code.
35981         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
35982         possibly late re-numbered vuses.
35983         (vn_reference_lookup_2): Adjust.
35984         (vn_reference_lookup_pieces): Likewise.
35985         (vn_reference_lookup): Likewise.
35987 2014-05-20  Richard Biener  <rguenther@suse.de>
35989         * config.gcc: Remove need_64bit_hwint.
35990         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
35991         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
35992         it to be true.
35993         * config.in: Regenerate.
35994         * configure: Likewise.
35996 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
35998         * doc/extend.texi: Create Label Attributes section,
35999         move all label attributes into it and reference it.
36001 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
36003         * arm.c (thumb1_reorg): When scanning backwards skip anything
36004         that's not a proper insn.
36006 2014-05-19  Richard Biener  <rguenther@suse.de>
36008         PR tree-optimization/61221
36009         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
36010         Do nothing for unreachable blocks.
36011         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
36012         Improve unreachability detection.
36014 2014-05-19  Richard Biener  <rguenther@suse.de>
36016         PR tree-optimization/61209
36017         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
36019 2014-05-19  Nick Clifton  <nickc@redhat.com>
36021         * except.c (init_eh): Fix computation of builtin setjmp buffer
36022         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
36024 2014-05-19  Richard Biener  <rguenther@suse.de>
36026         PR tree-optimization/61184
36027         * tree-vrp.c (is_negative_overflow_infinity): Use
36028         TREE_OVERFLOW_P and do that check first.
36029         (is_positive_overflow_infinity): Likewise.
36030         (is_overflow_infinity): Likewise.
36031         (vrp_operand_equal_p): Properly treat operands with
36032         differing overflow as not equal.
36034 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
36036         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
36037         shift simplification where it was intended.
36039 2014-05-19  Christian Bruel  <christian.bruel@st.com>
36041         PR target/61195
36042         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
36044 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
36046         PR target/61084
36047         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
36048         than wide_int.
36050 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
36052         * reg-notes.def (CROSSING_JUMP): Likewise.
36053         * rtl.h (rtx_def): Update comment for jump flag.
36054         (CROSSING_JUMP_P): Define.
36055         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
36056         of a REG_CROSSING_JUMP note.
36057         * cfghooks.c (tidy_fallthru_edges): Likewise.
36058         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
36059         * emit-rtl.c (try_split): Likewise.
36060         * haifa-sched.c (sched_create_recovery_edges): Likewise.
36061         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
36062         * jump.c (redirect_jump_2): Likewise.
36063         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
36064         (relax_delay_slots): Likewise.
36065         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
36066         (bbit_di): Likewise.
36067         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
36068         * config/sh/sh.md (jump_compact): Likewise.
36069         * bb-reorder.c (rotate_loop): Likewise.
36070         (pass_duplicate_computed_gotos::execute): Likewise.
36071         (add_reg_crossing_jump_notes): Rename to...
36072         (update_crossing_jump_flags): ...this.
36073         (pass_partition_blocks::execute): Update accordingly.
36075 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
36077         * tree.h: Remove extraneous template <>.
36079 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
36081         * ipa.c (symtab_remove_unreachable_nodes): Remove
36082         symbol from comdat group if its body was eliminated.
36083         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
36084         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
36085         (symtab_unregister_node): ... this one.
36086         (verify_symtab_base): More strict checking of comdats.
36087         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
36089 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
36091         * tree-pass.h (make_pass_ipa_comdats): New pass.
36092         * timevar.def (TV_IPA_COMDATS): New timevar.
36093         * passes.def (pass_ipa_comdats): Add.
36094         * Makefile.in (OBJS): Add ipa-comdats.o
36095         * ipa-comdats.c: New file.
36097 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
36099         * ipa.c (update_visibility_by_resolution_info): New function.
36100         (function_and_variable_visibility): Use it.
36102 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
36104         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
36105         New functions.
36106         (FOR_EACH_DEFINED_SYMBOL): New macro.
36107         (varpool_first_static_initializer, varpool_next_static_initializer,
36108         varpool_first_defined_variable, varpool_next_defined_variable):
36109         Fix comments.
36110         (symtab_in_same_comdat_p): Correctly deal with inline functions.
36112 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
36114         * ggc-page.c (ggc_handle_finalizers): Add comment.
36116 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
36118         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
36119         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
36120         (ggc_internal_cleared_alloc): Likewise.
36121         * ggc-page.c (finalizer): New class.
36122         (vec_finalizer): Likewise.
36123         (globals::finalizers): New member.
36124         (globals::vec_finalizers): Likewise.
36125         (ggc_internal_alloc): Record the finalizer if any for the block being
36126         allocated.
36127         (ggc_handle_finalizers): New function.
36128         (ggc_collect): Call ggc_handle_finalizers.
36129         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
36130         finalizer.
36131         (ggc_internal_cleared_alloc): Likewise.
36132         (finalize): New function.
36133         (need_finalization_p): Likewise.
36134         (ggc_alloc): Install the type's destructor as the finalizer if it
36135         might do something.
36136         (ggc_cleared_alloc): Likewise.
36137         (ggc_vec_alloc): Likewise.
36138         (ggc_cleared_vec_alloc): Likewise.
36140 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
36142         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
36144 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
36146         * alias.c (record_alias_subset): Adjust.
36147         * bitmap.c (bitmap_element_allocate): Likewise.
36148         (bitmap_gc_alloc_stat): Likewise.
36149         * cfg.c (init_flow): Likewise.
36150         (alloc_block): Likewise.
36151         (unchecked_make_edge): Likewise.
36152         * cfgloop.c (alloc_loop): Likewise.
36153         (flow_loops_find): Likewise.
36154         (rescan_loop_exit): Likewise.
36155         * cfgrtl.c (init_rtl_bb_info): Likewise.
36156         * cgraph.c (insert_new_cgraph_node_version): Likewise.
36157         (cgraph_allocate_node): Likewise.
36158         (cgraph_create_edge_1): Likewise.
36159         (cgraph_allocate_init_indirect_info): Likewise.
36160         * cgraphclones.c (cgraph_clone_edge): Likewise.
36161         * cgraphunit.c (add_asm_node): Likewise.
36162         (init_lowered_empty_function): Likewise.
36163         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
36164         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
36165         (alpha_use_linkage): Likewise.
36166         * config/arc/arc.c (arc_init_machine_status): Likewise.
36167         * config/arm/arm.c (arm_init_machine_status): Likewise.
36168         * config/avr/avr.c (avr_init_machine_status): Likewise.
36169         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
36170         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
36171         * config/cris/cris.c (cris_init_machine_status): Likewise.
36172         * config/darwin.c (machopic_indirection_name): Likewise.
36173         (darwin_build_constant_cfstring): Likewise.
36174         (darwin_enter_string_into_cfstring_table): Likewise.
36175         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
36176         * config/frv/frv.c (frv_init_machine_status): Likewise.
36177         * config/i386/i386.c (get_dllimport_decl): Likewise.
36178         (ix86_init_machine_status): Likewise.
36179         (assign_386_stack_local): Likewise.
36180         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
36181         (i386_pe_maybe_record_exported_symbol): Likewise.
36182         (i386_pe_record_stub): Likewise.
36183         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
36184         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
36185         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
36186         (m32c_note_pragma_address): Likewise.
36187         * config/mep/mep.c (mep_init_machine_status): Likewise.
36188         (mep_note_pragma_flag): Likewise.
36189         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
36190         (mips16_local_alias): Likewise.
36191         (mips_init_machine_status): Likewise.
36192         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
36193         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
36194         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
36195         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
36196         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
36197         * config/pa/pa.c (pa_init_machine_status): Likewise.
36198         (pa_get_deferred_plabel): Likewise.
36199         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
36200         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
36201         (rs6000_init_machine_status): Likewise.
36202         (output_toc): Likewise.
36203         * config/s390/s390.c (s390_init_machine_status): Likewise.
36204         * config/score/score.c (score_output_external): Likewise.
36205         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
36206         * config/spu/spu.c (spu_init_machine_status): Likewise.
36207         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
36208         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
36209         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
36210         * coverage.c (coverage_end_function): Likewise.
36211         * dbxout.c (dbxout_init): Likewise.
36212         * doc/gty.texi: Don't mention variable_size attribute.
36213         * dwarf2cfi.c (new_cfi): Adjust.
36214         (new_cfi_row): Likewise.
36215         (copy_cfi_row): Likewise.
36216         (create_cie_data): Likewise.
36217         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
36218         (new_loc_descr): Likewise.
36219         (find_AT_string_in_table): Likewise.
36220         (add_addr_table_entry): Likewise.
36221         (new_die): Likewise.
36222         (add_var_loc_to_decl): Likewise.
36223         (clone_die): Likewise.
36224         (clone_as_declaration): Likewise.
36225         (break_out_comdat_types): Likewise.
36226         (new_loc_list): Likewise.
36227         (add_loc_descr_to_each): Likewise.
36228         (add_location_or_const_value_attribute): Likewise.
36229         (add_linkage_name): Likewise.
36230         (lookup_filename): Likewise.
36231         (dwarf2out_var_location): Likewise.
36232         (new_line_info_table): Likewise.
36233         (dwarf2out_init): Likewise.
36234         (mem_loc_descriptor): Likewise.
36235         (loc_descriptor): Likewise.
36236         (add_const_value_attribute): Likewise.
36237         (tree_add_const_value_attribute): Likewise.
36238         (comp_dir_string): Likewise.
36239         (dwarf2out_vms_debug_main_pointer): Likewise.
36240         (string_cst_pool_decl): Likewise.
36241         * emit-rtl.c (set_mem_attrs): Likewise.
36242         (get_reg_attrs): Likewise.
36243         (start_sequence): Likewise.
36244         (init_emit): Likewise.
36245         (init_emit_regs): Likewise.
36246         * except.c (init_eh_for_function): Likewise.
36247         (gen_eh_region): Likewise.
36248         (gen_eh_region_catch): Likewise.
36249         (gen_eh_landing_pad): Likewise.
36250         (add_call_site): Likewise.
36251         * function.c (add_frame_space): Likewise.
36252         (insert_temp_slot_address): Likewise.
36253         (assign_stack_temp_for_type): Likewise.
36254         (get_hard_reg_initial_val): Likewise.
36255         (allocate_struct_function): Likewise.
36256         (prepare_function_start): Likewise.
36257         (types_used_by_var_decl_insert): Likewise.
36258         * gengtype.c (variable_size_p): Remove function.
36259         (enum alloc_quantity): Remove enum.
36260         (write_typed_alloc_def): Remove function.
36261         (write_typed_struct_alloc_def): Likewise.
36262         (write_typed_typedef_alloc_def): Likewise.
36263         (write_typed_alloc_defns): Likewise.
36264         (main): Adjust.
36265         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
36266         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
36267         * ggc.h (ggc_alloc): new function.
36268         (ggc_cleared_alloc): Likewise.
36269         (ggc_vec_alloc): Template on type of vector element, and remove
36270         element size argument.
36271         (ggc_cleared_vec_alloc): Likewise.
36272         * gimple.c (gimple_build_omp_for): Adjust.
36273         (gimple_copy): Likewise.
36274         * ipa-cp.c (get_replacement_map): Likewise.
36275         (find_aggregate_values_for_callers_subset): Likewise.
36276         (known_aggs_to_agg_replacement_list): Likewise.
36277         * ipa-devirt.c (get_odr_type): Likewise.
36278         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
36279         (read_agg_replacement_chain): Likewise.
36280         * loop-iv.c (get_simple_loop_desc): Likewise.
36281         * lto-cgraph.c (input_node_opt_summary): Likewise.
36282         * lto-section-in.c (lto_new_in_decl_state): Likewise.
36283         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
36284         (input_eh_region): Likewise.
36285         (input_eh_lp): Likewise.
36286         (input_cfg): Likewise.
36287         * optabs.c (set_optab_libfunc): Likewise.
36288         (init_tree_optimization_optabs): Likewise.
36289         (set_conv_libfunc): Likewise.
36290         * passes.c (do_per_function_toporder): Likewise.
36291         * rtl.h: Don't use variable_size gty attribute.
36292         * sese.c (if_region_set_false_region): Adjust.
36293         * stringpool.c (gt_pch_save_stringpool): Likewise.
36294         * target-globals.c (save_target_globals): Likewise.
36295         * toplev.c (general_init): Likewise.
36296         * trans-mem.c (record_tm_replacement): Likewise.
36297         (split_bb_make_tm_edge): Likewise.
36298         * tree-cfg.c (move_sese_region_to_fn): Likewise.
36299         * tree-data-ref.h (lambda_vector_new): Likewise.
36300         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
36301         * tree-iterator.c (tsi_link_before): Likewise.
36302         (tsi_link_after): Likewise.
36303         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
36304         * tree-ssa-loop-niter.c (record_estimate): Likewise.
36305         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
36306         * tree-ssa-operands.h: Don't use variable_size gty attribute.
36307         * tree-ssa.c (init_tree_ssa): Adjust.
36308         * tree-ssanames.c (set_range_info): Likewise.
36309         (get_ptr_info): Likewise.
36310         (duplicate_ssa_name_ptr_info): Likewise.
36311         (duplicate_ssa_name_range_info): Likewise.
36312         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
36313         (unpack_ts_fixed_cst_value_fields): Likewise.
36314         * tree.c (build_fixed): Likewise.
36315         (build_real): Likewise.
36316         (build_string): Likewise.
36317         (decl_priority_info): Likewise.
36318         (decl_debug_expr_insert): Likewise.
36319         (decl_value_expr_insert): Likewise.
36320         (decl_debug_args_insert): Likewise.
36321         (type_hash_add): Likewise.
36322         (build_omp_clause): Likewise.
36323         * ubsan.c (decl_for_type_insert): Likewise.
36324         * varasm.c (get_unnamed_section): Likewise.
36325         (get_noswitch_section): Likewise.
36326         (get_section): Likewise.
36327         (get_block_for_section): Likewise.
36328         (create_block_symbol): Likewise.
36329         (build_constant_desc): Likewise.
36330         (create_constant_pool): Likewise.
36331         (force_const_mem): Likewise.
36332         (record_tm_clone_pair): Likewise.
36333         * varpool.c (varpool_create_empty_node): Likewise.
36335 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
36337         * dwarf2out.c (tree_add_const_value_attribute): Call
36338         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
36339         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
36340         instead of ggc_internal_<x>alloc_stat.
36341         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
36342         (ggc_realloc): Likewise.
36343         * ggc-none.c (ggc_internal_alloc): Likewise.
36344         (ggc_internal_cleared_alloc): Likewise.
36345         * ggc-page.c: Likewise.
36346         * ggc.h (ggc_internal_alloc_stat): Likewise.
36347         (ggc_internal_alloc): Remove macro.
36348         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
36349         (ggc_internal_cleared_alloc): Remove macro.
36350         (GGC_RESIZEVEC): Adjust.
36351         (ggc_resizevar): Remove macro.
36352         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
36353         (ggc_internal_cleared_vec_alloc_stat): Likewise.
36354         (ggc_internal_vec_cleared_alloc): Remove macro.
36355         (ggc_alloc_atomic_stat): Drop _stat suffix.
36356         (ggc_alloc_atomic): Remove macro.
36357         (ggc_alloc_cleared_atomic): Remove macro.
36358         (ggc_alloc_string_stat): Drop _stat suffix.
36359         (ggc_alloc_string): Remove macro.
36360         (ggc_alloc_rtx_def_stat): Adjust.
36361         (ggc_alloc_tree_node_stat): Likewise.
36362         (ggc_alloc_cleared_tree_node_stat): Likewise.
36363         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
36364         (ggc_alloc_cleared_simd_clone_stat): Likewise.
36365         * gimple.c (gimple_build_omp_for): Likewise.
36366         (gimple_copy): Likewise.
36367         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
36368         * toplev.c (realloc_for_line_map): Adjust.
36369         * tree-data-ref.h (lambda_vector_new): Likewise.
36370         * tree-phinodes.c (allocate_phi_node): Likewise.
36371         * tree.c (grow_tree_vec_stat): Likewise.
36372         * vec.h (va_gc::reserve): Adjust.
36374 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
36376         * config/microblaze/microblaze.c (break_handler): New Declaration.
36377         (microblaze_break_function_p,microblaze_is_break_handler): New.
36378         (compute_frame_size): Use microblaze_break_function_p.
36379         Add the test of break_handler.
36380         (microblaze_function_prologue) : Add the test of variable
36381         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
36382         (microblaze_function_epilogue) : Add the test of break_handler.
36383         (microblaze_globalize_label) : Add the test of break_handler.
36384         Check the name by BREAK_HANDLER_NAME.
36386         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
36388         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
36389         microblaze_is_break_handler test.
36390         (call_internal1,call_value_intern): Use microblaze_break_function_p.
36391         Use SYMBOL_REF_DECL.
36393         * config/microblaze/microblaze-protos.h
36394         (microblaze_break_function_p,microblaze_is_break_handler):
36395         New Declaration.
36397         * doc/extend.texi (MicroBlaze break_handler Functions): Document
36398         new MicroBlaze break_handler functions.
36400 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
36402         * doc/extend.texi (Size of an asm): Move node text according
36403         to its @menu entry position.
36405 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
36407         PR tree-optimization/61140
36408         PR tree-optimization/61150
36409         PR tree-optimization/61197
36410         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
36412 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
36414         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
36416 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
36418         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
36419         __SIZEOF_INT128__ is defined.
36421 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
36423         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
36424         (rs6000_delegitimize_address): Use it.
36426 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
36428         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
36429         inplace argument.  Store the new address in the original MEM when true.
36430         * emit-rtl.c (change_address_1): Likewise.
36431         (adjust_address_1, adjust_automodify_address_1, offset_address):
36432         Update accordingly.
36433         * rtl.h (plus_constant): Add an inplace argument.
36434         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
36435         when true.  Avoid generating (plus X (const_int 0)).
36436         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
36437         in-place.  Pass true to plus_constant.
36438         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
36440 2014-05-16  Dehao Chen  <dehao@google.com>
36442         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
36444 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
36446         PR target/54089
36447         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
36448         patterns.
36449         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
36451 2014-05-16  Dehao Chen  <dehao@google.com>
36453         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
36454         optimize_function_for_size_p.
36455         * regs.h (REG_FREQ_FROM_BB): Likewise.
36457 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
36459         PR target/51244
36460         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
36461         negt_reg_operand cases.
36462         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
36463         predicate.
36464         * config/sh/predicates.md (cbranch_treg_value): Simplify.
36466 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
36468         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
36469         target variants.
36471 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
36473         Revert:
36474         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
36476         * tree-cfg.c (dump_function_to_file): Dump the return type of
36477         functions, in a line to itself before the function body, mimicking
36478         the layout of a C function.
36480 2014-05-16  Dehao Chen  <dehao@google.com>
36482         * cfghooks.c (make_forwarder_block): Use direct computation to
36483         get fall-through edge's count and frequency.
36485 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
36487         * config/arc/arc.c (arc_init): Fix typo in error message.
36488         * config/i386/i386.c (ix86_expand_builtin): Likewise.
36489         (split_stack_prologue_scratch_regno): Likewise.
36490         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
36491         word from error message.
36493 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36495         * ira-costs.c: Fix typo in comment.
36497 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
36499         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
36501 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
36503         * varpool.c (dump_varpool_node): Dump write-only flag.
36504         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
36505         write-only flag.
36506         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
36507         write-only variables.
36508         * ipa.c (process_references): New function.
36509         (set_readonly_bit): New function.
36510         (set_writeonly_bit): New function.
36511         (clear_addressable_bit): New function.
36512         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
36513         fix handling of aliases.
36514         * cgraph.h (struct varpool_node): Add writeonly flag.
36516 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
36518         PR rtl-optimization/60969
36519         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
36520         Calculate costs for this case.
36522 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
36524         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
36525         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
36527 2014-05-16  Richard Biener  <rguenther@suse.de>
36529         PR tree-optimization/61194
36530         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
36531         bool patterns ending in a COND_EXPR.
36533 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36535         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
36537 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36539         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
36540         where we were unable to cost an RTX.
36542 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36544         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
36545         HIGH, LO_SUM.
36547 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36548             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36550         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
36552 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36553             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36555         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
36556         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
36558 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36559             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36561         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
36562         operators.
36564 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36565             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36567         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
36568         DIV/MOD.
36570 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36571             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36573         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
36574         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
36576 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36577             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36579         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
36580         rotates and shifts.
36582 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36583             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36585         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
36586         ZERO_EXTEND and SIGN_EXTEND better.
36588 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36589             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36591         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
36592         logical operations.
36594 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36595             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36597         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
36598         costs when costing loads and stores to memory.
36600 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36601             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
36603         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
36604         for SET RTX.
36606 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36608         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
36610 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36611             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36613         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
36614         to...
36615         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
36616         well formed.
36617         (aarch64_rtx_mult_cost): New.
36618         (aarch64_rtx_costs): Use it, refactor as appropriate.
36620 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36621             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36623         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
36624         emit instructions, return number of instructions which would
36625         be emitted.
36626         (aarch64_add_constant): Update call to aarch64_build_constant.
36627         (aarch64_output_mi_thunk): Likewise.
36628         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
36629         a CONST_DOUBLE.
36631 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36633         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
36634         (TARGET_RTX_COSTS): Call it.
36636 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36638         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
36639         (cortexa57_vector_cost): Likewise.
36640         (cortexa57_tunings): Use them.
36642 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
36644         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
36645         (cpu_addrcost_table): Use it.
36646         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
36647         (aarch64_address_cost): Rewrite using aarch64_classify_address,
36648         move it.
36650 2014-05-16  Richard Biener  <rguenther@suse.de>
36652         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
36653         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
36654         (visit_phi): Ignore edges marked as not executable.
36655         (class cond_dom_walker): New.
36656         (cond_dom_walker::before_dom_children): Value-number
36657         control statements and mark successor edges as not
36658         executable if possible.
36659         (run_scc_vn): First walk all control statements in
36660         dominator order, marking edges as not executable.
36661         * tree-inline.c (copy_edges_for_bb): Be not confused
36662         about random edge flags.
36664 2014-05-16  Richard Biener  <rguenther@suse.de>
36666         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
36668 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
36670         PR target/61193
36671         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
36672         (__TM_simple_begin): Use it.
36673         (__TM_begin): Likewise.
36675 2014-05-15  Martin Jambor  <mjambor@suse.cz>
36677         PR ipa/61085
36678         * ipa-prop.c (update_indirect_edges_after_inlining): Check
36679         type_preserved flag when the indirect edge is polymorphic.
36681 2014-05-15  Martin Jambor  <mjambor@suse.cz>
36683         PR tree-optimization/61090
36684         * tree-sra.c (sra_modify_expr): Pass the current gsi to
36685         build_ref_for_model.
36687 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36689         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
36690         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
36692 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
36694         PR tree-optimization/61158
36695         * fold-const.c (fold_binary_loc): If X is zero-extended and
36696         shiftc >= prec, make sure zerobits is all ones instead of
36697         invoking undefined behavior.
36699 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
36701         * regcprop.h: New file.
36702         * regcprop.c (skip_debug_insn_p): New decl.
36703         (replace_oldest_value_reg): Check skip_debug_insn_p.
36704         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
36705         * shrink-wrap.c: Include regcprop.h.
36706         (prepare_shrink_wrap): Call
36707         copyprop_hardreg_forward_bb_without_debug_insn.
36709 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
36711         * shrink-wrap.h: Update comment.
36712         * shrink-wrap.c: Update comment.
36713         (next_block_for_reg): Rename to live_edge_for_reg.
36714         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
36715         (move_insn_for_shrink_wrap): Split live_edge.
36716         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
36718 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
36720         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
36721         Delete.
36722         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
36723         * config/sparc/sparc.md (fptype_ut699): New attribute.
36724         (in_branch_delay): Return false if -mfix-ut699 is specified and
36725         fptype_ut699 is set to single.
36726         (truncdfsf2): Add fptype_ut699 attribute.
36727         (fix_truncdfsi2): Likewise.
36728         (floatsisf2): Change fptype attribute.
36729         (fix_truncsfsi2): Likewise.
36730         (negtf2_notv9): Delete.
36731         (negtf2_v9): Likewise.
36732         (negtf2_hq): New instruction.
36733         (negtf2): New instruction and splitter.
36734         (negdf2_notv9): Rewrite.
36735         (abstf2_notv9): Delete.
36736         (abstf2_hq_v9): Likewise.
36737         (abstf2_v9): Likewise.
36738         (abstf2_hq): New instruction.
36739         (abstf2): New instruction and splitter.
36740         (absdf2_notv9): Rewrite.
36742 2014-05-14  Cary Coutant  <ccoutant@google.com>
36744         PR debug/61013
36745         * opts.c (common_handle_option): Don't special-case "-g".
36746         (set_debug_level): Default to at least level 2 with "-g".
36748 2014-05-14  DJ Delorie  <dj@redhat.com>
36750         * config/msp430/msp430.c (msp430_builtin): Add
36751         MSP430_BUILTIN_DELAY_CYCLES.
36752         (msp430_init_builtins): Register void __delay_cycles(long long).
36753         (msp430_builtin_decl): Add it.
36754         (cg_magic_constant): New.
36755         (msp430_expand_delay_cycles): New.
36756         (msp430_expand_builtin): Call it.
36757         (msp430_print_operand_raw): Change integer printing from "int" to
36758         HOST_WIDE_INT.
36759         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
36760         (delay_cycles_start): New.
36761         (delay_cycles_end): New.
36762         (delay_cycles_32): New.
36763         (delay_cycles_32x): New.
36764         (delay_cycles_16): New.
36765         (delay_cycles_16x): New.
36766         (delay_cycles_2): New.
36767         (delay_cycles_1): New.
36768         * doc/extend.texi: Document __delay_cycles().
36770 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
36772         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
36773         length attribute computation.
36775 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
36777         PR debug/61188
36778         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
36780 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
36782         PR target/61084
36783         * config/sparc/sparc.md: Fix types of low and high in DI constant
36784         splitter.  Use gen_int_mode in some other splitters.
36786 2014-05-14  Martin Jambor  <mjambor@suse.cz>
36788         PR ipa/60897
36789         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
36791 2014-05-14  James Norris  <jnorris@codesourcery.com>
36793         * omp-low.c (expand_parallel_call): Remove shadow variable.
36794         (expand_omp_taskreg): Likewise.
36796 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
36798         * common/config/i386/i386-common.c
36799         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
36800         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
36801         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
36802         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
36803         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
36804         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
36805         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
36806         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
36807         xsavecintrin.h, xsavesintrin.h.
36808         (x86_64-*-*): Ditto.
36809         * config/i386/clflushoptintrin.h: New.
36810         * config/i386/xsavecintrin.h: Ditto.
36811         * config/i386/xsavesintrin.h: Ditto.
36812         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
36813         (bit_XSAVES): Ditto.
36814         (bit_XSAVES): Ditto.
36815         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
36816         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
36817         -mno-clflushopt.
36818         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
36819         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
36820         OPTION_MASK_ISA_XSAVES.
36821         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
36822         -mxsavec, -mxsaves.
36823         (PTA_CLFLUSHOPT) Define.
36824         (PTA_XSAVEC): Ditto.
36825         (PTA_XSAVES): Ditto.
36826         (ix86_option_override_internal): Handle new options.
36827         (ix86_valid_target_attribute_inner_p): Ditto.
36828         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
36829         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
36830         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
36831         (bdesc_special_args): Add __builtin_ia32_xsaves,
36832         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
36833         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
36834         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
36835         (ix86_expand_builtin): Handle new builtins.
36836         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
36837         (TARGET_CLFLUSHOPT_P): Ditto.
36838         (TARGET_XSAVEC): Ditto.
36839         (TARGET_XSAVEC_P): Ditto.
36840         (TARGET_XSAVES): Ditto.
36841         (TARGET_XSAVES_P): Ditto.
36842         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
36843         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
36844         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
36845         (ANY_XRSTOR): New.
36846         (ANY_XRSTOR64): Ditto.
36847         (xrstor): Ditto.
36848         (xrstor): Change into <xrstor>.
36849         (xrstor_rex64): Change into <xrstor>_rex64.
36850         (xrstor64): Change into <xrstor>64
36851         (clflushopt): New.
36852         * config/i386/i386.opt (mclflushopt): New.
36853         (mxsavec): Ditto.
36854         (mxsaves): Ditto.
36855         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
36856         xsavecintrin.h.
36857         * doc/invoke.texi: Document new options.
36859 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
36861         PR rtl-optimization/60866
36862         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
36863         Default it to -1.  Pass it down to init_simplejump_data.
36864         (init_simplejump_data): New parameter old_seqno.  Pass it down
36865         to get_seqno_for_a_jump.
36866         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
36867         initializing new jump seqno as a last resort.  Add comment.
36868         (sel_redirect_edge_and_branch): Save old seqno of the conditional
36869         jump and pass it down to sel_init_new_insn.
36870         (sel_redirect_edge_and_branch_force): Likewise.
36872 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
36874         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
36875         shifted values to avoid build warning.
36877 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
36879         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
36880         * cfgrtl.c (rtl_merge_blocks): Fix comment.
36881         (cfg_layout_merge_blocks): Likewise.
36882         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
36884 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
36886         PR rtl-optimization/60901
36887         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
36888         bb predecessor belongs to the same scheduling region.  Adjust comment.
36890 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
36892         * doc/sourcebuild.texi: (dfp_hw): Document.
36893         (p8vector_hw): Likewise.
36894         (powerpc_eabi_ok): Likewise.
36895         (powerpc_elfv2): Likewise.
36896         (powerpc_htm_ok): Likewise.
36897         (ppc_recip_hw): Likewise.
36898         (vsx_hw): Likewise.
36900 2014-05-13  Cary Coutant  <ccoutant@google.com>
36902         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
36904 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
36906         * gengtype-parse.c (require3): Eliminate in favor of...
36907         (require4): New.
36908         (require_template_declaration): Update to support optional single *
36909         on a type.
36911         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
36912         (create_user_defined_type): Handle a single level of explicit
36913         pointerness within template arguments.
36914         (struct write_types_data): Add field "kind".
36915         (filter_type_name): Handle "*" character.
36916         (write_user_func_for_structure_ptr): Require a write_types_data
36917         rather than just a prefix string, so that we can look up the kind
36918         of the wtd and use it as an index into wrote_user_func_for_ptr,
36919         ensuring that such functions are written at most once.  Support
36920         subclasses by invoking the marking function of the ultimate base class.
36921         (write_user_func_for_structure_body): Require a write_types_data
36922         rather than just a prefix string, so that we can pass this to
36923         write_user_func_for_structure_ptr.
36924         (write_func_for_structure): Likewise.
36925         (ggc_wtd): Add initializer of new "kind" field.
36926         (pch_wtd): Likewise.
36928         * gengtype.h (enum write_types_kinds): New.
36929         (struct type): Add field wrote_user_func_for_ptr to the "s"
36930         union member.
36932 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
36934         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
36935         instead of const_binop.
36936         (fold_binary_loc): Likewise.
36938 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
36940         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
36941         calculation to match get_ref_base_and_extent.
36943 2014-05-13  Catherine Moore  <clm@codesourcery.com>
36944             Sandra Loosemore  <sandra@codesourcery.com>
36946         * configure.ac: Fix assembly for explicit JALR relocation check.
36947         * configure: Regenerate.
36949 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36951         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
36952         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
36953         Remove associated type declarations and initialisations.
36954         (arm_expand_neon_builtin): Likewise.
36955         (neon_emit_pair_result_insn): Delete.
36956         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
36957         * config/arm/neon.md (neon_vtrn<mode>): Delete.
36958         (neon_vzip<mode>): Likewise.
36959         (neon_vuzp<mode>): Likewise.
36961 2014-05-13  Richard Biener  <rguenther@suse.de>
36963         PR ipa/60973
36964         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
36965         it needs revisiting whether the call still may be tail-called.
36967 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36969         * rtl.def (SYMBOL_REF): Remove middle "0" field.
36970         * rtl.h (block_symbol): Reduce number of fields to 2.
36971         (rtx_def): Add u2.symbol_ref_flags.
36972         (SYMBOL_REF_FLAGS): Use it.
36973         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
36974         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
36975         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
36976         Lower index of SYMBOL_REF_DATA.
36977         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
36978         Print SYMBOL_REF_FLAGS at the same time.
36979         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
36981 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36983         * rtl.def (VAR_LOCATION): Remove "i" field.
36984         * rtl.h (rtx_def): Add u2.var_location_status.
36985         (PAT_VAR_LOCATION_STATUS): Use it.
36986         (gen_rtx_VAR_LOCATION): Declare.
36987         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
36988         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
36989         * var-tracking.c (emit_note_insn_var_location): Remove casts.
36991 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36993         * rtl.def (scratch): Fix outdated comment and remove "0" field.
36994         * gengtype.c (adjust_field_rtx_def): Update accordingly.
36996 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
36998         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
36999         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
37000         * rtl.h (rtx_def): Add insn_uid to u2 field.
37001         (RTX_FLAG_CHECK8): Delete in favor of...
37002         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
37003         (INSN_DELETED_P): Update accordingly.
37004         (INSN_UID): Use u2.insn_uid.
37005         (INSN_CHAIN_CODE_P): Define.
37006         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
37007         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
37008         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
37009         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
37010         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
37011         indices accordingly.
37012         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
37013         Update indices for insn-chain rtxes.
37014         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
37015         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
37016         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
37017         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
37018         * combine.c (try_combine): Likewise.
37019         * ira.c (setup_prohibited_mode_move_regs): Likewise.
37021 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
37023         * rtl.def (REG): Remove middle field.
37024         * rtl.h (rtx_def): Add orignal_regno to u2.
37025         (ORIGINAL_REGNO): Use it instead of field 1.
37026         (REG_ATTRS): Lower field index accordingly.
37027         * gengtype.c (adjust_field_rtx_def): Remove handling of
37028         ORIGINAL_REGNO.  Move REG_ATTRS index down.
37029         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
37030         code that prints the REGNO.
37032 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
37034         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
37035         GENERATOR_FILE.
37037 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
37039         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
37041 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
37043         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
37044         (alloc_iv): Lower base expressions containing ADDR_EXPR.
37046 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
37048         * config/aarch64/aarch64-protos.h
37049         (aarch64_hard_regno_caller_save_mode): New prototype.
37050         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
37051         New function.
37052         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
37054 2014-05-13  Christian Bruel  <christian.bruel@st.com>
37056         * target.def (mode_switching): New hook vector.
37057         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
37058         (mode_exit, modepriority_to_mode): Likewise.
37059         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
37060         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
37061         * target.h: Include tm.h and hard-reg-set.h.
37062         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
37063         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
37064         * doc/tm.texi Regenerate.
37065         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
37066         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
37067         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
37068         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
37069         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
37070         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
37071         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
37072         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
37073         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
37074         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
37075         (ix86_emit_mode_set): Hookify.
37076         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
37077         Delete.
37078         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
37079         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
37080         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
37081         (epiphany_mode_priority_to_mode): Remove declaration.
37082         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
37083         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
37084         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
37085         Likewise.
37086         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
37087         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
37088         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
37090 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
37092         PR target/61060
37093         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
37094         is const0_rtx, return immediately.  Don't test count == 0 when
37095         it is always true.
37097 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
37099         * Makefile.in: add shrink-wrap.o.
37100         * config/i386/i386.c: include "shrink-wrap.h"
37101         * function.c: Likewise.
37102         (requires_stack_frame_p, next_block_for_reg,
37103         move_insn_for_shrink_wrap, prepare_shrink_wrap,
37104         dup_block_and_redirect): Move to shrink-wrap.c
37105         (thread_prologue_and_epilogue_insns): Extract three code segments
37106         as functions in shrink-wrap.c
37107         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
37108         shrink-wrap.h
37109         * shrink-wrap.c: New file.
37110         * shrink-wrap.h: New file.
37112 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
37114         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
37115         reference to Solaris.
37117 2014-05-12  Mike Stump  <mikestump@comcast.net>
37119         PR other/31778
37120         * genattrtab.c (filename): Add.
37121         (convert_set_attr_alternative): Improve error message.
37122         (check_defs): Restore read_md_filename for error messages.
37123         (gen_insn): Save filename.
37125 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
37127         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
37128         -fno-local-ivars and -fivar-visibility.
37129         * c-family/c.opt: Make -Wshadow also implicitly enable
37130         -Wshadow-ivar.
37132 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
37134         * doc/tm.texi: Remove reference to deleted macro.
37135         * doc/tm.texi.in: Likewise.
37137 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
37139         PR target/60991
37140         * config/avr/avr.c (avr_out_store_psi): Use correct constant
37141         to restore Y.
37143 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
37145         PR libgcc/61152
37146         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
37147         * config/arm/aout.h (License): Same.
37148         * config/arm/bpabi.h (License): Same.
37149         * config/arm/elf.h (License): Same.
37150         * config/arm/linux-elf.h (License): Same.
37151         * config/arm/linux-gas.h (License): Same.
37152         * config/arm/netbsd-elf.h (License): Same.
37153         * config/arm/uclinux-eabi.h (License): Same.
37154         * config/arm/uclinux-elf.h (License): Same.
37155         * config/arm/vxworks.h (License): Same.
37157 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
37159         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
37160         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
37161         number of operands to 3.
37162         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
37163         * tree-nested.c (convert_nonlocal_omp_clauses,
37164         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
37165         * gimplify.c (gimplify_scan_omp_clauses): Handle
37166         OMP_CLAUSE_LINEAR_STMT.
37167         * omp-low.c (lower_rec_input_clauses): Fix typo.
37168         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
37169         cast between Fortran boolean_type_node and C _Bool if
37170         needed.
37172 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
37174         PR tree-optimization/61136
37175         * wide-int.h (multiple_of_p): Define a version that doesn't return
37176         the quotient.
37177         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
37178         integer_zerop/const_binop pair.
37179         (multiple_of_p): Likewise, converting both operands to widest_int
37180         precision.
37182 2014-05-09  Teresa Johnson  <tejohnson@google.com>
37184         * cgraphunit.c (analyze_functions): Use correct dump file.
37186 2014-05-09  Florian Weimer  <fweimer@redhat.com>
37188         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
37189         expand_used_vars.
37190         (stack_protect_return_slot_p): New function.
37191         (expand_used_vars): Call stack_protect_decl_p and
37192         stack_protect_return_slot_p for -fstack-protector-strong.
37194 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
37195         Andrew Haley <aph@redhat.com>
37196         Richard Sandiford <rdsandiford@googlemail.com>
37198         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
37199         pages.
37201 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
37203         PR middle-end/61111
37204         * fold-const.c (fold_binary_loc): Changed width of mask.
37206 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
37208         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
37209         unsigned int initializers for regno_in, regno_out.
37211 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
37213         PR target/61055
37214         * config/avr/avr.md (cc): Add new attribute set_vzn.
37215         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
37216         Set cc insn attribute to set_vzn instead of set_zn for alternatives
37217         with INC, DEC or NEG.
37218         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
37219         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
37220         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
37222 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37224         Revert:
37225         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37227         * wide-int.cc (UTItype): Define.
37228         (UDWtype): Define for appropriate W_TYPE_SIZE.
37230 2014-05-09  Richard Biener  <rguenther@suse.de>
37232         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
37233         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
37234         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
37235         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
37236         ssa_propagate): Adjust.
37238 2014-05-08  Jeff Law  <law@redhat.com>
37240         PR tree-optimization/61009
37241         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
37242         tri-state rather than a boolean.  When a block is too big to
37243         thread through, inform caller via negative return value.
37244         (thread_across_edge): If a block was too big for normal threading,
37245         then it's too big for a joiner too, so remove temporary equivalences
37246         and return immediately.
37248 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
37249             Matthias Klose  <doko@ubuntu.com>
37251         PR driver/61106
37252         * optc-gen.awk: Fix option handling for -Wunused-parameter.
37254 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
37256         PR target/59952
37257         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
37259 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
37261         PR target/61092
37262         * config/alpha/alpha.c: Include gimple-iterator.h.
37263         (alpha_gimple_fold_builtin): New function.  Move
37264         ALPHA_BUILTIN_UMULH folding from ...
37265         (alpha_fold_builtin): ... here.
37266         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
37268 2014-05-08  Wei Mi  <wmi@google.com>
37270         PR target/58066
37271         * config/i386/i386.c (ix86_compute_frame_layout): Update
37272         preferred_stack_boundary for call, expanded from tls descriptor.
37273         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
37274         to depend on SP register.
37275         (*tls_local_dynamic_base_32_gnu): Ditto.
37276         (*tls_local_dynamic_32_once): Ditto.
37277         (tls_global_dynamic_64_<mode>): Set
37278         ix86_tls_descriptor_calls_expanded_in_cfun.
37279         (tls_local_dynamic_base_64_<mode>): Ditto.
37280         (tls_global_dynamic_32): Set
37281         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
37282         to depend on SP register.
37283         (tls_local_dynamic_base_32): Ditto.
37285 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37287         * config/arm/arm_neon.h: Update comment.
37288         * config/arm/neon-docgen.ml: Delete.
37289         * config/arm/neon-gen.ml: Delete.
37290         * doc/arm-neon-intrinsics.texi: Update comment.
37292 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37294         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
37295         and v4sf versions.
37296         (vand, vorr, veor, vorn, vbic): Remove.
37297         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
37298         iterator.
37299         (neon_vsub_unspec): Likewise.
37300         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
37302 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37304         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
37305         (vadd_s16): Likewise.
37306         (vadd_s32): Likewise.
37307         (vadd_f32): Likewise.
37308         (vadd_u8): Likewise.
37309         (vadd_u16): Likewise.
37310         (vadd_u32): Likewise.
37311         (vadd_s64): Likewise.
37312         (vadd_u64): Likewise.
37313         (vaddq_s8): Likewise.
37314         (vaddq_s16): Likewise.
37315         (vaddq_s32): Likewise.
37316         (vaddq_s64): Likewise.
37317         (vaddq_f32): Likewise.
37318         (vaddq_u8): Likewise.
37319         (vaddq_u16): Likewise.
37320         (vaddq_u32): Likewise.
37321         (vaddq_u64): Likewise.
37322         (vmul_s8): Likewise.
37323         (vmul_s16): Likewise.
37324         (vmul_s32): Likewise.
37325         (vmul_f32): Likewise.
37326         (vmul_u8): Likewise.
37327         (vmul_u16): Likewise.
37328         (vmul_u32): Likewise.
37329         (vmul_p8): Likewise.
37330         (vmulq_s8): Likewise.
37331         (vmulq_s16): Likewise.
37332         (vmulq_s32): Likewise.
37333         (vmulq_f32): Likewise.
37334         (vmulq_u8): Likewise.
37335         (vmulq_u16): Likewise.
37336         (vmulq_u32): Likewise.
37337         (vsub_s8): Likewise.
37338         (vsub_s16): Likewise.
37339         (vsub_s32): Likewise.
37340         (vsub_f32): Likewise.
37341         (vsub_u8): Likewise.
37342         (vsub_u16): Likewise.
37343         (vsub_u32): Likewise.
37344         (vsub_s64): Likewise.
37345         (vsub_u64): Likewise.
37346         (vsubq_s8): Likewise.
37347         (vsubq_s16): Likewise.
37348         (vsubq_s32): Likewise.
37349         (vsubq_s64): Likewise.
37350         (vsubq_f32): Likewise.
37351         (vsubq_u8): Likewise.
37352         (vsubq_u16): Likewise.
37353         (vsubq_u32): Likewise.
37354         (vsubq_u64): Likewise.
37355         (vand_s8): Likewise.
37356         (vand_s16): Likewise.
37357         (vand_s32): Likewise.
37358         (vand_u8): Likewise.
37359         (vand_u16): Likewise.
37360         (vand_u32): Likewise.
37361         (vand_s64): Likewise.
37362         (vand_u64): Likewise.
37363         (vandq_s8): Likewise.
37364         (vandq_s16): Likewise.
37365         (vandq_s32): Likewise.
37366         (vandq_s64): Likewise.
37367         (vandq_u8): Likewise.
37368         (vandq_u16): Likewise.
37369         (vandq_u32): Likewise.
37370         (vandq_u64): Likewise.
37371         (vorr_s8): Likewise.
37372         (vorr_s16): Likewise.
37373         (vorr_s32): Likewise.
37374         (vorr_u8): Likewise.
37375         (vorr_u16): Likewise.
37376         (vorr_u32): Likewise.
37377         (vorr_s64): Likewise.
37378         (vorr_u64): Likewise.
37379         (vorrq_s8): Likewise.
37380         (vorrq_s16): Likewise.
37381         (vorrq_s32): Likewise.
37382         (vorrq_s64): Likewise.
37383         (vorrq_u8): Likewise.
37384         (vorrq_u16): Likewise.
37385         (vorrq_u32): Likewise.
37386         (vorrq_u64): Likewise.
37387         (veor_s8): Likewise.
37388         (veor_s16): Likewise.
37389         (veor_s32): Likewise.
37390         (veor_u8): Likewise.
37391         (veor_u16): Likewise.
37392         (veor_u32): Likewise.
37393         (veor_s64): Likewise.
37394         (veor_u64): Likewise.
37395         (veorq_s8): Likewise.
37396         (veorq_s16): Likewise.
37397         (veorq_s32): Likewise.
37398         (veorq_s64): Likewise.
37399         (veorq_u8): Likewise.
37400         (veorq_u16): Likewise.
37401         (veorq_u32): Likewise.
37402         (veorq_u64): Likewise.
37403         (vbic_s8): Likewise.
37404         (vbic_s16): Likewise.
37405         (vbic_s32): Likewise.
37406         (vbic_u8): Likewise.
37407         (vbic_u16): Likewise.
37408         (vbic_u32): Likewise.
37409         (vbic_s64): Likewise.
37410         (vbic_u64): Likewise.
37411         (vbicq_s8): Likewise.
37412         (vbicq_s16): Likewise.
37413         (vbicq_s32): Likewise.
37414         (vbicq_s64): Likewise.
37415         (vbicq_u8): Likewise.
37416         (vbicq_u16): Likewise.
37417         (vbicq_u32): Likewise.
37418         (vbicq_u64): Likewise.
37419         (vorn_s8): Likewise.
37420         (vorn_s16): Likewise.
37421         (vorn_s32): Likewise.
37422         (vorn_u8): Likewise.
37423         (vorn_u16): Likewise.
37424         (vorn_u32): Likewise.
37425         (vorn_s64): Likewise.
37426         (vorn_u64): Likewise.
37427         (vornq_s8): Likewise.
37428         (vornq_s16): Likewise.
37429         (vornq_s32): Likewise.
37430         (vornq_s64): Likewise.
37431         (vornq_u8): Likewise.
37432         (vornq_u16): Likewise.
37433         (vornq_u32): Likewise.
37434         (vornq_u64): Likewise.
37436 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37438         * wide-int.cc (UTItype): Define.
37439         (UDWtype): Define for appropriate W_TYPE_SIZE.
37441 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
37443         PR tree-optimization/59100
37444         * tree-ssa-phiopt.c: Include tree-inline.h.
37445         (neutral_element_p, absorbing_element_p): New functions.
37446         (value_replacement): Handle conditional binary operations with a
37447         neutral or absorbing element.
37449 2014-05-08  Richard Biener  <rguenther@suse.de>
37451         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
37452         folding the expression.
37453         (valueize_expr): Remove.
37454         (visit_reference_op_load): Do not valueize the result of
37455         vn_get_expr_for.
37456         (simplify_binary_expression): Likewise.
37457         (simplify_unary_expression): Likewise.
37459 2014-05-08  Richard Biener  <rguenther@suse.de>
37461         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
37462         looking at TYPE_ARG_TYPES.
37464 2014-05-08  Richard Biener  <rguenther@suse.de>
37466         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
37467         pointer propagation special-case.
37469 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
37471         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
37472         core part of address expressions.
37474 2014-05-08  Alan Modra  <amodra@gmail.com>
37476         PR target/60737
37477         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
37478         loads and stores when -mno-strict-align at any alignment.
37479         (expand_block_clear): Similarly.  Also correct calculation of
37480         instruction count.
37482 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37484         PR middle-end/39246
37485         * tree-complex.c (expand_complex_move): Keep line info when expanding
37486         complex move.
37487         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
37488         of complex expression. Use new argument to display correct location
37489         for values coming from phi statement.
37490         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
37491         (warn_uninitialized_phi): Pass location of phi argument to
37492         warn_uninit.
37493         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
37494         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
37496 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
37498         * config/rs6000/predicates.md (indexed_address_mem): New.
37499         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
37500         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
37501         fpstore_ux, fpstore_u.
37502         (sign_extend, indexed, update): New.
37503         (cell_micro): Adjust.
37504         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
37505         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
37506         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
37507         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
37508         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
37509         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
37510         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
37511         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
37512         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
37513         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
37514         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
37515         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
37516         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
37517         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
37518         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
37520         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
37521         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
37522         *vsx_extract_<mode>_store): Adjust.
37523         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
37524         is_cracked_insn, insn_must_be_first_in_group,
37525         insn_must_be_last_in_group): Adjust.
37527         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
37528         Adjust.
37529         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
37530         ppc440-fpstore): Adjust.
37531         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
37532         ppc476-fpstore): Adjust.
37533         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
37534         ppc601-fpstore): Adjust.
37535         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
37536         Adjust.
37537         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
37538         Adjust.
37539         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
37540         ppc7450-fpstore): Adjust.
37541         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
37542         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
37543         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
37544         Adjust.
37545         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
37546         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
37547         cell-fpstore, cell-fpstore-update): Adjust.
37548         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
37549         ppce300c3_store, ppce300c3_fpstore): Adjust.
37550         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
37551         e500mc_fpstore): Adjust.
37552         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
37553         e500mc64_store, e500mc64_fpstore): Adjust.
37554         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
37555         e5500_fpstore): Adjust.
37556         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
37557         e6500_fpstore): Adjust.
37558         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
37559         Adjust.
37560         * config/rs6000/power4.md (power4-load, power4-load-ext,
37561         power4-load-ext-update, power4-load-ext-update-indexed,
37562         power4-load-update-indexed, power4-load-update, power4-fpload,
37563         power4-fpload-update, power4-store, power4-store-update,
37564         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
37565         Adjust.
37566         * config/rs6000/power5.md (power5-load, power5-load-ext,
37567         power5-load-ext-update, power5-load-ext-update-indexed,
37568         power5-load-update-indexed, power5-load-update, power5-fpload,
37569         power5-fpload-update, power5-store, power5-store-update,
37570         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
37571         Adjust.
37572         * config/rs6000/power6.md (power6-load, power6-load-ext,
37573         power6-load-update, power6-load-update-indexed,
37574         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
37575         power6-fpload-update, power6-store, power6-store-update,
37576         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
37577         Adjust.
37578         * config/rs6000/power7.md (power7-load, power7-load-ext,
37579         power7-load-update, power7-load-update-indexed,
37580         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
37581         power7-fpload-update, power7-store, power7-store-update,
37582         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
37583         Adjust.
37584         * config/rs6000/power8.md (power8-load, power8-load-update,
37585         power8-load-ext, power8-load-ext-update, power8-fpload,
37586         power8-fpload-update, power8-store, power8-store-update-indexed,
37587         power8-fpstore, power8-fpstore-update): Adjust.
37588         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
37589         Adjust.
37590         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
37591         titan_lsu_store, titan_lsu_fpstore): Adjust.
37592         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
37594 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
37596         PR target/60884
37597         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
37598         unrolled byte insns.  Emit address increments after move insns.
37600 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
37602         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
37603         const_gimple, rather than a gimple.
37604         (gimple_call_builtin_p): Likewise, for the three variants.
37606         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
37607         (gimple_call_builtin_p): Likewise, for the three variants.
37609 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
37611         PR tree-optimization/61095
37612         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
37614 2014-05-07  Richard Biener  <rguenther@suse.de>
37616         PR tree-optimization/61034
37617         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
37618         (maybe_skip_until): Use translate to take into account
37619         lattices when trying to do disambiguations.
37620         (get_continuation_for_phi_1): Likewise.
37621         (get_continuation_for_phi): Adjust for added translate arguments.
37622         (walk_non_aliased_vuses): Likewise.
37623         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
37624         (walk_non_aliased_vuses): Likewise.
37625         (call_may_clobber_ref_p_1): Declare.
37626         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
37627         calls.  Stop early if we are only supposed to disambiguate.
37628         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
37630 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
37632         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
37633         Emit an error when the function has arguments.
37635 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
37637         * cfgloop.h (unswitch_loops): Remove.
37638         * doc/passes.texi: Remove references to loop-unswitch.c
37639         * timevar.def (TV_LOOP_UNSWITCH): Remove.
37641 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
37643         * tree-vect-data-refs.c (vect_grouped_load_supported): New
37644         check for loads group of length 3.
37645         (vect_permute_load_chain): New permutations for loads group of
37646         length 3.
37647         * tree-vect-stmts.c (vect_model_load_cost): Change cost
37648         of vec_perm_shuffle for the new permutations.
37650 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
37652         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
37653         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
37654         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
37655         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
37656         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
37657         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
37658         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
37659         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
37661 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
37663         * loop-unswitch.c: Delete.
37665 2014-05-07  Richard Biener  <rguenther@suse.de>
37667         * config.gcc: Always set need_64bit_hwint to yes.
37669 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
37671         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
37672         of using optimize_size.
37674 2014-05-06  Mike Stump  <mikestump@comcast.net>
37676         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
37678 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
37680         * config/i386/sse.md (*mov<mode>_internal)
37681         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
37682         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
37683         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
37684         (*<code><mode>3, *andnot<mode>3<mask_name>)
37685         (<mask_codefor><code><mode>3<mask_name>): Only consider
37686         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
37688 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
37690         Revert:
37691         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
37693         * lra-constraints.c (valid_address_p): Move earlier in file.
37694         Add a constraint argument to the address_info version.
37695         (satisfies_memory_constraint_p): New function.
37696         (satisfies_address_constraint_p): Likewise.
37697         (process_alt_operands, curr_insn_transform): Use them.
37698         (process_address): Pass the constraint to valid_address_p when
37699         checking address operands.
37701 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
37703         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
37704         to their respective blocks.  Fix inadvertent use of "node".
37706 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
37708         * emit-rtl.c (init_derived_machine_modes): New functionm, split
37709         out from...
37710         (init_emit_once): ...here.
37711         * rtl.h (init_derived_machine_modes): Declare.
37712         * toplev.c (do_compile): Call it even if no_backend.
37714 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
37715             Mike Stump  <mikestump@comcast.net>
37716             Richard Sandiford  <rdsandiford@googlemail.com>
37717             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37719         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
37720         (rtx_equal_for_memref_p): Update comment.
37721         (adjust_offset_for_component_ref): Use wide-int interfaces.
37722         * builtins.c (get_object_alignment_2): Likewise.
37723         (c_readstr): Likewise.
37724         (target_char_cast): Add comment.
37725         (determine_block_size): Use wide-int interfaces.
37726         (expand_builtin_signbit): Likewise.
37727         (fold_builtin_int_roundingfn): Likewise.
37728         (fold_builtin_bitop): Likewise.
37729         (fold_builtin_bswap): Likewise.
37730         (fold_builtin_logarithm): Use signop.
37731         (fold_builtin_pow): Likewise.
37732         (fold_builtin_memory_op): Use wide-int interfaces.
37733         (fold_builtin_object_size): Likewise.
37734         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
37735         nb_iterations_estimate.
37736         (record_niter_bound): Use wide-int interfaces.
37737         (get_estimated_loop_iterations_int): Likewise.
37738         (get_estimated_loop_iterations): Likewise.
37739         (get_max_loop_iterations): Likewise.
37740         * cfgloop.h: Include wide-int.h.
37741         (struct nb_iter_bound): Change bound to widest_int.
37742         (struct loop): Change nb_iterations_upper_bound and
37743         nb_iterations_estimate to widest_int.
37744         (record_niter_bound): Switch to use widest_int.
37745         (get_estimated_loop_iterations): Likewise.
37746         (get_max_loop_iterations): Likewise.
37747         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
37748         update for wide-int.
37749         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
37750         * combine.c (try_combine): Likewise.
37751         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
37752         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
37753         interfaces.
37754         (aarch64_float_const_representable_p): Likewise.
37755         * config/arc/arc.c: Include wide-int.h.
37756         (arc_can_use_doloop_p): Use wide-int interfaces.
37757         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
37758         (vfp3_const_double_index): Likewise.
37759         * config/avr/avr.c (avr_out_round): Likewise.
37760         (avr_fold_builtin): Likewise.
37761         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
37762         (bfin_can_use_doloop_p): Likewise.
37763         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
37764         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
37765         * config/i386/i386.c: Include wide-int.h.
37766         (ix86_data_alignment): Use wide-int interfaces.
37767         (ix86_local_alignment): Likewise.
37768         (ix86_emit_swsqrtsf): Update real_from_integer.
37769         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
37770         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
37771         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
37772         (zero_constant): Likewise.
37773         (input_operand): Likewise.
37774         (splat_input_operand): Likewise.
37775         (non_logical_cint_operand): Change const_double to const_wide_int.
37776         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
37777         (easy_altivec_constant): Remove comment.
37778         (paired_expand_vector_init): Use CONSTANT_P.
37779         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
37780         (rs6000_emit_move): Update checks.
37781         (rs6000_aggregate_candidate): Use wide-int interfaces.
37782         (rs6000_expand_ternop_builtin): Likewise.
37783         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
37784         (rs6000_assemble_integer): Likewise.
37785         (rs6000_hash_constant): Likewise.
37786         (output_toc): Likewise.
37787         (rs6000_rtx_costs): Likewise.
37788         (rs6000_emit_swrsqrt); Update call to real_from_integer.
37789         * config/rs6000/rs6000-c.c: Include wide-int.h.
37790         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
37791         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
37792         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
37793         Handle CONST_WIDE_INT.
37794         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
37795         Use tree_fits_uhwi_p.
37796         * config/sparc/sparc.c: Include wide-int.h.
37797         (sparc_fold_builtin): Use wide-int interfaces.
37798         * config/vax/vax.c: Include wide-int.h.
37799         (vax_float_literal): Use real_from_integer.
37800         * coretypes.h (struct hwivec_def): New.
37801         (hwivec): New.
37802         (const_hwivec): New.
37803         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
37804         (equiv_constant): Handle CONST_WIDE_INT.
37805         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
37806         (cselib_hash_rtx): Handle CONST_WIDE_INT.
37807         * dbxout.c (stabstr_U): Use wide-int interfaces.
37808         (dbxout_type): Update to use cst_fits_shwi_p.
37809         * defaults.h (LOG2_BITS_PER_UNIT): Define.
37810         (TARGET_SUPPORTS_WIDE_INT): Add default.
37811         * dfp.c: Include wide-int.h.
37812         (decimal_real_to_integer2): Use wide-int interfaces and rename to
37813         decimal_real_to_integer.
37814         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
37815         decimal_real_to_integer.
37816         * doc/generic.texi (Constant expressions): Update for wide_int.
37817         * doc/rtl.texi (const_double): Likewise.
37818         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
37819         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
37820         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
37821         (REAL_VALUE_FROM_INT): Remove.
37822         (TARGET_SUPPORTS_WIDE_INT): New.
37823         * doc/tm.texi: Regenerate.
37824         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
37825         * double-int.h: Include wide-int.h.
37826         (struct wi::int_traits): New.
37827         * dwarf2out.c (get_full_len): New.
37828         (dw_val_equal_p): Add case dw_val_class_wide_int.
37829         (size_of_loc_descr): Likewise.
37830         (output_loc_operands): Likewise.
37831         (insert_double): Remove.
37832         (insert_wide_int): New.
37833         (add_AT_wide): New.
37834         (print_die): Add case dw_val_class_wide_int.
37835         (attr_checksum): Likewise.
37836         (attr_checksum_ordered): Likewise.
37837         (same_dw_val_p): Likewise.
37838         (size_of_die): Likewise.
37839         (value_format): Likewise.
37840         (output_die): Likewise.
37841         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
37842         Use wide-int.
37843         (clz_loc_descriptor): Use wide-int interfaces.
37844         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
37845         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
37846         (round_up_to_align): Use wide-int interfaces.
37847         (field_byte_offset): Likewise.
37848         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
37849         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
37850         CONST_DOUBLE handling.  Use wide-int interfaces.
37851         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
37852         (gen_enumeration_type_die): Use add_AT_wide.
37853         (hash_loc_operands): Add case dw_val_class_wide_int.
37854         (compare_loc_operands): Likewise.
37855         * dwarf2out.h: Include wide-int.h.
37856         (wide_int_ptr): New.
37857         (enum dw_val_class): Add dw_val_class_wide_int.
37858         (struct dw_val_struct): Add val_wide.
37859         * emit-rtl.c (const_wide_int_htab): New.
37860         (const_wide_int_htab_hash): New.
37861         (const_wide_int_htab_eq): New.
37862         (lookup_const_wide_int): New.
37863         (const_double_htab_hash): Use wide-int interfaces.
37864         (const_double_htab_eq): Likewise.
37865         (rtx_to_double_int): Conditionally compile for wide-int.
37866         (immed_double_int_const): Rename to immed_wide_int_const and
37867         update for wide-int.
37868         (immed_double_const): Conditionally compile for wide-int.
37869         (init_emit_once): Use wide-int interfaces.
37870         * explow.c (plus_constant): Likewise.
37871         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
37872         (lshift_value): Use wide-int interfaces.
37873         (expand_mult): Likewise.
37874         (choose_multiplier): Likewise.
37875         (expand_smod_pow2): Likewise.
37876         (make_tree): Likewise.
37877         * expr.c (convert_modes): Consolidate handling of constants.
37878         Use wide-int interfaces.
37879         (emit_group_load_1): Add note.
37880         (store_expr): Update comment.
37881         (get_inner_reference): Use wide-int interfaces.
37882         (expand_constructor): Update comment.
37883         (expand_expr_real_2): Use wide-int interfaces.
37884         (expand_expr_real_1): Likewise.
37885         (reduce_to_bit_field_precision): Likewise.
37886         (const_vector_from_tree): Likewise.
37887         * final.c: Include wide-int-print.h.
37888         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
37889         * fixed-value.c: Include wide-int.h.
37890         (fixed_from_string): Use wide-int interfaces.
37891         (fixed_to_decimal): Likewise.
37892         (fixed_convert_from_real): Likewise.
37893         (real_convert_from_fixed): Likewise.
37894         * fold-const.h (mem_ref_offset): Return an offset_int.
37895         (div_if_zero_remainder): Remove code parameter.
37896         * fold-const.c (div_if_zero_remainder): Remove code parameter.
37897         Use wide-int interfaces.
37898         (may_negate_without_overflow_p): Use wide-int interfaces.
37899         (negate_expr_p): Likewise.
37900         (fold_negate_expr): Likewise.
37901         (int_const_binop_1): Likewise.
37902         (const_binop): Likewise.
37903         (fold_convert_const_int_from_int): Likewise.
37904         (fold_convert_const_int_from_real): Likewise.
37905         (fold_convert_const_int_from_fixed): Likewise.
37906         (fold_convert_const_fixed_from_int): Likewise.
37907         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
37908         (sign_bit_p): Use wide-int interfaces.
37909         (make_range_step): Likewise.
37910         (build_range_check): Likewise.  Pass an integer of the correct type
37911         instead of using integer_one_node.
37912         (range_predecessor): Pass an integer of the correct type instead
37913         of using integer_one_node.
37914         (range_successor): Likewise.
37915         (merge_ranges): Likewise.
37916         (unextend): Use wide-int interfaces.
37917         (extract_muldiv_1): Likewise.
37918         (fold_div_compare): Likewise.
37919         (fold_single_bit_test): Likewise.
37920         (fold_sign_changed_comparison): Likewise.
37921         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
37922         (fold_plusminus_mult_expr): Use wide-int interfaces.
37923         (native_encode_int): Likewise.
37924         (native_interpret_int): Likewise.
37925         (fold_unary_loc): Likewise.
37926         (pointer_may_wrap_p): Likewise.
37927         (size_low_cst): Likewise.
37928         (mask_with_tz): Likewise.
37929         (fold_binary_loc): Likewise.
37930         (fold_ternary_loc): Likewise.
37931         (multiple_of_p): Likewise.
37932         (tree_call_nonnegative_warnv_p): Update calls to
37933         tree_int_cst_min_precision and real_from_integer.
37934         (fold_negate_const): Use wide-int interfaces.
37935         (fold_abs_const): Likewise.
37936         (fold_relational_const): Use tree_int_cst_lt.
37937         (round_up_loc): Use wide-int interfaces.
37938         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
37939         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
37940         * gengtype.c: Remove include of double-int.h.
37941         (do_typedef): Use wide-int interfaces.
37942         (open_base_files): Add wide-int.h.
37943         (main): Add offset_int and widest_int typedefs.
37944         * gengtype-lex.l: Handle "^".
37945         (CXX_KEYWORD): Add "static".
37946         * gengtype-parse.c (require3): New.
37947         (require_template_declaration): Handle constant template arguments
37948         and nested templates.
37949         * gengtype-state.c: Don't include "double-int.h".
37950         * genpreds.c (write_one_predicate_function): Update comment.
37951         (write_tm_constrs_h): Add check for hval and lval use in
37952         CONST_WIDE_INT.
37953         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
37954         (add_to_sequence): Likewise.
37955         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
37956         and const_double_operand.
37957         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
37958         interfaces.
37959         * gimple-fold.c (get_base_constructor): Likewise.
37960         (fold_array_ctor_reference): Likewise.
37961         (fold_nonarray_ctor_reference): Likewise.
37962         (fold_const_aggregate_ref_1): Likewise.
37963         (gimple_val_nonnegative_real_p): Likewise.
37964         (gimple_fold_indirect_ref): Likewise.
37965         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
37966         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
37967         (struct slsr_cand_d): Change index to be widest_int.
37968         (struct incr_info_d): Change incr to be widest_int.
37969         (alloc_cand_and_find_basis): Use wide-int interfaces.
37970         (slsr_process_phi): Likewise.
37971         (backtrace_base_for_ref): Likewise.  Return a widest_int.
37972         (restructure_reference): Take a widest_int instead of a double_int.
37973         (slsr_process_ref): Use wide-int interfaces.
37974         (create_mul_ssa_cand): Likewise.
37975         (create_mul_imm_cand): Likewise.
37976         (create_add_ssa_cand): Likewise.
37977         (create_add_imm_cand): Take a widest_int instead of a double_int.
37978         (slsr_process_add): Use wide-int interfaces.
37979         (slsr_process_cast): Likewise.
37980         (slsr_process_copy): Likewise.
37981         (dump_candidate): Likewise.
37982         (dump_incr_vec): Likewise.
37983         (replace_ref): Likewise.
37984         (cand_increment): Likewise.  Return a widest_int.
37985         (cand_abs_increment): Likewise.
37986         (replace_mult_candidate): Take a widest_int instead of a double_int.
37987         (replace_unconditional_candidate): Use wide-int interfaces.
37988         (incr_vec_index): Take a widest_int instead of a double_int.
37989         (create_add_on_incoming_edge): Likewise.
37990         (create_phi_basis): Use wide-int interfaces.
37991         (replace_conditional_candidate): Likewise.
37992         (record_increment): Take a widest_int instead of a double_int.
37993         (record_phi_increments): Use wide-int interfaces.
37994         (phi_incr_cost): Take a widest_int instead of a double_int.
37995         (lowest_cost_path): Likewise.
37996         (total_savings): Likewise.
37997         (analyze_increments): Use wide-int interfaces.
37998         (ncd_with_phi): Take a widest_int instead of a double_int.
37999         (ncd_of_cand_and_phis): Likewise.
38000         (nearest_common_dominator_for_cands): Likewise.
38001         (insert_initializers): Use wide-int interfaces.
38002         (all_phi_incrs_profitable): Likewise.
38003         (replace_one_candidate): Likewise.
38004         (replace_profitable_candidates): Likewise.
38005         * godump.c: Include wide-int-print.h.
38006         (go_output_typedef): Use wide-int interfaces.
38007         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
38008         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
38009         (build_loop_iteration_domains): Likewise.
38010         * hooks.h: Include wide-int.h rather than double-int.h.
38011         (hook_bool_dint_dint_uint_bool_true): Delete.
38012         (hook_bool_wint_wint_uint_bool_true): Declare.
38013         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
38014         (hook_bool_wint_wint_uint_bool_true): New.
38015         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
38016         interfaces.
38017         (ubsan_expand_si_overflow_mul_check): Likewise.
38018         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
38019         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
38020         (get_ancestor_addr_info): Likewise.
38021         (ipa_modify_call_arguments): Likewise.
38022         * loop-doloop.c (doloop_modify): Likewise.
38023         (doloop_optimize): Likewise.
38024         * loop-iv.c (iv_number_of_iterations): Likewise.
38025         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
38026         (unroll_loop_constant_iterations): Likewise.
38027         (decide_unroll_runtime_iterations): Likewise.
38028         (unroll_loop_runtime_iterations): Likewise.
38029         (decide_peel_simple): Likewise.
38030         (decide_unroll_stupid): Likewise.
38031         * lto-streamer-in.c (streamer_read_wi): Add.
38032         (input_cfg): Use wide-int interfaces.
38033         (lto_input_tree_1): Likewise.
38034         * lto-streamer-out.c (streamer_write_wi): Add.
38035         (hash_tree): Use wide-int interfaces.
38036         (output_cfg): Likewise.
38037         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
38038         (GTFILES): Add wide-int.h and signop.h.
38039         (TAGS): Look for .cc files too.
38040         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
38041         * optabs.c (expand_subword_shift): Likewise.
38042         (expand_doubleword_shift): Likewise.
38043         (expand_absneg_bit): Likewise.
38044         (expand_copysign_absneg): Likewise.
38045         (expand_copysign_bit): Likewise.
38046         * postreload.c (reload_cse_simplify_set): Likewise.
38047         * predict.c (predict_iv_comparison): Likewise.
38048         * pretty-print.h: Include wide-int-print.h.
38049         (pp_wide_int) New.
38050         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
38051         * print-tree.c: Include wide-int-print.h.
38052         (print_node_brief): Use wide-int interfaces.
38053         (print_node): Likewise.
38054         * read-rtl.c (validate_const_wide_int): New.
38055         (read_rtx_code): Add CONST_WIDE_INT case.
38056         * real.c: Include wide-int.h.
38057         (real_to_integer2): Delete.
38058         (real_to_integer): New function, returning a wide_int.
38059         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
38060         (ten_to_ptwo): Update call to real_from_integer.
38061         (real_digit): Likewise.
38062         * real.h: Include signop.h, wide-int.h and insn-modes.h.
38063         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
38064         (REAL_VALUE_TO_INT): Delete.
38065         (real_to_integer): Declare a wide-int form.
38066         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
38067         * recog.c (const_int_operand): Improve comment.
38068         (const_scalar_int_operand): New.
38069         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
38070         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
38071         (split_double): Likewise.
38072         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
38073         (rtx_size): Likewise.
38074         (rtx_alloc_stat_v): New.
38075         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
38076         (cwi_output_hex): New.
38077         (iterative_hash_rtx): Handle CONST_WIDE_INT.
38078         (cwi_check_failed_bounds): New.
38079         * rtl.def (CONST_WIDE_INT): New.
38080         * rtl.h: Include <utility> and wide-int.h.
38081         (struct hwivec_def): New.
38082         (CWI_GET_NUM_ELEM): New.
38083         (CWI_PUT_NUM_ELEM): New.
38084         (struct rtx_def): Add num_elem and hwiv.
38085         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
38086         (CASE_CONST_UNIQUE): Likewise.
38087         (CASE_CONST_ANY): Likewise.
38088         (CONST_SCALAR_INT_P): Likewise.
38089         (CONST_WIDE_INT_P): New.
38090         (CWI_ELT): New.
38091         (HWIVEC_CHECK): New.
38092         (cwi_check_failed_bounds): New.
38093         (CWI_ELT): New.
38094         (HWIVEC_CHECK): New.
38095         (CONST_WIDE_INT_VEC) New.
38096         (CONST_WIDE_INT_NUNITS) New.
38097         (CONST_WIDE_INT_ELT) New.
38098         (rtx_mode_t): New type.
38099         (wi::int_traits <rtx_mode_t>): New.
38100         (wi::shwi): New.
38101         (wi::min_value): New.
38102         (wi::max_value): New.
38103         (rtx_alloc_v) New.
38104         (const_wide_int_alloc): New.
38105         (immed_wide_int_const): New.
38106         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
38107         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
38108         * signop.h: New file.
38109         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
38110         (simplify_const_unary_operation): Use wide-int interfaces.
38111         (simplify_binary_operation_1): Likewise.
38112         (simplify_const_binary_operation): Likewise.
38113         (simplify_const_relational_operation): Likewise.
38114         (simplify_immed_subreg): Likewise.
38115         * stmt.c (expand_case): Likewise.
38116         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
38117         signop rather than a bool.
38118         * stor-layout.c (layout_type): Use wide-int interfaces.
38119         (initialize_sizetypes): Update calls to
38120         set_min_and_max_values_for_integral_type.
38121         (set_min_and_max_values_for_integral_type): Take a signop rather
38122         than a bool.  Use wide-int interfaces.
38123         (fixup_signed_type): Update accordingly.  Remove
38124         HOST_BITS_PER_DOUBLE_INT limit.
38125         (fixup_unsigned_type): Likewise.
38126         * system.h (STATIC_CONSTANT_P): New.
38127         (STATIC_ASSERT): New.
38128         * target.def (can_use_doloop_p): Take widest_ints rather than
38129         double_ints.
38130         * target.h: Include wide-int.h rather than double-int.h.
38131         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
38132         than double_ints.
38133         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
38134         rather than INT_CST_LT_UNSIGNED.
38135         (can_use_doloop_if_innermost): Take widest_ints rather than
38136         double_ints.
38137         * tree-affine.c: Include wide-int-print.h.
38138         (double_int_ext_for_comb): Delete.
38139         (wide_int_ext_for_comb): New.
38140         (aff_combination_zero): Use wide-int interfaces.
38141         (aff_combination_const): Take a widest_int instead of a double_int.
38142         (aff_combination_elt): Use wide-int interfaces.
38143         (aff_combination_scale): Take a widest_int instead of a double_int.
38144         (aff_combination_add_elt): Likewise.
38145         (aff_combination_add_cst): Likewise.
38146         (aff_combination_add): Use wide-int interfaces.
38147         (aff_combination_convert): Likewise.
38148         (tree_to_aff_combination): Likewise.
38149         (add_elt_to_tree): Take a widest_int instead of a double_int.
38150         (aff_combination_to_tree): Use wide-int interfaces.
38151         (aff_combination_remove_elt): Likewise.
38152         (aff_combination_add_product): Take a widest_int instead of
38153         a double_int.
38154         (aff_combination_mult): Use wide-int interfaces.
38155         (aff_combination_expand): Likewise.
38156         (double_int_constant_multiple_p): Delete.
38157         (wide_int_constant_multiple_p): New.
38158         (aff_combination_constant_multiple_p): Take a widest_int pointer
38159         instead of a double_int pointer.
38160         (print_aff): Use wide-int interfaces.
38161         (get_inner_reference_aff): Take a widest_int pointer
38162         instead of a double_int pointer.
38163         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
38164         * tree-affine.h: Include wide-int.h.
38165         (struct aff_comb_elt): Change type of coef to widest_int.
38166         (struct affine_tree_combination): Change type of offset to widest_int.
38167         (double_int_ext_for_comb): Delete.
38168         (wide_int_ext_for_comb): New.
38169         (aff_combination_const): Use widest_int instead of double_int.
38170         (aff_combination_scale): Likewise.
38171         (aff_combination_add_elt): Likewise.
38172         (aff_combination_constant_multiple_p): Likewise.
38173         (get_inner_reference_aff): Likewise.
38174         (aff_comb_cannot_overlap_p): Likewise.
38175         (aff_combination_zero_p): Use wide-int interfaces.
38176         * tree.c: Include tree.h.
38177         (init_ttree): Use make_int_cst.
38178         (tree_code_size): Removed code for INTEGER_CST case.
38179         (tree_size): Add INTEGER_CST case.
38180         (make_node_stat): Update comment.
38181         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
38182         (build_int_cst_type): Use wide-int interfaces.
38183         (double_int_to_tree): Likewise.
38184         (double_int_fits_to_tree_p): Delete.
38185         (force_fit_type_double): Delete.
38186         (force_fit_type): New.
38187         (int_cst_hash_hash): Use wide-int interfaces.
38188         (int_cst_hash_eq): Likewise.
38189         (build_int_cst_wide): Delete.
38190         (wide_int_to_tree): New.
38191         (cache_integer_cst): Use wide-int interfaces.
38192         (build_low_bits_mask): Likewise.
38193         (cst_and_fits_in_hwi): Likewise.
38194         (real_value_from_int_cst): Likewise.
38195         (make_int_cst_stat): New.
38196         (integer_zerop): Use wide_int interfaces.
38197         (integer_onep): Likewise.
38198         (integer_all_onesp): Likewise.
38199         (integer_pow2p): Likewise.
38200         (integer_nonzerop): Likewise.
38201         (tree_log2): Likewise.
38202         (tree_floor_log2): Likewise.
38203         (tree_ctz): Likewise.
38204         (int_size_in_bytes): Likewise.
38205         (mem_ref_offset): Return an offset_int rather than a double_int.
38206         (build_type_attribute_qual_variant): Use wide_int interfaces.
38207         (type_hash_eq): Likewise
38208         (tree_int_cst_equal): Likewise.
38209         (tree_int_cst_lt): Delete.
38210         (tree_int_cst_compare): Likewise.
38211         (tree_fits_shwi_p): Use wide_int interfaces.
38212         (tree_fits_uhwi_p): Likewise.
38213         (tree_int_cst_sign_bit): Likewise.
38214         (tree_int_cst_sgn): Likewise.
38215         (tree_int_cst_min_precision): Take a signop rather than a bool.
38216         (simple_cst_equal): Use wide_int interfaces.
38217         (compare_tree_int): Likewise.
38218         (iterative_hash_expr): Likewise.
38219         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
38220         INT_CST_LT.
38221         (get_type_static_bounds): Use wide_int interfaces.
38222         (tree_int_cst_elt_check_failed): New.
38223         (build_common_tree_nodes): Reordered to set prec before filling in
38224         value.
38225         (int_cst_value): Check cst_and_fits_in_hwi.
38226         (widest_int_cst_value): Use wide_int interfaces.
38227         (upper_bound_in_type): Likewise.
38228         (lower_bound_in_type): Likewise.
38229         (num_ending_zeros): Likewise.
38230         (drop_tree_overflow): Likewise.
38231         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
38232         (gen_conditions_for_pow_cst_base): Likewise.
38233         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
38234         (group_case_labels_stmt): Use wide-int interfaces.
38235         (verify_gimple_assign_binary): Likewise.
38236         (print_loop): Likewise.
38237         * tree-chrec.c (tree_fold_binomial): Likewise.
38238         * tree-core.h (struct tree_base): Add int_length.
38239         (struct tree_int_cst): Change rep of value.
38240         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
38241         (dr_may_alias_p): Likewise.
38242         (max_stmt_executions_tree): Likewise.
38243         * tree.def (INTEGER_CST): Update comment.
38244         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
38245         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
38246         * tree-dump.c: Include wide-int.h and wide-int-print.h.
38247         (dequeue_and_dump): Use wide-int interfaces.
38248         * tree.h: Include wide-int.h.
38249         (NULL_TREE): Moved to earlier loc in file.
38250         (TREE_INT_CST_ELT_CHECK): New.
38251         (tree_int_cst_elt_check_failed): New.
38252         (TYPE_SIGN): New.
38253         (TREE_INT_CST): Delete.
38254         (TREE_INT_CST_LOW): Use wide-int interfaces.
38255         (TREE_INT_CST_HIGH): Delete.
38256         (TREE_INT_CST_NUNITS): New.
38257         (TREE_INT_CST_EXT_NUNITS): Likewise.
38258         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
38259         (TREE_INT_CST_ELT): Likewise.
38260         (INT_CST_LT): Delete.
38261         (tree_int_cst_elt_check): New (two forms).
38262         (type_code_size): Update comment.
38263         (make_int_cst_stat, make_int_cst): New.
38264         (tree_to_double_int): Delete.
38265         (double_int_fits_to_tree_p): Delete.
38266         (force_fit_type_double): Delete.
38267         (build_int_cstu): Replace with out-of-line function.
38268         (build_int_cst_wide): Delete.
38269         (tree_int_cst_lt): Define inline.
38270         (tree_int_cst_le): New.
38271         (tree_int_cst_compare): Define inline.
38272         (tree_int_cst_min_precision): Take a signop rather than a bool.
38273         (wi::int_traits <const_tree>): New.
38274         (wi::int_traits <tree>): New.
38275         (wi::extended_tree): New.
38276         (wi::int_traits <wi::extended_tree>): New.
38277         (wi::to_widest): New.
38278         (wi::to_offset): New.
38279         (wi::fits_to_tree_p): New.
38280         (wi::min_value): New.
38281         (wi::max_value): New.
38282         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
38283         (copy_tree_body_r): Likewise.
38284         * tree-object-size.c (compute_object_offset): Likewise.
38285         (addr_object_size): Likewise.
38286         * tree-predcom.c: Include wide-int-print.h.
38287         (struct dref_d): Change type of offset to widest_int.
38288         (dump_dref): Call wide-int printer.
38289         (aff_combination_dr_offset): Use wide-int interfaces.
38290         (determine_offset): Take a widest_int pointer rather than a
38291         double_int pointer.
38292         (split_data_refs_to_components): Use wide-int interfaces.
38293         (suitable_component_p): Likewise.
38294         (order_drefs): Likewise.
38295         (add_ref_to_chain): Likewise.
38296         (valid_initializer_p): Likewise.
38297         (determine_roots_comp): Likewise.
38298         * tree-pretty-print.c: Include wide-int-print.h.
38299         (dump_generic_node): Use wide-int interfaces.
38300         * tree-sra.c (sra_ipa_modify_expr): Likewise.
38301         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
38302         (move_fixed_address_to_symbol): Likewise.
38303         (move_hint_to_base): Likewise.
38304         (move_pointer_to_base): Likewise.
38305         (move_variant_to_index): Likewise.
38306         (most_expensive_mult_to_index): Likewise.
38307         (addr_to_parts): Likewise.
38308         (copy_ref_info): Likewise.
38309         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
38310         (indirect_refs_may_alias_p): Likewise.
38311         (stmt_kills_ref_p_1): Likewise.
38312         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
38313         * tree-ssa-ccp.c: Update comment at top of file.  Include
38314         wide-int-print.h.
38315         (struct prop_value_d): Change type of mask to widest_int.
38316         (extend_mask): New function.
38317         (dump_lattice_value): Use wide-int interfaces.
38318         (get_default_value): Likewise.
38319         (set_constant_value): Likewise.
38320         (set_value_varying): Likewise.
38321         (valid_lattice_transition): Likewise.
38322         (set_lattice_value): Likewise.
38323         (value_to_double_int): Delete.
38324         (value_to_wide_int): New.
38325         (get_value_from_alignment): Use wide-int interfaces.
38326         (get_value_for_expr): Likewise.
38327         (do_dbg_cnt): Likewise.
38328         (ccp_finalize): Likewise.
38329         (ccp_lattice_meet): Likewise.
38330         (bit_value_unop_1): Use widest_ints rather than double_ints.
38331         (bit_value_binop_1): Likewise.
38332         (bit_value_unop): Use wide-int interfaces.
38333         (bit_value_binop): Likewise.
38334         (bit_value_assume_aligned): Likewise.
38335         (evaluate_stmt): Likewise.
38336         (ccp_fold_stmt): Likewise.
38337         (visit_cond_stmt): Likewise.
38338         (ccp_visit_stmt): Likewise.
38339         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
38340         (constant_pointer_difference): Likewise.
38341         (associate_pointerplus): Likewise.
38342         (combine_conversions): Likewise.
38343         * tree-ssa-loop.h: Include wide-int.h.
38344         (struct tree_niter_desc): Change type of max to widest_int.
38345         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
38346         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
38347         (remove_redundant_iv_tests): Likewise.
38348         (canonicalize_loop_induction_variables): Likewise.
38349         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
38350         (constant_multiple_of): Take a widest_int pointer instead of
38351         a double_int pointer.
38352         (get_computation_aff): Use wide-int interfaces.
38353         (ptr_difference_cost): Likewise.
38354         (difference_cost): Likewise.
38355         (get_loop_invariant_expr_id): Likewise.
38356         (get_computation_cost_at): Likewise.
38357         (iv_elimination_compare_lt): Likewise.
38358         (may_eliminate_iv): Likewise.
38359         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
38360         instead of double_int.
38361         (max_loop_iterations): Likewise.
38362         (max_stmt_executions): Likewise.
38363         (estimated_stmt_executions): Likewise.
38364         * tree-ssa-loop-niter.c: Include wide-int-print.h.
38365         (split_to_var_and_offset): Use wide-int interfaces.
38366         (determine_value_range): Likewise.
38367         (bound_difference_of_offsetted_base): Likewise.
38368         (bounds_add): Take a widest_int instead of a double_int.
38369         (number_of_iterations_ne_max): Use wide-int interfaces.
38370         (number_of_iterations_ne): Likewise.
38371         (number_of_iterations_lt_to_ne): Likewise.
38372         (assert_loop_rolls_lt): Likewise.
38373         (number_of_iterations_lt): Likewise.
38374         (number_of_iterations_le): Likewise.
38375         (number_of_iterations_cond): Likewise.
38376         (number_of_iterations_exit): Likewise.
38377         (finite_loop_p): Likewise.
38378         (derive_constant_upper_bound_assign): Likewise.
38379         (derive_constant_upper_bound): Return a widest_int.
38380         (derive_constant_upper_bound_ops): Likewise.
38381         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
38382         (record_estimate): Take a widest_int rather than a double_int.
38383         (record_nonwrapping_iv): Use wide-int interfaces.
38384         (double_int_cmp): Delete.
38385         (wide_int_cmp): New.
38386         (bound_index): Take a widest_int rather than a double_int.
38387         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
38388         (maybe_lower_iteration_bound): Likewise.
38389         (estimate_numbers_of_iterations_loop): Likewise.
38390         (estimated_loop_iterations): Take a widest_int pointer than than
38391         a double_int pointer.
38392         (estimated_loop_iterations_int): Use wide-int interfaces.
38393         (max_loop_iterations): Take a widest_int pointer than than
38394         a double_int pointer.
38395         (max_loop_iterations_int): Use wide-int interfaces.
38396         (max_stmt_executions): Take a widest_int pointer than than
38397         a double_int pointer.
38398         (estimated_stmt_executions): Likewise.
38399         (n_of_executions_at_most): Use wide-int interfaces.
38400         (scev_probably_wraps_p): Likewise.
38401         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
38402         to real_to_integer.
38403         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
38404         interfaces.
38405         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
38406         double_ints.  Adjust for trailing_wide_ints <3> representation.
38407         (set_nonzero_bits): Likewise.
38408         (get_range_info): Return wide_ints rather than double_ints.
38409         Adjust for trailing_wide_ints <3> representation.
38410         (get_nonzero_bits): Likewise.
38411         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
38412         representation.
38413         * tree-ssanames.h (struct range_info_def): Replace min, max and
38414         nonzero_bits with a trailing_wide_ints <3>.
38415         (set_range_info): Use wide_int_refs rather than double_ints.
38416         (set_nonzero_bits): Likewise.
38417         (get_range_info): Return wide_ints rather than double_ints.
38418         (get_nonzero_bits): Likewise.
38419         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
38420         * tree-ssa-pre.c (phi_translate_1): Likewise.
38421         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
38422         (acceptable_pow_call): Likewise.
38423         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
38424         interfaces.
38425         (vn_reference_fold_indirect): Likewise.
38426         (vn_reference_maybe_forwprop_address): Likewise.
38427         (valueize_refs_1): Likewise.
38428         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
38429         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
38430         tree_int_cst_lt and tree_int_cst_le.
38431         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
38432         interfaces.
38433         (streamer_alloc_tree): Likewise.
38434         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
38435         (streamer_write_tree_header): Likewise.
38436         (streamer_write_integer_cst): Likewise.
38437         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
38438         (build_constructors): Likewise.
38439         (array_value_type): Likewise.
38440         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
38441         (vect_check_gather): Likewise.
38442         * tree-vect-generic.c (build_replicated_const): Likewise.
38443         (expand_vector_divmod): Likewise.
38444         * tree-vect-loop.c (vect_transform_loop): Likewise.
38445         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
38446         (vect_do_peeling_for_alignment): Likewise.
38447         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
38448         * tree-vrp.c: Include wide-int.h.
38449         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
38450         (extract_range_from_assert): Use wide-int interfaces.
38451         (vrp_int_const_binop): Likewise.
38452         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
38453         double_int pointers.
38454         (ranges_from_anti_range): Use wide-int interfaces.
38455         (quad_int_cmp): Delete.
38456         (quad_int_pair_sort): Likewise.
38457         (extract_range_from_binary_expr_1): Use wide-int interfaces.
38458         (extract_range_from_unary_expr_1): Likewise.
38459         (adjust_range_with_scev): Likewise.
38460         (masked_increment): Take and return wide_ints rather than double_ints.
38461         (register_edge_assert_for_2): Use wide-int interfaces.
38462         (check_array_ref): Likewise.
38463         (search_for_addr_array): Likewise.
38464         (maybe_set_nonzero_bits): Likewise.
38465         (union_ranges): Pass an integer of the correct type instead of
38466         using integer_one_node.
38467         (intersect_ranges): Likewise.
38468         (simplify_truth_ops_using_ranges): Likewise.
38469         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
38470         (range_fits_type_p): Likewise.
38471         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
38472         a bool.
38473         (simplify_conversion_using_ranges): Use wide-int interfaces.
38474         (simplify_float_conversion_using_ranges): Likewise.
38475         (vrp_finalize): Likewise.
38476         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
38477         (gimple_stringops_transform): Likewise.
38478         * varasm.c (decode_addr_const): Likewise.
38479         (const_hash_1): Likewise.
38480         (const_rtx_hash_1): Likewise
38481         (output_constant): Likewise.
38482         (array_size_for_constructor): Likewise.
38483         (output_constructor_regular_field): Likewise.
38484         (output_constructor_bitfield): Likewise.
38485         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
38486         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
38487         GENERATOR_FILEs.
38488         * gencheck.c: Define BITS_PER_UNIT.
38489         * wide-int.cc: New.
38490         * wide-int.h: New.
38491         * wide-int-print.cc: New.
38492         * wide-int-print.h: New.
38494 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
38496         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
38498 2014-05-06  Richard Biener  <rguenther@suse.de>
38500         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
38501         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
38502         (TODO_verify_all): Adjust.
38503         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
38504         TODO_verify_stmts and TODO_verify_rtl_sharing.
38505         * bb-reorder.c: Likewise.
38506         * cfgexpand.c: Likewise.
38507         * cprop.c: Likewise.
38508         * cse.c: Likewise.
38509         * function.c: Likewise.
38510         * fwprop.c: Likewise.
38511         * gcse.c: Likewise.
38512         * gimple-ssa-isolate-paths.c: Likewise.
38513         * gimple-ssa-strength-reduction.c: Likewise.
38514         * ipa-split.c: Likewise.
38515         * loop-init.c: Likewise.
38516         * loop-unroll.c: Likewise.
38517         * lower-subreg.c: Likewise.
38518         * modulo-sched.c: Likewise.
38519         * postreload-gcse.c: Likewise.
38520         * predict.c: Likewise.
38521         * recog.c: Likewise.
38522         * sched-rgn.c: Likewise.
38523         * store-motion.c: Likewise.
38524         * tracer.c: Likewise.
38525         * trans-mem.c: Likewise.
38526         * tree-call-cdce.c: Likewise.
38527         * tree-cfg.c: Likewise.
38528         * tree-cfgcleanup.c: Likewise.
38529         * tree-complex.c: Likewise.
38530         * tree-eh.c: Likewise.
38531         * tree-emutls.c: Likewise.
38532         * tree-if-conv.c: Likewise.
38533         * tree-into-ssa.c: Likewise.
38534         * tree-loop-distribution.c: Likewise.
38535         * tree-object-size.c: Likewise.
38536         * tree-parloops.c: Likewise.
38537         * tree-pass.h: Likewise.
38538         * tree-sra.c: Likewise.
38539         * tree-ssa-ccp.c: Likewise.
38540         * tree-ssa-copy.c: Likewise.
38541         * tree-ssa-copyrename.c: Likewise.
38542         * tree-ssa-dce.c: Likewise.
38543         * tree-ssa-dom.c: Likewise.
38544         * tree-ssa-dse.c: Likewise.
38545         * tree-ssa-forwprop.c: Likewise.
38546         * tree-ssa-ifcombine.c: Likewise.
38547         * tree-ssa-loop-ch.c: Likewise.
38548         * tree-ssa-loop-ivcanon.c: Likewise.
38549         * tree-ssa-loop.c: Likewise.
38550         * tree-ssa-math-opts.c: Likewise.
38551         * tree-ssa-phiopt.c: Likewise.
38552         * tree-ssa-phiprop.c: Likewise.
38553         * tree-ssa-pre.c: Likewise.
38554         * tree-ssa-reassoc.c: Likewise.
38555         * tree-ssa-sink.c: Likewise.
38556         * tree-ssa-strlen.c: Likewise.
38557         * tree-ssa-tail-merge.c: Likewise.
38558         * tree-ssa-uncprop.c: Likewise.
38559         * tree-switch-conversion.c: Likewise.
38560         * tree-tailcall.c: Likewise.
38561         * tree-vect-generic.c: Likewise.
38562         * tree-vectorizer.c: Likewise.
38563         * tree-vrp.c: Likewise.
38564         * tsan.c: Likewise.
38565         * var-tracking.c: Likewise.
38566         * bt-load.c: Likewise.
38567         * cfgcleanup.c: Likewise.
38568         * combine-stack-adj.c: Likewise.
38569         * combine.c: Likewise.
38570         * compare-elim.c: Likewise.
38571         * config/epiphany/resolve-sw-modes.c: Likewise.
38572         * config/i386/i386.c: Likewise.
38573         * config/mips/mips.c: Likewise.
38574         * config/s390/s390.c: Likewise.
38575         * config/sh/sh_treg_combine.cc: Likewise.
38576         * config/sparc/sparc.c: Likewise.
38577         * dce.c: Likewise.
38578         * dse.c: Likewise.
38579         * final.c: Likewise.
38580         * ifcvt.c: Likewise.
38581         * mode-switching.c: Likewise.
38582         * passes.c: Likewise.
38583         * postreload.c: Likewise.
38584         * ree.c: Likewise.
38585         * reg-stack.c: Likewise.
38586         * regcprop.c: Likewise.
38587         * regrename.c: Likewise.
38588         * web.c: Likewise.
38590 2014-05-06  Richard Biener  <rguenther@suse.de>
38592         PR middle-end/61070
38593         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
38594         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
38596 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
38598         PR ipa/60965
38599         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
38601 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
38602             Tom de Vries  <tom@codesourcery.com>
38604         * target.def (call_fusage_contains_non_callee_clobbers): New
38605         DEFHOOKPOD.
38606         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
38607         Hooks to @menu.
38608         (@node Miscellaneous Register Hooks): New node.
38609         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
38610         * doc/tm.texi: Regenerate.
38612 2014-05-05  Marek Polacek  <polacek@redhat.com>
38614         PR driver/61065
38615         * opts.c (common_handle_option): Call error_at instead of warning_at.
38617 2014-05-05  Richard Biener  <rguenther@suse.de>
38619         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
38620         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
38621         under the TODO_verify_il umbrella.
38623 2014-05-05  Richard Biener  <rguenther@suse.de>
38625         * passes.c (execute_function_todo): Move TODO_verify_flow under
38626         the TODO_verify_ul umbrella.
38628 2014-05-05  Richard Biener  <rguenther@suse.de>
38630         PR middle-end/61010
38631         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
38632         X & CST away from a CST that is the mask of a mode.
38634 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
38636         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
38637         int argument to enum machine_mode.
38638         (picochip_class_max_nregs): Ditto.
38639         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
38640         (picochip_class_max_nregs): Ditto.
38642 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38644         * target.def: Add new target hook.
38645         * doc/tm.texi: Regenerate.
38646         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
38647         * targhooks.c (default_keep_leaf_when_profiled): New function.
38649         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
38650         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
38652 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
38654         PR tree-optimization/60363
38655         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
38656         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
38657         (update_destination_phis): New parameter.
38658         (create_edge_and_update_destination_phis): Ditto.
38659         (ssa_fix_duplicate_block_edges): Pass new arguments.
38660         (thread_single_edge): Ditto.
38662 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
38664         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
38665         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
38666         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
38667         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
38668         Use RS6000_BTM_HARD_FLOAT.
38669         (BU_MISC_2): Likewise.
38670         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
38671         RS6000_BTM_HARD_FLOAT.
38672         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
38673         is explicitly used.
38674         (rs6000_invalid_builtin): Add hard floating builtin support.
38675         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
38676         hard float builtins.
38677         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
38679 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
38681         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
38682         Add missing function* argument.
38684 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
38686         * lra-constraints.c (valid_address_p): Move earlier in file.
38687         Add a constraint argument to the address_info version.
38688         (satisfies_memory_constraint_p): New function.
38689         (satisfies_address_constraint_p): Likewise.
38690         (process_alt_operands, curr_insn_transform): Use them.
38691         (process_address): Pass the constraint to valid_address_p when
38692         checking address operands.
38694 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
38696         * config/mips/mips.c (mips_isa_rev): New variable.
38697         (mips_set_architecture): Set it.
38698         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
38699         from mips_isa_rev.
38700         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
38701         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
38702         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
38703         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
38704         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
38705         conditions in terms of mips_isa_rev.
38706         (mips_isa_rev): Declare.
38708 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
38710         * config/sh/sh-mem.cc: Use tabs instead of spaces.
38711         (prob_unlikely, prob_likely): Make variables const.
38713 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
38715         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
38717 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
38719         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
38721 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
38723         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
38724         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
38725         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
38726         functions.
38727         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
38728         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
38729         sh_pass_in_reg_p.
38730         Replace usage of ROUND_REG with sh_round_reg.
38731         Use CEIL instead of ROUND_ADVANCE.
38733 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
38735         PR target/61026
38736         * config/sh/sh.c: Include stdlib headers before everything else.
38738 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
38740         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
38741         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
38742         (gimplify_adjust_omp_clauses): Simd region is never
38743         directly nested in combined parallel.  Instead, for linear
38744         with copyin/copyout, if in combined for simd loop, make decl
38745         firstprivate/lastprivate on OMP_FOR.
38746         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
38747         expand_omp_for_static_chunk): When setting endvar, also set
38748         fd->loop.v to the same value.
38750 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
38752         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
38754 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
38756         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
38757         expression.
38759 2014-05-02  Marek Polacek  <polacek@redhat.com>
38761         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
38763 2014-05-02  Kito Cheng  <kito@0xlab.org>
38765         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
38766         to a C expression marco.
38767         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
38768         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
38769         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
38770         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
38771         HONOR_REG_ALLOC_ORDER.
38772         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
38774 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
38776         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
38778 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
38780         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
38782 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
38784         * tree-if-conv.c (is_cond_scalar_reduction): New function.
38785         (convert_scalar_cond_reduction): Likewise.
38786         (predicate_scalar_phi): Add recognition and transformation
38787         of simple conditioanl reduction to be vectorizable.
38789 2014-05-01  Marek Polacek  <polacek@redhat.com>
38791         PR c/43245
38792         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
38794 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
38796         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
38797         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
38798         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
38799         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
38800         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
38801         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
38802         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
38803         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
38805 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
38807         * config/arc/arc.opt (mlra): Move comment above option name
38808         to avoid mis-parsing as language options.
38810 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38812         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
38813         * config/sol2.h: ... here.
38814         * config/sol2-10.h: Remove.
38816         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
38817         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
38818         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
38819         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
38820         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
38821         * config/sol2.h: ... here.
38822         (SECTION_NAME_FORMAT): Don't redefine.
38823         (STARTFILE_ARCH32_SPEC): Rename to ...
38824         (STARTFILE_ARCH_SPEC): ... this.
38825         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
38826         * config/sparc/sol2.h: ... here.
38827         (SECTION_NAME_FORMAT): Don't undef.
38828         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
38829         (SUBTARGET_EXTRA_SPECS): Remove.
38830         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
38832         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
38833         (MD_STARTFILE_PREFIX): Remove.
38834         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
38835         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
38836         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
38837         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
38838         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
38839         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
38840         * config/i386/sol2.h: ... here.
38841         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
38842         * config/i386/sol2-bi.h: Remove.
38843         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
38844         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
38846         * config/i386/t-sol2-64: Rename to ...
38847         * config/i386/t-sol2: ... this.
38848         * config/sparc/t-sol2-64: Rename to ...
38849         * config/sparc/t-sol2: ... this.
38851         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
38852         sol2_tm_file_head, sol2_tm_file_tail.
38853         Include ${cpu_type}/sol2.h before sol2.h.
38854         Remove sol2-10.h.
38855         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
38856         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
38857         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
38858         Reflect i386/t-sol2-64 renaming.
38859         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
38860         Reflect sparc/t-sol2-64 renaming.
38862 2014-04-30  Richard Biener  <rguenther@suse.de>
38864         * passes.c (execute_function_todo): Move TODO_verify_stmts
38865         and TODO_verify_ssa under the TODO_verify_il umbrella.
38866         * tree-ssa.h (verify_ssa): Adjust prototype.
38867         * tree-ssa.c (verify_ssa): Add parameter to tell whether
38868         we should verify SSA operands.
38869         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
38870         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
38871         whether we should verify whether not throwing stmts have EH info.
38872         * graphite-scop-detection.c (create_sese_edges): Adjust.
38873         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
38874         * tree-eh.c (lower_try_finally_switch): Do not add the
38875         default case label twice.
38877 2014-04-30  Marek Polacek  <polacek@redhat.com>
38879         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
38880         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
38881         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
38882         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
38884 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
38886         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
38887         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
38888         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
38889         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
38890         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
38891         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
38892         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
38893         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
38895 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
38897         * tree-cfg.c (dump_function_to_file): Dump the return type of
38898         functions, in a line to itself before the function body, mimicking
38899         the layout of a C function.
38901 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
38903         PR tree-optimization/60971
38904         * tree-tailcall.c (process_assignment): Reject conversions which
38905         reduce precision.
38907 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
38909         * calls.c (initialize_argument_information): Always treat
38910         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
38911         (expand_call): Likewise.
38912         (emit_library_call_calue_1): Likewise.
38913         * expr.c (PUSH_ARGS_REVERSED): Do not define.
38914         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
38915         code accordingly.
38917 2014-04-29  Nick Clifton  <nickc@redhat.com>
38919         * config/msp430/msp430.md (umulsidi): Fix typo.
38920         (mulhisi3): Enable even inside interrupt handlers.
38921         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
38922         bigger return address pushed in large mode.
38924 2014-04-29  Nick Clifton  <nickc@redhat.com>
38926         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
38927         (arc_init_reg_tables): Use a machine_mode enum to iterate over
38928         available modes.
38929         * config/m32r/m32r.c (init_reg_tables): Likewise.
38930         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
38931         enum to hold the modes.
38933 2014-04-29  Richard Biener  <rguenther@suse.de>
38935         * dominance.c (free_dominance_info): Add overload with
38936         function parameter.
38937         (dom_info_state): Likewise.
38938         (dom_info_available_p): Likewise.
38939         * basic-block.h (free_dominance_info, dom_info_state,
38940         dom_info_available_p): Declare overloads.
38941         * passes.c (execute_function_todo): Verify that verifiers
38942         don't change dominator info state.  Drop dominator info
38943         for IPA pass invocations.
38944         * cgraph.c (release_function_body): Restore asserts that
38945         dominator information is released.
38947 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
38949         * doc/invoke.texi: Fix typo.
38950         * tree-vrp.c: Fix typos.
38951         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
38953 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
38955         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
38957 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
38959         * config/aarch64/aarch64-builtins.c
38960         (aarch64_types_storestruct_lane_qualifiers): New.
38961         (TYPES_STORESTRUCT_LANE): Likewise.
38962         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
38963         (st3_lane): Likewise.
38964         (st4_lane): Likewise.
38965         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
38966         (vec_store_lanesci_lane<mode>): Likewise.
38967         (vec_store_lanesxi_lane<mode>): Likewise.
38968         (aarch64_st2_lane<VQ:mode>): Likewise.
38969         (aarch64_st3_lane<VQ:mode>): Likewise.
38970         (aarch64_st4_lane<VQ:mode>): Likewise.
38971         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
38972         * config/aarch64/arm_neon.h
38973         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
38974         use new macro arguments.
38975         (__ST3_LANE_FUNC): Likewise.
38976         (__ST4_LANE_FUNC): Likewise.
38977         * config/aarch64/iterators.md (V_TWO_ELEM): New.
38978         (V_THREE_ELEM): Likewise.
38979         (V_FOUR_ELEM): Likewise.
38981 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
38983         * doc/gimple.texi: Replace the description of the now-defunct
38984         union gimple_statement_d with a diagram showing the
38985         gimple_statement_base class hierarchy and its relationships to
38986         the GSS_ and GIMPLE_ enums.
38988 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
38990         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
38991         * config/aarch64/aarch64.c
38992         (aarch64_cannot_change_mode_class): Weaken conditions.
38993         (aarch64_modes_tieable_p): New.
38994         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
38996 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
38998         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
38999         (loadsync_<mode>): Change mode.
39000         (load_quadpti, store_quadpti): New.
39001         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
39002         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
39004 2014-04-28  Martin Jambor  <mjambor@suse.cz>
39006         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
39007         same alias type as the original statement.
39008         (subreplacement_assignment_data): New type.
39009         (handle_unscalarized_data_in_subtree): New type of parameter,
39010         generate new memory accesses with same alias type as the original
39011         statement.
39012         (load_assign_lhs_subreplacements): Likewise.
39013         (sra_modify_constructor_assign): Generate new memory accesses with
39014         same alias type as the original statement.
39016 2014-04-28  Richard Biener  <rguenther@suse.de>
39018         * tree-pass.h (TODO_verify_il): Define.
39019         (TODO_verify_all): Complete properly.
39020         * passes.c (execute_function_todo): Move existing loop-closed
39021         SSA verification under TODO_verify_il.
39022         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
39023         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
39024         Fix tree sharing issue.
39026 2014-04-28  Richard Biener  <rguenther@suse.de>
39028         PR middle-end/60092
39029         * builtins.def (DEF_C11_BUILTIN): Add.
39030         (BUILT_IN_ALIGNED_ALLOC): Likewise.
39031         * coretypes.h (enum function_class): Add function_c11_misc.
39032         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
39033         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
39034         (call_may_clobber_ref_p_1): Likewise.
39035         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
39036         (mark_all_reaching_defs_necessary_1): Likewise.
39037         (propagate_necessity): Likewise.
39038         (eliminate_unnecessary_stmts): Likewise.
39039         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
39041 2014-04-28  Richard Biener  <rguenther@suse.de>
39043         * tree-vrp.c (vrp_var_may_overflow): Remove.
39044         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
39045         with overflow immediately bump to one before that value and
39046         let iteration figure out overflow status.
39048 2014-04-28  Richard Biener  <rguenther@suse.de>
39050         * configure.ac: Do valgrind header checks unconditionally.
39051         Add --enable-valgrind-annotations.
39052         * system.h: Guard valgrind header inclusion with
39053         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
39054         * alloc-pool.c (pool_alloc, pool_free): Use
39055         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
39056         to guard possibly dead code.
39057         * config.in: Regenerated.
39058         * configure: Likewise.
39060 2014-04-28  Jeff Law  <law@redhat.com>
39062         PR tree-optimization/60902
39063         * tree-ssa-threadedge.c
39064         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
39065         over real defs when invalidating outputs from statements that do not
39066         produce useful outputs for threading.
39068 2014-04-28  Richard Biener  <rguenther@suse.de>
39070         PR tree-optimization/60979
39071         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
39072         SCOPs that end in a block with a successor with abnormal
39073         predecessors.
39075 2014-04-28  Richard Biener  <rguenther@suse.de>
39077         * tree-pass.h (execute_pass_list): Adjust prototype.
39078         * passes.c (pass_manager::execute_early_local_passes): Adjust.
39079         (do_per_function): Change callback signature, push all actual
39080         work to the callbals.
39081         (do_per_function_toporder): Likewise.
39082         (execute_function_dump): Adjust.
39083         (execute_function_todo): Likewise.
39084         (clear_last_verified): Likewise.
39085         (verify_curr_properties): Likewise.
39086         (update_properties_after_pass): Likewise.
39087         (execute_pass_list_1): Split out from ...
39088         (execute_pass_list): ... here.  Adjust.
39089         (execute_ipa_pass_list): Likewise.
39090         * cgraphunit.c (cgraph_add_new_function): Adjust.
39091         (analyze_function): Likewise.
39092         (expand_function): Likewise.
39093         * cgraph.c (release_function_body): Free dominance info
39094         here instead of asserting it was magically freed elsewhere.
39096 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
39098         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
39099         * configure: Regenerate.
39100         * config/sparc/sparc.opt (muser-mode): New option.
39101         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
39102         for LEON3.
39103         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
39104         * doc/invoke.texi (SPARC options): Document -muser-mode.
39106 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
39108         * cselib.c (find_slot_memmode): Delete.
39109         (cselib_hasher): Change compare_type to a struct.
39110         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
39111         constants.
39112         (preserve_constants_and_equivs): Adjust for new compare_type.
39113         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
39114         (wrap_constant): Delete.
39115         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
39117 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
39119         * doc/install.texi (Building with profile feedback): Remove
39120         outdated sentence.
39122 2014-04-26  Tom de Vries  <tom@codesourcery.com>
39124         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
39125         array accesses.
39127 2014-04-25  Cary Coutant  <ccoutant@google.com>
39129         PR debug/60929
39130         * dwarf2out.c (should_move_die_to_comdat): A type definition
39131         can contain a subprogram definition, but don't move it to a
39132         comdat unit.
39133         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
39134         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
39135         from original DIE.
39136         (clone_tree_hash): Rename to...
39137         (clone_tree_partial): ...this; change callers.  Copy
39138         DW_TAG_subprogram DIEs as declarations.
39139         (copy_decls_walk): Don't copy children of a declaration into a
39140         type unit.
39142 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
39144         PR target/60969
39145         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
39146         alternative 12.
39148 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
39150         * config/arm/predicates.md (call_insn_operand): Add long_call check.
39151         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
39152         reg for long_call.
39153         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
39154         restriction.
39156 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39158         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
39160 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
39162         PR tree-optimization/60930
39163         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
39164         creating a multiply candidate by folding two constant
39165         multiplicands when the result overflows.
39167 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
39169         PR tree-optimization/60960
39170         * tree-vect-generic.c (expand_vector_operation): Only call
39171         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
39173 2014-04-25  Tom de Vries  <tom@codesourcery.com>
39175         * expr.c (clobber_reg_mode): New function.
39176         * expr.h (clobber_reg): New function.
39178 2014-04-25  Tom de Vries  <tom@codesourcery.com>
39180         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
39181         clobbers.
39183 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
39184             Tom de Vries  <tom@codesourcery.com>
39186         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
39187         handle.
39188         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
39189         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
39190         new argument to find_all_hard_reg_sets call.
39192 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39194         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
39195         Use HOST_WIDE_INT_C for mask literal.
39196         (aarch_rev16_shleft_mask_imm_p): Likewise.
39198 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
39200         PR target/60941
39201         * config/sparc/sparc.md (ashlsi3_extend): Delete.
39203 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
39205         PR preprocessor/56540
39206         * config/i386/i386-c.c (ix86_target_macros): Define
39207         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
39209 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39211         * configure.ac (tga_func): Remove.
39212         (LIB_TLS_SPEC): Remove.
39213         * configure: Regenerate.
39214         * config.in: Regenerate.
39215         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
39217 2014-04-25  Richard Biener  <rguenther@suse.de>
39219         PR ipa/60912
39220         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
39221         call stmt use/clobber sets during stmt walk instead of
39222         walking the possibly incomplete set of caller edges.
39224 2014-04-25  Richard Biener  <rguenther@suse.de>
39226         PR ipa/60911
39227         * passes.c (apply_ipa_transforms): Inline into only caller ...
39228         (execute_one_pass): ... here.  Properly bring in function
39229         bodies for nodes we want to apply IPA transforms to.
39231 2014-04-24  Cong Hou  <congh@google.com>
39233         PR tree-optimization/60896
39234         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
39235         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
39236         (vect_mark_pattern_stmts): Set the def type of all statements in
39237         PATTERN_DEF_SEQ as vect_internal_def.
39239 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
39241         * doc/extend.texi (PowerPC Built-in Functions): Document new
39242         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
39243         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
39245         * config/rs6000/predicates.md (const_0_to_3_operand): New
39246         predicate to match 0..3 integer constants.
39248         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
39249         to support adding miscellaneous builtin functions.
39250         (BU_DFP_MISC_2): Likewise.
39251         (BU_P7_MISC_1): Likewise.
39252         (BU_P7_MISC_2): Likewise.
39253         (BU_P8V_MISC_3): Likewise.
39254         (BU_MISC_1): Likewise.
39255         (BU_MISC_2): Likewise.
39256         (DIVWE): Add extended divide builtin functions.
39257         (DIVWEO): Likewise.
39258         (DIVWEU): Likewise.
39259         (DIVWEUO): Likewise.
39260         (DIVDE): Likewise.
39261         (DIVDEO): Likewise.
39262         (DIVDEU): Likewise.
39263         (DIVDEUO): Likewise.
39264         (DXEX): Add decimal floating-point builtin functions.
39265         (DXEXQ): Likewise.
39266         (DDEDPD): Likewise.
39267         (DDEDPDQ): Likewise.
39268         (DENBCD): Likewise.
39269         (DENBCDQ): Likewise.
39270         (DIEX): Likewise.
39271         (DIEXQ): Likewise.
39272         (DSCLI): Likewise.
39273         (DSCLIQ): Likewise.
39274         (DSCRI): Likewise.
39275         (DSCRIQ): Likewise.
39276         (CDTBCD): Add new BCD builtin functions.
39277         (CBCDTD): Likewise.
39278         (ADDG6S): Likewise.
39279         (BCDADD): Likewise.
39280         (BCDADD_LT): Likewise.
39281         (BCDADD_EQ): Likewise.
39282         (BCDADD_GT): Likewise.
39283         (BCDADD_OV): Likewise.
39284         (BCDSUB): Likewise.
39285         (BCDSUB_LT): Likewise.
39286         (BCDSUB_EQ): Likewise.
39287         (BCDSUB_GT): Likewise.
39288         (BCDSUB_OV): Likewise.
39289         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
39290         (UNPACK_TD): Likewise.
39291         (PACK_TF): Likewise.
39292         (UNPACK_TF): Likewise.
39293         (UNPACK_TF_0): Likewise.
39294         (UNPACK_TF_1): Likewise.
39295         (PACK_V1TI): Likewise.
39296         (UNPACK_V1TI): Likewise.
39298         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
39299         support for decimal floating point builtin functions.
39300         (rs6000_expand_ternop_builtin): Add checks for the new builtin
39301         functions that take constant arguments.
39302         (rs6000_invalid_builtin): Add decimal floating point builtin support.
39303         (rs6000_init_builtins): Setup long double, _Decimal64, and
39304         _Decimal128 types for new builtin functions.
39305         (builtin_function_type): Set the unsigned flags appropriately for
39306         the new builtin functions.
39307         (rs6000_opt_masks): Add support for decimal floating point builtin
39308         functions.
39310         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
39311         floating point builtin functions.
39312         (RS6000_BTM_COMMON): Likewise.
39313         (RS6000_BTI_long_double): Likewise.
39314         (RS6000_BTI_dfloat64): Likewise.
39315         (RS6000_BTI_dfloat128): Likewise.
39316         (long_double_type_internal_node): Likewise.
39317         (dfloat64_type_internal_node): Likewise.
39318         (dfloat128_type_internal_node): Likewise.
39320         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
39321         2.07 bcd arithmetic instructions.
39322         (UNSPEC_BCDSUB): Likewise.
39323         (UNSPEC_BCD_OVERFLOW): Likewise.
39324         (UNSPEC_BCD_ADD_SUB): Likewise.
39325         (bcd_add_sub): Likewise.
39326         (BCD_TEST): Likewise.
39327         (bcd<bcd_add_sub>): Likewise.
39328         (bcd<bcd_add_sub>_test): Likewise.
39329         (bcd<bcd_add_sub>_test2): Likewise.
39330         (bcd<bcd_add_sub>_<code>): Likewise.
39331         (peephole2 for combined bcd ops): Likewise.
39333         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
39334         decimal floating point builtin functions.
39335         (UNSPEC_DENBCD): Likewise.
39336         (UNSPEC_DXEX): Likewise.
39337         (UNSPEC_DIEX): Likewise.
39338         (UNSPEC_DSCLI): Likewise.
39339         (UNSPEC_DSCRI): Likewise.
39340         (D64_D128): Likewise.
39341         (dfp_suffix): Likewise.
39342         (dfp_ddedpd_<mode>): Likewise.
39343         (dfp_denbcd_<mode>): Likewise.
39344         (dfp_dxex_<mode>): Likewise.
39345         (dfp_diex_<mode>): Likewise.
39346         (dfp_dscli_<mode>): Likewise.
39347         (dfp_dscri_<mode>): Likewise.
39349         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
39350         builtin functions.
39351         (UNSPEC_CDTBCD): Likewise.
39352         (UNSPEC_CBCDTD): Likewise.
39353         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
39354         (UNSPEC_DIVEO): Likewise.
39355         (UNSPEC_DIVEU): Likewise.
39356         (UNSPEC_DIVEUO): Likewise.
39357         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
39358         pack/unpack 128-bit types.
39359         (UNSPEC_PACK_128BIT): Likewise.
39360         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
39361         (udiv<mode>3): Use idiv_ldiv mode attribute.
39362         (div<mode>3): Likewise.
39363         (addg6s): Add new BCD builtin functions.
39364         (cdtbcd): Likewise.
39365         (cbcdtd): Likewise.
39366         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
39367         (div_extend): Likewise.
39368         (div<div_extend>_<mode>"): Likewise.
39369         (FP128_64): Add support for new builtin functions to pack/unpack
39370         128-bit types.
39371         (unpack<mode>): Likewise.
39372         (unpacktf_0): Likewise.
39373         (unpacktf_1): Likewise.
39374         (unpack<mode>_dm): Likewise.
39375         (unpack<mode>_nodm): Likewise.
39376         (pack<mode>): Likewise.
39377         (unpackv1ti): Likewise.
39378         (packv1ti): Likewise.
39380 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
39382         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
39383         is disabled.
39385 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
39387         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
39388         * gimplify.c (omp_is_private): Change last argument's type to int.
39389         Only diagnose lastprivate if the simd argument is 1, only diagnose
39390         linear if the simd argument is 2.
39391         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
39392         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
39393         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
39394         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
39395         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
39396         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
39397         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
39398         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
39399         * tree-nested.c (convert_nonlocal_omp_clauses,
39400         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
39402 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
39404         PR target/60822
39405         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
39406         operand 1.
39408 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
39410         * flag-types.h (enum ivar_visibility): Add.
39412 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
39414         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
39415         function * argument.
39417 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
39419         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
39421 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
39422             Tom de Vries  <tom@codesourcery.com>
39424         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
39425         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
39426         reg-note.
39427         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
39428         * emit-rtl.c (try_split): Same.
39430 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
39431             Tom de Vries  <tom@codesourcery.com>
39433         * common.opt (fuse-caller-save): New option.
39435 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
39437         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
39438         elements for big-endian.
39440 2014-04-24  Richard Biener  <rguenther@suse.de>
39442         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
39443         during TER and instead use the sepops interface for expanding
39444         non-GIMPLE_SINGLE_RHS.
39446 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39448         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
39449         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
39451 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39453         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
39454         assembler 64-bit option.
39455         * configure: Regenerate.
39457 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39459         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
39460         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
39461         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
39462         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
39463         (TARGET_CRYPTO): Take TARGET_SIMD into account.
39465 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39467         * config/aarch64/aarch64-builtins.c
39468         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
39469         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
39470         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
39471         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
39472         builtins.
39473         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
39474         (Vrevsuff): New mode attribute.
39476 2014-04-24  Terry Guo  <terry.guo@arm.com>
39478         * config/arm/arm.h (machine_function): Define variable
39479         after_arm_reorg here.
39480         * config/arm/arm.c (after_arm_reorg): Remove the definition.
39481         (arm_split_constant): Update the way to access variable
39482         after_arm_reorg.
39483         (arm_reorg): Ditto.
39484         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
39486 2014-04-23  Tom de Vries  <tom@codesourcery.com>
39488         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
39490 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
39492         * is-a.h: Update comments to reflect the following changes to the
39493         "pointerness" of the API, making the template parameter match the
39494         return type, allowing use of is-a.h with typedefs of pointers.
39495         (is_a_helper::cast): Return a T rather then a pointer to a T, so
39496         that the return type matches the parameter to the is_a_helper.
39497         (as_a): Likewise.
39498         (dyn_cast): Likewise.
39500         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
39501         pointer from the is-a.h API.
39503         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
39504         (is_a_helper <cgraph_node *>::test): ...this, matching change to
39505         is-a.h API.
39506         (is_a_helper <varpool_node>::test): Likewise, convert to...
39507         (is_a_helper <varpool_node *>::test): ...this.
39509         (varpool_first_variable): Update for removal of implicit pointer
39510         from the is-a.h API.
39511         (varpool_next_variable): Likewise.
39512         (varpool_first_static_initializer): Likewise.
39513         (varpool_next_static_initializer): Likewise.
39514         (varpool_first_defined_variable): Likewise.
39515         (varpool_next_defined_variable): Likewise.
39516         (cgraph_first_defined_function): Likewise.
39517         (cgraph_next_defined_function): Likewise.
39518         (cgraph_first_function): Likewise.
39519         (cgraph_next_function): Likewise.
39520         (cgraph_first_function_with_gimple_body): Likewise.
39521         (cgraph_next_function_with_gimple_body): Likewise.
39522         (cgraph_alias_target): Likewise.
39523         (varpool_alias_target): Likewise.
39524         (cgraph_function_or_thunk_node): Likewise.
39525         (varpool_variable_node): Likewise.
39526         (symtab_real_symbol_p): Likewise.
39527         * cgraphunit.c (referred_to_p): Likewise.
39528         (analyze_functions): Likewise.
39529         (handle_alias_pairs): Likewise.
39530         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
39531         * gimple-ssa.h (gimple_vuse_op): Likewise.
39532         (gimple_vdef_op): Likewise.
39533         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
39534         * gimple.c (gimple_build_asm_1): Likewise.
39535         (gimple_build_try): Likewise.
39536         (gimple_build_resx): Likewise.
39537         (gimple_build_eh_dispatch): Likewise.
39538         (gimple_build_omp_for): Likewise.
39539         (gimple_omp_for_set_clauses): Likewise.
39541         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
39542         (is_a_helper <gimple_statement_asm *>::test): ...this.
39543         (is_a_helper <gimple_statement_bind>::test): Convert to...
39544         (is_a_helper <gimple_statement_bind *>::test): ...this.
39545         (is_a_helper <gimple_statement_call>::test): Convert to...
39546         (is_a_helper <gimple_statement_call *>::test): ...this.
39547         (is_a_helper <gimple_statement_catch>::test): Convert to...
39548         (is_a_helper <gimple_statement_catch *>::test): ...this.
39549         (is_a_helper <gimple_statement_resx>::test): Convert to...
39550         (is_a_helper <gimple_statement_resx *>::test): ...this.
39551         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
39552         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
39553         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
39554         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
39555         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
39556         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
39557         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
39558         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
39559         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
39560         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
39561         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
39562         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
39563         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
39564         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
39565         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
39566         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
39567         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
39568         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
39569         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
39570         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
39571         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
39572         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
39573         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
39574         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
39575         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
39576         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
39577         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
39578         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
39579         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
39580         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
39581         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
39582         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
39583         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
39584         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
39585         (is_a_helper <gimple_statement_phi>::test): Convert to...
39586         (is_a_helper <gimple_statement_phi *>::test): ...this.
39587         (is_a_helper <gimple_statement_transaction>::test): Convert to...
39588         (is_a_helper <gimple_statement_transaction *>::test): ...this.
39589         (is_a_helper <gimple_statement_try>::test): Convert to...
39590         (is_a_helper <gimple_statement_try *>::test): ...this.
39591         (is_a_helper <gimple_statement_wce>::test): Convert to...
39592         (is_a_helper <gimple_statement_wce *>::test): ...this.
39593         (is_a_helper <const gimple_statement_asm>::test): Convert to...
39594         (is_a_helper <const gimple_statement_asm *>::test): ...this.
39595         (is_a_helper <const gimple_statement_bind>::test): Convert to...
39596         (is_a_helper <const gimple_statement_bind *>::test): ...this.
39597         (is_a_helper <const gimple_statement_call>::test): Convert to...
39598         (is_a_helper <const gimple_statement_call *>::test): ...this.
39599         (is_a_helper <const gimple_statement_catch>::test): Convert to...
39600         (is_a_helper <const gimple_statement_catch *>::test): ...this.
39601         (is_a_helper <const gimple_statement_resx>::test): Convert to...
39602         (is_a_helper <const gimple_statement_resx *>::test): ...this.
39603         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
39604         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
39605         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
39606         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
39607         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
39608         Convert to...
39609         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
39610         ...this.
39611         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
39612         Convert to...
39613         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
39614         ...this.
39615         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
39616         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
39617         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
39618         to...
39619         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
39620         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
39621         to...
39622         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
39623         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
39624         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
39625         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
39626         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
39627         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
39628         to...
39629         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
39630         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
39631         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
39632         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
39633         to...
39634         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
39635         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
39636         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
39637         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
39638         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
39639         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
39640         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
39641         (is_a_helper <const gimple_statement_phi>::test): Convert to...
39642         (is_a_helper <const gimple_statement_phi *>::test): ...this.
39643         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
39644         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
39645         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
39646         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
39647         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
39648         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
39649         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
39650         to...
39651         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
39652         ...this.
39653         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
39654         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
39656         (gimple_use_ops): Update for removal of implicit pointer from the
39657         is-a.h API.
39658         (gimple_set_use_ops): Likewise.
39659         (gimple_vuse): Likewise.
39660         (gimple_vdef): Likewise.
39661         (gimple_vuse_ptr): Likewise.
39662         (gimple_vdef_ptr): Likewise.
39663         (gimple_set_vuse): Likewise.
39664         (gimple_set_vdef): Likewise.
39665         (gimple_omp_return_set_lhs): Likewise.
39666         (gimple_omp_return_lhs): Likewise.
39667         (gimple_omp_return_lhs_ptr): Likewise.
39668         (gimple_call_fntype): Likewise.
39669         (gimple_call_set_fntype): Likewise.
39670         (gimple_call_set_internal_fn): Likewise.
39671         (gimple_call_use_set): Likewise.
39672         (gimple_call_clobber_set): Likewise.
39673         (gimple_bind_vars): Likewise.
39674         (gimple_bind_set_vars): Likewise.
39675         (gimple_bind_body_ptr): Likewise.
39676         (gimple_bind_set_body): Likewise.
39677         (gimple_bind_add_stmt): Likewise.
39678         (gimple_bind_block): Likewise.
39679         (gimple_bind_set_block): Likewise.
39680         (gimple_asm_ninputs): Likewise.
39681         (gimple_asm_noutputs): Likewise.
39682         (gimple_asm_nclobbers): Likewise.
39683         (gimple_asm_nlabels): Likewise.
39684         (gimple_asm_input_op): Likewise.
39685         (gimple_asm_input_op_ptr): Likewise.
39686         (gimple_asm_output_op): Likewise.
39687         (gimple_asm_output_op_ptr): Likewise.
39688         (gimple_asm_set_output_op): Likewise.
39689         (gimple_asm_clobber_op): Likewise.
39690         (gimple_asm_set_clobber_op): Likewise.
39691         (gimple_asm_label_op): Likewise.
39692         (gimple_asm_set_label_op): Likewise.
39693         (gimple_asm_string): Likewise.
39694         (gimple_catch_types): Likewise.
39695         (gimple_catch_types_ptr): Likewise.
39696         (gimple_catch_handler_ptr): Likewise.
39697         (gimple_catch_set_types): Likewise.
39698         (gimple_catch_set_handler): Likewise.
39699         (gimple_eh_filter_types): Likewise.
39700         (gimple_eh_filter_types_ptr): Likewise.
39701         (gimple_eh_filter_failure_ptr): Likewise.
39702         (gimple_eh_filter_set_types): Likewise.
39703         (gimple_eh_filter_set_failure): Likewise.
39704         (gimple_eh_must_not_throw_fndecl): Likewise.
39705         (gimple_eh_must_not_throw_set_fndecl): Likewise.
39706         (gimple_eh_else_n_body_ptr): Likewise.
39707         (gimple_eh_else_e_body_ptr): Likewise.
39708         (gimple_eh_else_set_n_body): Likewise.
39709         (gimple_eh_else_set_e_body): Likewise.
39710         (gimple_try_eval_ptr): Likewise.
39711         (gimple_try_cleanup_ptr): Likewise.
39712         (gimple_try_set_eval): Likewise.
39713         (gimple_try_set_cleanup): Likewise.
39714         (gimple_wce_cleanup_ptr): Likewise.
39715         (gimple_wce_set_cleanup): Likewise.
39716         (gimple_phi_capacity): Likewise.
39717         (gimple_phi_num_args): Likewise.
39718         (gimple_phi_result): Likewise.
39719         (gimple_phi_result_ptr): Likewise.
39720         (gimple_phi_set_result): Likewise.
39721         (gimple_phi_arg): Likewise.
39722         (gimple_phi_set_arg): Likewise.
39723         (gimple_resx_region): Likewise.
39724         (gimple_resx_set_region): Likewise.
39725         (gimple_eh_dispatch_region): Likewise.
39726         (gimple_eh_dispatch_set_region): Likewise.
39727         (gimple_omp_critical_name): Likewise.
39728         (gimple_omp_critical_name_ptr): Likewise.
39729         (gimple_omp_critical_set_name): Likewise.
39730         (gimple_omp_for_clauses): Likewise.
39731         (gimple_omp_for_clauses_ptr): Likewise.
39732         (gimple_omp_for_set_clauses): Likewise.
39733         (gimple_omp_for_collapse): Likewise.
39734         (gimple_omp_for_index): Likewise.
39735         (gimple_omp_for_index_ptr): Likewise.
39736         (gimple_omp_for_set_index): Likewise.
39737         (gimple_omp_for_initial): Likewise.
39738         (gimple_omp_for_initial_ptr): Likewise.
39739         (gimple_omp_for_set_initial): Likewise.
39740         (gimple_omp_for_final): Likewise.
39741         (gimple_omp_for_final_ptr): Likewise.
39742         (gimple_omp_for_set_final): Likewise.
39743         (gimple_omp_for_incr): Likewise.
39744         (gimple_omp_for_incr_ptr): Likewise.
39745         (gimple_omp_for_set_incr): Likewise.
39746         (gimple_omp_for_pre_body_ptr): Likewise.
39747         (gimple_omp_for_set_pre_body): Likewise.
39748         (gimple_omp_parallel_clauses): Likewise.
39749         (gimple_omp_parallel_clauses_ptr): Likewise.
39750         (gimple_omp_parallel_set_clauses): Likewise.
39751         (gimple_omp_parallel_child_fn): Likewise.
39752         (gimple_omp_parallel_child_fn_ptr): Likewise.
39753         (gimple_omp_parallel_set_child_fn): Likewise.
39754         (gimple_omp_parallel_data_arg): Likewise.
39755         (gimple_omp_parallel_data_arg_ptr): Likewise.
39756         (gimple_omp_parallel_set_data_arg): Likewise.
39757         (gimple_omp_task_clauses): Likewise.
39758         (gimple_omp_task_clauses_ptr): Likewise.
39759         (gimple_omp_task_set_clauses): Likewise.
39760         (gimple_omp_task_child_fn): Likewise.
39761         (gimple_omp_task_child_fn_ptr): Likewise.
39762         (gimple_omp_task_set_child_fn): Likewise.
39763         (gimple_omp_task_data_arg): Likewise.
39764         (gimple_omp_task_data_arg_ptr): Likewise.
39765         (gimple_omp_task_set_data_arg): Likewise.
39766         (gimple_omp_taskreg_clauses): Likewise.
39767         (gimple_omp_taskreg_clauses_ptr): Likewise.
39768         (gimple_omp_taskreg_set_clauses): Likewise.
39769         (gimple_omp_taskreg_child_fn): Likewise.
39770         (gimple_omp_taskreg_child_fn_ptr): Likewise.
39771         (gimple_omp_taskreg_set_child_fn): Likewise.
39772         (gimple_omp_taskreg_data_arg): Likewise.
39773         (gimple_omp_taskreg_data_arg_ptr): Likewise.
39774         (gimple_omp_taskreg_set_data_arg): Likewise.
39775         (gimple_omp_task_copy_fn): Likewise.
39776         (gimple_omp_task_copy_fn_ptr): Likewise.
39777         (gimple_omp_task_set_copy_fn): Likewise.
39778         (gimple_omp_task_arg_size): Likewise.
39779         (gimple_omp_task_arg_size_ptr): Likewise.
39780         (gimple_omp_task_set_arg_size): Likewise.
39781         (gimple_omp_task_arg_align): Likewise.
39782         (gimple_omp_task_arg_align_ptr): Likewise.
39783         (gimple_omp_task_set_arg_align): Likewise.
39784         (gimple_omp_single_clauses): Likewise.
39785         (gimple_omp_single_clauses_ptr): Likewise.
39786         (gimple_omp_single_set_clauses): Likewise.
39787         (gimple_omp_target_clauses): Likewise.
39788         (gimple_omp_target_clauses_ptr): Likewise.
39789         (gimple_omp_target_set_clauses): Likewise.
39790         (gimple_omp_target_child_fn): Likewise.
39791         (gimple_omp_target_child_fn_ptr): Likewise.
39792         (gimple_omp_target_set_child_fn): Likewise.
39793         (gimple_omp_target_data_arg): Likewise.
39794         (gimple_omp_target_data_arg_ptr): Likewise.
39795         (gimple_omp_target_set_data_arg): Likewise.
39796         (gimple_omp_teams_clauses): Likewise.
39797         (gimple_omp_teams_clauses_ptr): Likewise.
39798         (gimple_omp_teams_set_clauses): Likewise.
39799         (gimple_omp_sections_clauses): Likewise.
39800         (gimple_omp_sections_clauses_ptr): Likewise.
39801         (gimple_omp_sections_set_clauses): Likewise.
39802         (gimple_omp_sections_control): Likewise.
39803         (gimple_omp_sections_control_ptr): Likewise.
39804         (gimple_omp_sections_set_control): Likewise.
39805         (gimple_omp_for_set_cond): Likewise.
39806         (gimple_omp_for_cond): Likewise.
39807         (gimple_omp_atomic_store_set_val): Likewise.
39808         (gimple_omp_atomic_store_val): Likewise.
39809         (gimple_omp_atomic_store_val_ptr): Likewise.
39810         (gimple_omp_atomic_load_set_lhs): Likewise.
39811         (gimple_omp_atomic_load_lhs): Likewise.
39812         (gimple_omp_atomic_load_lhs_ptr): Likewise.
39813         (gimple_omp_atomic_load_set_rhs): Likewise.
39814         (gimple_omp_atomic_load_rhs): Likewise.
39815         (gimple_omp_atomic_load_rhs_ptr): Likewise.
39816         (gimple_omp_continue_control_def): Likewise.
39817         (gimple_omp_continue_control_def_ptr): Likewise.
39818         (gimple_omp_continue_set_control_def): Likewise.
39819         (gimple_omp_continue_control_use): Likewise.
39820         (gimple_omp_continue_control_use_ptr): Likewise.
39821         (gimple_omp_continue_set_control_use): Likewise.
39822         (gimple_transaction_body_ptr): Likewise.
39823         (gimple_transaction_label): Likewise.
39824         (gimple_transaction_label_ptr): Likewise.
39825         (gimple_transaction_set_body): Likewise.
39826         (gimple_transaction_set_label): Likewise.
39828         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
39829         * ipa-inline-analysis.c (inline_write_summary): Likewise.
39830         * ipa-ref.c (ipa_record_reference): Likewise.
39831         * ipa-reference.c (analyze_function): Likewise.
39832         (ipa_reference_write_optimization_summary): Likewise.
39833         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
39834         (address_taken_from_non_vtable_p): Likewise.
39835         (comdat_can_be_unshared_p_1): Likewise.
39836         * lto-cgraph.c (lto_output_ref): Likewise.
39837         (add_references): Likewise.
39838         (compute_ltrans_boundary): Likewise.
39839         (output_symtab): Likewise.
39840         (input_ref): Likewise.
39841         (input_cgraph_1): Likewise.
39842         (output_cgraph_opt_summary): Likewise.
39843         * lto-streamer-out.c (lto_output): Likewise.
39844         (output_symbol_p): Likewise.
39845         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
39846         (lsei_start_function_in_partition): Likewise.
39847         (lsei_next_variable_in_partition): Likewise.
39848         (lsei_start_variable_in_partition): Likewise.
39849         * symtab.c (insert_to_assembler_name_hash): Likewise.
39850         (unlink_from_assembler_name_hash): Likewise.
39851         (symtab_unregister_node): Likewise.
39852         (symtab_remove_node): Likewise.
39853         (dump_symtab_node): Likewise.
39854         (verify_symtab_base): Likewise.
39855         (verify_symtab_node): Likewise.
39856         (symtab_make_decl_local): Likewise.
39857         (symtab_alias_ultimate_target): Likewise.
39858         (symtab_resolve_alias): Likewise.
39859         (symtab_get_symbol_partitioning_class): Likewise.
39860         * tree-phinodes.c (allocate_phi_node): Likewise.
39861         (reserve_phi_args_for_new_edge): Likewise.
39862         (remove_phi_args): Likewise.
39863         * varpool.c (varpool_node_for_asm): Likewise.
39864         (varpool_remove_unreferenced_decls): Likewise.
39866 2014-04-23  Jeff Law  <law@redhat.com>
39868         PR tree-optimization/60902
39869         * tree-ssa-threadedge.c
39870         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
39871         invalidate outputs from statements that do not produce useful
39872         outputs for threading.
39874 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
39876         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
39877         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
39878         machine descriptions for Stack Smashing Protector.
39880 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
39882         * aarch64.md (<optab>_rol<mode>3): New pattern.
39883         (<optab>_rolsi3_uxtw): Likewise.
39884         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
39886 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
39888         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
39889         (arm_cortex_a12_tune): Likewise.
39891 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39893         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
39895 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39897         * config/arm/arm.md (arm_rev16si2): New pattern.
39898         (arm_rev16si2_alt): Likewise.
39899         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
39901 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39903         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
39904         (rev16<mode>2_alt): Likewise.
39905         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
39906         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
39907         (aarch_rev16_shleft_mask_imm_p): Likewise.
39908         (aarch_rev16_p_1): Likewise.
39909         (aarch_rev16_p): Likewise.
39910         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
39911         (aarch_rev16_shright_mask_imm_p): Likewise.
39912         (aarch_rev16_shleft_mask_imm_p): Likewise.
39914 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39916         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
39917         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
39918         rev cost.
39919         (cortex_a53_extra_costs): Likewise.
39920         (cortex_a57_extra_costs): Likewise.
39921         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
39922         (cortexa7_extra_costs): Likewise.
39923         (cortexa8_extra_costs): Likewise.
39924         (cortexa12_extra_costs): Likewise.
39925         (cortexa15_extra_costs): Likewise.
39926         (v7m_extra_costs): Likewise.
39927         (arm_new_rtx_costs): Handle BSWAP.
39929 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39931         * config/arm/arm.c (cortexa8_extra_costs): New table.
39932         (arm_cortex_a8_tune): New tuning struct.
39933         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
39935 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39937         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
39939 2014-04-23  Richard Biener  <rguenther@suse.de>
39941         * Makefile.in (OBJS): Remove loop-unswitch.o.
39942         * tree-pass.h (make_pass_rtl_unswitch): Remove.
39943         * passes.def (pass_rtl_unswitch): Likewise.
39944         * loop-init.c (gate_rtl_unswitch): Likewise.
39945         (rtl_unswitch): Likewise.
39946         (pass_data_rtl_unswitch): Likewise.
39947         (pass_rtl_unswitch): Likewise.
39948         (make_pass_rtl_unswitch): Likewise.
39949         * rtl.h (reversed_condition): Likewise.
39950         (compare_and_jump_seq): Likewise.
39951         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
39952         and make static.
39953         * loop-unroll.c (compare_and_jump_seq): Likewise.
39955 2014-04-23  Richard Biener  <rguenther@suse.de>
39957         PR tree-optimization/60903
39958         * tree-ssa-loop-im.c (analyze_memory_references): Remove
39959         commented code block.
39960         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
39961         loop flags to newly created BBs and edges.
39963 2014-04-23  Nick Clifton  <nickc@redhat.com>
39965         * config/msp430/msp430.c (msp430_handle_option): Move function
39966         to msp430-common.c
39967         (msp430_option_override): Simplify mcu and mcpu option handling.
39968         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
39969         support for -mhwmult command line option.
39970         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
39971         -mhwmult command line option.
39972         (msp430_hwmult_enabled): Delete.
39973         (msp43o_output_labelref): Add support for -mhwmult command line option.
39974         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
39975         (umulsidi3): Likewise.
39976         * config/msp430/msp430.opt (mmcu): Add Report attribute.
39977         (mcpu, mlarge, msmall): Likewise.
39978         (mhwmult): New option.
39979         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
39980         prototype.
39981         (msp430_is_f5_mcu): Remove prototype.
39982         (msp430_use_f5_series_hwmult): Add prototype.
39983         * config/msp430/msp430-opts.h: New file.
39984         * common/config/msp430: New directory.
39985         * common/config/msp430/msp430-common.c: New file.
39986         * config.gcc (msp430): Remove target_has_targetm_common.
39987         * doc/invoke.texi: Document -mhwmult command line option.
39989 2014-04-23  Nick Clifton  <nickc@redhat.com>
39991         * config/i386/cygwin.h (ENDFILE_SPEC): Include
39992         default-manifest.o if it can be found in the search path.
39993         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39995 2014-04-23  Terry Guo  <terry.guo@arm.com>
39997         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
39999 2014-04-23  Richard Biener  <rguenther@suse.de>
40001         PR middle-end/60895
40002         * tree-inline.c (declare_return_variable): Use mark_addressable.
40004 2014-04-23  Richard Biener  <rguenther@suse.de>
40006         PR middle-end/60891
40007         * loop-init.c (loop_optimizer_init): Make sure to apply
40008         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
40010 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
40012         PR sanitizer/60275
40013         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
40014         New options.
40015         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
40016         if flag_sanitize_undefined_trap_on_error.
40017         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
40018         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
40019         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
40020         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
40021         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
40022         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
40023         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
40024         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
40025         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
40026         * ubsan.c (ubsan_instrument_unreachable): Return
40027         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
40028         (ubsan_expand_null_ifn): Emit __builtin_trap ()
40029         if flag_sanitize_undefined_trap_on_error and
40030         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
40031         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
40032         instrument_bool_enum_load): Emit __builtin_trap () if
40033         flag_sanitize_undefined_trap_on_error and
40034         __builtin_handle_*_abort () if !flag_sanitize_recover.
40035         * doc/invoke.texi (-fsanitize-recover,
40036         -fsanitize-undefined-trap-on-error): Document.
40038 2014-04-22  Christian Bruel  <christian.bruel@st.com>
40040         * config/sh/sh.md (mov<mode>): Replace movQIHI.
40041         Force immediates to SImode.
40043 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
40045         * config/nios2/nios2.md (UNSPEC_ROUND): New.
40046         (lroundsfsi2): New.
40047         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
40048         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
40049         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
40050         (nios2_fpu_insn): Add entry for round.
40051         (N2FPU_NO_ERRNO_P): Define.
40052         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
40053         flag_errno_math.
40054         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
40056 2014-04-22  Richard Henderson  <rth@redhat.com>
40058         * config/aarch64/aarch64 (addti3, subti3): New expanders.
40059         (add<GPI>3_compare0): Remove leading * from name.
40060         (add<GPI>3_carryin): Likewise.
40061         (sub<GPI>3_compare0): Likewise.
40062         (sub<GPI>3_carryin): Likewise.
40063         (<su_optab>mulditi3): New expander.
40064         (multi3): New expander.
40065         (madd<GPI>): Remove leading * from name.
40067 2014-04-22  Martin Jambor  <mjambor@suse.cz>
40069         * cgraphclones.c (cgraph_function_versioning): Copy
40070         ipa_transforms_to_apply instead of asserting it is empty.
40072 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
40074         PR target/60868
40075         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
40076         on count_exp to get mode.
40078 2014-04-22  Andrew Pinski  <apinski@cavium.com>
40080         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
40081         Handle TLS for ILP32.
40082         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
40083         (tlsie_small_<mode>): this and handle PTR.
40084         (tlsie_small_sidi): New pattern.
40085         (tlsle_small): Change to an expand to handle ILP32.
40086         (tlsle_small_<mode>): New pattern.
40087         (tlsdesc_small): Rename to ...
40088         (tlsdesc_small_<mode>): this and handle PTR.
40090 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40092         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
40094 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
40096         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
40097         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
40098         (aarch64_types_signed_poly_qualifiers): Likewise.
40099         (aarch64_types_unsigned_signed_qualifiers): Likewise.
40100         (aarch64_types_poly_signed_qualifiers): Likewise.
40101         (TYPES_REINTERP_SS): Type macro added.
40102         (TYPES_REINTERP_SU): Likewise.
40103         (TYPES_REINTERP_SP): Likewise.
40104         (TYPES_REINTERP_US): Likewise.
40105         (TYPES_REINTERP_PS): Likewise.
40106         (aarch64_fold_builtin): New expression folding added.
40107         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
40108         Declarations removed.
40109         (REINTERP_SS): Declarations added.
40110         (REINTERP_US): Likewise.
40111         (REINTERP_PS): Likewise.
40112         (REINTERP_SU): Likewise.
40113         (REINTERP_SP): Likewise.
40114         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
40115         (vreinterpretq_p8_f64): Likewise.
40116         (vreinterpret_p16_f64): Likewise.
40117         (vreinterpretq_p16_f64): Likewise.
40118         (vreinterpret_f32_f64): Likewise.
40119         (vreinterpretq_f32_f64): Likewise.
40120         (vreinterpret_f64_f32): Likewise.
40121         (vreinterpret_f64_p8): Likewise.
40122         (vreinterpret_f64_p16): Likewise.
40123         (vreinterpret_f64_s8): Likewise.
40124         (vreinterpret_f64_s16): Likewise.
40125         (vreinterpret_f64_s32): Likewise.
40126         (vreinterpret_f64_s64): Likewise.
40127         (vreinterpret_f64_u8): Likewise.
40128         (vreinterpret_f64_u16): Likewise.
40129         (vreinterpret_f64_u32): Likewise.
40130         (vreinterpret_f64_u64): Likewise.
40131         (vreinterpretq_f64_f32): Likewise.
40132         (vreinterpretq_f64_p8): Likewise.
40133         (vreinterpretq_f64_p16): Likewise.
40134         (vreinterpretq_f64_s8): Likewise.
40135         (vreinterpretq_f64_s16): Likewise.
40136         (vreinterpretq_f64_s32): Likewise.
40137         (vreinterpretq_f64_s64): Likewise.
40138         (vreinterpretq_f64_u8): Likewise.
40139         (vreinterpretq_f64_u16): Likewise.
40140         (vreinterpretq_f64_u32): Likewise.
40141         (vreinterpretq_f64_u64): Likewise.
40142         (vreinterpret_s64_f64): Likewise.
40143         (vreinterpretq_s64_f64): Likewise.
40144         (vreinterpret_u64_f64): Likewise.
40145         (vreinterpretq_u64_f64): Likewise.
40146         (vreinterpret_s8_f64): Likewise.
40147         (vreinterpretq_s8_f64): Likewise.
40148         (vreinterpret_s16_f64): Likewise.
40149         (vreinterpretq_s16_f64): Likewise.
40150         (vreinterpret_s32_f64): Likewise.
40151         (vreinterpretq_s32_f64): Likewise.
40152         (vreinterpret_u8_f64): Likewise.
40153         (vreinterpretq_u8_f64): Likewise.
40154         (vreinterpret_u16_f64): Likewise.
40155         (vreinterpretq_u16_f64): Likewise.
40156         (vreinterpret_u32_f64): Likewise.
40157         (vreinterpretq_u32_f64): Likewise.
40159 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
40161         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
40162         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
40163         (vreinterpret_p8_s8): Likewise.
40164         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
40165         (vreinterpret_p8_s16): Likewise.
40166         (vreinterpret_p8_s32): Likewise.
40167         (vreinterpret_p8_s64): Likewise.
40168         (vreinterpret_p8_f32): Likewise.
40169         (vreinterpret_p8_u8): Likewise.
40170         (vreinterpret_p8_u16): Likewise.
40171         (vreinterpret_p8_u32): Likewise.
40172         (vreinterpret_p8_u64): Likewise.
40173         (vreinterpret_p8_p16): Likewise.
40174         (vreinterpretq_p8_s8): Likewise.
40175         (vreinterpretq_p8_s16): Likewise.
40176         (vreinterpretq_p8_s32): Likewise.
40177         (vreinterpretq_p8_s64): Likewise.
40178         (vreinterpretq_p8_f32): Likewise.
40179         (vreinterpretq_p8_u8): Likewise.
40180         (vreinterpretq_p8_u16): Likewise.
40181         (vreinterpretq_p8_u32): Likewise.
40182         (vreinterpretq_p8_u64): Likewise.
40183         (vreinterpretq_p8_p16): Likewise.
40184         (vreinterpret_p16_s8): Likewise.
40185         (vreinterpret_p16_s16): Likewise.
40186         (vreinterpret_p16_s32): Likewise.
40187         (vreinterpret_p16_s64): Likewise.
40188         (vreinterpret_p16_f32): Likewise.
40189         (vreinterpret_p16_u8): Likewise.
40190         (vreinterpret_p16_u16): Likewise.
40191         (vreinterpret_p16_u32): Likewise.
40192         (vreinterpret_p16_u64): Likewise.
40193         (vreinterpret_p16_p8): Likewise.
40194         (vreinterpretq_p16_s8): Likewise.
40195         (vreinterpretq_p16_s16): Likewise.
40196         (vreinterpretq_p16_s32): Likewise.
40197         (vreinterpretq_p16_s64): Likewise.
40198         (vreinterpretq_p16_f32): Likewise.
40199         (vreinterpretq_p16_u8): Likewise.
40200         (vreinterpretq_p16_u16): Likewise.
40201         (vreinterpretq_p16_u32): Likewise.
40202         (vreinterpretq_p16_u64): Likewise.
40203         (vreinterpretq_p16_p8): Likewise.
40204         (vreinterpret_f32_s8): Likewise.
40205         (vreinterpret_f32_s16): Likewise.
40206         (vreinterpret_f32_s32): Likewise.
40207         (vreinterpret_f32_s64): Likewise.
40208         (vreinterpret_f32_u8): Likewise.
40209         (vreinterpret_f32_u16): Likewise.
40210         (vreinterpret_f32_u32): Likewise.
40211         (vreinterpret_f32_u64): Likewise.
40212         (vreinterpret_f32_p8): Likewise.
40213         (vreinterpret_f32_p16): Likewise.
40214         (vreinterpretq_f32_s8): Likewise.
40215         (vreinterpretq_f32_s16): Likewise.
40216         (vreinterpretq_f32_s32): Likewise.
40217         (vreinterpretq_f32_s64): Likewise.
40218         (vreinterpretq_f32_u8): Likewise.
40219         (vreinterpretq_f32_u16): Likewise.
40220         (vreinterpretq_f32_u32): Likewise.
40221         (vreinterpretq_f32_u64): Likewise.
40222         (vreinterpretq_f32_p8): Likewise.
40223         (vreinterpretq_f32_p16): Likewise.
40224         (vreinterpret_s64_s8): Likewise.
40225         (vreinterpret_s64_s16): Likewise.
40226         (vreinterpret_s64_s32): Likewise.
40227         (vreinterpret_s64_f32): Likewise.
40228         (vreinterpret_s64_u8): Likewise.
40229         (vreinterpret_s64_u16): Likewise.
40230         (vreinterpret_s64_u32): Likewise.
40231         (vreinterpret_s64_u64): Likewise.
40232         (vreinterpret_s64_p8): Likewise.
40233         (vreinterpret_s64_p16): Likewise.
40234         (vreinterpretq_s64_s8): Likewise.
40235         (vreinterpretq_s64_s16): Likewise.
40236         (vreinterpretq_s64_s32): Likewise.
40237         (vreinterpretq_s64_f32): Likewise.
40238         (vreinterpretq_s64_u8): Likewise.
40239         (vreinterpretq_s64_u16): Likewise.
40240         (vreinterpretq_s64_u32): Likewise.
40241         (vreinterpretq_s64_u64): Likewise.
40242         (vreinterpretq_s64_p8): Likewise.
40243         (vreinterpretq_s64_p16): Likewise.
40244         (vreinterpret_u64_s8): Likewise.
40245         (vreinterpret_u64_s16): Likewise.
40246         (vreinterpret_u64_s32): Likewise.
40247         (vreinterpret_u64_s64): Likewise.
40248         (vreinterpret_u64_f32): Likewise.
40249         (vreinterpret_u64_u8): Likewise.
40250         (vreinterpret_u64_u16): Likewise.
40251         (vreinterpret_u64_u32): Likewise.
40252         (vreinterpret_u64_p8): Likewise.
40253         (vreinterpret_u64_p16): Likewise.
40254         (vreinterpretq_u64_s8): Likewise.
40255         (vreinterpretq_u64_s16): Likewise.
40256         (vreinterpretq_u64_s32): Likewise.
40257         (vreinterpretq_u64_s64): Likewise.
40258         (vreinterpretq_u64_f32): Likewise.
40259         (vreinterpretq_u64_u8): Likewise.
40260         (vreinterpretq_u64_u16): Likewise.
40261         (vreinterpretq_u64_u32): Likewise.
40262         (vreinterpretq_u64_p8): Likewise.
40263         (vreinterpretq_u64_p16): Likewise.
40264         (vreinterpret_s8_s16): Likewise.
40265         (vreinterpret_s8_s32): Likewise.
40266         (vreinterpret_s8_s64): Likewise.
40267         (vreinterpret_s8_f32): Likewise.
40268         (vreinterpret_s8_u8): Likewise.
40269         (vreinterpret_s8_u16): Likewise.
40270         (vreinterpret_s8_u32): Likewise.
40271         (vreinterpret_s8_u64): Likewise.
40272         (vreinterpret_s8_p8): Likewise.
40273         (vreinterpret_s8_p16): Likewise.
40274         (vreinterpretq_s8_s16): Likewise.
40275         (vreinterpretq_s8_s32): Likewise.
40276         (vreinterpretq_s8_s64): Likewise.
40277         (vreinterpretq_s8_f32): Likewise.
40278         (vreinterpretq_s8_u8): Likewise.
40279         (vreinterpretq_s8_u16): Likewise.
40280         (vreinterpretq_s8_u32): Likewise.
40281         (vreinterpretq_s8_u64): Likewise.
40282         (vreinterpretq_s8_p8): Likewise.
40283         (vreinterpretq_s8_p16): Likewise.
40284         (vreinterpret_s16_s8): Likewise.
40285         (vreinterpret_s16_s32): Likewise.
40286         (vreinterpret_s16_s64): Likewise.
40287         (vreinterpret_s16_f32): Likewise.
40288         (vreinterpret_s16_u8): Likewise.
40289         (vreinterpret_s16_u16): Likewise.
40290         (vreinterpret_s16_u32): Likewise.
40291         (vreinterpret_s16_u64): Likewise.
40292         (vreinterpret_s16_p8): Likewise.
40293         (vreinterpret_s16_p16): Likewise.
40294         (vreinterpretq_s16_s8): Likewise.
40295         (vreinterpretq_s16_s32): Likewise.
40296         (vreinterpretq_s16_s64): Likewise.
40297         (vreinterpretq_s16_f32): Likewise.
40298         (vreinterpretq_s16_u8): Likewise.
40299         (vreinterpretq_s16_u16): Likewise.
40300         (vreinterpretq_s16_u32): Likewise.
40301         (vreinterpretq_s16_u64): Likewise.
40302         (vreinterpretq_s16_p8): Likewise.
40303         (vreinterpretq_s16_p16): Likewise.
40304         (vreinterpret_s32_s8): Likewise.
40305         (vreinterpret_s32_s16): Likewise.
40306         (vreinterpret_s32_s64): Likewise.
40307         (vreinterpret_s32_f32): Likewise.
40308         (vreinterpret_s32_u8): Likewise.
40309         (vreinterpret_s32_u16): Likewise.
40310         (vreinterpret_s32_u32): Likewise.
40311         (vreinterpret_s32_u64): Likewise.
40312         (vreinterpret_s32_p8): Likewise.
40313         (vreinterpret_s32_p16): Likewise.
40314         (vreinterpretq_s32_s8): Likewise.
40315         (vreinterpretq_s32_s16): Likewise.
40316         (vreinterpretq_s32_s64): Likewise.
40317         (vreinterpretq_s32_f32): Likewise.
40318         (vreinterpretq_s32_u8): Likewise.
40319         (vreinterpretq_s32_u16): Likewise.
40320         (vreinterpretq_s32_u32): Likewise.
40321         (vreinterpretq_s32_u64): Likewise.
40322         (vreinterpretq_s32_p8): Likewise.
40323         (vreinterpretq_s32_p16): Likewise.
40324         (vreinterpret_u8_s8): Likewise.
40325         (vreinterpret_u8_s16): Likewise.
40326         (vreinterpret_u8_s32): Likewise.
40327         (vreinterpret_u8_s64): Likewise.
40328         (vreinterpret_u8_f32): Likewise.
40329         (vreinterpret_u8_u16): Likewise.
40330         (vreinterpret_u8_u32): Likewise.
40331         (vreinterpret_u8_u64): Likewise.
40332         (vreinterpret_u8_p8): Likewise.
40333         (vreinterpret_u8_p16): Likewise.
40334         (vreinterpretq_u8_s8): Likewise.
40335         (vreinterpretq_u8_s16): Likewise.
40336         (vreinterpretq_u8_s32): Likewise.
40337         (vreinterpretq_u8_s64): Likewise.
40338         (vreinterpretq_u8_f32): Likewise.
40339         (vreinterpretq_u8_u16): Likewise.
40340         (vreinterpretq_u8_u32): Likewise.
40341         (vreinterpretq_u8_u64): Likewise.
40342         (vreinterpretq_u8_p8): Likewise.
40343         (vreinterpretq_u8_p16): Likewise.
40344         (vreinterpret_u16_s8): Likewise.
40345         (vreinterpret_u16_s16): Likewise.
40346         (vreinterpret_u16_s32): Likewise.
40347         (vreinterpret_u16_s64): Likewise.
40348         (vreinterpret_u16_f32): Likewise.
40349         (vreinterpret_u16_u8): Likewise.
40350         (vreinterpret_u16_u32): Likewise.
40351         (vreinterpret_u16_u64): Likewise.
40352         (vreinterpret_u16_p8): Likewise.
40353         (vreinterpret_u16_p16): Likewise.
40354         (vreinterpretq_u16_s8): Likewise.
40355         (vreinterpretq_u16_s16): Likewise.
40356         (vreinterpretq_u16_s32): Likewise.
40357         (vreinterpretq_u16_s64): Likewise.
40358         (vreinterpretq_u16_f32): Likewise.
40359         (vreinterpretq_u16_u8): Likewise.
40360         (vreinterpretq_u16_u32): Likewise.
40361         (vreinterpretq_u16_u64): Likewise.
40362         (vreinterpretq_u16_p8): Likewise.
40363         (vreinterpretq_u16_p16): Likewise.
40364         (vreinterpret_u32_s8): Likewise.
40365         (vreinterpret_u32_s16): Likewise.
40366         (vreinterpret_u32_s32): Likewise.
40367         (vreinterpret_u32_s64): Likewise.
40368         (vreinterpret_u32_f32): Likewise.
40369         (vreinterpret_u32_u8): Likewise.
40370         (vreinterpret_u32_u16): Likewise.
40371         (vreinterpret_u32_u64): Likewise.
40372         (vreinterpret_u32_p8): Likewise.
40373         (vreinterpret_u32_p16): Likewise.
40374         (vreinterpretq_u32_s8): Likewise.
40375         (vreinterpretq_u32_s16): Likewise.
40376         (vreinterpretq_u32_s32): Likewise.
40377         (vreinterpretq_u32_s64): Likewise.
40378         (vreinterpretq_u32_f32): Likewise.
40379         (vreinterpretq_u32_u8): Likewise.
40380         (vreinterpretq_u32_u16): Likewise.
40381         (vreinterpretq_u32_u64): Likewise.
40382         (vreinterpretq_u32_p8): Likewise.
40383         (vreinterpretq_u32_p16): Likewise.
40385 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
40387         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
40388         Pattern extended.
40389         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
40390         (sqabs): Likewise.
40391         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
40392         (vqnegd_s64): Likewise.
40393         (vqabs_s64): Likewise.
40394         (vqabsd_s64): Likewise.
40396 2014-04-22  Richard Henderson  <rth@redhat.com>
40398         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
40399         computation to the top of the loop.
40401 2014-04-22  Renlin  <renlin.li@arm.com>
40402             Jiong Wang  <jiong.wang@arm.com>
40404         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
40405         * config/aarch64/aarch64.c (aarch64_layout_frame)
40406         (aarch64_initial_elimination_offset): Likewise.
40408 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
40410         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
40411         Fix indentation.
40413 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
40415         * machmode.h (bitwise_mode_for_mode): Declare.
40416         * stor-layout.h (bitwise_type_for_mode): Likewise.
40417         * stor-layout.c (bitwise_mode_for_mode): New function.
40418         (bitwise_type_for_mode): Likewise.
40419         * builtins.c (fold_builtin_memory_op): Use it instead of
40420         int_mode_for_mode and build_nonstandard_integer_type.
40422 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40424         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
40425         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
40426         (*-*-solaris2*): Simplify.
40427         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
40428         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
40429         *-*-solaris2.9* handling.
40431         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
40432         as bug.
40433         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
40434         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
40435         handling, simplify.
40436         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
40437         * configure: Regenerate.
40439         * config/i386/sol2-9.h: Remove.
40441         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
40442         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
40443         Remove Solaris 9 references.
40445 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
40447         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
40448         (floatuns<GPI:mode><GPF:mode>2): Remove.
40449         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
40450         and floatuns conversions.
40451         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
40452         and floatuns conversions.
40453         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
40454         (w1,w2): New mode attributes for inequal width conversions.
40456 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
40458         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
40459         the output asm format.
40461 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
40463         * config/aarch64/aarch64-simd.md
40464         (aarch64_cm<optab>di): Always split.
40465         (*aarch64_cm<optab>di): New.
40466         (aarch64_cmtstdi): Always split.
40467         (*aarch64_cmtstdi): New.
40469 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
40471         PR tree-optimization/60823
40472         * omp-low.c (ipa_simd_modify_function_body): Go through
40473         all SSA_NAMEs and for those refering to vector arguments
40474         which are going to be replaced adjust SSA_NAME_VAR and,
40475         if it is a default definition, change it into a non-default
40476         definition assigned at the beginning of function from new_decl.
40477         (ipa_simd_modify_stmt_ops): Rewritten.
40478         * tree-dfa.c (set_ssa_default_def): When removing default def,
40479         check for NULL loc instead of NULL *loc.
40481 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40483         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
40484         restrictions on core registers for DImode values in Thumb2.
40486 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
40488         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
40489         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
40491 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
40493         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
40494         (*iordi_notzesidi_di): Likewise.
40495         (*iordi_notsesidi_di): Likewise.
40497 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
40499         * config/arm/arm-protos.h (tune_params): New struct members.
40500         * config/arm/arm.c: Initialise tune_params per processor.
40501         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
40502         for speed, based on new tune_params.
40504 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
40506         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
40507         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
40508         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
40509         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
40510         * config/aarch64/arm_neon.h (vrnd_f64): Added.
40511         (vrnda_f64): Likewise.
40512         (vrndi_f64): Likewise.
40513         (vrndm_f64): Likewise.
40514         (vrndn_f64): Likewise.
40515         (vrndp_f64): Likewise.
40516         (vrndx_f64): Likewise.
40518 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
40520         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
40521         GET_MODE_SIZE argument is enum machine_mode.
40523 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
40525         PR target/60910
40526         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
40527         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
40529 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
40531         PR middle-end/60281
40532         * asan.c (asan_emit_stack_protection): Force the base to align to
40533         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
40534         appropriate bits if STRICT_ALIGNMENT.
40535         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
40536         when asan is on.
40537         (expand_used_vars): Leave a space in the stack frame for alignment
40538         if STRICT_ALIGNMENT.
40540 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
40542         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
40543         than a gimple.
40544         (gimple_store_p): Likewise.
40545         (gimple_assign_load_p): Likewise.
40546         (gimple_assign_cast_p): Likewise.
40547         (gimple_clobber_p): Likewise.
40549         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
40550         rather than a gimple.
40551         (gimple_assign_cast_p): Likewise.
40553 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
40555         PR target/60735
40556         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
40557         If mode is DDmode and TARGET_E500_DOUBLE allow move.
40559         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
40560         more debug information for E500 if -mdebug=reg.
40562 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
40564         PR target/60909
40565         * config/i386/i386.c (ix86_expand_builtin)
40566         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
40567         register for target RTX.
40568         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
40570 2014-04-18  Cong Hou  <congh@google.com>
40572         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
40573         the widen-mult pattern by handling two operands with different sizes,
40574         and operands whose size is smaller than half of the result type.
40576 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
40578         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
40579         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
40580         (do_estimate_edge_time): Compute it.
40581         * ipa-inline.c (want_inline_small_function_p): Bypass
40582         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
40584 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
40586         * ipa-inline.c (spec_rem): New static variable.
40587         (dump_overall_stats): New function.
40588         (dump_inline_stats): New function.
40590 2014-04-18  Richard Henderson  <rth@redhat.com>
40592         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
40593         to GET_MODE_SIZE, not a reg_class_t.
40595 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
40597         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
40598         (vsx_xxmrglw_<mode>): Likewise.
40600 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
40602         PR target/60876
40603         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
40604         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
40605         (rs6000_init_hard_regno_mode_ok): Likewise.
40607 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
40609         * ipa-inline.c (inline_small_functions): Account only non-cold
40610         functions.
40611         * doc/invoke.texi (inline-unit-growth): Update documentation.
40613 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
40615         * config/rs6000/rs6000.md (addti3, subti3): New.
40617 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
40619         PR target/60863
40620         * config/i386/i386.c (ix86_expand_clear): Remove outdated
40621         comment.  Check optimize_insn_for_size_p instead of
40622         optimize_insn_for_speed_p.
40624 2014-04-17  Martin Jambor  <mjambor@suse.cz>
40626         * gimple-iterator.c (gsi_start_edge): New function.
40627         * gimple-iterator.h (gsi_start_edge): Declare.
40628         * tree-sra.c (single_non_eh_succ): New function.
40629         (disqualify_ops_if_throwing_stmt): Renamed to
40630         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
40631         having one non-EH successor BB.
40632         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
40633         generate loads into replacements.
40634         (sra_modify_assign): Likewise and and also use the simple path for
40635         such statements.
40636         (sra_modify_function_body): Commit statements on edges.
40638 2014-04-17  Richard Biener  <rguenther@suse.de>
40640         PR middle-end/60849
40641         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
40642         comparison results and add clarifying comment.
40644 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
40646         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
40647         (blank_mode): Initialize it.
40648         (emit_mode_size_inline, emit_mode_nunits_inline,
40649         emit_mode_inner_inline): New functions.
40650         (emit_insn_modes_h): Call them and surround their output with
40651         #if GCC_VERSION >= 4001 ... #endif.
40652         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
40653         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
40654         mode_* arrays if the argument is __builtin_constant_p.
40655         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
40656         is enum machine_mode.
40658 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
40660         * passes.c (opt_pass::execute): Adjust.
40661         (pass_manager::execute_pass_mode_switching): Likewise.
40662         (early_local_passes::execute): Likewise.
40663         (execute_one_pass): Pass cfun to the pass's execute method.
40664         * tree-pass.h (opt_pass::execute): Add function * argument.
40665         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
40666         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
40667         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
40668         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
40669         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
40670         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
40671         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
40672         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
40673         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
40674         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
40675         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
40676         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
40677         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
40678         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
40679         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
40680         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
40681         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
40682         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
40683         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
40684         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
40685         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
40686         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
40687         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
40688         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
40689         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
40690         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
40691         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
40692         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
40693         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
40694         Adjust.
40696 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
40698         * passes.c (opt_pass::gate): Take function * argument.
40699         (gate_all_early_local_passes): Merge into
40700         (early_local_passes::gate): this.
40701         (gate_all_early_optimizations): Merge into
40702         (all_early_optimizations::gate): this.
40703         (gate_all_optimizations): Mege into
40704         (all_optimizations::gate): this.
40705         (gate_all_optimizations_g): Merge into
40706         (all_optimizations_g::gate): this.
40707         (gate_rest_of_compilation): Mege into
40708         (rest_of_compilation::gate): this.
40709         (gate_postreload): Merge into
40710         (postreload::gate): this.
40711         (dump_one_pass): Pass cfun to the pass's gate method.
40712         (execute_ipa_summary_passes): Likewise.
40713         (execute_one_pass): Likewise.
40714         (ipa_write_summaries_2): Likewise.
40715         (ipa_write_optimization_summaries_1): Likewise.
40716         (ipa_read_summaries_1): Likewise.
40717         (ipa_read_optimization_summaries_1): Likewise.
40718         (execute_ipa_stmt_fixups): Likewise.
40719         * tree-pass.h (opt_pass::gate): Add function * argument.
40720         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
40721         combine-stack-adj.c, combine.c, compare-elim.c,
40722         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
40723         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
40724         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
40725         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
40726         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
40727         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
40728         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
40729         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
40730         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
40731         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
40732         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
40733         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
40734         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
40735         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
40736         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
40737         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
40738         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
40739         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
40740         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
40741         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
40742         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
40743         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
40744         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
40745         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
40746         var-tracking.c, vtable-verify.c, web.c: Adjust.
40748 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
40750         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
40751         * configure: Regenerate.
40753 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
40755         * passes.c (dump_one_pass): don't check pass->has_gate.
40756         (execute_ipa_summary_passes): Likewise.
40757         (execute_one_pass): Likewise.
40758         (ipa_write_summaries_2): Likewise.
40759         (ipa_write_optimization_summaries_1): Likewise.
40760         (ipa_read_optimization_summaries_1): Likewise.
40761         (execute_ipa_stmt_fixups): Likewise.
40762         * tree-pass.h (pass_data::has_gate): Remove.
40763         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
40764         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
40765         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
40766         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
40767         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
40768         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
40769         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
40770         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
40771         gimple-low.c, gimple-ssa-isolate-paths.c,
40772         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
40773         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
40774         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
40775         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
40776         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
40777         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
40778         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
40779         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
40780         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
40781         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
40782         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
40783         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
40784         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
40785         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
40786         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
40787         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
40788         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
40789         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
40790         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
40791         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
40792         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
40793         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
40794         Adjust.
40796 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
40798         * pass_manager.h (pass_manager::register_dump_files_1): Remove
40799         declaration.
40800         * passes.c (pass_manager::register_dump_files_1): Merge into
40801         (pass_manager::register_dump_files): this, and remove its handling of
40802         properties since the pass always has the properties anyway.
40803         (pass_manager::pass_manager): Adjust.
40805 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
40807         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
40808         * passes.c (pass_manager::register_dump_files_1): Remove dead code
40809         dealing with properties.
40810         (pass_manager::register_dump_files): Adjust.
40812 2014-03-20  Mark Wielaard  <mjw@redhat.com>
40814         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
40815         then represent the bound as normal constant value.
40817 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
40819         PR target/60847
40820         Forward port from 4.8 branch
40821         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
40823         * config/i386/bmiintrin.h (_blsi_u32): New.
40824         (_blsi_u64): Ditto.
40825         (_blsr_u32): Ditto.
40826         (_blsr_u64): Ditto.
40827         (_blsmsk_u32): Ditto.
40828         (_blsmsk_u64): Ditto.
40829         (_tzcnt_u32): Ditto.
40830         (_tzcnt_u64): Ditto.
40832 2014-04-17  Kito Cheng  <kito@0xlab.org>
40834         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
40836 2014-04-17  Richard Biener  <rguenther@suse.de>
40838         PR middle-end/60849
40839         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
40840         boolean results for comparisons.
40842 2014-04-17  Richard Biener  <rguenther@suse.de>
40844         PR tree-optimization/60836
40845         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
40846         initial PHI args to be gimple values.
40848 2014-04-17  Richard Biener  <rguenther@suse.de>
40850         PR tree-optimization/60841
40851         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
40852         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
40853         of stmts to SLP build.
40854         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
40855         (vect_analyze_slp): Likewise.
40856         (vect_analyze_slp_instance): Likewise.
40857         (vect_build_slp_tree): Limit overall SLP tree growth.
40858         * tree-vectorizer.h (vect_analyze_data_refs,
40859         vect_analyze_slp): Adjust prototypes.
40861 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
40863         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
40864         Silvermont.
40866 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
40868         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
40869         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
40870         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
40871         for TARGET_SLOW_PSHUFB
40873 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
40875         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
40876         * config/i386/i386.c (intel_cost): Ditto.
40878 2014-04-17  Joey Ye  <joey.ye@arm.com>
40880         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
40882 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
40884         * opts.c (common_handle_option): Disable -fipa-reference coorectly
40885         with -fuse-profile.
40887 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
40889         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
40890         (type_all_derivations_known_p): New predicate.
40891         (type_all_ctors_visible_p): New predicate.
40892         (type_possibly_instantiated_p): New predicate.
40893         (get_odr_type): Compute all_derivations_known.
40894         (dump_odr_type): Dump the flag.
40895         (maybe_record_type): Cleanup.
40896         (record_target_from_binfo): Add bases_to_consider array;
40897         record bases for types w/o instances and skip CXX destructor.
40898         (possible_polymorphic_call_targets_1): Add bases_to_consider
40899         and consider_construction parameters; check if type may have instance.
40900         (get_polymorphic_call_info): Set maybe_in_construction to true
40901         when we know nothing.
40902         (record_targets_from_bases): Skip CXX destructors; they are
40903         never called for types in construction.
40904         (possible_polymorphic_call_targets): Do not record target when
40905         type may not have instance.
40907 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
40909         PR ipa/60854
40910         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
40911         external aliases alive, too.
40913 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
40915         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
40916         definition.
40918 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
40920         * final.c (compute_alignments): Do not apply loop alignment to a block
40921         falling through to the exit.
40923 2014-04-16  Catherine Moore  <clm@codesourcery.com>
40925         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
40926         Adjust constraints for microMIPS store patterns.
40928 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
40930         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
40932 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
40934         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
40935         (append_use): Run at -O0.
40936         (append_vdef): Likewise.
40937         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
40938         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
40940 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
40942         PR tree-optimization/60844
40943         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
40944         (propagate_op_to_single_use, remove_visited_stmt_chain,
40945         linearize_expr, repropagate_negates, reassociate_bb): Use it
40946         instead of gsi_remove.
40948 2014-04-16  Martin Jambor  <mjambor@suse.cz>
40950         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
40951         ipa_transforms_to_apply.
40952         (cgraph_function_versioning): Assert that old_node has empty
40953         ipa_transforms_to_apply.
40954         * trans-mem.c (ipa_tm_create_version): Likewise.
40955         * tree-inline.c (tree_function_versioning): Do not duplicate
40956         ipa_transforms_to_apply.
40958 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40960         PR target/60817
40961         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
40962         x86_64-*-* cases.
40963         Pass necessary as flags on 64-bit Solaris/x86.
40964         Use lowercase relocs for x86_64-*-*.
40965         * configure: Regenerate.
40967 2014-04-15  Jan Hubicka  <jh@suse.cz>
40969         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
40970         (maybe_record_node, likely_target_p): Use it.
40972 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
40974         PR target/60839
40975         Revert following patch
40977         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
40979         PR target/60735
40980         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
40981         software floating point or no floating point registers, do not
40982         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
40983         in GPRs that occurs after we tested for GPRs that would never be
40984         true.
40986         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
40987         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
40988         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
40989         specifically allow DDmode, since that does not use the SPE SIMD
40990         instructions.
40992 2014-03-21  Mark Wielaard  <mjw@redhat.com>
40994         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
40995         as unsigned or int depending on type and value used.
40997 2014-04-15  Richard Biener  <rguenther@suse.de>
40999         PR rtl-optimization/56965
41000         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
41001         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
41002         ... here.
41003         * alias.c (true_dependence_1): Do not call
41004         nonoverlapping_component_refs_p.
41005         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
41006         nonoverlapping_component_refs_p.
41007         (indirect_refs_may_alias_p): Likewise.
41009 2014-04-15  Teresa Johnson  <tejohnson@google.com>
41011         * cfg.c (dump_bb_info): Fix flags check.
41012         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
41014 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41016         PR rtl-optimization/60663
41017         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
41018         avoid 0 cost.
41020 2014-04-15  Richard Biener  <rguenther@suse.de>
41022         * lto-streamer.h (LTO_major_version): Bump to 4.
41024 2014-04-15  Richard Biener  <rguenther@suse.de>
41026         * common.opt (lto_partition_model): New enum.
41027         (flto-partition=): Merge separate options with a single with argument,
41028         add -flto-partition=one support.
41029         * flag-types.h (enum lto_partition_model): Declare.
41030         * opts.c (finish_options): Remove duplicate -flto-partition=
41031         option check.
41032         * lto-wrapper.c (run_gcc): Adjust.
41034 2014-04-15  Richard Biener  <rguenther@suse.de>
41036         * alias.c (ncr_compar): New function.
41037         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
41039 2014-04-15  Richard Biener  <rguenther@suse.de>
41041         * alias.c (record_component_aliases): Do not walk BINFOs.
41043 2014-04-15  Richard Biener  <rguenther@suse.de>
41045         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
41046         Add struct function argument and adjust.
41047         (find_func_aliases_for_call): Likewise.
41048         (find_func_aliases): Likewise.
41049         (find_func_clobbers): Likewise.
41050         (intra_create_variable_infos): Likewise.
41051         (compute_points_to_sets): Likewise.
41052         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
41054 2014-04-15  Richard Biener  <rguenther@suse.de>
41056         * tree.c (iterative_hash_expr): Use enum tree_code_class
41057         to store TREE_CODE_CLASS.
41058         (tree_block): Likewise.
41059         (tree_set_block): Likewise.
41060         * tree.h (fold_build_pointer_plus_loc): Use
41061         convert_to_ptrofftype_loc.
41063 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
41065         PR plugins/59335
41066         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
41067         added in 4.9.
41069 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
41071         * cfgloop.h (struct loop): Move force_vectorize down.
41072         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
41073         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
41074         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
41075         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
41076         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
41077         * tree-core.h (enum annot_expr_kind): Add new kind values.
41078         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
41079         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
41080         kinds.
41081         * tree.def (ANNOTATE_EXPR): Tweak comment.
41083 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
41085         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
41086         cxa_pure_virtual).
41088 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
41090         * tree.h (TYPE_IDENTIFIER): Declare.
41091         * tree.c (subrange_type_for_debug_p): Use it.
41092         * godump.c (go_format_type): Likewise.
41093         * dwarf2out.c (is_cxx_auto, modified_type_die,
41094         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
41095         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
41097 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
41099         PR lto/60820
41100         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
41102 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
41104         * config/i386/i386.c (examine_argument): Return bool.  Return true if
41105         parameter should be passed in memory.
41106         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
41107         (construct_container): Update calls to examine_argument.
41108         (function_arg_advance_64): Ditto.
41109         (return_in_memory_32): Merge with ix86_return_in_memory.
41110         (return_in_memory_64): Ditto.
41111         (return_in_memory_ms_64): Ditto.
41113 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
41115         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
41116         * coverage.c (coverage_compute_profile_id): Handle externally visible
41117         symbols.
41119 2014-04-14  Martin Jambor  <mjambor@suse.cz>
41121         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
41122         DECL_DISREGARD_INLINE_LIMITS functions.
41124 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
41126         PR target/60827
41127         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
41129 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
41131         PR target/60827
41132         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
41133         optimize_insn_for_speed_p instead of
41134         optimize_function_for_speed_p.
41136 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
41138         * doc/invoke.texi (free): Document AArch64.
41140 2014-04-14  Richard Biener  <rguenther@suse.de>
41142         PR tree-optimization/60042
41143         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
41144         (insert_into_preds_of_block): Do not prevent PHI insertion
41145         for REFERENCE exprs here ...
41146         (eliminate_dom_walker::before_dom_children): ... but prevent
41147         their use here under similar conditions when applied to the
41148         IL after PRE optimizations.
41150 2014-04-14  Richard Biener  <rguenther@suse.de>
41152         * passes.def: Move early points-to after early SRA.
41154 2014-04-14  Richard Biener  <rguenther@suse.de>
41156         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
41157         check for which sign-changes we allow when forwarding
41158         a converted value into a switch.
41160 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
41162         * stor-layout.c (place_field): Finalize non-constant offset for the
41163         field, if any.
41165 2014-04-14  Richard Biener  <rguenther@suse.de>
41167         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
41168         as argument.
41169         (expand_switch_using_bit_tests_p): Likewise.
41170         (process_switch): Compute and pass on speed_p based on the
41171         switch stmt.
41172         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
41173         optimize_bb_for_speed_p.
41175 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
41177         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
41178         * function.h (struct function): Rename has_force_vect_loops into
41179         has_force_vectorize_loops.
41180         * lto-streamer-in.c (input_cfg): Adjust for renaming.
41181         (input_struct_function_base): Likewise.
41182         * lto-streamer-out.c (output_cfg): Likewise.
41183         (output_struct_function_base): Likewise.
41184         * omp-low.c (expand_omp_simd): Likewise.
41185         * tree-cfg.c (move_sese_region_to_fn): Likewise.
41186         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
41187         (version_loop_for_if_conversion): Likewise.
41188         (tree_if_conversion): Likewise.
41189         (main_tree_if_conversion): Likewise.
41190         (gate_tree_if_conversion): Likewise.
41191         * tree-inline.c (copy_loops): Likewise.
41192         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
41193         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
41194         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
41195         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
41196         * tree-vectorizer.c (vectorize_loops): Likewise.
41197         * tree-vectorizer.h (unlimited_cost_model): Likewise.
41199 2014-04-14  Richard Biener  <rguenther@suse.de>
41201         PR lto/60720
41202         * lto-streamer-out.c (wrap_refs): New function.
41203         (lto_output): Wrap symbol references in global initializes in
41204         type-preserving MEM_REFs.
41206 2014-04-14  Christian Bruel  <christian.bruel@st.com>
41208         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
41210 2014-04-14  Christian Bruel  <christian.bruel@st.com>
41212         * config/sh/sh.md (setmemqi): New expand pattern.
41213         * config/sh/sh.h (CLEAR_RATIO): Define.
41214         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
41215         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
41217 2014-04-14  Richard Biener  <rguenther@suse.de>
41219         PR middle-end/55022
41220         * fold-const.c (negate_expr_p): Don't negate directional rounding
41221         division.
41222         (fold_negate_expr): Likewise.
41224 2014-04-14  Richard Biener  <rguenther@suse.de>
41226         PR tree-optimization/59817
41227         PR tree-optimization/60453
41228         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
41229         recursion to catch all CHRECs in the scalar evolution and restrict
41230         the predicate for the remains appropriately.
41232 2014-04-12  Catherine Moore  <clm@codesourcery.com>
41234         * config/mips/constraints.md: Add new register constraint "kb".
41235         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
41236         (*movhi_internal): Likewise.
41237         (*movqi_internal): Likewise.
41238         * config/mips/mips.h (M16_STORE_REGS): New register class.
41239         (REG_CLASS_NAMES): Add M16_STORE_REGS.
41240         (REG_CLASS_CONTENTS): Likewise.
41241         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
41243 2014-04-11  Tobias Burnus  <burnus@net-b.de>
41245         PR c/60194
41246         * doc/invoke.texi (-Wformat-signedness): Document it.
41247         (Wformat=2): Mention that this enables -Wformat-signedness.
41249 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
41251         * common/config/epiphany/epiphany-common.c
41252         (epiphany_option_optimization_table): Enable section anchors by
41253         default at -O1 or higher.
41254         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
41255         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
41256         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
41257         carries no extra cost.
41258         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
41259         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
41260         * config/epiphany/predicates.md (memclob_operand): New predicate.
41261         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
41262         Use memclob_operand predicate and X constraint for operand 3.
41264 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
41266         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
41267         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
41268         its operands.
41270 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
41272         PR rtl-optimization/60651
41273         * mode-switching.c (optimize_mode_switching): Make sure to emit
41274         sets of a lower numbered entity before sets of a higher numbered
41275         entity to a mode of the same or lower priority.
41276         When creating a seginfo for a basic block that starts with a code
41277         label, move the insertion point past the code label.
41278         (new_seginfo): Document and enforce requirement that
41279         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
41280         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
41281         * doc/tm.texi: Regenerate.
41283 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
41285         PR target/60811
41286         * config/arc/arc.c (arc_save_restore): Fix assert typo.
41288 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
41290         * BASE-VER: Set to 4.10.0.
41292 2014-04-11  Tobias Burnus  <burnus@net-b.de>
41294         PR other/59055
41295         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
41296         * doc/gcc.texi (Service): Update description in the @menu
41297         * doc/invoke.texi (Option Summary): Remove misplaced and
41298         duplicated @menu.
41300 2014-04-11  Steve Ellcey  <sellcey@mips.com>
41301             Jakub Jelinek  <jakub@redhat.com>
41303         PR middle-end/60556
41304         * expr.c (convert_move): Use emit_store_flag_force instead of
41305         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
41306         argument to it.
41308 2014-04-11  Richard Biener  <rguenther@suse.de>
41310         PR middle-end/60797
41311         * varasm.c (assemble_alias): Avoid endless error reporting
41312         recursion by setting TREE_ASM_WRITTEN.
41314 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41316         * config/s390/s390.md: Add a splitter for NOT rtx.
41318 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
41320         PR rtl-optimization/60663
41321         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
41323 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
41324             Jakub Jelinek  <jakub@redhat.com>
41326         PR lto/60567
41327         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
41328         flag from decl_node to node.
41330 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
41332         PR debug/60655
41333         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
41334         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
41335         ameliorating the cases where it can be.
41337 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
41339         Revert
41340         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
41342         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
41343         (loadsync_<mode>): Change mode.
41344         (load_quadpti, store_quadpti): New.
41345         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
41346         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
41347         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
41349 2014-04-09  Cong Hou  <congh@google.com>
41351         PR testsuite/60773
41352         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
41353         documentation.
41355 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41357         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
41358         instead of vnor to exploit possible fusion opportunity in the
41359         future.
41360         (altivec_expand_vec_perm_const_le): Likewise.
41362 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
41364         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
41365         (loadsync_<mode>): Change mode.
41366         (load_quadpti, store_quadpti): New.
41367         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
41368         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
41370 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
41372         PR target/60763
41373         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
41374         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
41375         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
41377 2014-04-08  Richard Biener  <rguenther@suse.de>
41379         PR middle-end/60706
41380         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
41381         a 64bit widest int print double-int similar to on HWI64 hosts.
41383 2014-04-08  Richard Biener  <rguenther@suse.de>
41385         PR tree-optimization/60785
41386         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
41387         default defs properly.
41389 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
41391         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
41392         (Weffc++): Likewise.
41394 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
41396         * ipa-devirt.c (maybe_record_node): When node is not recorded,
41397         set completep to false rather than true.
41399 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
41401         PR target/60504
41402         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
41403         ARM_TARGET2_DWARF_FORMAT.
41405 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
41407         PR target/60609
41408         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
41409         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
41410         ADDR_DIFF_VEC.
41412 2014-04-07  Richard Biener  <rguenther@suse.de>
41414         PR tree-optimization/60766
41415         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
41416         (may_eliminate_iv): Convert cand_value_at result to desired type.
41418 2014-04-07  Jason Merrill  <jason@redhat.com>
41420         PR c++/60731
41421         * common.opt (-fno-gnu-unique): Add.
41422         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
41424 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41426         * haifa-sched.c: Fix outdated function reference and minor
41427         grammar errors in introductory comment.
41429 2014-04-07  Richard Biener  <rguenther@suse.de>
41431         PR middle-end/60750
41432         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
41433         for noreturn calls.
41434         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
41436 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
41438         PR debug/55794
41439         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
41440         size accounting for thunks.
41441         (pa_asm_output_mi_thunk): Use final_start_function() and
41442         final_end_function() to output function start and end directives.
41444 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
41446         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
41447         device specific ISA/ feature information. Remove short_sp and
41448         errata_skip ds.  Add avr_device_specific_features enum to have device
41449         specific info.
41450         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
41451         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
41452         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
41453         updated device specific info.
41454         * config/avr/avr-mcus.def: Merge device specific details to
41455         dev_attribute field.
41456         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
41457         errata_skip.
41458         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
41459         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
41460         assembler if RMW isa supported by current device.
41461         * config/avr/genmultilib.awk: Update as device info structure changed.
41462         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
41464 2014-04-04  Cong Hou  <congh@google.com>
41466         PR tree-optimization/60656
41467         * tree-vect-stmts.c (supportable_widening_operation):
41468         Fix a bug that elements in a vector with vect_used_by_reduction
41469         property are incorrectly reordered when the operation on it is not
41470         consistant with the one in reduction operation.
41472 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
41474         PR rtl-optimization/60155
41475         * gcse.c (record_set_data): New function.
41476         (single_set_gcse): New function.
41477         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
41478         (hoist_code): Likewise.
41479         (get_pressure_class_and_nregs): Likewise.
41481 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
41483         * explow.c (probe_stack_range): Emit a final optimization blockage.
41485 2014-04-04  Anthony Green  <green@moxielogic.com>
41487         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
41488         typos.
41490 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
41492         PR ipa/59626
41493         * lto-cgraph.c (input_overwrite_node): Check that partitioning
41494         flags are set only during streaming.
41495         * ipa.c (process_references, walk_polymorphic_call_targets,
41496         symtab_remove_unreachable_nodes): Drop bodies of always inline
41497         after early inlining.
41498         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
41500 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
41501         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
41503         PR debug/60655
41504         * dwarf2out.c (const_ok_for_output_1): Reject expressions
41505         containing a NOT.
41507 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41509         PR bootstrap/60743
41510         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
41511         duration.
41512         (cortex_a53_fdivd): Likewise.
41514 2014-04-04  Martin Jambor  <mjambor@suse.cz>
41516         PR ipa/60640
41517         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
41518         Adjust all callers.
41519         * cgraph.c (clone_of_p): Also return true if thunks match.
41520         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
41521         cgraph_function_or_thunk_node and an obsolete comment.
41522         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
41523         file.
41524         (build_function_decl_skip_args): Likewise.
41525         (set_new_clone_decl_and_node_flags): New function.
41526         (duplicate_thunk_for_node): Likewise.
41527         (redirect_edge_duplicating_thunks): Likewise.
41528         (cgraph_clone_node): New parameter args_to_skip, pass it to
41529         redirect_edge_duplicating_thunks which is called instead of
41530         cgraph_redirect_edge_callee.
41531         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
41532         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
41534 2014-04-04  Jeff Law  <law@redhat.com>
41536         PR target/60657
41537         * config/arm/predicates.md (const_int_I_operand): New predicate.
41538         (const_int_M_operand): Similarly.
41539         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
41540         const_int_operand.
41541         (insv_t2, extv_reg, extzv_t2): Likewise.
41542         (load_multiple_with_writeback): Similarly for const_int_I_operand.
41543         (pop_multiple_with_writeback_and_return): Likewise.
41544         (vfp_pop_multiple_with_writeback): Likewise
41546 2014-04-04  Richard Biener  <rguenther@suse.de>
41548         PR ipa/60746
41549         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
41550         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
41551         non-GIMPLE_LABELs.
41552         * gimplify.h (gimple_add_tmp_var_fn): Declare.
41553         * gimplify.c (gimple_add_tmp_var_fn): New function.
41554         * gimple-expr.h (create_tmp_reg_fn): Declare.
41555         * gimple-expr.c (create_tmp_reg_fn): New function.
41556         * gimple-low.c (record_vars_into): Don't change cfun.
41557         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
41558         code generation without cfun.
41560 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
41562         PR bootstrap/60719
41563         * Makefile.in (install-driver): Fix shell scripting.
41565 2014-04-03  Cong Hou  <congh@google.com>
41567         PR tree-optimization/60505
41568         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
41569         threshold of number of iterations below which no vectorization
41570         will be done.
41571         * tree-vect-loop.c (new_loop_vec_info):
41572         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
41573         * tree-vect-loop.c (vect_analyze_loop_operations):
41574         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
41575         * tree-vect-loop.c (vect_transform_loop):
41576         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
41577         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
41578         of iterations of the loop and see if we should build the epilogue.
41580 2014-04-03  Richard Biener  <rguenther@suse.de>
41582         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
41583         (streamer_tree_cache_create): Adjust.
41584         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
41585         to allow optional nodes array.
41586         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
41587         (streamer_tree_cache_append): Likewise.
41588         (streamer_tree_cache_create): Create nodes array optionally
41589         as specified by parameter.
41590         * lto-streamer-out.c (create_output_block): Avoid maintaining
41591         the node array in the writer cache.
41592         (DFS_write_tree): Remove assertion.
41593         (produce_asm_for_decls): Free the out decl state hash table early.
41594         * lto-streamer-in.c (lto_data_in_create): Adjust for
41595         streamer_tree_cache_create prototype change.
41597 2014-04-03  Richard Biener  <rguenther@suse.de>
41599         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
41600         set TREE_CHAIN to NULL_TREE.
41602 2014-04-03  Richard Biener  <rguenther@suse.de>
41604         PR tree-optimization/60740
41605         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
41606         over all GIMPLE_COND operands.
41608 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
41610         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
41611         (Weffc++): Remove Scott's numbering, merge lists and reference
41612         Wnon-virtual-dtor.
41614 2014-04-03  Nick Clifton  <nickc@redhat.com>
41616         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
41617         properly.
41619 2014-04-03  Martin Jambor  <mjambor@suse.cz>
41621         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
41622         mention gcc_unreachable before failing.
41623         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
41624         removed symbols.
41626 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
41628         PR ipa/60659
41629         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
41630         inconsistent code and instead mark the context inconsistent.
41631         (possible_polymorphic_call_targets): For inconsistent contexts
41632         return empty complete list.
41634 2014-04-02  Anthony Green  <green@moxielogic.com>
41636         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
41637         (extendqisi2, extendhisi2): Define.
41638         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
41639         (WCHAR_TYPE): Change to unsigned int.
41641 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
41643         PR tree-optimization/60733
41644         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
41645         insertion point for PHI candidates to be the end of the feeding
41646         block for the PHI argument.
41648 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
41650         PR rtl-optimization/60650
41651         * lra-constraints.c (process_alt_operands): Decrease reject for
41652         earlyclobber matching.
41654 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41656         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
41658 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41660         * config/spu/spu.c (pad_bb): Do not crash when the last
41661         insn is CODE_FOR_blockage.
41663 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41665         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
41666         lies outside the target mode.
41668 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
41670         PR target/60735
41671         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
41672         software floating point or no floating point registers, do not
41673         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
41674         in GPRs that occurs after we tested for GPRs that would never be
41675         true.
41677         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
41678         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
41679         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
41680         specifically allow DDmode, since that does not use the SPE SIMD
41681         instructions.
41683 2014-04-02  Richard Biener  <rguenther@suse.de>
41685         PR middle-end/60729
41686         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
41687         MODE_INTs.  Properly use negv_optab.
41688         (expand_abs): Likewise.
41690 2014-04-02  Richard Biener  <rguenther@suse.de>
41692         PR bootstrap/60719
41693         * Makefile.in (install-driver): Guard extra installs with special
41694         names properly.
41696 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
41698         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
41699         Document vec_vgbbd.
41701 2014-04-01  Richard Henderson  <rth@redhat.com>
41703         PR target/60704
41704         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
41705         alternative enabled before register allocation.
41707 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
41709         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
41710         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
41711         typo.
41712         (nios2_large_got_address): Remove unneeded 'sym' parameter.
41713         (nios2_got_address): Update nios2_large_got_address call site.
41714         (nios2_delegitimize_address): New function.
41715         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
41716         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
41717         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
41719 2014-04-01  Martin Husemann  <martin@duskware.de>
41721         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
41722         for -mabi=32.
41724 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
41726         PR rtl-optimization/60604
41727         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
41728         check from register_operand.
41729         (register_operand): Redefine in terms of general_operand.
41730         (nonmemory_operand): Use register_operand for the non-constant cases.
41732 2014-04-01  Richard Biener  <rguenther@suse.de>
41734         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
41736 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41738         * doc/invoke.texi (mapp-regs): Clarify.
41740 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
41742         * config/i386/avx512fintrin.h (__v32hi): Define type.
41743         (__v64qi): Likewise.
41744         (_mm512_set1_epi8): Define.
41745         (_mm512_set1_epi16): Define.
41746         (_mm512_set4_epi32): Define.
41747         (_mm512_set4_epi64): Define.
41748         (_mm512_set4_pd): Define.
41749         (_mm512_set4_ps): Define.
41750         (_mm512_setr4_epi64): Define.
41751         (_mm512_setr4_epi32): Define.
41752         (_mm512_setr4_pd): Define.
41753         (_mm512_setr4_ps): Define.
41754         (_mm512_setzero_epi32): Define.
41756 2014-03-31  Martin Jambor  <mjambor@suse.cz>
41758         PR middle-end/60647
41759         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
41760         callsite_arguments_match_p.  Updated all callers.  Also check types of
41761         corresponding formal parameters and actual arguments.
41762         (not_all_callers_have_enough_arguments_p) Renamed to
41763         some_callers_have_mismatched_arguments_p.
41765 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
41767         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
41769 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
41771         PR target/60034
41772         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
41773         section anchor.
41775 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
41777         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
41778         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
41779         Split out
41780         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
41781         Use FMAMODE_NOVF512 mode iterator.
41782         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
41783         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
41784         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
41785         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
41786         Split out
41787         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
41788         Use VF_128_256 mode iterator.
41789         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
41790         Ditto.
41792 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
41794         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
41795         static chain if needed.
41797 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
41799         PR target/60697
41800         * lra-constraints.c (index_part_to_reg): New.
41801         (process_address): Use it.
41803 2014-03-27  Jeff Law  <law@redhat.com>
41804             Jakub Jelinek  <jakub@redhat.com>
41806         PR target/60648
41807         * expr.c (do_tablejump): Use simplify_gen_binary rather than
41808         gen_rtx_{PLUS,MULT} to build up the address expression.
41810         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
41811         creating non-canonical RTL.
41813 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
41815         PR ipa/60243
41816         * ipa-inline.c (want_inline_small_function_p): Short circuit large
41817         functions; reorganize to make cheap checks first.
41818         (inline_small_functions): Do not estimate growth when dumping;
41819         it is expensive.
41820         * ipa-inline.h (inline_summary): Add min_size.
41821         (growth_likely_positive): New function.
41822         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
41823         (set_cond_stmt_execution_predicate): Cleanup.
41824         (estimate_edge_size_and_time): Compute min_size.
41825         (estimate_calls_size_and_time): Likewise.
41826         (estimate_node_size_and_time): Likewise.
41827         (inline_update_overall_summary): Update min_size.
41828         (do_estimate_edge_time): Likewise.
41829         (do_estimate_edge_size): Update.
41830         (do_estimate_edge_hints): Update.
41831         (growth_likely_positive): New function.
41833 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
41835         PR target/60693
41836         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
41837         also if addr has VOIDmode.
41839 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41841         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
41842         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
41843         Declare extern.
41844         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
41845         instructions as well as AdvancedSIMD loads.
41847 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41849         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
41850         Use crypto_aese type.
41851         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
41852         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
41853         crypto_aese, crypto_aesmc.  Move to types.md.
41854         * config/arm/types.md (crypto_aes): Split into crypto_aese,
41855         crypto_aesmc.
41856         * config/arm/iterators.md (crypto_type): Likewise.
41858 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
41860         * cgraph.c: Include expr.h and tree-dfa.h.
41861         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
41862         remove LHS.
41864 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
41866         PR target/60675
41867         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
41868         regs from checking multi-reg pseudos.
41870 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
41872         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
41874 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41876         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
41877         if it would clobber the stack pointer, even temporarily.
41879 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
41881         * mode-switching.c: Make small adjustments to the top comment.
41883 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
41885         * config/rs6000/constraints.md (wD constraint): New constraint to
41886         match the constant integer to get the top DImode/DFmode out of a
41887         vector in a VSX register.
41889         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
41890         match the constant integer to get the top DImode/DFmode out of a
41891         vector in a VSX register.
41893         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
41894         for ISA 2.07.
41896         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
41897         vbpermq builtins.
41899         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
41900         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
41902         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
41903         Optimize vec_extract of 64-bit values, where the value being
41904         extracted is in the top word, where we can use scalar
41905         instructions.  Add direct move and store support.  Combine the big
41906         endian/little endian vector select load support into a single insn.
41907         (vsx_extract_<mode>_internal1): Likewise.
41908         (vsx_extract_<mode>_internal2): Likewise.
41909         (vsx_extract_<mode>_load): Likewise.
41910         (vsx_extract_<mode>_store): Likewise.
41911         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
41912         combined into vsx_extract_<mode>_load.
41913         (vsx_extract_<mode>_one_le): Likewise.
41915         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
41916         define the top 64-bit vector element.
41918         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
41919         constraint.
41921         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
41922         Document vec_vbpermq builtin.
41924         PR target/60672
41925         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
41926         enable use of xxsldwi and xxpermdi builtin functions.
41927         (vec_xxpermdi): Likewise.
41929         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
41930         Document use of vec_xxsldwi and vec_xxpermdi builtins.
41932 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
41934         PR rtl-optimization/60650
41935         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
41936         first_p.  Use it.
41937         (find_spills_for): New.
41938         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
41939         Spill all pseudos on the second iteration.
41941 2014-03-27  Marek Polacek  <polacek@redhat.com>
41943         PR c/50347
41944         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
41945         types.
41947 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41949         * config/s390/s390.c (s390_can_use_return_insn): Check for
41950         call-saved FPRs on 31 bit.
41952 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
41954         PR middle-end/60682
41955         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
41956         if they need regimplification, just drop them instead of
41957         calling gimple_regimplify_operands on them.
41959 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
41961         PR target/60580
41962         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
41963         (aarch64_frame_pointer_required): Adjust logic.
41964         (aarch64_can_eliminate): Adjust logic.
41965         (aarch64_override_options_after_change): Adjust logic.
41967 2014-03-27  Dehao Chen  <dehao@google.com>
41969         * ipa-inline.c (early_inliner): Update node's inline info.
41971 2014-03-26  Dehao Chen  <dehao@google.com>
41973         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
41974         compiler inserted conditional jumps for NAN float check.
41976 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
41978         * ubsan.h (ubsan_create_data): Change second argument's type
41979         to const location_t *.
41980         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
41981         _("<unknown>").
41982         (ubsan_create_data): Change second argument to const location_t *PLOC.
41983         Create Loc field whenever PLOC is non-NULL.
41984         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
41985         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
41986         callers.
41988         PR other/59545
41989         * real.c (real_to_integer2): Change type of low to UHWI.
41991 2014-03-26  Tobias Burnus  <burnus@net-b.de>
41993         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
41994         (CILK_SELF_SPECS): New define.
41995         (driver_self_specs): Use it.
41997 2014-03-26  Richard Biener  <rguenther@suse.de>
41999         * tree-pretty-print.c (percent_K_format): Implement special
42000         case for LTO and its stripped down BLOCK tree.
42002 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
42004         PR sanitizer/60636
42005         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
42007         * tree-vrp.c (simplify_internal_call_using_ranges): If only
42008         one range is range_int_cst_p, but not both, at least optimize
42009         addition/subtraction of 0 and multiplication by 0 or 1.
42010         * gimple-fold.c (gimple_fold_call): Fold
42011         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
42012         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
42013         INTEGER_CSTs, try to fold at least x * 0 and y - y.
42015 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
42017         PR rtl-optimization/60452
42018         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
42019         <case REG>: Return 1 for invalid offsets from the frame pointer.
42021 2014-03-26  Marek Polacek  <polacek@redhat.com>
42023         PR c/37428
42024         * doc/extend.texi (C Extensions): Mention variable-length arrays in
42025         a structure/union.
42027 2014-03-26  Marek Polacek  <polacek@redhat.com>
42029         PR c/39525
42030         * doc/extend.texi (Designated Inits): Describe what happens to omitted
42031         field members.
42033 2014-03-26  Marek Polacek  <polacek@redhat.com>
42035         PR other/59545
42036         * ira-color.c (update_conflict_hard_regno_costs): Perform the
42037         multiplication in unsigned type.
42039 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
42041         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
42043 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
42045         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
42047 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
42049         PR ipa/60315
42050         * cif-code.def (UNREACHABLE) New code.
42051         * ipa-inline.c (inline_small_functions): Skip edges to
42052         __builtlin_unreachable.
42053         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
42054         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
42055         predicate to __bulitin_unreachable.
42056         (set_cond_stmt_execution_predicate): Fix issue when
42057         invert_tree_comparison returns ERROR_MARK.
42058         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
42059         propagate to inline clones.
42060         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
42061         to unreachable.
42062         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
42063         * cgraphclones.c (cgraph_clone_node): If call destination is already
42064         ureachable, do not redirect it back.
42065         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
42066         unreachable.
42068 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
42070         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
42071         Do not modify inline clones.
42073 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
42075         * config/i386/i386.md (general_sext_operand): New mode attr.
42076         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
42077         don't generate (sign_extend (const_int)).
42078         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
42079         operands[2].  Use We constraint instead of <i> and
42080         <general_sext_operand> predicate instead of <general_operand>.
42081         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
42082         * config/i386/constraints.md (We): New constraint.
42083         * config/i386/predicates.md (x86_64_sext_operand,
42084         sext_operand): New predicates.
42086 2014-03-25  Martin Jambor  <mjambor@suse.cz>
42088         PR ipa/60600
42089         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
42090         inconsistent devirtualizations to __builtin_unreachable.
42092 2014-03-25  Marek Polacek  <polacek@redhat.com>
42094         PR c/35449
42095         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
42097 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
42099         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
42100         order of elements for big-endian.
42102 2014-03-25  Richard Biener  <rguenther@suse.de>
42104         PR middle-end/60635
42105         * gimplify-me.c (gimple_regimplify_operands): Update the
42106         re-gimplifed stmt.
42108 2014-03-25  Martin Jambor  <mjambor@suse.cz>
42110         PR ipa/59176
42111         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
42112         (lto_output_varpool_node): Likewise.
42113         (input_overwrite_node): Likewise.
42114         (input_varpool_node): Likewise.
42116 2014-03-25  Richard Biener  <rguenther@suse.de>
42118         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
42119         (run_gcc): Likewise.
42121 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
42123         * combine.c (simplify_compare_const): Add MODE argument.
42124         Handle mode_width 0 as very large mode_width.
42125         (try_combine, simplify_comparison): Adjust callers.
42127         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
42128         type to avoid signed integer overflow.
42129         * explow.c (plus_constant): Likewise.
42131 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
42133         * doc/generic.texi: Correct typos.
42135 2014-03-24  Tobias Burnus  <burnus@net-b.de>
42137         * doc/invoke.texi (-flto): Expand section about
42138         using static libraries with LTO.
42140 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42142         PR rtl-optimization/60501
42143         * optabs.def (addptr3_optab): New optab.
42144         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
42145         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
42146         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
42148         * lra.c (emit_add3_insn): Use the addptr pattern if available.
42150         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
42152 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
42154         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
42155         _mm512_set1_pd.
42157         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
42158         (_mm256_undefined_ps): Define.
42159         (_mm256_undefined_pd): Define.
42160         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
42161         (_mm_undefined_pd): Define.
42162         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
42163         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
42164         (_mm512_undefined_ps): Define.
42165         (_mm512_undefined_pd): Define.
42166         Use _mm*_undefined_*.
42167         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
42169 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
42171         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
42172         (lshr_simd): DI mode added.
42173         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
42174         (aarch64_ushr_simddi): Likewise.
42175         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
42176         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
42177         (vshrd_n_u64): Likewise.
42179 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42181         * Makefile.in (s-macro_list): Depend on cc1.
42183 2014-03-23  Teresa Johnson  <tejohnson@google.com>
42185         * ipa-utils.c (ipa_print_order): Use specified dump file.
42187 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
42189         PR rtl-optimization/60601
42190         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
42192         * gcc.c (eval_spec_function): Initialize save_growing_value.
42194 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
42196         PR sanitizer/60613
42197         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
42198         code == MINUS_EXPR, never swap op0 with op1.
42200         * toplev.c (init_local_tick): Avoid signed integer multiplication
42201         overflow.
42202         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
42203         shift by first operand's bitsize.
42205 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
42207         PR target/60610
42208         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
42209         redefine to 1 or 0.
42210         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
42211         TARGET_ISA_64BIT_P(x).
42213 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42215         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
42216         pattern for vector nor instead of subtract from splat(-1).
42217         (altivec_expand_vec_perm_const_le): Likewise.
42219 2014-03-21  Richard Henderson  <rth@twiddle.net>
42221         PR target/60598
42222         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
42223         related insns after epilogue_completed.
42225 2014-03-21  Martin Jambor  <mjambor@suse.cz>
42227         PR ipa/59176
42228         * cgraph.h (symtab_node): New flag body_removed.
42229         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
42230         when removing bodies.
42231         * symtab.c (dump_symtab_base): Dump body_removed flag.
42232         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
42233         had their bodies removed.
42235 2014-03-21  Martin Jambor  <mjambor@suse.cz>
42237         PR ipa/60419
42238         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
42239         in the border.
42241 2014-03-21  Richard Biener  <rguenther@suse.de>
42243         PR tree-optimization/60577
42244         * tree-core.h (struct tree_base): Document nothrow_flag use
42245         in DECL_NONALIASED.
42246         * tree.h (DECL_NONALIASED): New.
42247         (may_be_aliased): Adjust.
42248         * coverage.c (build_var): Set DECL_NONALIASED.
42250 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
42252         * expr.c (expand_expr_real_1): Remove outdated comment.
42254 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
42256         PR middle-end/60597
42257         * ira.c (adjust_cleared_regs): Call copy_rtx on
42258         *reg_equiv[REGNO (loc)].src_p before passing it to
42259         simplify_replace_fn_rtx.
42261         PR target/60568
42262         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
42263         into CONST, put pic register as first operand of PLUS.  Use
42264         gen_const_mem for both 32-bit and 64-bit PIC got loads.
42266 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
42268         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
42270 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
42272         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
42273         around for store forwarding issue in the FPU on the UT699.
42274         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
42275         loads and operations if -mfix-ut699 is specified.
42276         (divtf3_hq): Tweak attribute.
42277         (sqrttf2_hq): Likewise.
42279 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
42281         * calls.c (store_one_arg): Remove incorrect const qualification on the
42282         type of the temporary.
42283         * cfgexpand.c (expand_return): Likewise.
42284         * expr.c (expand_constructor): Likewise.
42285         (expand_expr_real_1): Likewise.
42287 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
42289         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
42290         of parts.
42292 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
42294         PR target/60039
42295         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
42297 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
42299         * config/arm/aarch-common-protos.h
42300         (alu_cost_table): Fix spelling of "extend".
42301         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
42303 2014-03-19  Richard Biener  <rguenther@suse.de>
42305         PR middle-end/60553
42306         * tree-core.h (tree_type_common): Re-order pointer members
42307         to reduce recursion depth during GC walks.
42309 2014-03-19  Marek Polacek  <polacek@redhat.com>
42311         PR sanitizer/60569
42312         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
42313         before accessing it.
42315 2014-03-19  Richard Biener  <rguenther@suse.de>
42317         PR lto/59543
42318         * lto-streamer-in.c (input_function): In WPA stage do not drop
42319         debug stmts.
42321 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
42323         PR tree-optimization/60559
42324         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
42325         with build_zero_cst assignment.
42327 2014-03-18  Kai Tietz  <ktietz@redhat.com>
42329         PR rtl-optimization/56356
42330         * sdbout.c (sdbout_parms): Verify that parms'
42331         incoming argument is valid.
42332         (sdbout_reg_parms): Likewise.
42334 2014-03-18  Richard Henderson  <rth@redhat.com>
42336         PR target/60562
42337         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
42338         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
42339         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
42341 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
42343         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
42344         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
42345         Italicize plugin event names in description.  Explain that
42346         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
42347         Remind that no GCC functions should be called after PLUGIN_FINISH.
42348         Explain what pragmas with expansion are.
42350 2014-03-18  Martin Liska  <mliska@suse.cz>
42352         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
42353         gimple call statement is update.
42354         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
42355         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
42357 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
42359         PR sanitizer/60557
42360         * ubsan.c (ubsan_instrument_unreachable): Call
42361         initialize_sanitizer_builtins.
42362         (ubsan_pass): Likewise.
42364         PR sanitizer/60535
42365         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
42366         varpool_finalize_decl instead of rest_of_decl_compilation.
42368 2014-03-18  Richard Biener  <rguenther@suse.de>
42370         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
42371         by using bitmap_and_compl instead of bitmap_and_compl_into.
42372         (df_rd_transfer_function): Likewise.
42374 2014-03-18  Richard Biener  <rguenther@suse.de>
42376         * doc/lto.texi (fresolution): Fix typo.
42378 2014-03-18  Richard Biener  <rguenther@suse.de>
42380         * doc/invoke.texi (flto): Update for changes in 4.9.
42382 2014-03-18  Richard Biener  <rguenther@suse.de>
42384         * doc/loop.texi: Remove section on the removed lambda framework.
42385         Update loop docs with recent changes in preserving loop structure.
42387 2014-03-18  Richard Biener  <rguenther@suse.de>
42389         * doc/lto.texi (-fresolution): Document.
42391 2014-03-18  Richard Biener  <rguenther@suse.de>
42393         * doc/contrib.texi: Adjust my name.
42395 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
42397         PR ipa/58721
42398         * internal-fn.c: Include diagnostic-core.h.
42399         (expand_BUILTIN_EXPECT): New function.
42400         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
42401         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
42402         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
42403         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
42404         IFN_BUILTIN_EXPECT.
42405         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
42406         Revert 3 argument __builtin_expect code.
42407         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
42408         * gimple-fold.c (gimple_fold_call): Likewise.
42409         * tree.h (fold_builtin_expect): New prototype.
42410         * builtins.c (build_builtin_expect_predicate): Add predictor
42411         argument, if non-NULL, create 3 argument __builtin_expect.
42412         (fold_builtin_expect): No longer static.  Add ARG2 argument,
42413         pass it through to build_builtin_expect_predicate.
42414         (fold_builtin_2): Adjust caller.
42415         (fold_builtin_3): Handle BUILT_IN_EXPECT.
42416         * internal-fn.def (BUILTIN_EXPECT): New.
42418 2014-03-18  Tobias Burnus  <burnus@net-b.de>
42420         PR ipa/58721
42421         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
42422         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
42423         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
42425 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
42427         PR ipa/58721
42428         * predict.c (combine_predictions_for_bb): Fix up formatting.
42429         (expr_expected_value_1, expr_expected_value): Add predictor argument,
42430         fill what it points to if non-NULL.
42431         (tree_predict_by_opcode): Adjust caller, use the predictor.
42432         * predict.def (PRED_COMPARE_AND_SWAP): Add.
42434 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
42436         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
42437         proper constant for the store mode.
42439 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
42441         * symtab.c (change_decl_assembler_name): Fix transparent alias
42442         chain construction.
42444 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
42446         * config/aarch64/aarch64.c: Correct the comments about the
42447         aarch64 stack layout.
42449 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
42451         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
42452         check for GF_OMP_FOR_KIND_FOR.
42454 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
42456         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
42457         ymm and zmm register names.
42459 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
42461         PR target/60516
42462         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
42463         note creation for the 2010-08-31 changes.
42465 2014-03-17  Marek Polacek  <polacek@redhat.com>
42467         PR middle-end/60534
42468         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
42469         as -fno-tree-loop-vectorize.
42470         (expand_omp_simd): Likewise.
42472 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
42474         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
42475         (eligible_for_call_delay): New prototype.
42476         * config/sparc/sparc.c (tls_call_delay): Rename into...
42477         (eligible_for_call_delay): ...this.  Return false if the instruction
42478         cannot be put in the delay slot of a branch.
42479         (eligible_for_restore_insn): Simplify.
42480         (eligible_for_return_delay): Return false if the instruction cannot be
42481         put in the delay slot of a branch and simplify.
42482         (eligible_for_sibcall_delay): Return false if the instruction cannot be
42483         put in the delay slot of a branch.
42484         * config/sparc/sparc.md (fix_ut699): New attribute.
42485         (tls_call_delay): Delete.
42486         (in_call_delay): Reimplement.
42487         (eligible_for_sibcall_delay): Rename into...
42488         (in_sibcall_delay): ...this.
42489         (eligible_for_return_delay): Rename into...
42490         (in_return_delay): ...this.
42491         (in_branch_delay): Reimplement.
42492         (in_uncond_branch_delay): Delete.
42493         (in_annul_branch_delay): Delete.
42495 2014-03-14  Richard Henderson  <rth@redhat.com>
42497         PR target/60525
42498         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
42499         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
42500         (*floathi<X87MODEF>2_i387_with_temp): Remove.
42501         (floathi splitters): Remove.
42502         (float<SWI48x>xf2): New pattern.
42503         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
42504         code that tried to handle DImode for 32-bit, but which was excluded
42505         by the pattern's condition.  Drop allocation of stack temporary.
42506         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
42507         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
42508         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
42509         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
42510         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
42511         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
42512         (*float<SWI48><MODEF>2_sse_interunit): Remove.
42513         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
42514         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
42515         (*float<SWI48x><X87MODEF>2_i387): Remove.
42516         (all float _with_temp splitters): Remove.
42517         (*float<SWI48x><MODEF>2_i387): New pattern.
42518         (*float<SWI48><MODEF>2_sse): New pattern.
42519         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
42520         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
42522 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
42523             Marek Polacek  <polacek@redhat.com>
42525         PR middle-end/60484
42526         * common.opt (dump_base_name_prefixed): New Variable.
42527         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
42528         if x_dump_base_name_prefixed is already set, set it at the end.
42530 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
42532         PR rtl-optimization/60508
42533         * lra-constraints.c (get_reload_reg): Add new parameter
42534         in_subreg_p.
42535         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
42536         Pass the new parameter values.
42538 2014-03-14  Richard Biener  <rguenther@suse.de>
42540         * common.opt: Revert unintented changes from r205065.
42541         * opts.c: Likewise.
42543 2014-03-14  Richard Biener  <rguenther@suse.de>
42545         PR middle-end/60518
42546         * cfghooks.c (split_block): Properly adjust all loops the
42547         block was a latch of.
42549 2014-03-14  Martin Jambor  <mjambor@suse.cz>
42551         PR lto/60461
42552         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
42553         and simplify it.
42555 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
42557         PR target/59396
42558         * config/avr/avr.c (avr_set_current_function): Pass function name
42559         through default_strip_name_encoding before sanity checking instead
42560         of skipping the first char of the assembler name.
42562 2014-03-13  Richard Henderson  <rth@redhat.com>
42564         PR debug/60438
42565         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
42566         (ix86_force_to_memory, ix86_free_from_memory): Remove.
42567         * config/i386/i386-protos.h: Likewise.
42568         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
42569         in the expander instead of a splitter.
42570         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
42571         any possibility of requiring a memory.
42572         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
42573         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
42574         (fp branch splitters): Update for ix86_split_fp_branch.
42575         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
42576         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
42577         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
42578         (*fop_<MODEF>_2_i387): Remove f/r alternative.
42579         (*fop_<MODEF>_3_i387): Likewise.
42580         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
42581         (splitters for the fop_* register patterns): Remove.
42582         (fscalexf4_i387): Rename from *fscalexf4_i387.
42583         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
42585 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
42587         PR tree-optimization/59779
42588         * tree-dfa.c (get_ref_base_and_extent): Use double_int
42589         type for bitsize and maxsize instead of HOST_WIDE_INT.
42591 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
42593         PR rtl-optimization/57320
42594         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
42595         the CFG after thread_prologue_and_epilogue_insns.
42597 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
42599         PR rtl-optimization/57189
42600         * lra-constraints.c (process_alt_operands): Disfavor spilling
42601         vector pseudos.
42603 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
42605         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
42607 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
42609         PR tree-optimization/59025
42610         PR middle-end/60418
42611         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
42612         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
42614 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
42616         PR target/60486
42617         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
42618         calls of avr_out_plus_1.
42620 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
42622         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
42623         BB's single pred and update the father loop's latch info later.
42625 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
42627         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
42628         (VEC_M): Likewise.
42629         (VEC_N): Likewise.
42630         (VEC_R): Likewise.
42631         (VEC_base): Likewise.
42632         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
42633         registers, we need to swap double words in little endian mode.
42635         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
42636         to be a container mode for 128-bit integer operations added in ISA
42637         2.07.  Unlike TImode and PTImode, the preferred register set is
42638         the Altivec/VMX registers for the 128-bit operations.
42640         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
42641         declarations.
42642         (rs6000_split_128bit_ok_p): Likewise.
42644         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
42645         macros for creating ISA 2.07 normal and overloaded builtin
42646         functions with 3 arguments.
42647         (BU_P8V_OVERLOAD_3): Likewise.
42648         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
42649         for use as overloaded functions.
42650         (VPERM_1TI_UNS): Likewise.
42651         (VSEL_1TI): Likewise.
42652         (VSEL_1TI_UNS): Likewise.
42653         (ST_INTERNAL_1ti): Likewise.
42654         (LD_INTERNAL_1ti): Likewise.
42655         (XXSEL_1TI): Likewise.
42656         (XXSEL_1TI_UNS): Likewise.
42657         (VPERM_1TI): Likewise.
42658         (VPERM_1TI_UNS): Likewise.
42659         (XXPERMDI_1TI): Likewise.
42660         (SET_1TI): Likewise.
42661         (LXVD2X_V1TI): Likewise.
42662         (STXVD2X_V1TI): Likewise.
42663         (VEC_INIT_V1TI): Likewise.
42664         (VEC_SET_V1TI): Likewise.
42665         (VEC_EXT_V1TI): Likewise.
42666         (EQV_V1TI): Likewise.
42667         (NAND_V1TI): Likewise.
42668         (ORC_V1TI): Likewise.
42669         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
42670         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
42671         overloaded builtin.
42672         (VADDUQM): Likewise.
42673         (VSUBCUQ): Likewise.
42674         (VADDEUQM): Likewise.
42675         (VADDECUQ): Likewise.
42676         (VSUBEUQM): Likewise.
42677         (VSUBECUQ): Likewise.
42679         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
42680         __int128_t and __uint128_t types.
42681         (__uint128_type): Likewise.
42682         (altivec_categorize_keyword): Add support for vector __int128_t,
42683         vector __uint128_t, vector __int128, and vector unsigned __int128
42684         as a container type for TImode operations that need to be done in
42685         VSX/Altivec registers.
42686         (rs6000_macro_to_expand): Likewise.
42687         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
42688         to support 128-bit integer instructions vaddcuq, vadduqm,
42689         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
42690         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
42692         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
42693         for V1TImode, and set up preferences to use VSX/Altivec registers.
42694         Setup VSX reload handlers.
42695         (rs6000_debug_reg_global): Likewise.
42696         (rs6000_init_hard_regno_mode_ok): Likewise.
42697         (rs6000_preferred_simd_mode): Likewise.
42698         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
42699         (easy_altivec_constant): Likewise.
42700         (output_vec_const_move): Likewise.
42701         (rs6000_expand_vector_set): Convert V1TImode set and extract to
42702         simple move.
42703         (rs6000_expand_vector_extract): Likewise.
42704         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
42705         addressing.
42706         (rs6000_const_vec): Add support for V1TImode.
42707         (rs6000_emit_le_vsx_load): Swap double words when loading or
42708         storing TImode/V1TImode.
42709         (rs6000_emit_le_vsx_store): Likewise.
42710         (rs6000_emit_le_vsx_move): Likewise.
42711         (rs6000_emit_move): Add support for V1TImode.
42712         (altivec_expand_ld_builtin): Likewise.
42713         (altivec_expand_st_builtin): Likewise.
42714         (altivec_expand_vec_init_builtin): Likewise.
42715         (altivec_expand_builtin): Likewise.
42716         (rs6000_init_builtins): Add support for V1TImode type.  Add
42717         support for ISA 2.07 128-bit integer builtins.  Define type names
42718         for the VSX/Altivec vector types.
42719         (altivec_init_builtins): Add support for overloaded vector
42720         functions with V1TImode type.
42721         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
42722         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
42723         external function.
42724         (rs6000_split_128bit_ok_p): Likewise.
42725         (rs6000_handle_altivec_attribute): Create V1TImode from vector
42726         __int128_t and vector __uint128_t.
42728         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
42729         and mode attributes.
42730         (VSX_M): Likewise.
42731         (VSX_M2): Likewise.
42732         (VSm): Likewise.
42733         (VSs): Likewise.
42734         (VSr): Likewise.
42735         (VSv): Likewise.
42736         (VS_scalar): Likewise.
42737         (VS_double): Likewise.
42738         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
42740         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
42741         we support the ISA 2.07 128-bit integer arithmetic instructions.
42742         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
42743         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
42744         and TImode types for use with the builtin functions.
42745         (V1TI_type_node): Likewise.
42746         (unsigned_V1TI_type_node): Likewise.
42747         (intTI_type_internal_node): Likewise.
42748         (uintTI_type_internal_node): Likewise.
42750         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
42751         128-bit builtin functions.
42752         (UNSPEC_VADDEUQM): Likewise.
42753         (UNSPEC_VADDECUQ): Likewise.
42754         (UNSPEC_VSUBCUQ): Likewise.
42755         (UNSPEC_VSUBEUQM): Likewise.
42756         (UNSPEC_VSUBECUQ): Likewise.
42757         (VM): Add V1TImode to vector mode iterators.
42758         (VM2): Likewise.
42759         (VI_unit): Likewise.
42760         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
42761         (altivec_vaddcuq): Likewise.
42762         (altivec_vsubuqm): Likewise.
42763         (altivec_vsubcuq): Likewise.
42764         (altivec_vaddeuqm): Likewise.
42765         (altivec_vaddecuq): Likewise.
42766         (altivec_vsubeuqm): Likewise.
42767         (altivec_vsubecuq): Likewise.
42769         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
42770         mode iterators.
42771         (BOOL_128): Likewise.
42772         (BOOL_REGS_OUTPUT): Likewise.
42773         (BOOL_REGS_OP1): Likewise.
42774         (BOOL_REGS_OP2): Likewise.
42775         (BOOL_REGS_UNARY): Likewise.
42776         (BOOL_REGS_AND_CR0): Likewise.
42778         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
42779         128-bit integer builtin support.
42780         (vec_vadduqm): Likewise.
42781         (vec_vaddecuq): Likewise.
42782         (vec_vaddeuqm): Likewise.
42783         (vec_vsubecuq): Likewise.
42784         (vec_vsubeuqm): Likewise.
42785         (vec_vsubcuq): Likewise.
42786         (vec_vsubuqm): Likewise.
42788         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
42789         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
42790         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
42791         128-bit integer add/subtract to ISA 2.07.
42793 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
42795         * config/arc/arc.c (arc_predicate_delay_insns):
42796         Fix third argument passed to conditionalize_nonjump.
42798 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
42800         * config/aarch64/aarch64-builtins.c
42801         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
42802         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
42803         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
42804         instead of __builtin_lfloor.
42805         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
42807 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
42809         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
42810         (tree_ssa_ifcombine_bb_1): New function.
42811         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
42812         is an empty forwarder block to then_bb or vice versa and then_bb
42813         and else_bb are effectively swapped.
42815 2014-03-12  Christian Bruel  <christian.bruel@st.com>
42817         PR target/60264
42818         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
42819         REG_CFA_DEF_CFA note.
42820         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
42821         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
42823 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42825         PR tree-optimization/60454
42826         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
42828 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42830         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
42831         Do not define target_cpu_default2 to generic.
42832         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
42833         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
42834         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
42836 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
42837             Marc Glisse  <marc.glisse@inria.fr>
42839         PR tree-optimization/60502
42840         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
42841         instead of build_low_bits_mask.
42843 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
42845         PR middle-end/60482
42846         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
42847         if there are multiple uses, but op doesn't live on E edge.
42848         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
42849         clobber stmts before __builtin_unreachable.
42851 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
42853         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
42854         hard_frame_pointer_rtx.
42855         * cse.c (cse_insn): Remove volatile check.
42856         * cselib.c (cselib_process_insn): Likewise.
42857         * dse.c (scan_insn): Likewise.
42859 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
42861         * config/arc/arc.c (conditionalize_nonjump): New function,
42862         broken out of ...
42863         (arc_ifcvt): ... this.
42864         (arc_predicate_delay_insns): Use it.
42866 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
42868         * config/arc/predicates.md (extend_operand): During/after reload,
42869         allow const_int_operand.
42870         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
42871         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
42872         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
42873         to "i".
42874         (umulsi3_highpart_i): Likewise.
42876 2014-03-11  Richard Biener  <rguenther@suse.de>
42878         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
42879         Add asserts to guard possible wrong-code bugs.
42881 2014-03-11  Richard Biener  <rguenther@suse.de>
42883         PR tree-optimization/60429
42884         PR tree-optimization/60485
42885         * tree-ssa-structalias.c (set_union_with_increment): Properly
42886         take into account all fields that overlap the shifted vars.
42887         (do_sd_constraint): Likewise.
42888         (do_ds_constraint): Likewise.
42889         (get_constraint_for_ptr_offset): Likewise.
42891 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
42893         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
42894         (nios2_compute_frame_layout):
42895         Add calculation of cfun->machine->fp_save_offset.
42896         (nios2_expand_prologue): Correct setting of frame pointer register
42897         in prologue.
42898         (nios2_expand_epilogue): Update recovery of stack pointer from
42899         frame pointer accordingly.
42900         (nios2_initial_elimination_offset): Update calculation of offset
42901         for eliminating to HARD_FRAME_POINTER_REGNUM.
42903 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
42905         PR ipa/60457
42906         * ipa.c (symtab_remove_unreachable_nodes): Don't call
42907         cgraph_get_create_node on VAR_DECLs.
42909 2014-03-10  Richard Biener  <rguenther@suse.de>
42911         PR middle-end/60474
42912         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
42914 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
42916         * config/vms/vms.opt (vms_float_format): New variable.
42918 2014-03-08  Tobias Burnus  <burnus@net-b.de>
42920         * doc/invoke.texi (-fcilkplus): Update implementation status.
42922 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
42923             Richard Biener  <rguenther@suse.de>
42925         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
42926         consistently accross all TUs.
42927         (run_gcc): Enable -fshort-double automatically at link at link-time
42928         and disallow override.
42930 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
42932         PR target/58271
42933         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
42934         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
42935         if they can't be used.
42937 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42939         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
42940         for Solaris 11/x86 ld.
42941         * configure: Regenerate.
42943 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42945         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
42946         (LIB_TLS_SPEC): Save as ld_tls_libs.
42947         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
42948         (HAVE_AS_IX86_TLSLDM): New test.
42949         * configure, config.in: Regenerate.
42950         * config/i386/i386.c (legitimize_tls_address): Fall back to
42951         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
42952         cannot support TLS_MODEL_LOCAL_DYNAMIC.
42953         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
42954         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
42956 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
42958         * common.opt (fira-loop-pressure): Mark as optimization.
42960 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
42962         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
42963         an OpenMP mappable type.
42965 2014-03-06  Matthias Klose  <doko@ubuntu.com>
42967         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
42968         MULTILIB_OSDIRNAMES is not defined.
42970 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
42971             Meador Inge  <meadori@codesourcery.com>
42973         PR target/58595
42974         * config/arm/arm.c (arm_tls_symbol_p): Remove.
42975         (arm_legitimize_address): Call legitimize_tls_address for any
42976         arm_tls_referenced_p expression, handle constant addend.  Call it
42977         before testing for !TARGET_ARM.
42978         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
42980 2014-03-06  Richard Biener  <rguenther@suse.de>
42982         PR middle-end/60445
42983         PR lto/60424
42984         PR lto/60427
42985         Revert
42986         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
42988         * tree-streamer.c (record_common_node): Assert we don't record
42989         nodes with type double.
42990         (preload_common_node): Skip type double, complex double and double
42991         pointer since it is now frontend dependent due to fshort-double option.
42993 2014-03-06  Richard Biener  <rguenther@suse.de>
42995         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
42996         or -fno-lto is specified and the linker has full plugin support.
42997         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
42998         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
42999         * lto-wrapper.c (merge_and_complain): Merge compile-time
43000         optimization levels.
43001         (run_gcc): And pass it through to the link options.
43003 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
43005         PR debug/60381
43006         Revert:
43007         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
43008         PR debug/59992
43009         * cselib.c (remove_useless_values): Skip to avoid quadratic
43010         behavior if the condition moved from...
43011         (cselib_process_insn): ... here holds.
43013 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
43015         PR plugins/59335
43016         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
43017         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
43019         PR plugins/59335
43020         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
43021         (TM_H): Add x86-tune.def.
43023 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43025         * config/aarch64/aarch64.c (generic_tunings):
43026         Use cortexa57_extra_costs.
43028 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
43030         PR lto/60404
43031         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
43032         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
43033         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
43034         cost for in_lto_p.
43036 2014-03-04  Heiher  <r@hev.cc>
43038         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
43039         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
43041 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
43043         * config/i386/predicates.md (const2356_operand): Change to ...
43044         (const2367_operand): ... this.
43045         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
43046         const2367_operand.
43047         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
43048         (*avx512pf_scatterpf<mode>sf): Ditto.
43049         (avx512pf_scatterpf<mode>df): Ditto.
43050         (*avx512pf_scatterpf<mode>df_mask): Ditto.
43051         (*avx512pf_scatterpf<mode>df): Ditto.
43052         * config/i386/i386.c (ix86_expand_builtin): Update
43053         incorrect hint operand error message.
43055 2014-03-04  Richard Biener  <rguenther@suse.de>
43057         * lto-section-in.c (lto_get_section_data): Fix const cast.
43059 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
43061         * tree-streamer.c (record_common_node): Assert we don't record
43062         nodes with type double.
43063         (preload_common_node): Skip type double, complex double and double
43064         pointer since it is now frontend dependent due to fshort-double option.
43066 2014-03-04  Richard Biener  <rguenther@suse.de>
43068         PR lto/60405
43069         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
43070         (lto_input_toplevel_asms): Likewise.
43071         * lto-section-in.c (lto_get_section_data): Instead do it here
43072         for every section.
43074 2014-03-04  Richard Biener  <rguenther@suse.de>
43076         PR tree-optimization/60382
43077         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
43078         dead PHIs a reduction.
43080 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
43082         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
43083         hint value.
43084         (_mm_prefetch): Move out of GCC target("sse") pragma.
43085         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
43086         GCC target("prfchw") pragma.
43087         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
43088         for locality <= 2.
43089         * config/i386/i386.c (ix86_option_override_internal): Enable
43090         -mprfchw with -mprefetchwt1.
43092 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
43094         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
43095         Mark as varying.
43097 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
43099         * opts.h (CL_PCH_IGNORE): Define.
43100         * targhooks.c (option_affects_pch_p):
43101         Return false for options that have CL_PCH_IGNORE set.
43102         * opt-functions.awk: Process PchIgnore.
43103         * doc/options.texi: Document PchIgnore.
43105         * config/arc/arc.opt (misize): Add PchIgnore property.
43107 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43109         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
43110         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
43111         constraint on constants to permit them being loaded into
43112         GENERAL_REGS or BASE_REGS.
43114 2014-03-03  Nick Clifton  <nickc@redhat.com>
43116         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
43117         anti-cacnonical alternatives.
43118         (negandhi3_real): New pattern.
43119         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
43121 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
43123         * config/avr/avr-mcus.def: Remove atxmega16x1.
43124         * config/avr/avr-tables.opt: Regenerate.
43125         * config/avr/t-multilib: Regenerate.
43126         * doc/avr-mmcu.texi: Regenerate.
43128 2014-03-03  Tobias Grosser  <tobias@grosser.es>
43129             Mircea Namolaru  <mircea.namolaru@inria.fr>
43131         PR tree-optimization/58028
43132         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
43133         scalar dimensions.
43135 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
43137         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
43138         not handled by recognizers.
43140 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
43142         PR middle-end/60175
43143         * function.c (expand_function_end): Don't emit
43144         clobber_return_register sequence if clobber_after is a BARRIER.
43145         * cfgexpand.c (construct_exit_block): Append instructions before
43146         return_label to prev_bb.
43148 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43150         * config/rs6000/constraints.md: Document reserved use of "wc".
43152 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
43154         PR ipa/60150
43155         * ipa.c (function_and_variable_visibility): When dissolving comdat
43156         group, also set all symbols to local.
43158 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
43160         PR ipa/60306
43162         Revert:
43163         2013-12-14  Jan Hubicka  <jh@suse.cz>
43164         PR middle-end/58477
43165         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
43167 2014-03-02  Jon Beniston  <jon@beniston.com>
43169         PR bootstrap/48230
43170         PR bootstrap/50927
43171         PR bootstrap/52466
43172         PR target/46898
43173         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
43174         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
43175         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
43176         (simple_return, *simple_return): New patterns
43177         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
43178         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
43180 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
43182         * dwarf2out.c (gen_subprogram_die): Tidy.
43184 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
43186         PR target/60071
43187         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
43188         (*mov_t_msb_neg_negc): ... this new insn.
43190 2014-02-28  Jason Merrill  <jason@redhat.com>
43192         PR c++/58678
43193         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
43194         function.
43196 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
43198         PR c++/60314
43199         * dwarf2out.c (decltype_auto_die): New static.
43200         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
43201         (gen_type_die_with_usage): Handle 'decltype(auto)'.
43202         (is_cxx_auto): Likewise.
43204 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
43206         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
43207         we are not using general regs only.
43209 2014-02-28  Richard Biener  <rguenther@suse.de>
43211         PR target/60280
43212         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
43213         previous fix and only allow to remove trivial pre-headers
43214         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
43215         (remove_forwarder_block): Properly update the latch of a loop.
43217 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
43219         PR debug/59992
43220         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
43221         (cselib_preserved_hash_table): New.
43222         (preserve_constants_and_equivs): Move preserved vals to it.
43223         (cselib_find_slot): Look it up first.
43224         (cselib_init): Initialize it.
43225         (cselib_finish): Release it.
43226         (dump_cselib_table): Dump it.
43228 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
43230         PR debug/59992
43231         * cselib.c (remove_useless_values): Skip to avoid quadratic
43232         behavior if the condition moved from...
43233         (cselib_process_insn): ... here holds.
43235 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
43237         PR debug/57232
43238         * var-tracking.c (vt_initialize): Apply the same condition to
43239         preserve the CFA base value.
43241 2014-02-28  Joey Ye  <joey.ye@arm.com>
43243         PR target/PR60169
43244         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
43245         if reload in progress or completed.
43247 2014-02-28  Tobias Burnus  <burnus@net-b.de>
43249         PR middle-end/60147
43250         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
43251         NAMELIST_DECL.
43253 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
43255         * doc/tm.texi.in (Condition Code Status): Update documention for
43256         relative locations of cc0-setter and cc0-user.
43258 2014-02-27  Jeff Law  <law@redhat.com>
43260         PR rtl-optimization/52714
43261         * combine.c (try_combine): When splitting an unrecognized PARALLEL
43262         into two independent simple sets, if I3 is a jump, ensure the
43263         pattern we place into I3 is a (set (pc) ...).
43265 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
43266             Jeff Law  <law@redhat.com>
43268         PR rtl-optimization/49847
43269         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
43270         are in different blocks.
43271         * doc/tm.texi (Condition Code Status): Update documention for
43272         relative locations of cc0-setter and cc0-user.
43274 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
43276         PR target/59222
43277         * lra.c (lra_emit_add): Check SUBREG too.
43279 2014-02-27  Andreas Schwab  <schwab@suse.de>
43281         * config/m68k/m68k.c (m68k_option_override): Disable
43282         -flive-range-shrinkage for classic m68k.
43283         (m68k_override_options_after_change): Likewise.
43285 2014-02-27  Marek Polacek  <polacek@redhat.com>
43287         PR middle-end/59223
43288         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
43289         -Wmaybe-uninitialized.
43291 2014-02-27  Alan Modra  <amodra@gmail.com>
43293         PR target/57936
43294         * reload1.c (emit_input_reload_insns): When reload_override_in,
43295         set old to rl->in_reg when rl->in_reg is a subreg.
43297 2014-02-26  Richard Biener  <rguenther@suse.de>
43299         PR bootstrap/60343
43300         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
43302 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
43304         * common/config/i386/predicates.md (const1256_operand): Remove.
43305         (const2356_operand): New.
43306         (const_1_to_2_operand): Remove.
43307         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
43308         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
43309         (*avx512pf_gatherpf<mode>sf): Ditto.
43310         (avx512pf_gatherpf<mode>df): Ditto.
43311         (*avx512pf_gatherpf<mode>df_mask): Ditto.
43312         (*avx512pf_gatherpf<mode>df): Ditto.
43313         (avx512pf_scatterpf<mode>sf): Ditto.
43314         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
43315         (*avx512pf_scatterpf<mode>sf): Ditto.
43316         (avx512pf_scatterpf<mode>df): Ditto.
43317         (*avx512pf_scatterpf<mode>df_mask): Ditto.
43318         (*avx512pf_scatterpf<mode>df): Ditto.
43319         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
43321 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
43323         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
43324         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
43325         (_mm512_mask_testn_epi64_mask): Move to ...
43326         * config/i386/avx512cdintrin.h: Here.
43327         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
43328         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
43329         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
43330         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
43331         TARGET_AVX512F from TARGET_AVX512CD.
43333 2014-02-26  Richard Biener  <rguenther@suse.de>
43335         PR ipa/60327
43336         * ipa.c (walk_polymorphic_call_targets): Properly guard
43337         call to inline_update_overall_summary.
43339 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
43341         PR target/60280
43342         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
43343         and latches only if requested.  Fix latch if it is removed.
43344         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
43345         LOOPS_HAVE_PREHEADERS.
43347 2014-02-25  Andrew Pinski  <apinski@cavium.com>
43349         * builtins.c (expand_builtin_thread_pointer): Create a new target
43350         when the target is NULL.
43352 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
43354         PR rtl-optimization/60317
43355         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
43356         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
43357         * lra-assigns.c: Include params.h.
43358         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
43359         other reload pseudos considerations.
43361 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43363         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
43364         to use canonical form for nor<mode>3.
43366 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
43368         PR target/55426
43369         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
43370         conversions.
43372 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
43374         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
43375         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
43376         (ix86_handle_option): Handle OPT_mprefetchwt1.
43377         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
43378         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
43379         PREFETCHWT1 CPUID.
43380         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
43381         OPTION_MASK_ISA_PREFETCHWT1.
43382         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
43383         (PTA_PREFETCHWT1): New.
43384         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
43385         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
43386         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
43387         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
43388         (*prefetch_avx512pf_<mode>_: Change into ...
43389         (*prefetch_prefetchwt1_<mode>: This.
43390         * config/i386/i386.opt (mprefetchwt1): New.
43391         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
43392         (_mm_prefetch): Handle intent to write.
43393         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
43395 2014-02-25  Richard Biener  <rguenther@suse.de>
43397         PR middle-end/60291
43398         * emit-rtl.c (mem_attrs_htab): Remove.
43399         (mem_attrs_htab_hash): Likewise.
43400         (mem_attrs_htab_eq): Likewise.
43401         (set_mem_attrs): Always allocate new mem-attrs when something changed.
43402         (init_emit_once): Do not allocate mem_attrs_htab.
43404 2014-02-25  Richard Biener  <rguenther@suse.de>
43406         PR lto/60319
43407         * lto-opts.c (lto_write_options): Output non-explicit conservative
43408         -fwrapv, -fno-trapv and -fno-strict-overflow.
43409         * lto-wrapper.c (merge_and_complain): Handle merging those options.
43410         (run_gcc): And pass them through.
43412 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
43414         * sel-sched.c (calculate_new_fences): New parameter ptime.
43415         Calculate it as a maximum over all fence cycles.
43416         (sel_sched_region_2): Adjust the call to calculate_new_fences.
43417         Print the final schedule timing when sched_verbose.
43419 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
43421         PR rtl-optimization/60292
43422         * sel-sched.c (fill_vec_av_set): Do not reset target availability
43423         bit fot the fence instruction.
43425 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
43427         * calls.h: Fix typo in comment.
43429 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
43431         * config/pa/pa.c (pa_output_move_double): Don't valididate when
43432         adjusting offsetable addresses.
43434 2014-02-24  Guozhi Wei  <carrot@google.com>
43436         * sparseset.h (sparseset_pop): Fix the wrong index.
43438 2014-02-24  Walter Lee  <walt@tilera.com>
43440         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
43441         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
43442         triplet.
43443         * common/config/tilegx/tilegx-common.c
43444         (TARGET_DEFAULT_TARGET_FLAGS): Define.
43445         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
43446         (LINK_SPEC): Ditto.
43447         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
43448         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
43449         (tilegx_gimplify_va_arg_expr): Handle big endian.
43450         (tilegx_expand_unaligned_load): Ditto.
43451         (tilegx_expand_unaligned_store): Ditto.
43452         (TARGET_RETURN_IN_MSB): New.
43453         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
43454         (TARGET_ENDIAN_DEFAULT): New.
43455         (TARGET_BIG_ENDIAN): Handle big endian.
43456         (BYTES_BIG_ENDIAN): Ditto.
43457         (WORDS_BIG_ENDIAN): Ditto.
43458         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
43459         (ENDIAN_SPEC): New.
43460         (EXTRA_SPECS): New.
43461         * config/tilegx/tilegx.md (extv): Handle big endian.
43462         (extzv): Ditto.
43463         (insn_st<n>): Ditto.
43464         (insn_st<n>_add<bitsuffix>): Ditto.
43465         (insn_stnt<n>): Ditto.
43466         (insn_stnt<n>_add<bitsuffix>):Ditto.
43467         (vec_interleave_highv8qi): Handle big endian.
43468         (vec_interleave_highv8qi_be): New.
43469         (vec_interleave_highv8qi_le): New.
43470         (insn_v1int_h): Handle big endian.
43471         (vec_interleave_lowv8qi): Handle big endian.
43472         (vec_interleave_lowv8qi_be): New.
43473         (vec_interleave_lowv8qi_le): New.
43474         (insn_v1int_l): Handle big endian.
43475         (vec_interleave_highv4hi): Handle big endian.
43476         (vec_interleave_highv4hi_be): New.
43477         (vec_interleave_highv4hi_le): New.
43478         (insn_v2int_h): Handle big endian.
43479         (vec_interleave_lowv4hi): Handle big endian.
43480         (vec_interleave_lowv4hi_be): New.
43481         (vec_interleave_lowv4hi_le): New.
43482         (insn_v2int_l): Handle big endian.
43483         (vec_interleave_highv2si): Handle big endian.
43484         (vec_interleave_highv2si_be): New.
43485         (vec_interleave_highv2si_le): New.
43486         (insn_v4int_h): Handle big endian.
43487         (vec_interleave_lowv2si): Handle big endian.
43488         (vec_interleave_lowv2si_be): New.
43489         (vec_interleave_lowv2si_le): New.
43490         (insn_v4int_l): Handle big endian.
43491         * config/tilegx/tilegx.opt (mbig-endian): New option.
43492         (mlittle-endian): New option.
43493         * doc/install.texi: Document tilegxbe-linux.
43494         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
43496 2014-02-24  Martin Jambor  <mjambor@suse.cz>
43498         PR ipa/60266
43499         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
43500         there are no parameter descriptors.
43502 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
43504         PR rtl-optimization/60268
43505         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
43506         initialization to ...
43507         (sched_rgn_init): ... here.
43508         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
43510 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
43512         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
43513         names.
43515 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
43517         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
43518         definition.
43520 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
43522         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
43523         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
43525 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
43527         * config/microblaze/predicates.md: Add cmp_op predicate.
43528         * config/microblaze/microblaze.md: Add branch_compare instruction
43529         which uses cmp_op predicate and emits cmp insn before branch.
43530         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
43531         to microblaze_expand_conditional_branch and consolidate logic.
43532         (microblaze_expand_conditional_branch): emit branch_compare
43533         insn instead of handling cmp op separate from branch insn.
43535 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43537         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
43538         to permit subregs.
43540 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43542         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
43543         define_insn with define_expand and new define_insn
43544         *altivec_lve<VI_char>x_internal.
43545         (altivec_stve<VI_char>x): Replace define_insn with define_expand
43546         and new define_insn *altivec_stve<VI_char>x_internal.
43547         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
43548         prototype.
43549         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
43550         lve*x built-ins.
43551         (altivec_expand_stvex_be): New function.
43553 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
43555         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
43556         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
43557         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
43558         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
43560 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
43562         PR target/60298
43563         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
43564         instead of emit_move_insn.
43566 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43568         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
43569         vspltw with vsldoi.
43570         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
43571         gen_altivec_vsumsws.
43573 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43575         * config/rs6000/altivec.md (altivec_lvxl): Rename as
43576         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
43577         (altivec_lvxl_<mode>): New define_expand incorporating
43578         -maltivec=be semantics where needed.
43579         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
43580         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
43581         semantics where needed.
43582         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
43583         (altivec_stvx_<mode>): New define_expand incorporating
43584         -maltivec=be semantics where needed.
43585         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
43586         VM2 iterator instead of V4SI.
43587         (altivec_stvxl_<mode>): New define_expand incorporating
43588         -maltivec=be semantics where needed.
43589         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
43590         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
43591         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
43592         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
43593         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
43594         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
43595         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
43596         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
43597         ALTIVEC_BUILTIN_STVXL.
43598         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
43599         (altivec_expand_stvx_be): Likewise.
43600         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
43601         (altivec_expand_lvx_be): Likewise.
43602         (altivec_expand_stvx_be): Likewise.
43603         (altivec_expand_builtin): Add cases for
43604         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
43605         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
43606         (altivec_init_builtins): Add definitions for
43607         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
43608         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
43610 2014-02-21  Catherine Moore  <clm@codesourcery.com>
43612         * doc/invoke.texi (mvirt, mno-virt): Document.
43613         * config/mips/mips.opt (mvirt): New option.
43614         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
43616 2014-02-21  Richard Biener  <rguenther@suse.de>
43618         PR tree-optimization/60276
43619         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
43620         (STMT_VINFO_MIN_NEG_DIST): New macro.
43621         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
43622         STMT_VINFO_MIN_NEG_DIST.
43623         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
43624         made for negative dependence distances still hold.
43626 2014-02-21  Richard Biener  <rguenther@suse.de>
43628         PR middle-end/60291
43629         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
43630         DECL_INITIAL for globals not in the current function context.
43632 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
43634         PR tree-optimization/56490
43635         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
43636         * tree-ssa-uninit.c: Include params.h.
43637         (compute_control_dep_chain): Add num_calls argument, return false
43638         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
43639         num_calls to recursive call.
43640         (find_predicates): Change dep_chain into normal array,
43641         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
43642         variable and adjust compute_control_dep_chain caller.
43643         (find_def_preds): Likewise.
43645 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
43647         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
43648         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
43650 2014-02-21  Nick Clifton  <nickc@redhat.com>
43652         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
43653         (pushhi1): Likewise.
43654         (popqi1): Add mode to pre_dec.
43655         (pophi1): Likewise.
43657 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
43659         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
43660         mode for mask of V8SFmode permutation.
43662 2014-02-20  Richard Henderson  <rth@redhat.com>
43664         PR c++/60272
43665         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
43666         a new pseudo for OLDVAL.
43668 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
43670         PR target/57896
43671         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
43672         gen_reg_rtx if d->testing_p.
43673         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
43674         if d->testing_p and we will certainly return true.
43675         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
43676         if d->testing_p.
43678 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
43680         * emit-rtl.c (gen_reg_rtx): Assert that
43681         crtl->emit.regno_pointer_align_length is non-zero.
43683 2014-02-20  Richard Henderson  <rth@redhat.com>
43685         PR c++/60272
43686         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
43687         on failure the store back into EXPECT.
43689 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
43690             Sandra Loosemore  <sandra@codesourcery.com>
43692         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
43693         * config/nios2/nios2.c (nios2_function_profiler): Add
43694         -fPIC (flag_pic == 2) support.
43695         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
43696         (nios2_large_offset_p): New function.
43697         (nios2_unspec_reloc_p): Move up position, update to use
43698         nios2_large_offset_p.
43699         (nios2_unspec_address): Remove function.
43700         (nios2_unspec_offset): New function.
43701         (nios2_large_got_address): New function.
43702         (nios2_got_address): Add large offset support.
43703         (nios2_legitimize_tls_address): Update usage of removed and new
43704         functions.
43705         (nios2_symbol_binds_local_p): New function.
43706         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
43707         (nios2_legitimize_address): Update to use nios2_large_offset_p.
43708         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
43709         (nios2_print_operand): Merge H/L processing, add hiadj/lo
43710         processing for (const (unspec ...)).
43711         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
43713 2014-02-20  Richard Biener  <rguenther@suse.de>
43715         * tree-cfg.c (replace_uses_by): Mark altered BBs before
43716         doing the substitution.
43717         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
43719 2014-02-20  Martin Jambor  <mjambor@suse.cz>
43721         PR ipa/55260
43722         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
43723         info when checking whether lattices are bottom.
43725 2014-02-20  Richard Biener  <rguenther@suse.de>
43727         PR middle-end/60221
43728         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
43729         regions at -O0.
43731 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
43733         PR ipa/58555
43734         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
43735         parameter specifying the scaling.
43736         (inline_call): Update.
43737         (want_inline_recursively): Guard division by zero.
43738         (recursive_inlining): Update.
43739         * ipa-inline.h (clone_inlined_nodes): Update.
43741 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
43743         PR target/60204
43744         * config/i386/i386.c (classify_argument): Pass structures of size
43745         64 bytes or less in register.
43747 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
43748             Kirill Yukhin  <kirill.yukhin@intel.com>
43750         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
43751         (_mm_rcp28_round_ss): Ditto.
43752         (_mm_rsqrt28_round_sd): Ditto.
43753         (_mm_rsqrt28_round_ss): Ditto.
43754         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
43755         (_mm_rcp14_round_ss): Ditto.
43756         (_mm_rsqrt14_round_sd): Ditto.
43757         (_mm_rsqrt14_round_ss): Ditto.
43758         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
43759         the first input operand, get rid of match_dup.
43760         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
43761         attribute to sse.
43762         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
43763         Ditto.
43764         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
43765         operand as the first input operand, set type attribute.
43766         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
43767         Set type attribute.
43768         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
43769         operand as the first input operand, set type attribute.
43771 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43773         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
43774         bit of zero.
43776 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
43778         PR target/60207
43779         * config/i386/i386.c (construct_container): Remove TFmode check
43780         for X86_64_INTEGER_CLASS.
43782 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
43784         PR target/59794
43785         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
43786         only when -Wpsabi is enabled.
43788 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
43790         PR target/59799
43791         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
43792         passing arrays in registers are the same as for structs, so remove the
43793         special case for them.
43795 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
43797         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
43798         destination type, extract only the valid bits if the source type is not
43799         integral and has a different mode.
43801 2014-02-19  Richard Biener  <rguenther@suse.de>
43803         PR ipa/60243
43804         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
43805         for all calls.
43807 2014-02-19  Richard Biener  <rguenther@suse.de>
43809         PR ipa/60243
43810         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
43811         (ipa_modify_call_arguments): Emit an argument load explicitely and
43812         preserve virtual SSA form there and for the replacement call.
43813         Do not update SSA form nor free dominance info.
43815 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
43817         * ipa.c (function_and_variable_visibility): Also clear WEAK
43818         flag when disolving COMDAT_GROUP.
43820 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
43822         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
43823         * ipa-prop.c (ipa_set_jf_known_type): Return early when
43824         not devirtualizing.
43825         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
43826         do more sanity checks.
43827         (detect_type_change): Return true when giving up early.
43828         (compute_complex_assign_jump_func): Fix type parameter of
43829         ipa_set_ancestor_jf.
43830         (compute_complex_ancestor_jump_func): Likewise.
43831         (update_jump_functions_after_inlining): Fix updating of
43832         ancestor function.
43833         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
43835 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
43837         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
43838         inline clones when edge disappears.
43840 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
43842         PR target/60203
43843         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
43844         Split 64-bit moves into 2 patterns.  Do not allow the use of
43845         direct move for TDmode in little endian, since the decimal value
43846         has little endian bytes within a word, but the 64-bit pieces are
43847         ordered in a big endian fashion, and normal subreg's of TDmode are
43848         not allowed.
43849         (mov<mode>_64bit_dm): Likewise.
43850         (movtd_64bit_nodm): Likewise.
43852 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
43854         PR tree-optimization/60174
43855         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
43856         statement of an SSA_NAME that occurs in an abnormal PHI node.
43858 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
43860         PR sanitizer/60142
43861         * final.c (SEEN_BB): Remove.
43862         (SEEN_NOTE, SEEN_EMITTED): Renumber.
43863         (final_scan_insn): Don't force_source_line on second
43864         NOTE_INSN_BASIC_BLOCK.
43866 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
43868         PR target/60205
43869         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
43870         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
43871         (type_natural_mode): Warn ABI change when %zmm register is not
43872         available for AVX512F vector value passing.
43874 2014-02-18  Kai Tietz  <ktietz@redhat.com>
43876         PR target/60193
43877         * config/i386/i386.c (ix86_expand_prologue): Use value in
43878         rax register as displacement when restoring %r10 or %rax.
43879         Fix wrong offset when restoring both registers.
43881 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
43883         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
43884         assertion with conditional return.
43886 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
43887             Uros Bizjak  <ubizjak@gmail.com>
43889         PR driver/60233
43890         * config/i386/driver-i386.c (host_detect_local_cpu): If
43891         YMM state is not saved by the OS, also clear has_f16c.  Move
43892         CPUID 0x80000001 handling before YMM state saving checking.
43894 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
43896         PR rtl-optimization/58960
43897         * haifa-sched.c (alloc_global_sched_pressure_data): New,
43898         factored out from ...
43899         (sched_init): ... here.
43900         (free_global_sched_pressure_data): New, factored out from ...
43901         (sched_finish): ... here.
43902         * sched-int.h (free_global_sched_pressure_data): Declare.
43903         * sched-rgn.c (nr_regions_initial): New static global.
43904         (haifa_find_rgns): Initialize it.
43905         (schedule_region): Disable sched-pressure for the newly
43906         generated regions.
43908 2014-02-17  Richard Biener  <rguenther@suse.de>
43910         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
43911         release SSA defs of pattern stmts.
43913 2014-02-17  Richard Biener  <rguenther@suse.de>
43915         * tree-inline.c (expand_call_inline): Release the virtual
43916         operand defined by the call we are about to inline.
43918 2014-02-17  Richard Biener  <rguenther@suse.de>
43920         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
43922 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
43923             Ilya Tocar  <ilya.tocar@intel.com>
43925         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
43926         arguments order in builtin.
43927         (_mm512_permutexvar_epi64): Ditto.
43928         (_mm512_mask_permutexvar_epi64): Ditto
43929         (_mm512_maskz_permutexvar_epi32): Ditto
43930         (_mm512_permutexvar_epi32): Ditto
43931         (_mm512_mask_permutexvar_epi32): Ditto
43933 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43935         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
43936         (p8_vmrgow): Likewise.
43938 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43940         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
43941         endian targets.
43943 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
43945         PR target/60203
43946         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
43947         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
43948         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
43949         using direct move instructions on ISA 2.07.  Also adjust
43950         instruction length for 64-bit.
43951         (mov<mode>_64bit, TFmode/TDmode): Likewise.
43952         (mov<mode>_32bit, TFmode/TDmode): Likewise.
43954 2014-02-15  Alan Modra  <amodra@gmail.com>
43956         PR target/58675
43957         PR target/57935
43958         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
43959         find_replacement on parts of insn rtl that might be reloaded.
43961 2014-02-15  Richard Biener  <rguenther@suse.de>
43963         PR tree-optimization/60183
43964         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
43965         (tree_ssa_phiprop): Calculate and free post-dominators.
43967 2014-02-14  Jeff Law  <law@redhat.com>
43969         PR rtl-optimization/60131
43970         * ree.c (get_extended_src_reg): New function.
43971         (combine_reaching_defs): Use it rather than assuming location of REG.
43972         (find_and_remove_re): Verify first operand of extension is
43973         a REG before adding the insns to the copy list.
43975 2014-02-14  Roland McGrath  <mcgrathr@google.com>
43977         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
43978         * configure: Regenerated.
43979         * config.in: Regenerated.
43980         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
43981         instead of ASM_SHORT.
43983 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
43984             Richard Earnshaw  <rearnsha@arm.com>
43986         PR rtl-optimization/59535
43987         * lra-constraints.c (process_alt_operands): Encourage alternative
43988         when unassigned pseudo class is superset of the alternative class.
43989         (inherit_reload_reg): Don't inherit when optimizing for code size.
43990         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
43991         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
43992         modes not less than 4 for Thumb1.
43994 2014-02-14  Kyle McMartin  <kyle@redhat.com>
43996         PR pch/60010
43997         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
43999 2014-02-14  Richard Biener  <rguenther@suse.de>
44001         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
44002         (get_frame_arg): Drop the assert with langhook types_compatible_p.
44003         Do not strip INDIRECT_REFs.
44005 2014-02-14  Richard Biener  <rguenther@suse.de>
44007         PR lto/60179
44008         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
44009         DECL_FUNCTION_SPECIFIC_TARGET.
44010         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
44011         * tree-streamer-out.c (pack_ts_target_option): Remove.
44012         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
44013         (write_ts_function_decl_tree_pointers): Do not stream
44014         DECL_FUNCTION_SPECIFIC_TARGET.
44015         * tree-streamer-in.c (unpack_ts_target_option): Remove.
44016         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
44017         (lto_input_ts_function_decl_tree_pointers): Do not stream
44018         DECL_FUNCTION_SPECIFIC_TARGET.
44020 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
44022         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
44023         (get_initial_def_for_induction, vectorizable_induction): Ignore
44024         debug stmts when looking for exit_phi.
44025         (vectorizable_live_operation): Fix up condition.
44027 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
44029         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
44030         nreverse() because it changes the content of original tree list.
44032 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
44034         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
44035         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
44037 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
44039         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
44040         GNU coding standards.
44042 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
44044         PR debug/60152
44045         * dwarf2out.c (gen_subprogram_die): Don't call
44046         add_calling_convention_attribute if subr_die is old_die.
44048 2014-02-13  Sharad Singhai  <singhai@google.com>
44050         * doc/optinfo.texi: Fix order of nodes.
44052 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
44054         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
44055         operands[2], not operands[3].
44057 2014-02-13  Richard Biener  <rguenther@suse.de>
44059         PR bootstrap/59878
44060         * doc/install.texi (ISL): Update recommended version to 0.12.2,
44061         mention the possibility of an in-tree build.
44062         (CLooG): Update recommended version to 0.18.1, mention the
44063         possibility of an in-tree build and clarify that the ISL
44064         bundled with CLooG does not work.
44066 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
44068         PR target/43546
44069         * expr.c (compress_float_constant): If x is a hard register,
44070         extend into a pseudo and then move to x.
44072 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
44074         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
44075         caused by bad second argument to warning_at() with -mhotpatch and
44076         nested functions (e.g. with gfortran).
44078 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
44080         * opts.c (option_name): Remove "enabled by default" rider.
44082 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
44084         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
44086 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
44087             Uros Bizjak  <ubizjak@gmail.com>
44089         PR target/60151
44090         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
44091         * configure: Regenerated.
44093 2014-02-12  Richard Biener  <rguenther@suse.de>
44095         * vec.c (vec_prefix::calculate_allocation): Move as
44096         inline variant to vec.h.
44097         (vec_prefix::calculate_allocation_1): New out-of-line version.
44098         * vec.h (vec_prefix::calculate_allocation_1): Declare.
44099         (vec_prefix::m_has_auto_buf): Rename to ...
44100         (vec_prefix::m_using_auto_storage): ... this.
44101         (vec_prefix::calculate_allocation): Inline the easy cases
44102         and dispatch to calculate_allocation_1 which doesn't need the
44103         prefix address.
44104         (va_heap::reserve): Use gcc_checking_assert.
44105         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
44106         m_using_auto_storage.
44107         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
44108         member and adjust.
44109         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
44110         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
44111         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
44113 2014-02-12  Richard Biener  <rguenther@suse.de>
44115         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
44116         when we found a dependence.
44118 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
44120         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
44121         common code...
44122         (maybe_fold_stmt): ... into this new function.
44123         * omp-low.c (lower_omp): Update comment.
44125         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
44126         last use.
44128         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
44129         dereference.
44131 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
44133         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
44134         identifiers in comments.
44135         (cortexa53_extra_costs): Likewise.
44136         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
44137         (cortexa7_extra_costs): Likewise.
44138         (cortexa12_extra_costs): Likewise.
44139         (cortexa15_extra_costs): Likewise.
44140         (v7m_extra_costs): Likewise.
44142 2014-02-12  Richard Biener  <rguenther@suse.de>
44144         PR middle-end/60092
44145         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
44146         of posix_memalign being successful.
44147         (lower_stmt): Restrict lowering of posix_memalign to when
44148         -ftree-bit-ccp is enabled.
44150 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
44152         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
44153         arg_loc.
44154         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
44156 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
44158         PR rtl-optimization/60116
44159         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
44160         other_insn once the combination has been validated.
44162 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
44164         PR lto/59468
44165         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
44166         and wrapper.
44167         * ipa-devirt.c: Include demangle.h
44168         (odr_violation_reported): New static variable.
44169         (add_type_duplicate): Update odr_violations.
44170         (maybe_record_node): Add completep parameter; update it.
44171         (record_target_from_binfo): Add COMPLETEP parameter;
44172         update it as needed.
44173         (possible_polymorphic_call_targets_1): Likewise.
44174         (struct polymorphic_call_target_d): Add nonconstruction_targets;
44175         rename FINAL to COMPLETE.
44176         (record_targets_from_bases): Sanity check we found the binfo;
44177         fix COMPLETEP updating.
44178         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
44179         parameter, fix computing of COMPLETEP.
44180         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
44181         at LTO time do demangling.
44182         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
44183         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
44184         parameter.
44185         (gimple_get_virt_method_for_binfo): Likewise.
44186         * gimple-fold.h (gimple_get_virt_method_for_binfo,
44187         gimple_get_virt_method_for_vtable): Update prototypes.
44189 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
44191         PR target/49008
44192         * genautomata.c (add_presence_absence): Fix typo with
44193         {final_}presence_list.
44195 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
44197         PR target/60137
44198         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
44199         for VSX/Altivec vectors that land in GPR registers.
44201 2014-02-11  Richard Henderson  <rth@redhat.com>
44202             Jakub Jelinek  <jakub@redhat.com>
44204         PR debug/59776
44205         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
44206         around drhs if type conversion to lacc->type is not useless.
44208 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44210         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
44211         tuning struct.
44212         (cortex-a57.cortex-a53): Likewise.
44213         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
44215 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44217         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
44218         arm_restrict_it.
44220 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
44222         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
44223         add_options_for_arm_vfp3.
44225 2014-02-11  Jeff Law  <law@redhat.com>
44227         PR middle-end/54041
44228         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
44229         object with an undesirable mode.
44231 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
44233         PR libgomp/60107
44234         * config/i386/sol2-9.h: New file.
44235         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
44236         *-*-solaris2.9*): Use it.
44238 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
44240         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
44241         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
44243 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
44245         * config/microblaze/microblaze.c: Extend mcpu version format
44247 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
44249         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
44251 2014-02-10  Richard Henderson  <rth@redhat.com>
44253         PR target/59927
44254         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
44255         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
44256         ms-abi vs -mno-accumulate-outgoing-args.
44257         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
44258         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
44259         respect to ms-abi.
44261 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
44263         PR middle-end/60080
44264         * cfgexpand.c (expand_asm_operands): Attach source location to
44265         ASM_INPUT rtx objects.
44266         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
44268 2014-02-10  Nick Clifton  <nickc@redhat.com>
44270         * config/mn10300/mn10300.c (popcount): New function.
44271         (mn10300_expand_prologue): Include saved registers in stack usage
44272         count.
44274 2014-02-10  Jeff Law  <law@redhat.com>
44276         PR middle-end/52306
44277         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
44278         when changing the SET_DEST of a prior insn to avoid an input reload.
44280 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44282         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
44283         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
44284         -mcall-openbsd, or -mcall-linux.
44285         (CC1_ENDIAN_BIG_SPEC): Remove.
44286         (CC1_ENDIAN_LITTLE_SPEC): Remove.
44287         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
44288         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
44289         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
44290         and %cc1_endian_default.
44291         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
44293 2014-02-10  Richard Biener  <rguenther@suse.de>
44295         PR tree-optimization/60115
44296         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
44297         MEM_REF handling.  Properly verify that the accesses are not
44298         out of the objects bound.
44300 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44302         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
44303         coretex to cortex.
44305 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
44307         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
44308         proper constants and fix formatting.
44309         (possible_polymorphic_call_targets): Fix formatting.
44311 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
44312             Ilya Tocar  <ilya.tocar@intel.com>
44314         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
44315         (_mm512_loadu_epi32): Renamed into...
44316         (_mm512_loadu_si512): This.
44317         (_mm512_storeu_epi32): Renamed into...
44318         (_mm512_storeu_si512): This.
44319         (_mm512_maskz_ceil_ps): Removed.
44320         (_mm512_maskz_ceil_pd): Ditto.
44321         (_mm512_maskz_floor_ps): Ditto.
44322         (_mm512_maskz_floor_pd): Ditto.
44323         (_mm512_floor_round_ps): Ditto.
44324         (_mm512_floor_round_pd): Ditto.
44325         (_mm512_ceil_round_ps): Ditto.
44326         (_mm512_ceil_round_pd): Ditto.
44327         (_mm512_mask_floor_round_ps): Ditto.
44328         (_mm512_mask_floor_round_pd): Ditto.
44329         (_mm512_mask_ceil_round_ps): Ditto.
44330         (_mm512_mask_ceil_round_pd): Ditto.
44331         (_mm512_maskz_floor_round_ps): Ditto.
44332         (_mm512_maskz_floor_round_pd): Ditto.
44333         (_mm512_maskz_ceil_round_ps): Ditto.
44334         (_mm512_maskz_ceil_round_pd): Ditto.
44335         (_mm512_expand_pd): Ditto.
44336         (_mm512_expand_ps): Ditto.
44337         * config/i386/i386.c (ix86_builtins): Remove
44338         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
44339         (bdesc_args): Ditto.
44340         * config/i386/predicates.md (const1256_operand): New.
44341         (const_1_to_2_operand): Ditto.
44342         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
44343         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
44344         (*avx512pf_gatherpf<mode>sf): Ditto.
44345         (avx512pf_gatherpf<mode>df): Ditto.
44346         (*avx512pf_gatherpf<mode>df_mask): Ditto.
44347         (*avx512pf_gatherpf<mode>df): Ditto.
44348         (avx512pf_scatterpf<mode>sf): Ditto.
44349         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44350         (*avx512pf_scatterpf<mode>sf): Ditto.
44351         (avx512pf_scatterpf<mode>df): Ditto.
44352         (*avx512pf_scatterpf<mode>df_mask): Ditto.
44353         (*avx512pf_scatterpf<mode>df): Ditto.
44354         (avx512f_expand<mode>): Removed.
44355         (<shift_insn><mode>3<mask_name>): Change predicate type.
44357 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
44359         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
44360         not at the end of datarefs vector use ordered_remove to avoid
44361         reordering datarefs vector.
44363         PR c/59984
44364         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
44365         mark local addressable non-static vars as GOVD_PRIVATE
44366         instead of GOVD_LOCAL.
44367         * omp-low.c (lower_omp_for): Move gimple_bind_vars
44368         and BLOCK_VARS of gimple_bind_block to new_stmt rather
44369         than copying them.
44371         PR middle-end/60092
44372         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
44373         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
44374         assume_aligned or alloc_align attributes.
44375         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
44376         arguments.  Handle also assume_aligned and alloc_align attributes.
44377         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
44378         calls to functions with assume_aligned or alloc_align attributes.
44379         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
44381 2014-02-08  Terry Guo  <terry.guo@arm.com>
44383         * doc/invoke.texi: Document ARM -march=armv7e-m.
44385 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
44387         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
44388         flag on __cilkrts_rethrow builtin.
44390         PR ipa/60026
44391         * ipa-cp.c (determine_versionability): Fail at -O0
44392         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
44393         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
44395         Revert:
44396         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
44398         PR ipa/60026
44399         * tree-inline.c (copy_forbidden): Fail for
44400         __attribute__((optimize (0))) functions.
44402 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
44404         * varpool.c: Include pointer-set.h.
44405         (varpool_remove_unreferenced_decls): Variables in other partitions
44406         will not be output; be however careful to not lose information
44407         about partitioning.
44409 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
44411         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
44412         lookup in the vtable constructor.
44414 2014-02-07  Jeff Law  <law@redhat.com>
44416         PR target/40977
44417         * config/m68k/m68k.md (ashldi_extsi): Turn into a
44418         define_insn_and_split.
44420         * ipa-inline.c (inline_small_functions): Fix typos.
44422 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
44424         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
44425         (s390_can_use_return_insn): Declare.
44426         * config/s390/s390.h (EPILOGUE_USES): Define.
44427         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
44428         instructions.
44429         (s390_chunkify_start): Handle return JUMP_LABELs.
44430         (s390_early_mach): Emit a main_pool instruction on the entry edge.
44431         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
44432         (s390_can_use_return_insn): New functions.
44433         (s390_fix_long_loop_prediction): Handle conditional returns.
44434         (TARGET_SET_UP_BY_PROLOGUE): Define.
44435         * config/s390/s390.md (ANY_RETURN): New code iterator.
44436         (*creturn, *csimple_return, return, simple_return): New patterns.
44438 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
44440         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
44441         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
44442         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
44443         REG_CFA_RESTORE list when deciding not to restore a register.
44445 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
44447         * config/s390/s390.c: Include tree-pass.h and context.h.
44448         (s390_early_mach): New function, split out from...
44449         (s390_emit_prologue): ...here.
44450         (pass_data_s390_early_mach): New pass structure.
44451         (pass_s390_early_mach): New class.
44452         (s390_option_override): Create and register early_mach pass.
44453         Move to end of file.
44455 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
44457         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
44458         to match for the exit block.
44460 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44462         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
44463         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
44464         Reject misaligned operands.
44466 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44468         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
44470 2014-02-07  Richard Biener  <rguenther@suse.de>
44472         PR middle-end/60092
44473         * gimple-low.c (lower_builtin_posix_memalign): New function.
44474         (lower_stmt): Call it to lower posix_memalign in a way
44475         to make alignment info accessible.
44477 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
44479         PR c++/60082
44480         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
44481         __builtin_setjmp_receiver.
44483 2014-02-07  Richard Biener  <rguenther@suse.de>
44485         PR middle-end/60092
44486         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
44487         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
44488         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
44489         Handle BUILT_IN_POSIX_MEMALIGN.
44490         (find_func_clobbers): Likewise.
44491         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
44492         (call_may_clobber_ref_p_1): Likewise.
44494 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
44496         PR ipa/59918
44497         * ipa-devirt.c (record_target_from_binfo): Remove overactive
44498         sanity check.
44500 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
44502         PR ipa/59469
44503         * lto-cgraph.c (lto_output_node): Use
44504         symtab_get_symbol_partitioning_class.
44505         (lto_output_varpool_node): likewise.
44506         (symtab_get_symbol_partitioning_class): Move here from
44507         lto/lto-partition.c
44508         * cgraph.h (symbol_partitioning_class): Likewise.
44509         (symtab_get_symbol_partitioning_class): Declare.
44511 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
44513         * ggc.h (ggc_internal_cleared_alloc): New macro.
44514         * vec.h (vec_safe_copy): Handle memory stats.
44515         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
44516         * target-globals.c (save_target_globals): Likewise.
44518 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
44520         PR target/60077
44521         * expr.c (emit_move_resolve_push): Export; be bit more selective
44522         on when to clear alias set.
44523         * expr.h (emit_move_resolve_push): Declare.
44524         * function.h (struct function): Add tail_call_marked.
44525         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
44526         * config/i386/i386-protos.h (ix86_expand_push): Remove.
44527         * config/i386/i386.md (TImode move expander): De not call
44528         ix86_expand_push.
44529         (FP push expanders): Preserve memory attributes.
44530         * config/i386/sse.md (push<mode>1): Remove.
44531         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
44532         (ix86_expand_push): Remove.
44533         * config/i386/mmx.md (push<mode>1): Remove.
44535 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
44537         PR rtl-optimization/60030
44538         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
44539         lopart with paradoxical subreg before shifting it up by hprec.
44541 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44543         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
44544         Remove extra newline at end of file.
44545         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
44546         (arm_issue_rate): Handle cortexa57.
44547         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
44548         (cortex-a57.cortex-a53): Likewise.
44550 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
44552         PR target/59575
44553         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
44554         don't record in REG_FRAME_RELATED_EXPR registers not set in that
44555         bitmask.
44556         (arm_expand_prologue): Adjust all callers.
44557         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
44558         info, registers also at the lowest numbered registers side.  Use
44559         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
44560         XEXP.
44562         PR debug/59992
44563         * var-tracking.c (adjust_mems): Before adding a SET to
44564         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
44566 2014-02-06  Alan Modra  <amodra@gmail.com>
44568         PR target/60032
44569         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
44570         change SDmode to DDmode when lra_in_progress.
44572 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
44574         PR middle-end/59150
44575         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
44576         free_data_ref on the dr first, and before goto again also set dr
44577         to the next dr.  For simd_lane_access, free old datarefs[i] before
44578         overwriting it.  For get_vectype_for_scalar_type failure, don't
44579         free_data_ref if simd_lane_access.
44581         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
44583         PR target/60062
44584         * tree.h (opts_for_fn): New inline function.
44585         (opt_for_fn): Define.
44586         * config/i386/i386.c (ix86_function_regparm): Use
44587         opt_for_fn (decl, optimize) instead of optimize.
44589 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
44591         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
44592         for SYMBOL_REF in large memory model.
44594 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44596         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
44597         and crypto support.
44598         (cortex-a57): Likewise.
44599         (cortex-a57.cortex-a53): Likewise.
44601 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
44602             Kugan Vivekanandarajah  <kuganv@linaro.org>
44604         * config/arm/arm.c (arm_vector_alignment_reachable): Check
44605         unaligned_access.
44606         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
44608 2014-02-06  Richard Biener  <rguenther@suse.de>
44610         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
44611         set_loop_copy and initialize_original_copy_tables.
44613 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
44615         * config/aarch64/aarch64-simd.md
44616         (aarch64_ashr_simddi): Change QI to SI.
44618 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
44619             Jakub Jelinek  <jakub@redhat.com>
44621         PR middle-end/60013
44622         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
44623         of the dataflow.
44625 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44627         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
44628         CODE_FOR_altivec_vpku[hw]um to
44629         CODE_FOR_altivec_vpku[hw]um_direct.
44630         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
44631         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
44632         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
44633         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
44635 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44637         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
44638         generation for -maltivec=be.
44639         (altivec_vsumsws): Simplify redundant test.
44641 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44643         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
44644         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
44645         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
44646         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
44647         gen_altivec_vpkuwum.
44648         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
44649         BYTES_BIG_ENDIAN.
44650         (altivec_vpks<VI_char>ss): Likewise.
44651         (altivec_vpks<VI_char>us): Likewise.
44652         (altivec_vpku<VI_char>us): Likewise.
44653         (altivec_vpku<VI_char>um): Likewise.
44654         (altivec_vpku<VI_char>um_direct): New (copy of
44655         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
44656         internal use).
44657         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
44658         target is little endian and -maltivec=be is not specified.
44659         (*altivec_vupkhs<VU_char>_direct): New (copy of
44660         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
44661         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
44662         target is little endian and -maltivec=be is not specified.
44663         (*altivec_vupkls<VU_char>_direct): New (copy of
44664         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
44665         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
44666         little endian and -maltivec=be is not specified.
44667         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
44668         little endian and -maltivec=be is not specified.
44670 2014-02-05  Richard Henderson  <rth@redhat.com>
44672         PR debug/52727
44673         * combine-stack-adj.c: Revert r206943.
44674         * sched-int.h (struct deps_desc): Add last_args_size.
44675         * sched-deps.c (init_deps): Initialize it.
44676         (sched_analyze_insn): Add OUTPUT dependencies between insns that
44677         contain REG_ARGS_SIZE notes.
44679 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
44681         * lto-cgraph.c (asm_nodes_output): Make global.
44682         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
44683         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
44684         (driver_handle_option): Handle OPT_fwpa.
44686 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
44688         PR ipa/59947
44689         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
44690         a comment typo and formatting issue.  If odr_hash hasn't been
44691         created, return vNULL and set *completep to false.
44693         PR middle-end/57499
44694         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
44695         bb with no successors.
44697 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
44699         PR target/59718
44700         * doc/invoke.texi (-march): Clarify documentation for ARM.
44701         (-mtune): Likewise.
44702         (-mcpu): Likewise.
44704 2014-02-05  Richard Biener  <rguenther@suse.de>
44706         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
44707         when not vectorizing because of too many alias checks.
44708         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
44709         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
44711 2014-02-05  Nick Clifton  <nickc@redhat.com>
44713         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
44714         accept extended registers in any mode when compiling for the MN10300.
44716 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
44718         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
44719         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
44720         sanitization attributes.
44721         (can_inline_edge_p): Likewise.
44722         (sanitize_attrs_match_for_inline_p): New function.
44724 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
44726         * ipa-prop.c (detect_type_change): Shor circuit testing of
44727         type changes on THIS pointer.
44729 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
44731         PR target/59777
44732         * config/pa/pa.c (legitimize_tls_address): Return original address
44733         if not passed a SYMBOL_REF rtx.
44734         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
44735         addresses.
44736         (pa_emit_move_sequence): Simplify TLS source operands.
44737         (pa_legitimate_constant_p): Reject all TLS constants.
44738         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
44739         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
44741 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
44743         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
44744         groups when we know they are controlled by LTO.
44745         * varasm.c (default_binds_local_p_1): If object is in other partition,
44746         it will be resolved locally.
44748 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
44750         * config/host-linux.c (linux_gt_pch_use_address): Don't
44751         use SSIZE_MAX because it is not always defined.
44753 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
44755         PR bootstrap/59913
44756         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
44757         threshold for pseudo splitting.
44758         (update_ebb_live_info): Process call argument hard registers and
44759         hard registers from insn definition too.
44760         (max_small_class_regs_num): New constant.
44761         (inherit_in_ebb): Update live hard regs through EBBs.  Update
44762         reloads_num only for small register classes.  Don't split for
44763         outputs of jumps.
44765 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
44767         PR ipa/60058
44768         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
44769         is non-null.
44771 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
44773         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
44774         visibility is safe.
44776 2014-02-04  Marek Polacek  <polacek@redhat.com>
44778         * gdbinit.in (pel): Define.
44780 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
44782         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
44783         behavior.
44785 2014-02-04  Richard Biener  <rguenther@suse.de>
44787         PR lto/59723
44788         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
44789         in function context local.
44790         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
44791         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
44792         similar to LTO_imported_decl_ref.
44794 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
44796         PR tree-optimization/60002
44797         * cgraphclones.c (build_function_decl_skip_args): Clear
44798         DECL_LANG_SPECIFIC.
44800         PR tree-optimization/60023
44801         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
44802         false to gsi_replace.
44803         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
44804         has been in some EH region and vec_stmt could throw, add
44805         vec_stmt into the same EH region.
44806         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
44807         has no lhs, ignore it.
44808         * internal-fn.c (expand_MASK_LOAD): Likewise.
44810         PR ipa/60026
44811         * tree-inline.c (copy_forbidden): Fail for
44812         __attribute__((optimize (0))) functions.
44814         PR other/58712
44815         * omp-low.c (simd_clone_struct_copy): If from->inbranch
44816         is set, copy one less argument.
44817         (expand_simd_clones): Don't subtract clone_info->inbranch
44818         from simd_clone_struct_alloc argument.
44820         PR rtl-optimization/57915
44821         * recog.c (simplify_while_replacing): If all unary/binary/relational
44822         operation arguments are constant, attempt to simplify those.
44824         PR middle-end/59261
44825         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
44826         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
44828 2014-02-04  Richard Biener  <rguenther@suse.de>
44830         PR tree-optimization/60012
44831         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
44832         TBAA disambiguation to all DDRs.
44834 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
44836         PR target/59788
44837         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
44838         (LINK_SPEC): Use it for -shared, -shared-libgcc.
44840 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
44842         PR ipa/59882
44843         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
44845 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
44847         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
44848         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
44850 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
44852         PR ipa/59831
44853         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
44854         to figure out targets of polymorphic calls with known decl.
44855         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
44856         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
44857         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
44858         (get_polymorphic_call_info): ... here.
44859         (get_polymorphic_call_info_from_invariant): New function.
44861 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
44863         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
44864         lookup via vtable pointer; check for type consistency
44865         and turn inconsitent facts into UNREACHABLE.
44866         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
44867         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
44868         type inconsistent querries; return UNREACHABLE instead.
44870 2014-02-03  Richard Henderson  <rth@twiddle.net>
44872         PR tree-opt/59924
44873         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
44874         already processed this node.
44875         (normalize_one_pred_1): Pass along mark_set.
44876         (normalize_one_pred): Create and destroy a pointer_set_t.
44877         (normalize_one_pred_chain): Likewise.
44879 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
44881         PR gcov-profile/58602
44882         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
44884 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
44886         PR ipa/59831
44887         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
44888         -fno-devirtualize; try to devirtualize by the knowledge of
44889         virtual table pointer given by aggregate propagation.
44890         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
44891         (ipa_print_node_jump_functions): Dump also offset that
44892         is relevant for polymorphic calls.
44893         (determine_known_aggregate_parts): Add arg_type parameter; use it
44894         instead of determining the type from pointer type.
44895         (ipa_compute_jump_functions_for_edge): Update call of
44896         determine_known_aggregate_parts.
44897         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
44898         (gimple_get_virt_method_for_binfo): ... here; simplify using
44899         vtable_pointer_value_to_vtable.
44900         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
44901         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
44902         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
44903         (vtable_pointer_value_to_vtable): Break out from ...; handle also
44904         POINTER_PLUS_EXPR.
44905         (vtable_pointer_value_to_binfo): ... here.
44906         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
44908 2014-02-03  Teresa Johnson  <tejohnson@google.com>
44910         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
44911         redef of outer loop index variable.
44913 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
44915         PR c++/53017
44916         PR c++/59211
44917         * doc/extend.texi (Function Attributes): Typo.
44919 2014-02-03  Cong Hou  <congh@google.com>
44921         PR tree-optimization/60000
44922         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
44923         if the vectorized statement is a store.  A store statement can only
44924         appear at the end of pattern statements.
44926 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
44928         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
44929         (ix86_option_override_internal): Default long double to 64-bit for
44930         32-bit Bionic and to 128-bit for 64-bit Bionic.
44932         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
44933         TARGET_LONG_DOUBLE_128 is true.
44934         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
44936         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
44937         (mlong-double-64): Negate -mlong-double-128.
44938         (mlong-double-128): New option.
44940         * config/i386/i386-c.c (ix86_target_macros): Define
44941         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
44943         * doc/invoke.texi: Document -mlong-double-128.
44945 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
44947         PR rtl-optimization/60024
44948         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
44950 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
44952         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
44954 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
44956         PR rtl-optimization/57662
44957         * sel-sched.c (code_motion_path_driver): Do not mark already not
44958         existing blocks in the visiting bitmap.
44960 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
44962         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
44963         on the insn being emitted.
44965 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
44966             Will Deacon  <will.deacon@arm.com>
44968         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
44970 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44972         * config/arm/arm-tables.opt: Regenerate.
44974 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44976         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
44977         for vector types other than V16QImode.
44978         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
44979         define_expand, and call altivec_expand_vec_perm_le when producing
44980         code with little endian element order.
44981         (*altivec_vperm_<mode>_internal): New insn having previous
44982         behavior of altivec_vperm_<mode>.
44983         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
44984         altivec_expand_vec_perm_le when producing code with little endian
44985         element order.
44986         (*altivec_vperm_<mode>_uns_internal): New insn having previous
44987         behavior of altivec_vperm_<mode>_uns.
44989 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44991         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
44992         (altivec_vsumsws): Add handling for -maltivec=be with a little
44993         endian target.
44994         (altivec_vsumsws_direct): New.
44995         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
44996         gen_altivec_vsumsws.
44998 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
45000         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
45001         vtable_pointer_value_to_binfo): New functions.
45002         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
45003         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
45005 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
45007         * config/nios2/nios2.md (load_got_register): Initialize GOT
45008         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
45009         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
45011 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
45013         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
45014         preserverd by passthrough, do not propagate the type.
45016 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
45018         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
45019         (mips_atomic_assign_expand_fenv): New function.
45020         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
45022 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
45024         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
45025         (__builtin_mips_set_fcsr): Likewise.
45026         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
45027         MIPS_USI_FTYPE_VOID.
45028         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
45029         (mips16_expand_set_fcsr): Likewise.
45030         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
45031         (mips16_set_fcsr_stub): Likewise.
45032         (mips16_get_fcsr_one_only_stub): New class.
45033         (mips16_set_fcsr_one_only_stub): Likewise.
45034         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
45035         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
45036         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
45037         (hard_float): New availability predicate.
45038         (mips_builtins): Add get_fcsr and set_fcsr.
45039         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
45040         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
45041         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
45042         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
45043         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
45044         patterns.
45046 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
45048         * config/mips/mips.c (mips_one_only_stub): New class.
45049         (mips_need_mips16_rdhwr_p): Replace with...
45050         (mips16_rdhwr_stub): ...this new variable.
45051         (mips16_stub_call_address): New function.
45052         (mips16_rdhwr_one_only_stub): New class.
45053         (mips_expand_thread_pointer): Use mips16_stub_call_address.
45054         (mips_output_mips16_rdhwr): Delete.
45055         (mips_finish_stub): New function.
45056         (mips_code_end): Use it to handle rdhwr stubs.
45058 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
45060         PR target/60017
45061         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
45062         when calculating size of integer atomic types.
45064 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
45066         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
45068 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
45070         PR tree-optimization/60003
45071         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
45072         * profile.c (branch_prob): Use gimple_call_builtin_p
45073         to check for BUILT_IN_SETJMP_RECEIVER.
45074         * tree-inline.c (copy_bb): Call notice_special_calls.
45076 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
45078         PR bootstrap/59985
45079         * lra-constraints.c (process_alt_operands): Update reload_sum only
45080         on the first pass.
45082 2014-01-31  Richard Henderson  <rth@redhat.com>
45084         PR middle-end/60004
45085         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
45086         until after else_eh is processed.
45088 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
45090         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
45091         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
45092         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
45093         in smmintrin.h, remove them.
45094         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
45095         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
45096         * config/i386/i386.md (ROUND_SAE): Fix value.
45097         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
45098         (const48_operand): New.
45099         * config/i386/subst.md (round), (round_expand): Use
45100         const_4_or_8_to_11_operand.
45101         (round_saeonly), (round_saeonly_expand): Use const48_operand.
45103 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
45105         * config/i386/constraints.md (Yk): Swap meaning with k.
45106         * config/i386/i386.md (movhi_internal): Change Yk to k.
45107         (movqi_internal): Ditto.
45108         (*k<logic><mode>): Ditto.
45109         (*andhi_1): Ditto.
45110         (*andqi_1): Ditto.
45111         (kandn<mode>): Ditto.
45112         (*<code>hi_1): Ditto.
45113         (*<code>qi_1): Ditto.
45114         (kxnor<mode>): Ditto.
45115         (kortestzhi): Ditto.
45116         (kortestchi): Ditto.
45117         (kunpckhi): Ditto.
45118         (*one_cmplhi2_1): Ditto.
45119         (*one_cmplqi2_1): Ditto.
45120         * config/i386/sse.md (): Change k to Yk.
45121         (avx512f_load<mode>_mask): Ditto.
45122         (avx512f_blendm<mode>): Ditto.
45123         (avx512f_store<mode>_mask): Ditto.
45124         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
45125         (avx512f_storedqu<mode>_mask): Ditto.
45126         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
45127         Ditto.
45128         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
45129         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
45130         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
45131         (avx512f_maskcmp<mode>3): Ditto.
45132         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
45133         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
45134         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
45135         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
45136         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
45137         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
45138         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
45139         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
45140         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
45141         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
45142         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
45143         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
45144         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
45145         (vec_extract_lo_<mode>_maskm): Ditto.
45146         (vec_extract_hi_<mode>_maskm): Ditto.
45147         (avx512f_vternlog<mode>_mask): Ditto.
45148         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
45149         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
45150         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
45151         (avx512f_<code>v8div16qi2_mask): Ditto.
45152         (avx512f_<code>v8div16qi2_mask_store): Ditto.
45153         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
45154         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
45155         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
45156         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
45157         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
45158         (*avx512pf_gatherpf<mode>df_mask): Ditto.
45159         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
45160         (*avx512pf_scatterpf<mode>df_mask): Ditto.
45161         (avx512cd_maskb_vec_dupv8di): Ditto.
45162         (avx512cd_maskw_vec_dupv16si): Ditto.
45163         (avx512f_vpermi2var<mode>3_maskz): Ditto.
45164         (avx512f_vpermi2var<mode>3_mask): Ditto.
45165         (avx512f_vpermi2var<mode>3_mask): Ditto.
45166         (avx512f_vpermt2var<mode>3_maskz): Ditto.
45167         (*avx512f_gathersi<mode>): Ditto.
45168         (*avx512f_gathersi<mode>_2): Ditto.
45169         (*avx512f_gatherdi<mode>): Ditto.
45170         (*avx512f_gatherdi<mode>_2): Ditto.
45171         (*avx512f_scattersi<mode>): Ditto.
45172         (*avx512f_scatterdi<mode>): Ditto.
45173         (avx512f_compress<mode>_mask): Ditto.
45174         (avx512f_compressstore<mode>_mask): Ditto.
45175         (avx512f_expand<mode>_mask): Ditto.
45176         * config/i386/subst.md (mask): Change k to Yk.
45177         (mask_scalar_merge): Ditto.
45178         (sd): Ditto.
45180 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
45182         * doc/extend.texi (Vector Extensions): Document ?: in C++.
45184 2014-01-31  Richard Biener  <rguenther@suse.de>
45186         PR middle-end/59990
45187         * builtins.c (fold_builtin_memory_op): Make sure to not
45188         use a floating-point mode or a boolean or enumeral type for
45189         the copy operation.
45191 2014-01-30  DJ Delorie  <dj@redhat.com>
45193         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
45194         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
45195         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
45196         whenever main() has an epilogue.
45198 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45200         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
45201         unused variable "field".
45202         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
45203         (vsx_mergeh_<mode>): Likewise.
45204         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
45205         (altivec_vmrghh): Likewise.
45206         (altivec_vmrghw): Likewise.
45207         (altivec_vmrglb): Likewise.
45208         (altivec_vmrglh): Likewise.
45209         (altivec_vmrglw): Likewise.
45210         (altivec_vspltb): Add missing uses.
45211         (altivec_vsplth): Likewise.
45212         (altivec_vspltw): Likewise.
45213         (altivec_vspltsf): Likewise.
45215 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
45217         PR target/59923
45218         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
45219         frame related instructions.
45221 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
45223         PR rtl-optimization/59959
45224         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
45225         any reload of register whose subreg is invalid.
45227 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
45229         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
45230         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
45231         Add missing return type - void.
45233 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45235         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
45236         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
45237         remove element index adjustment for endian (now handled in vsx.md
45238         and altivec.md).
45239         (altivec_expand_vec_perm_const): Use
45240         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
45241         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
45242         (vsx_xxspltw_<mode>): Adjust element index for little endian.
45243         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
45244         define_expand and a new define_insn *altivec_vspltb_internal;
45245         adjust for -maltivec=be on a little endian target.
45246         (altivec_vspltb_direct): New.
45247         (altivec_vsplth): Divide into a define_expand and a new
45248         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
45249         little endian target.
45250         (altivec_vsplth_direct): New.
45251         (altivec_vspltw): Divide into a define_expand and a new
45252         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
45253         little endian target.
45254         (altivec_vspltw_direct): New.
45255         (altivec_vspltsf): Divide into a define_expand and a new
45256         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
45257         a little endian target.
45259 2014-01-30  Richard Biener  <rguenther@suse.de>
45261         PR tree-optimization/59993
45262         * tree-ssa-forwprop.c (associate_pointerplus): Check we
45263         can propagate form the earlier stmt and avoid the transform
45264         when the intermediate result is needed.
45266 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
45268         * README.Portability: Fix typo.
45270 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
45272         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
45273         comparison_operator with ordered_comparison_operator.
45275 2014-01-30  Nick Clifton  <nickc@redhat.com>
45277         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
45278         Rename to mn10300_store_multiple_regs.
45279         * config/mn10300/mn10300.c: Likewise.
45280         * config/mn10300/mn10300.md (store_movm): Fix typo: call
45281         store_multiple_regs.
45282         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
45283         Call mn10300_store_multiple_regs.
45285 2014-01-30  Nick Clifton  <nickc@redhat.com>
45286             DJ Delorie  <dj@redhat.com>
45288         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
45289         %fp 2 to keep registers after it properly word-aligned.
45290         (rl78_alloc_physical_registers_umul): Handle the case where both
45291         input operands are the same.
45293 2014-01-30  Richard Biener  <rguenther@suse.de>
45295         PR tree-optimization/59903
45296         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
45297         check properly.
45299 2014-01-30  Jason Merrill  <jason@redhat.com>
45301         PR c++/59633
45302         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
45304         PR c++/59645
45305         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
45307 2014-01-30  Richard Biener  <rguenther@suse.de>
45309         PR tree-optimization/59951
45310         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
45312 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
45314         PR target/59784
45315         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
45316         SFmode to DFmode case.
45318 2014-01-29  DJ Delorie  <dj@redhat.com>
45320         * config/msp430/msp430.opt (-minrt): New.
45321         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
45322         if -minrt given.
45323         (ENDFILE_SPEC): Likewise.
45325 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
45327         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
45328         (estimate_function_body_sizes): Use it.
45330 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
45332         PR c++/58561
45333         * dwarf2out.c (is_cxx_auto): New.
45334         (is_base_type): Use it.
45335         (gen_type_die_with_usage): Likewise.
45337 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45339         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
45340         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
45341         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
45342         -maltivec=be with LE targets.
45343         (vsx_mergeh_<mode>): Likewise.
45344         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
45345         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
45346         (altivec_vmrghb): Replace with define_expand and new
45347         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
45348         (altivec_vmrghb_direct): New define_insn.
45349         (altivec_vmrghh): Replace with define_expand and new
45350         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
45351         (altivec_vmrghh_direct): New define_insn.
45352         (altivec_vmrghw): Replace with define_expand and new
45353         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
45354         (altivec_vmrghw_direct): New define_insn.
45355         (*altivec_vmrghsf): Adjust for endianness.
45356         (altivec_vmrglb): Replace with define_expand and new
45357         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
45358         (altivec_vmrglb_direct): New define_insn.
45359         (altivec_vmrglh): Replace with define_expand and new
45360         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
45361         (altivec_vmrglh_direct): New define_insn.
45362         (altivec_vmrglw): Replace with define_expand and new
45363         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
45364         (altivec_vmrglw_direct): New define_insn.
45365         (*altivec_vmrglsf): Adjust for endianness.
45366         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
45367         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
45368         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
45369         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
45370         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
45371         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
45372         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
45373         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
45375 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
45377         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
45378         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
45379         whitespace.
45381 2014-01-29  Richard Biener  <rguenther@suse.de>
45383         PR tree-optimization/58742
45384         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
45385         associate_pointerplus_align.
45386         (associate_pointerplus_diff): New function.
45387         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
45388         and associate_pointerplus_diff.
45390 2014-01-29  Richard Biener  <rguenther@suse.de>
45392         * lto-streamer.h (LTO_major_version): Bump to 3.
45393         (LTO_minor_version): Reset to 0.
45395 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
45397         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
45398         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
45399         (arm_file_start): Generate correct asm header for armv7ve.
45400         * config/arm/bpabi.h: Add multilib support for armv7ve.
45401         * config/arm/driver-arm.c: Change the architectures of cortex-a7
45402         and cortex-a15 to armv7ve.
45403         * config/arm/t-aprofile: Add multilib support for armv7ve.
45404         * doc/invoke.texi: Document -march=armv7ve.
45406 2014-01-29  Richard Biener  <rguenther@suse.de>
45408         PR tree-optimization/58742
45409         * tree-ssa-forwprop.c (associate_plusminus): Return true
45410         if we changed sth, defer EH cleanup to ...
45411         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
45412         (simplify_mult): New function.
45414 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
45416         PR middle-end/59917
45417         PR tree-optimization/59920
45418         * tree.c (build_common_builtin_nodes): Remove
45419         __builtin_setjmp_dispatcher initialization.
45420         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
45421         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
45422         instead of gsi_after_labels + manually skipping debug stmts.
45423         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
45424         ignore bbs with IFN_ABNORMAL_DISPATCHER.
45425         * tree-inline.c (copy_edges_for_bb): Remove
45426         can_make_abnormal_goto argument, instead add abnormal_goto_dest
45427         argument.  Ignore computed_goto_p stmts.  Don't call
45428         make_abnormal_goto_edges.  If a call might need abnormal edges
45429         for non-local gotos, see if it already has an edge to
45430         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
45431         with true argument, don't do anything then, otherwise add
45432         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
45433         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
45434         caller.
45435         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
45436         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
45437         (lower_stmt): Don't set data->calls_builtin_setjmp.
45438         (lower_builtin_setjmp): Adjust comment.
45439         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
45440         * tree-cfg.c (found_computed_goto): Remove.
45441         (factor_computed_gotos): Remove.
45442         (make_goto_expr_edges): Return bool, true for computed gotos.
45443         Don't call make_abnormal_goto_edges.
45444         (build_gimple_cfg): Don't set found_computed_goto, don't call
45445         factor_computed_gotos.
45446         (computed_goto_p): No longer static.
45447         (make_blocks): Don't set found_computed_goto.
45448         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
45449         (make_edges): If make_goto_expr_edges returns true, push bb
45450         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
45451         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
45452         vector.  Record mapping between bbs and OpenMP regions if there
45453         are any, adjust make_gimple_omp_edges caller.  Call
45454         handle_abnormal_edges.
45455         (make_abnormal_goto_edges): Remove.
45456         * tree-cfg.h (make_abnormal_goto_edges): Remove.
45457         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
45458         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
45459         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
45460         * internal-fn.def (ABNORMAL_DISPATCHER): New.
45461         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
45462         filling *region also set *region_idx to (*region)->entry->index.
45464         PR other/58712
45465         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
45466         For REGs set ORIGINAL_REGNO.
45468 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
45470         * doc/md.texi: Mention that a target shouldn't implement
45471         vec_widen_(s|u)mul_even/odd pair if it is less efficient
45472         than hi/lo pair.
45474 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
45476         PR tree-optimization/59594
45477         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
45478         a copy of the datarefs vector rather than the vector itself.
45480 2014-01-28  Jason Merrill  <jason@redhat.com>
45482         PR c++/53756
45483         * dwarf2out.c (auto_die): New static.
45484         (gen_type_die_with_usage): Handle C++1y 'auto'.
45485         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
45486         on definition.
45488 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
45490         PR target/59672
45491         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
45492         (SPEC_X32): Likewise.
45493         (SPEC_64): Likewise.
45494         * config/i386/i386.c (ix86_option_override_internal): Turn off
45495         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
45496         for TARGET_16BIT.
45497         (x86_file_start): Output .code16gcc for TARGET_16BIT.
45498         * config/i386/i386.h (TARGET_16BIT): New macro.
45499         (TARGET_16BIT_P): Likewise.
45500         * config/i386/i386.opt: Add m16.
45501         * doc/invoke.texi: Document -m16.
45503 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
45505         PR preprocessor/59935
45506         * input.c (location_get_source_line): Bail out on when line number
45507         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
45509 2014-01-28  Richard Biener  <rguenther@suse.de>
45511         PR tree-optimization/58742
45512         * tree-ssa-forwprop.c (associate_plusminus): Handle
45513         pointer subtraction of the form (T)(P + A) - (T)P.
45515 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
45517         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
45518         at const_int_cost.
45520 2014-01-28  Richard Biener  <rguenther@suse.de>
45522         Revert
45523         2014-01-28  Richard Biener  <rguenther@suse.de>
45525         PR rtl-optimization/45364
45526         PR rtl-optimization/59890
45527         * var-tracking.c (local_get_addr_clear_given_value): Handle
45528         already cleared slot.
45529         (val_reset): Handle not allocated local_get_addr_cache.
45530         (vt_find_locations): Use post-order on the inverted CFG.
45532 2014-01-28  Richard Biener  <rguenther@suse.de>
45534         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
45536 2014-01-28  Richard Biener  <rguenther@suse.de>
45538         PR rtl-optimization/45364
45539         PR rtl-optimization/59890
45540         * var-tracking.c (local_get_addr_clear_given_value): Handle
45541         already cleared slot.
45542         (val_reset): Handle not allocated local_get_addr_cache.
45543         (vt_find_locations): Use post-order on the inverted CFG.
45545 2014-01-28  Alan Modra  <amodra@gmail.com>
45547         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
45548         * configure.ac <recursive call for build != host>: Define
45549         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
45550         and LD_FOR_BUILD too.
45551         * configure: Regenerate.
45553 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
45555         * config/i386/i386.c (get_builtin_code_for_version): Separate
45556         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
45557         Broadwell from Haswell.
45559 2014-01-27  Steve Ellcey  <sellcey@mips.com>
45561         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
45562         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
45563         * config/mips/mips.c (mips_option_override): Change setting
45564         of TARGET_DSP.
45565         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
45566         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
45567         Change from Mask to Var.
45569 2014-01-27  Jeff Law  <law@redhat.com>
45571         * ipa-inline.c (inline_small_functions): Fix typo.
45573 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
45575         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
45576         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
45577         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
45578         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
45579         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
45580         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
45581         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
45582         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
45583         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
45584         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
45585         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
45586         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
45587         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
45588         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
45589         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
45590         (_mm512_storeu_epi64): Ditto.
45591         (_mm512_cmpge_epi32_mask): Ditto.
45592         (_mm512_cmpge_epu32_mask): Ditto.
45593         (_mm512_cmpge_epi64_mask): Ditto.
45594         (_mm512_cmpge_epu64_mask): Ditto.
45595         (_mm512_cmple_epi32_mask): Ditto.
45596         (_mm512_cmple_epu32_mask): Ditto.
45597         (_mm512_cmple_epi64_mask): Ditto.
45598         (_mm512_cmple_epu64_mask): Ditto.
45599         (_mm512_cmplt_epi32_mask): Ditto.
45600         (_mm512_cmplt_epu32_mask): Ditto.
45601         (_mm512_cmplt_epi64_mask): Ditto.
45602         (_mm512_cmplt_epu64_mask): Ditto.
45603         (_mm512_cmpneq_epi32_mask): Ditto.
45604         (_mm512_cmpneq_epu32_mask): Ditto.
45605         (_mm512_cmpneq_epi64_mask): Ditto.
45606         (_mm512_cmpneq_epu64_mask): Ditto.
45607         (_mm512_expand_pd): Ditto.
45608         (_mm512_expand_ps): Ditto.
45609         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
45610         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
45611         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
45612         * config/i386/i386.c (ix86_builtins): Add
45613         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
45614         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
45615         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
45616         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
45617         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
45618         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
45619         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
45620         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
45621         IX86_BUILTIN_PMOVUSQW512_MEM.
45622         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
45623         __builtin_ia32_pmovsqd512mem_mask,
45624         __builtin_ia32_pmovqd512mem_mask,
45625         __builtin_ia32_pmovusqw512mem_mask,
45626         __builtin_ia32_pmovsqw512mem_mask,
45627         __builtin_ia32_pmovqw512mem_mask,
45628         __builtin_ia32_pmovusdw512mem_mask,
45629         __builtin_ia32_pmovsdw512mem_mask,
45630         __builtin_ia32_pmovdw512mem_mask,
45631         __builtin_ia32_pmovqb512mem_mask,
45632         __builtin_ia32_pmovusqb512mem_mask,
45633         __builtin_ia32_pmovsqb512mem_mask,
45634         __builtin_ia32_pmovusdb512mem_mask,
45635         __builtin_ia32_pmovsdb512mem_mask,
45636         __builtin_ia32_pmovdb512mem_mask.
45637         (bdesc_args): Add __builtin_ia32_expanddf512,
45638         __builtin_ia32_expandsf512.
45639         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
45640         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
45641         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
45642         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
45643         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
45644         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
45645         (avx512f_<code>v8div16qi2_mask_store): This.
45646         (avx512f_expand<mode>): New.
45648 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
45650         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
45651         New.
45652         (_mm512_mask_prefetch_i64gather_pd): Ditto.
45653         (_mm512_prefetch_i32scatter_pd): Ditto.
45654         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
45655         (_mm512_prefetch_i64scatter_pd): Ditto.
45656         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
45657         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
45658         (_mm512_mask_prefetch_i64gather_ps): Ditto.
45659         (_mm512_prefetch_i32scatter_ps): Ditto.
45660         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
45661         (_mm512_prefetch_i64scatter_ps): Ditto.
45662         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
45663         * config/i386/i386-builtin-types.def: Define
45664         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
45665         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
45666         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
45667         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
45668         IX86_BUILTIN_SCATTERPFQPD.
45669         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
45670         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
45671         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
45672         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
45673         __builtin_ia32_scatterpfqps.
45674         (ix86_expand_builtin): Expand new built-ins.
45675         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
45676         fix memory access data type.
45677         (*avx512pf_gatherpf<mode>_mask): Ditto.
45678         (*avx512pf_gatherpf<mode>): Ditto.
45679         (avx512pf_scatterpf<mode>): Ditto.
45680         (*avx512pf_scatterpf<mode>_mask): Ditto.
45681         (*avx512pf_scatterpf<mode>): Ditto.
45682         (GATHER_SCATTER_SF_MEM_MODE): New.
45683         (avx512pf_gatherpf<mode>df): Ditto.
45684         (*avx512pf_gatherpf<mode>df_mask): Ditto.
45685         (*avx512pf_scatterpf<mode>df): Ditto.
45687 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
45689         PR bootstrap/59934
45690         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
45691         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
45692         reached.
45694 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
45696         * common/config/arm/arm-common.c
45697         (arm_rewrite_mcpu): Handle multiple names.
45698         * config/arm/arm.h
45699         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
45701 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
45703         * gimple-builder.h (create_gimple_tmp): Delete.
45705 2014-01-27  Christian Bruel  <christian.bruel@st.com>
45707         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
45708         words comparisons.
45710 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
45712         * config/pa/pa.md (call): Generate indirect long calls to non-local
45713         functions when outputing 32-bit code.
45714         (call_value): Likewise except for special call to buggy powf function.
45716         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
45717         portable runtime and PIC indirect calls.
45718         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
45719         and PIC call sequences.  Use ldo instead of blr to set return register
45720         in PIC call sequence.
45722 2014-01-25  Walter Lee  <walt@tilera.com>
45724         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
45725         avoid clobbering a live register.
45727 2014-01-25  Walter Lee  <walt@tilera.com>
45729         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
45730         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
45731         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
45732         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
45734 2014-01-25  Walter Lee  <walt@tilera.com>
45736         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
45737         arguments on even registers.
45738         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
45739         STACK_BOUNDARY.
45740         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
45741         (BIGGEST_ALIGNMENT): Ditto.
45742         (BIGGEST_FIELD_ALIGNMENT): Ditto.
45744 2014-01-25  Walter Lee  <walt@tilera.com>
45746         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
45747         insns before bundling.
45748         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
45750 2014-01-25  Walter Lee  <walt@tilera.com>
45752         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
45753         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
45754         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
45756 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
45758         * config/mips/constraints.md (kl): Delete.
45759         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
45760         define expands, using...
45761         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
45762         instructions for MIPS16.
45763         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
45764         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
45766 2014-01-25  Walter Lee  <walt@tilera.com>
45768         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
45769         (clzdi2): Ditto.
45770         (ffsdi2): Ditto.
45772 2014-01-25  Walter Lee  <walt@tilera.com>
45774         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
45775         (TARGET_EXPAND_TO_RTL_HOOK): Define.
45777 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
45779         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
45780         Handle XOR.
45782 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
45784         * print-rtl.c (in_call_function_usage): New var.
45785         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
45786         EXPR_LIST mode as mode and not as reg note name.
45788         PR middle-end/59561
45789         * cfgloopmanip.c (copy_loop_info): If
45790         loop->warned_aggressive_loop_optimizations, make sure
45791         the flag is set in target loop too.
45793 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
45795         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
45796         flag_cilkplus.
45797         * builtins.def: Likewise.
45798         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
45799         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
45800         * ira.c (ira_setup_eliminable_regset): Likewise.
45801         * omp-low.c (gate_expand_omp): Likewise.
45802         (execute_lower_omp): Likewise.
45803         (diagnose_sb_0): Likewise.
45804         (gate_diagnose_omp_blocks): Likewise.
45805         (simd_clone_clauses_extract): Likewise.
45806         (gate): Likewise.
45808 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45810         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
45811         correction for little endian...
45812         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
45813         here.
45815 2014-01-24  Jeff Law  <law@redhat.com>
45817         PR tree-optimization/59919
45818         * tree-vrp.c (find_assert_locations_1): Do not register asserts
45819         for non-returning calls.
45821 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
45823         * common/config/aarch64/aarch64-common.c
45824         (aarch64_rewrite_mcpu): Handle multiple names.
45825         * config/aarch64/aarch64.h
45826         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
45828 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
45830         * input.c (add_file_to_cache_tab): Handle the case where fopen
45831         returns NULL.
45833 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
45835         PR target/59929
45836         * config/i386/i386.md (pushsf splitter): Get stack adjustment
45837         from push operand if code of push isn't PRE_DEC.
45839 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
45841         PR target/59909
45842         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
45843         -mquad-memory-atomic.  Update -mquad-memory documentation to say
45844         it is only used for non-atomic loads/stores.
45846         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
45847         -mquad-memory or -mquad-memory-atomic switches.
45849         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
45850         -mquad-memory-atomic to ISA 2.07 support.
45852         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
45853         to separate support of normal quad word memory operations (ldq, stq)
45854         from the atomic quad word memory operations.
45856         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
45857         support to separate non-atomic quad word operations from atomic
45858         quad word operations.  Disable non-atomic quad word operations in
45859         little endian mode so that we don't have to swap words after the
45860         load and before the store.
45861         (quad_load_store_p): Add comment about atomic quad word support.
45862         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
45863         options printed with -mdebug=reg.
45865         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
45866         -mquad-memory-atomic as the test for whether we have quad word
45867         atomic instructions.
45868         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
45869         or -mp8-vector are used, allow byte/half-word atomic operations.
45871         * config/rs6000/sync.md (load_lockedti): Insure that the address
45872         is a proper indexed or indirect address for the lqarx instruction.
45873         On little endian systems, swap the hi/lo registers after the lqarx
45874         instruction.
45875         (load_lockedpti): Use indexed_or_indirect_operand predicate to
45876         insure the address is valid for the lqarx instruction.
45877         (store_conditionalti): Insure that the address is a proper indexed
45878         or indirect address for the stqcrx. instruction.  On little endian
45879         systems, swap the hi/lo registers before doing the stqcrx.
45880         instruction.
45881         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
45882         insure the address is valid for the stqcrx. instruction.
45884         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
45885         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
45886         type of quad memory support is available.
45888 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
45890         PR regression/59915
45891         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
45892         there is a danger of looping.
45894 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
45896         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
45897         force flag_ira_loop_pressure if set via command line.
45899 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
45901         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
45902         (ashr_simd): New builtin handling DI mode.
45903         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
45904         (aarch64_sshr_simddi): New match pattern.
45905         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
45906         (vshrd_n_s64): Likewise.
45907         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
45909 2014-01-23  Nick Clifton  <nickc@redhat.com>
45911         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
45912         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
45913         favour of mcu specific scripts.
45914         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
45915         430x multilibs.
45917 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
45918             Alex Velenko  <Alex.Velenko@arm.com>
45920         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
45921         (vaddv_s16): Likewise.
45922         (vaddv_s32): Likewise.
45923         (vaddv_u8): Likewise.
45924         (vaddv_u16): Likewise.
45925         (vaddv_u32): Likewise.
45926         (vaddvq_s8): Likewise.
45927         (vaddvq_s16): Likewise.
45928         (vaddvq_s32): Likewise.
45929         (vaddvq_s64): Likewise.
45930         (vaddvq_u8): Likewise.
45931         (vaddvq_u16): Likewise.
45932         (vaddvq_u32): Likewise.
45933         (vaddvq_u64): Likewise.
45934         (vaddv_f32): Likewise.
45935         (vaddvq_f32): Likewise.
45936         (vaddvq_f64): Likewise.
45937         (vmaxv_f32): Likewise.
45938         (vmaxv_s8): Likewise.
45939         (vmaxv_s16): Likewise.
45940         (vmaxv_s32): Likewise.
45941         (vmaxv_u8): Likewise.
45942         (vmaxv_u16): Likewise.
45943         (vmaxv_u32): Likewise.
45944         (vmaxvq_f32): Likewise.
45945         (vmaxvq_f64): Likewise.
45946         (vmaxvq_s8): Likewise.
45947         (vmaxvq_s16): Likewise.
45948         (vmaxvq_s32): Likewise.
45949         (vmaxvq_u8): Likewise.
45950         (vmaxvq_u16): Likewise.
45951         (vmaxvq_u32): Likewise.
45952         (vmaxnmv_f32): Likewise.
45953         (vmaxnmvq_f32): Likewise.
45954         (vmaxnmvq_f64): Likewise.
45955         (vminv_f32): Likewise.
45956         (vminv_s8): Likewise.
45957         (vminv_s16): Likewise.
45958         (vminv_s32): Likewise.
45959         (vminv_u8): Likewise.
45960         (vminv_u16): Likewise.
45961         (vminv_u32): Likewise.
45962         (vminvq_f32): Likewise.
45963         (vminvq_f64): Likewise.
45964         (vminvq_s8): Likewise.
45965         (vminvq_s16): Likewise.
45966         (vminvq_s32): Likewise.
45967         (vminvq_u8): Likewise.
45968         (vminvq_u16): Likewise.
45969         (vminvq_u32): Likewise.
45970         (vminnmv_f32): Likewise.
45971         (vminnmvq_f32): Likewise.
45972         (vminnmvq_f64): Likewise.
45974 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
45976         * config/aarch64/aarch64-simd.md
45977         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
45978         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
45979         (*aarch64_mul3_elt<mode>): Likewise.
45980         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
45981         (*aarch64_mul3_elt_to_64v2df): Likewise.
45982         (*aarch64_mla_elt<mode>): Likewise.
45983         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
45984         (*aarch64_mls_elt<mode>): Likewise.
45985         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
45986         (*aarch64_fma4_elt<mode>): Likewise.
45987         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
45988         (*aarch64_fma4_elt_to_64v2df): Likewise.
45989         (*aarch64_fnma4_elt<mode>): Likewise.
45990         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
45991         (*aarch64_fnma4_elt_to_64v2df): Likewise.
45992         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
45993         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
45994         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
45995         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
45996         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
45997         (aarch64_sqdmull_lane<mode>_internal): Likewise.
45998         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
46000 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
46002         * config/aarch64/aarch64-simd.md
46003         (aarch64_be_checked_get_lane<mode>): New define_expand.
46004         * config/aarch64/aarch64-simd-builtins.def
46005         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
46006         New builtin definition.
46007         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
46008         Use new safe be builtin.
46010 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
46012         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
46013         New define_insn.
46014         (aarch64_be_st1<mode>): Likewise.
46015         (aarch_ld1<VALL:mode>): Define_expand modified.
46016         (aarch_st1<VALL:mode>): Likewise.
46017         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
46018         (UNSPEC_ST1): Likewise.
46020 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
46022         * config/microblaze/microblaze.md: Add trap insn and attribute
46024 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
46026         PR preprocessor/58580
46027         * input.h (location_get_source_line): Take an additional line_size
46028         parameter.
46029         (void diagnostics_file_cache_fini): Declare new function.
46030         * input.c (struct fcache): New type.
46031         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
46032         New static constants.
46033         (diagnostic_file_cache_init, total_lines_num)
46034         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
46035         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
46036         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
46037         (get_next_line, read_next_line, goto_next_line, read_line_num):
46038         New static function definitions.
46039         (diagnostic_file_cache_fini): New function.
46040         (location_get_source_line): Take an additional output line_len
46041         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
46042         read_line_num.
46043         * diagnostic.c (diagnostic_finish): Call
46044         diagnostic_file_cache_fini.
46045         (adjust_line): Take an additional input parameter for the length
46046         of the line, rather than calculating it with strlen.
46047         (diagnostic_show_locus): Adjust the use of
46048         location_get_source_line and adjust_line with respect to their new
46049         signature.  While displaying a line now, do not stop at the first
46050         null byte.  Rather, display the zero byte as a space and keep
46051         going until we reach the size of the line.
46052         * Makefile.in: Add vec.o to OBJS-libcommon
46054 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
46055             Ilya Tocar  <ilya.tocar@intel.com>
46057         * config/i386/avx512fintrin.h (_mm512_kmov): New.
46058         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
46059         (__builtin_ia32_kmov16): Ditto.
46060         * config/i386/i386.md (UNSPEC_KMOV): New.
46061         (kmovw): Ditto.
46063 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
46065         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
46066         (_mm512_storeu_si512): Ditto.
46068 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
46070         PR target/52125
46071         * rtl.h (get_referenced_operands): Declare.
46072         * recog.c (get_referenced_operands): New function.
46073         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
46074         operands have been referenced when recording LO_SUM references.
46076 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
46078         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
46080 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
46082         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
46083         Enable for generic and recent AMD targets.
46085 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
46087         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
46088         ARG_SIZE note when adjustment was eliminated.
46090 2014-01-22  Jeff Law  <law@redhat.com>
46092         PR tree-optimization/59597
46093         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
46094         in file.  Accept new argument REGISTERING and use it to modify
46095         dump output appropriately.
46096         (register_jump_thread): Corresponding changes.
46097         (mark_threaded_blocks): Reinstate code to cancel unprofitable
46098         thread paths involving joiner blocks.  Add code to dump cancelled
46099         jump threading paths.
46101 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
46103         PR rtl-optimization/59477
46104         * lra-constraints.c (inherit_in_ebb): Process call for living hard
46105         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
46107 2014-01-22  Tom Tromey  <tromey@redhat.com>
46109         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
46110         PARAMS.
46111         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
46113 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
46115         PR rtl-optimization/59896
46116         * lra-constraints.c (process_alt_operands): Check unused note for
46117         matched operands of insn with no output reloads.
46119 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
46121         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
46122         (mips_move_from_gpr_cost): Likewise.
46124 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
46126         PR rtl-optimization/59858
46127         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
46128         ira_class_hard_regs_num.
46129         (process_alt_operands): Increase reject for dying matched operand.
46131 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
46133         PR target/59003
46134         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
46135         smaller than size, perform several stores or loads and stores
46136         at dst + count - size to store or copy all of size bytes, rather
46137         than just last modesize bytes.
46139 2014-01-20  DJ Delorie  <dj@redhat.com>
46141         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
46142         that CLOBBERs are REGs before propogating their values.
46144 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
46146         PR middle-end/59789
46147         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
46148         (cgraph_inline_failed_type): New function.
46149         * cgraph.h (DEFCIFCODE): Add type.
46150         (cgraph_inline_failed_type_t): New enum.
46151         (cgraph_inline_failed_type): New prototype.
46152         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
46153         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
46154         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
46155         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
46156         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
46157         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
46158         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
46159         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
46160         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
46161         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
46162         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
46163         OPTIMIZATION_MISMATCH.
46164         * tree-inline.c (expand_call_inline): Emit errors during
46165         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
46167 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
46169         PR target/59685
46170         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
46171         mode attribute in insn output.
46173 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
46175         * output.h (output_constant): Delete.
46176         * varasm.c (output_constant): Make private.
46178 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
46180         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
46182 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
46184         PR middle-end/59860
46185         * tree.h (fold_builtin_strcat): New prototype.
46186         * builtins.c (fold_builtin_strcat): No longer static.  Add len
46187         argument, if non-NULL, don't call c_strlen.  Optimize
46188         directly into __builtin_memcpy instead of __builtin_strcpy.
46189         (fold_builtin_2): Adjust fold_builtin_strcat caller.
46190         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
46192 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
46194         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
46195         for SImode_address_operand operands, having only a REG argument.
46197 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
46199         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
46200         loader name using mbig-endian.
46201         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
46203 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
46205         * doc/invoke.texi (-march): Clarify documentation for AArch64.
46206         (-mtune): Likewise.
46207         (-mcpu): Likewise.
46209 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
46211         * config/aarch64/aarch64-protos.h
46212         (aarch64_cannot_change_mode_class_ptr): Declare.
46213         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
46214         aarch64_cannot_change_mode_class_ptr): New.
46215         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
46216         backend hook aarch64_cannot_change_mode_class.
46218 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
46220         * common/config/aarch64/aarch64-common.c
46221         (aarch64_handle_option): Don't handle any option order logic here.
46222         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
46223         selected_cpu, warn on architecture version mismatch.
46224         (aarch64_override_options): Fix parsing order for option strings.
46226 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
46227             Iain Sandoe  <iain@codesourcery.com>
46229         PR bootstrap/59496
46230         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
46231         warning.  Amend comment to reflect current functionality.
46233 2014-01-20  Richard Biener  <rguenther@suse.de>
46235         PR middle-end/59860
46236         * builtins.c (fold_builtin_strcat): Remove case better handled
46237         by tree-ssa-strlen.c.
46239 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
46241         * config/aarch64/aarch64.opt
46242         (mcpu, march, mtune): Make case-insensitive.
46244 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
46246         PR target/59880
46247         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
46248         if operands[1] is a REG or ZERO_EXTEND of a REG.
46250 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
46252         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
46254 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
46256         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
46257         long non-pic millicode calls.
46259 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
46261         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
46263 2014-01-19  Kito Cheng  <kito@0xlab.org>
46265         * builtins.c (expand_movstr): Check movstr expand done or fail.
46267 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
46268             H.J. Lu  <hongjiu.lu@intel.com>
46270         PR target/59379
46271         * config/i386/i386.md (*lea<mode>): Zero-extend return register
46272         to DImode for zero-extended addresses.
46274 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
46276         PR rtl-optimization/57763
46277         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
46278         on the new indirect jump_insn and increment LABEL_NUSES (label).
46280 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
46282         PR bootstrap/59580
46283         PR bootstrap/59583
46284         * config.gcc (x86_archs): New variable.
46285         (x86_64_archs): Likewise.
46286         (x86_cpus): Likewise.
46287         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
46288         --with-arch/--with-cpu= options.
46289         Support --with-arch=/--with-cpu={nehalem,westmere,
46290         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
46292 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
46294         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
46295         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
46297 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
46299         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
46301 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
46303         PR target/58944
46304         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
46305         clear cpp_get_options (parse_in)->warn_unused_macros for
46306         ix86_target_macros_internal with cpp_define.
46308 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
46310         * jump.c (delete_related_insns): Keep (use (insn))s.
46311         * reorg.c (redundant_insn): Check for barriers too.
46313 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
46315         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
46317 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
46319         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
46320         call to $$dyncall when TARGET_LONG_CALLS is true.
46322 2014-01-17  Jeff Law  <law@redhat.com>
46324         * ree.c (combine_set_extension): Temporarily disable test for
46325         changing number of hard registers.
46327 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
46329         PR middle-end/58125
46330         * ipa-inline-analysis.c (inline_free_summary):
46331         Do not free summary of aliases.
46333 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
46335         PR middle-end/59706
46336         * gimplify.c (gimplify_expr): Use create_tmp_var
46337         instead of create_tmp_var_raw.  If cond doesn't have
46338         integral type, don't add the IFN_ANNOTATE builtin at all.
46340 2014-01-17  Martin Jambor  <mjambor@suse.cz>
46342         PR ipa/59736
46343         * ipa-cp.c (prev_edge_clone): New variable.
46344         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
46345         Also resize prev_edge_clone vector.
46346         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
46347         (ipcp_edge_removal_hook): New function.
46348         (ipcp_driver): Register ipcp_edge_removal_hook.
46350 2014-01-17  Andrew Pinski  <apinski@cavium.com>
46351             Steve Ellcey  <sellcey@mips.com>
46353         PR target/59462
46354         * config/mips/mips.c (mips_print_operand): Check operand mode instead
46355         of operator mode.
46357 2014-01-17  Jeff Law  <law@redhat.com>
46359         PR middle-end/57904
46360         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
46361         so that pass_ccp runs first.
46363 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
46365         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
46366         (ix86_adjust_cost): Use !TARGET_XXX.
46367         (do_reorder_for_imul): Likewise.
46368         (swap_top_of_ready_list): Likewise.
46369         (ix86_sched_reorder): Likewise.
46371 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
46373         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
46374         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
46375         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
46376         (intel_memset): New.  Duplicate slm_memset.
46377         (intel_cost): New.  Duplicate slm_cost.
46378         (m_INTEL): New macro.
46379         (processor_target_table): Add "intel".
46380         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
46381         with PROCESSOR_INTEL for "intel".
46382         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
46383         PROCESSOR_SILVERMONT.
46384         (ix86_issue_rate): Likewise.
46385         (ix86_adjust_cost): Likewise.
46386         (ia32_multipass_dfa_lookahead): Likewise.
46387         (swap_top_of_ready_list): Likewise.
46388         (ix86_sched_reorder): Likewise.
46389         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
46390         instead of TARGET_OPT_AGU.
46391         * config/i386/i386.h (TARGET_INTEL): New.
46392         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
46393         (processor_type): Add PROCESSOR_INTEL.
46394         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
46395         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
46397 2014-01-17  Marek Polacek  <polacek@redhat.com>
46399         PR c/58346
46400         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
46401         size is zero.
46403 2014-01-17  Richard Biener  <rguenther@suse.de>
46405         PR tree-optimization/46590
46406         * opts.c (default_options_table): Add entries for
46407         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
46408         all enabled at -O1 but not for -Og.
46409         * common.opt (fbranch-count-reg): Remove Init(1).
46410         (fmove-loop-invariants): Likewise.
46411         (ftree-pta): Likewise.
46413 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
46415         * config/i386/i386.c (ix86_data_alignment): For compatibility with
46416         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
46417         decls to at least the GCC 4.8 used alignments.
46419         PR fortran/59440
46420         * tree-nested.c (convert_nonlocal_reference_stmt,
46421         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
46422         of GIMPLE_BIND stmts, adjust associated decls.
46424 2014-01-17  Richard Biener  <rguenther@suse.de>
46426         PR tree-optimization/46590
46427         * vec.h (vec<>::bseach): New member function implementing
46428         binary search according to C89 bsearch.
46429         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
46430         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
46431         bitmap pointer again.  Make accesses_in_loop a flat array.
46432         (mem_ref_obstack): New global.
46433         (outermost_indep_loop): Adjust for mem_ref->stored changes.
46434         (mark_ref_stored): Likewise.
46435         (ref_indep_loop_p_2): Likewise.
46436         (set_ref_stored_in_loop): New helper function.
46437         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
46438         (memref_free): Adjust.
46439         (record_mem_ref_loc): Simplify.
46440         (gather_mem_refs_stmt): Adjust.
46441         (sort_locs_in_loop_postorder_cmp): New function.
46442         (analyze_memory_references): Sort accesses_in_loop after
46443         loop postorder number.
46444         (find_ref_loc_in_loop_cmp): New function.
46445         (for_all_locs_in_loop): Find relevant cluster of locs in
46446         accesses_in_loop and iterate without recursion.
46447         (execute_sm): Avoid uninit warning.
46448         (struct ref_always_accessed): Simplify.
46449         (ref_always_accessed::operator ()): Likewise.
46450         (ref_always_accessed_p): Likewise.
46451         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
46452         loop postorder numbers here.
46453         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
46454         numbers.
46456 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
46458         PR c++/57945
46459         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
46460         on decls for which assemble_alias has been called.
46462 2014-01-17  Nick Clifton  <nickc@redhat.com>
46464         * config/msp430/msp430.opt: (mcpu): New option.
46465         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
46466         (msp430_option_override): Parse target_cpu.  If the MCU name
46467         matches a generic string, clear target_mcu.
46468         (msp430_attr): Allow numeric interrupt values up to 63.
46469         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
46470         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
46471         option.
46472         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
46473         Add mcpu matches.
46474         * config/msp430/msp430.md (popm): Use %J rather than %I.
46475         (addsi3): Use msp430_nonimmediate_operand for operand 2.
46476         (addhi_cy_i): Use immediate_operand for operand 2.
46477         * doc/invoke.texi: Document -mcpu option.
46479 2014-01-17  Richard Biener  <rguenther@suse.de>
46481         PR rtl-optimization/38518
46482         * df.h (df_analyze_loop): Declare.
46483         * df-core.c: Include cfgloop.h.
46484         (df_analyze_1): Split out main part of df_analyze.
46485         (df_analyze): Adjust.
46486         (loop_inverted_post_order_compute): New function.
46487         (loop_post_order_compute): Likewise.
46488         (df_analyze_loop): New function avoiding whole-function
46489         postorder computes.
46490         * loop-invariant.c (find_defs): Use df_analyze_loop.
46491         (find_invariants): Adjust.
46492         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
46494 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
46496         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
46497         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
46499 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
46501         * ipa-ref.c (ipa_remove_stmt_references): Fix references
46502         traversal when removing references.
46504 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
46506         PR ipa/59775
46507         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
46509 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
46511         PR middle-end/56791
46512         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
46513         pushing a reload for an autoinc when we had previously reloaded an
46514         inner part of the address.
46516 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
46518         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
46519         field.
46520         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
46521         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
46522         when not giving up or versioning for alias only because of
46523         loop->safelen.
46524         (vect_analyze_data_ref_dependences): Set to true.
46525         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
46526         is a GIMPLE_PHI.
46527         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
46528         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
46529         to the condition.
46531         PR middle-end/58344
46532         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
46534         PR target/59839
46535         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
46536         operand 0 predicate for gathers, use a new pseudo as subtarget.
46538 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
46540         PR middle-end/59609
46541         * lra-constraints.c (process_alt_operands): Add printing debug info.
46542         Check absence of input/output reloads for matched operands too.
46544 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
46546         PR rtl-optimization/59835
46547         * ira.c (ira_init_register_move_cost): Increase cost for
46548         impossible modes.
46550 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
46552         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
46554 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
46556         PR target/59780
46557         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
46558         non-register objects.  Use gen_(high/low)part more consistently.
46559         Fix assertions.
46561 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
46563         PR target/59844
46564         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
46565         endian support, remove tests for WORDS_BIG_ENDIAN.
46566         (p8_mfvsrd_3_<mode>): Likewise.
46567         (reload_gpr_from_vsx<mode>): Likewise.
46568         (reload_gpr_from_vsxsf): Likewise.
46569         (p8_mfvsrd_4_disf): Likewise.
46571 2014-01-16  Richard Biener  <rguenther@suse.de>
46573         PR rtl-optimization/46590
46574         * lcm.c (compute_antinout_edge): Use postorder iteration.
46575         (compute_laterin): Use inverted postorder iteration.
46577 2014-01-16  Nick Clifton  <nickc@redhat.com>
46579         PR middle-end/28865
46580         * varasm.c (output_constant): Return the number of bytes actually
46581         emitted.
46582         (output_constructor_array_range): Update the field size with the
46583         number of bytes emitted by output_constant.
46584         (output_constructor_regular_field): Likewise.  Also do not
46585         complain if the total number of bytes emitted is now greater
46586         than the expected fieldpos.
46587         * output.h (output_constant): Update prototype and descriptive comment.
46589 2014-01-16  Marek Polacek  <polacek@redhat.com>
46591         PR middle-end/59827
46592         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
46593         it is error_mark_node.
46595 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
46597         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
46598         VALID_AVX256_REG_OR_OI_MODE.
46600 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
46602         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
46603         current procedure should be profiled.
46605 2014-01-15  Andrew Pinski  <apinski@cavium.com>
46607         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
46608         of moving from/to the STACK_REG register class.
46610 2014-01-15  Richard Henderson  <rth@redhat.com>
46612         PR debug/54694
46613         * reginfo.c (global_regs_decl): Globalize.
46614         * rtl.h (global_regs_decl): Declare.
46615         * ira.c (do_reload): Diagnose frame_pointer_needed and it
46616         reserved via global_regs.
46618 2014-01-15  Teresa Johnson  <tejohnson@google.com>
46620         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
46622 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
46624         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
46625         and vmulosh rather than call gen_vec_widen_smult_*.
46626         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
46627         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
46628         (vec_widen_smult_even_v16qi): Likewise.
46629         (vec_widen_umult_even_v8hi): Likewise.
46630         (vec_widen_smult_even_v8hi): Likewise.
46631         (vec_widen_umult_odd_v16qi): Likewise.
46632         (vec_widen_smult_odd_v16qi): Likewise.
46633         (vec_widen_umult_odd_v8hi): Likewise.
46634         (vec_widen_smult_odd_v8hi): Likewise.
46635         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
46636         vmuloub rather than call gen_vec_widen_umult_*.
46637         (vec_widen_umult_lo_v16qi): Likewise.
46638         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
46639         vmulosb rather than call gen_vec_widen_smult_*.
46640         (vec_widen_smult_lo_v16qi): Likewise.
46641         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
46642         rather than call gen_vec_widen_umult_*.
46643         (vec_widen_umult_lo_v8hi): Likewise.
46644         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
46645         rather than call gen_vec_widen_smult_*.
46646         (vec_widen_smult_lo_v8hi): Likewise.
46648 2014-01-15  Jeff Law  <law@redhat.com>
46650         PR tree-optimization/59747
46651         * ree.c (find_and_remove_re): Properly handle case where a second
46652         eliminated extension requires widening a copy created for elimination
46653         of a prior extension.
46654         (combine_set_extension): Ensure that the number of hard regs needed
46655         for a destination register does not change when we widen it.
46657 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
46659         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
46660         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
46661         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
46662         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
46663         (avr-*-rtems*): Likewise.
46664         (bfin*-rtems*): Likewise.
46665         (moxie-*-rtems*): Likewise.
46666         (h8300-*-rtems*): Likewise.
46667         (i[34567]86-*-rtems*): Likewise.
46668         (lm32-*-rtems*): Likewise.
46669         (m32r-*-rtems*): Likewise.
46670         (m68k-*-rtems*): Likewise.
46671         (microblaze*-*-rtems*): Likewise.
46672         (mips*-*-rtems*): Likewise.
46673         (powerpc-*-rtems*): Likewise.
46674         (sh-*-rtems*): Likewise.
46675         (sparc-*-rtems*): Likewise.
46676         (sparc64-*-rtems*): Likewise.
46677         (v850-*-rtems*): Likewise.
46678         (m32c-*-rtems*): Likewise.
46680 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
46682         PR rtl-optimization/59511
46683         * ira.c (ira_init_register_move_cost): Use memory costs for some
46684         cases of register move cost calculations.
46685         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
46686         instead of BB frequency.
46687         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
46688         * lra-assigns.c (find_hard_regno_for): Ditto.
46690 2014-01-15  Richard Biener  <rguenther@suse.de>
46692         PR tree-optimization/59822
46693         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
46694         (vectorizable_load): Use it to hoist defs of uses of invariant
46695         loads out of the loop.
46697 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
46698             Kugan Vivekanandarajah  <kuganv@linaro.org>
46700         PR target/59695
46701         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
46702         truncation.
46704 2014-01-15  Richard Biener  <rguenther@suse.de>
46706         PR rtl-optimization/59802
46707         * lcm.c (compute_available): Use inverted postorder to seed
46708         the initial worklist.
46710 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46712         PR target/59803
46713         * config/s390/s390.c (s390_preferred_reload_class): Don't return
46714         ADDR_REGS for invalid symrefs in non-PIC code.
46716 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
46718         PR other/58712
46719         * builtins.c (determine_block_size): Initialize *probable_max_size
46720         even if len_rtx is CONST_INT.
46722 2014-01-14  Andrew Pinski  <apinski@cavium.com>
46724         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
46725         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
46726         (cortexa53_tunings): Likewise.
46727         (aarch64_sched_issue_rate): New function.
46728         (TARGET_SCHED_ISSUE_RATE): Define.
46730 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
46732         * ira-costs.c (find_costs_and_classes): Add missed
46733         ira_init_register_move_cost_if_necessary.
46735 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
46737         PR target/59787
46738         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
46740 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
46742         PR target/59794
46743         * config/i386/i386.c (type_natural_mode): Add a bool parameter
46744         to indicate if type is used for function return value.  Warn ABI
46745         change if the vector mode isn't available for function return value.
46746         (ix86_function_arg_advance): Pass false to type_natural_mode.
46747         (ix86_function_arg): Likewise.
46748         (ix86_gimplify_va_arg): Likewise.
46749         (function_arg_32): Don't warn ABI change.
46750         (ix86_function_value): Pass true to type_natural_mode.
46751         (ix86_return_in_memory): Likewise.
46752         (ix86_struct_value_rtx): Removed.
46753         (TARGET_STRUCT_VALUE_RTX): Likewise.
46755 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
46757         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
46758         converting a conditional jump into a conditional return.
46760 2014-01-14  Richard Biener  <rguenther@suse.de>
46762         PR tree-optimization/58921
46763         PR tree-optimization/59006
46764         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
46765         hoisting invariant stmts.
46766         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
46767         invariant loads on the preheader edge if possible.
46769 2014-01-14  Joey Ye  <joey.ye@arm.com>
46771         * doc/plugin.texi (Building GCC plugins): Update to C++.
46773 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
46775         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
46776         (_mm_rcp28_round_ss): Ditto.
46777         (_mm_rsqrt28_round_sd): Ditto.
46778         (_mm_rsqrt28_round_ss): Ditto.
46779         (_mm_rcp28_sd): Ditto.
46780         (_mm_rcp28_ss): Ditto.
46781         (_mm_rsqrt28_sd): Ditto.
46782         (_mm_rsqrt28_ss): Ditto.
46783         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
46784         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
46785         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
46786         (IX86_BUILTIN_RCP28SD): Ditto.
46787         (IX86_BUILTIN_RCP28SS): Ditto.
46788         (IX86_BUILTIN_RSQRT28SD): Ditto.
46789         (IX86_BUILTIN_RSQRT28SS): Ditto.
46790         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
46791         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
46792         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
46793         (ix86_expand_special_args_builtin): Expand new FTYPE.
46794         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
46795         (srcp14<mode>): Make insn unary.
46796         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
46797         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
46798         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
46799         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
46800         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
46801         Fix rounding: make it SAE only.
46802         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
46803         Ditto.
46804         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
46805         Ditto.
46806         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
46807         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
46808         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
46809         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
46810         (round_saeonly_mask_scalar_operand4): Ditto.
46811         (round_saeonly_mask_scalar_op3): Ditto.
46812         (round_saeonly_mask_scalar_op4): Ditto.
46814 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
46816         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
46817         Implement -maltivec=be for vec_insert and vec_extract.
46819 2014-01-10  DJ Delorie  <dj@redhat.com>
46821         * config/msp430/msp430.md (call_internal): Don't allow memory
46822         references with SP as the base register.
46823         (call_value_internal): Likewise.
46824         * config/msp430/constraints.md (Yc): New.  For memory references
46825         that don't use SP as a base register.
46827         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
46828         "an integer without a # prefix"
46829         * config/msp430/msp430.md (epilogue_helper): Use it.
46831 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
46833         PR target/59617
46834         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
46835         AVX512F gather builtins.
46836         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
46837         on gather decls with INTEGER_TYPE masktype.
46838         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
46839         directly into the builtin rather than hoisting it before loop.
46841         PR tree-optimization/59387
46842         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
46843         (scev_const_prop): If folded_casts and type has undefined overflow,
46844         use force_gimple_operand instead of force_gimple_operand_gsi and
46845         for each added stmt if it is assign with
46846         arith_code_with_undefined_signed_overflow, call
46847         rewrite_to_defined_overflow.
46848         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
46849         gimple-fold.h instead.
46850         (arith_code_with_undefined_signed_overflow,
46851         rewrite_to_defined_overflow): Moved to ...
46852         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
46853         rewrite_to_defined_overflow): ... here.  No longer static.
46854         Include gimplify-me.h.
46855         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
46856         rewrite_to_defined_overflow): New prototypes.
46858 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
46860         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
46862 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
46864         * builtins.c (get_object_alignment_2): Minor tweak.
46865         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
46867 2014-01-13  Christian Bruel  <christian.bruel@st.com>
46869         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
46870         optimized non constant lengths.
46872 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
46874         PR libgomp/59194
46875         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
46876         load as __atomic_load_N if possible.
46878 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
46880         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
46881         target parameter.
46882         (rs6000_expand_builtin): Adjust call.
46884 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
46886         PR target/58115
46887         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
46888         * config/rs6000/rs6000.c: Include target-globals.h.
46889         (rs6000_set_current_function): Instead of doing target_reinit
46890         unconditionally, use save_target_globals_default_opts and
46891         restore_target_globals.
46893         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
46894         FPSCR.
46895         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
46896         (rs6000_expand_builtin): Handle mffs and mtfsf.
46897         (rs6000_init_builtins): Define mffs and mtfsf.
46898         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
46899         (rs6000_mffs): New pattern.
46900         (rs6000_mtfsf): New pattern.
46902 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
46904         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
46905         Start narrowing with START.  Apply candidate-use pair
46906         and check overall cost in narrowing.
46907         (iv_ca_prune): Pass new argument.
46909 2014-01-10  Jeff Law  <law@redhat.com>
46911         PR middle-end/59743
46912         * ree.c (combine_reaching_defs): Ensure the defining statement
46913         occurs before the extension when optimizing extensions with
46914         different source and destination hard registers.
46916 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
46918         PR ipa/58585
46919         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
46920         vtables into the type inheritance graph.
46922 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
46924         PR rtl-optimization/59754
46925         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
46926         modes in the REGNO != REGNO case.
46928 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
46930         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
46932 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
46934         PR tree-optimization/59745
46935         * tree-predcom.c (tree_predictive_commoning_loop): Call
46936         free_affine_expand_cache if giving up because components is NULL.
46938         * target-globals.c (save_target_globals): Allocate < 4KB structs using
46939         GC in payload of target_globals struct instead of allocating them on
46940         the heap and the larger structs separately using GC.
46941         * target-globals.h (struct target_globals): Make regs, hard_regs,
46942         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
46943         of GTY((skip)) and change type to void *.
46944         (reset_target_globals): Cast loads from those fields to corresponding
46945         types.
46947 2014-01-10  Steve Ellcey  <sellcey@mips.com>
46949         PR plugins/59335
46950         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
46951         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
46952         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
46954 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
46956         PR target/59744
46957         * aarch64-modes.def (CC_Zmode): New flags mode.
46958         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
46959         represents an equality.
46960         (aarch64_get_condition_code): Handle CC_Zmode.
46961         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
46963 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46965         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
46966         extraction in good case.
46968 2014-01-10  Richard Biener  <rguenther@suse.de>
46970         PR tree-optimization/59374
46971         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
46972         checking after SLP discovery.  Mark stmts not participating
46973         in any SLP instance properly.
46975 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
46977         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
46978         when handling a SET rtx.
46980 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
46982         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
46983         (cortex-a57): Likewise.
46984         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
46986 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
46988         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
46989         non-iwmmxt builtins.
46991 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
46993         PR ipa/58252
46994         PR ipa/59226
46995         * ipa-devirt.c record_target_from_binfo): Take as argument
46996         stack of binfos and lookup matching one for virtual inheritance.
46997         (possible_polymorphic_call_targets_1): Update.
46999 2014-01-10  Huacai Chen  <chenhc@lemote.com>
47001         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
47002         kernel strings for Loongson-2E/2F/3A.
47004 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
47006         PR middle-end/59670
47007         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
47008         is_gimple_call before calling gimple_call_internal_p.
47010 2014-01-09  Steve Ellcey  <sellcey@mips.com>
47012         * Makefile.in (TREE_FLOW_H): Remove.
47013         (TREE_SSA_H): Add file names from tree-flow.h.
47014         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
47015         * tree.h: Remove tree-flow.h reference.
47016         * hash-table.h: Remove tree-flow.h reference.
47017         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
47018         reference with tree-ssa-loop.h.
47020 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
47022         * doc/invoke.texi: Add -maltivec={be,le} options, and document
47023         default element-order behavior for -maltivec.
47024         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
47025         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
47026         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
47027         when targeting big endian, at least for now.
47028         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
47030 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
47032         PR middle-end/47735
47033         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
47034         var satisfies use_register_for_decl, just take into account type
47035         alignment, rather than decl alignment.
47037         PR tree-optimization/59622
47038         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
47039         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
47040         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
47041         Don't devirtualize for inplace at all.  For targets.length () == 1,
47042         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
47044 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
47046         * config/i386/i386.md (cpu): Remove the unused btver1.
47048 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
47050         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
47052 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
47054         PR target/58115
47055         * tree-core.h (struct target_globals): New forward declaration.
47056         (struct tree_target_option): Add globals field.
47057         * tree.h (TREE_TARGET_GLOBALS): Define.
47058         (prepare_target_option_nodes_for_pch): New prototype.
47059         * target-globals.h (struct target_globals): Define even if
47060         !SWITCHABLE_TARGET.
47061         * tree.c (prepare_target_option_node_for_pch,
47062         prepare_target_option_nodes_for_pch): New functions.
47063         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
47064         * config/i386/i386.c: Include target-globals.h.
47065         (ix86_set_current_function): Instead of doing target_reinit
47066         unconditionally, use save_target_globals_default_opts and
47067         restore_target_globals.
47069 2014-01-09  Richard Biener  <rguenther@suse.de>
47071         PR tree-optimization/59715
47072         * tree-cfg.h (split_critical_edges): Declare.
47073         * tree-cfg.c (split_critical_edges): Export.
47074         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
47076 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
47078         * cfgexpand.c (expand_stack_vars): Optionally disable
47079         asan stack protection.
47080         (expand_used_vars): Likewise.
47081         (partition_stack_vars): Likewise.
47082         * asan.c (asan_emit_stack_protection): Optionally disable
47083         after return stack usage.
47084         (instrument_derefs): Optionally disable memory access instrumentation.
47085         (instrument_builtin_call): Likewise.
47086         (instrument_strlen_call): Likewise.
47087         (asan_protect_global): Optionally disable global variables protection.
47088         * doc/invoke.texi: Added doc for new options.
47089         * params.def: Added new options.
47090         * params.h: Likewise.
47092 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
47094         PR rtl-optimization/59724
47095         * ifcvt.c (cond_exec_process_if_block): Don't call
47096         flow_find_head_matching_sequence with 0 longest_match.
47097         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
47098         non-active insns if !stop_after.
47099         (try_head_merge_bb): Revert 2014-01-07 changes.
47101 2014-01-08  Jeff Law  <law@redhat.com>
47103         * ree.c (get_sub_rtx): New function, extracted from...
47104         (merge_def_and_ext): Here.
47105         (combine_reaching_defs): Use get_sub_rtx.
47107 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
47109         * cgraph.h (varpool_variable_node): Do not choke on null node.
47111 2014-01-08  Catherine Moore  <clm@codesourcery.com>
47113         * config/mips/mips.md (simple_return): Attempt to use JRC
47114         for microMIPS.
47115         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
47117 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
47119         PR rtl-optimization/59137
47120         * reorg.c (steal_delay_list_from_target): Call update_block for
47121         elided insns.
47122         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
47124 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
47126         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
47127         two duplicate entries.
47129 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
47131         Revert:
47132         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
47134         * config/mips/mips.c (mips_truncated_op_cost): New function.
47135         (mips_rtx_costs): Adjust test for BADDU.
47136         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
47138         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
47140         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
47141         (*baddu_si): ...this new pattern.
47143 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
47145         PR ipa/59722
47146         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
47148 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
47150         PR middle-end/57748
47151         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
47152         inner_reference_p.
47153         (expand_expr, expand_normal): Adjust.
47154         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
47155         inner_reference_p. Use inner_reference_p to expand inner references.
47156         (store_expr): Adjust.
47157         * cfgexpand.c (expand_call_stmt): Adjust.
47159 2014-01-08  Rong Xu  <xur@google.com>
47161         * gcov-io.c (gcov_var): Move from gcov-io.h.
47162         (gcov_position): Ditto.
47163         (gcov_is_error): Ditto.
47164         (gcov_rewrite): Ditto.
47165         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
47166         only part to libgcc/libgcov.h.
47168 2014-01-08  Marek Polacek  <polacek@redhat.com>
47170         PR middle-end/59669
47171         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
47173 2014-01-08  Marek Polacek  <polacek@redhat.com>
47175         PR sanitizer/59667
47176         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
47178 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
47180         PR rtl-optimization/59649
47181         * stor-layout.c (get_mode_bounds): For BImode return
47182         0 and STORE_FLAG_VALUE.
47184 2014-01-08  Richard Biener  <rguenther@suse.de>
47186         PR middle-end/59630
47187         * gimple.h (is_gimple_builtin_call): Remove.
47188         (gimple_builtin_call_types_compatible_p): New.
47189         (gimple_call_builtin_p): New overload.
47190         * gimple.c (is_gimple_builtin_call): Remove.
47191         (validate_call): Rename to ...
47192         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
47193         check return types.
47194         (validate_type): New static function.
47195         (gimple_call_builtin_p): New overload and adjust.
47196         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
47197         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
47198         (gimple_fold_stmt_to_constant_1): Likewise.
47199         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
47201 2014-01-08  Richard Biener  <rguenther@suse.de>
47203         PR middle-end/59471
47204         * gimplify.c (gimplify_expr): Gimplify register-register type
47205         VIEW_CONVERT_EXPRs to separate stmts.
47207 2014-01-07  Jeff Law  <law@redhat.com>
47209         PR middle-end/53623
47210         * ree.c (combine_set_extension): Handle case where source
47211         and destination registers in an extension insn are different.
47212         (combine_reaching_defs): Allow source and destination registers
47213         in extension to be different under limited circumstances.
47214         (add_removable_extension): Remove restriction that the
47215         source and destination registers in the extension are the same.
47216         (find_and_remove_re): Emit a copy from the extension's
47217         destination to its source after the defining insn if
47218         the source and destination registers are different.
47220         PR middle-end/59285
47221         * ifcvt.c (merge_if_block): If we are merging a block with more than
47222         one successor with a block with no successors, remove any BARRIER
47223         after the second block.
47225 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
47227         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
47229 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
47231         PR target/59652
47232         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
47233         for 14-bit register offsets when INT14_OK_STRICT is false.
47235 2014-01-07  Roland Stigge  <stigge@antcom.de>
47236             Michael Meissner  <meissner@linux.vnet.ibm.com>
47238         PR 57386/target
47239         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
47240         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
47242 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
47244         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
47245         -mcpu.
47247 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
47249         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
47250         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
47251         rtx is const0_rtx or not.
47253 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
47255         PR target/58115
47256         * target-globals.c (save_target_globals): Remove this_fn_optab
47257         handling.
47258         * toplev.c: Include optabs.h.
47259         (target_reinit): Temporarily restore the global options if another
47260         set of options are in force.
47262 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
47264         PR rtl-optimization/58668
47265         * cfgcleanup.c (flow_find_cross_jump): Don't count
47266         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
47267         to determine what is counted.
47268         (flow_find_head_matching_sequence): Use active_insn_p to determine
47269         what is counted.
47270         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
47271         counting change.
47272         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
47273         determine what is counted.
47275         PR tree-optimization/59643
47276         * tree-predcom.c (split_data_refs_to_components): If one dr is
47277         read and one write, determine_offset fails and the write isn't
47278         in the bad component, just put the read into the bad component.
47280 2014-01-07  Mike Stump  <mikestump@comcast.net>
47281             Jakub Jelinek  <jakub@redhat.com>
47283         PR pch/59436
47284         * tree-core.h (struct tree_optimization_option): Change optabs
47285         type from unsigned char * to void *.
47286         * optabs.c (init_tree_optimization_optabs): Adjust
47287         TREE_OPTIMIZATION_OPTABS initialization.
47289 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
47291         PR target/59644
47292         * config/i386/i386.h (struct machine_function): Add
47293         no_drap_save_restore field.
47294         * config/i386/i386.c (ix86_save_reg): Use
47295         !cfun->machine->no_drap_save_restore instead of
47296         crtl->stack_realign_needed.
47297         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
47298         this function clears frame_pointer_needed.  Set
47299         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
47300         and DRAP reg is needed.
47302 2014-01-06  Marek Polacek  <polacek@redhat.com>
47304         PR c/57773
47305         * doc/implement-c.texi: Mention that other integer types are
47306         permitted as bit-field types in strictly conforming mode.
47308 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
47310         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
47311         is newly allocated.
47313 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
47315         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
47317 2014-01-06  Martin Jambor  <mjambor@suse.cz>
47319         PR ipa/59008
47320         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
47321         to int.
47322         * ipa-prop.c (ipa_print_node_params): Fix indentation.
47324 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
47326         PR debug/59350
47327         PR debug/59510
47328         * var-tracking.c (add_stores): Preserve the value of the source even if
47329         we don't record the store.
47331 2014-01-06  Terry Guo  <terry.guo@arm.com>
47333         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
47335 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
47337         PR bootstrap/59541
47338         * config/darwin.c (darwin_function_section): Adjust return values to
47339         correspond to optimisation changes made in r206070.
47341 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
47343         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
47344         from prefetch_block tune setting.
47345         (nocona_cost): Correct size of prefetch block to 64.
47347 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
47349         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
47350         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
47351         used to save the static chain register in the computation of the offset
47352         from which the FP registers need to be restored.
47354 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
47356         PR tree-optimization/59519
47357         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
47358         ICE if get_current_def (current_new_name) is already non-NULL, as long
47359         as it is a phi result of some other phi in *new_exit_bb that has
47360         the same argument.
47362         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
47363         or vmovdqu* for misaligned_operand.
47364         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
47365         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
47366         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
47367         aligned_mem for AVX512F masked aligned load and store builtins and for
47368         non-temporal moves.
47370 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
47372         PR tree-optimization/59651
47373         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
47374         Address range for negative step should be added by TYPE_SIZE_UNIT.
47376 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
47378         * config/m68k/m68k.c (handle_move_double): Handle pushes with
47379         overlapping registers also for registers other than the stack pointer.
47381 2014-01-03  Marek Polacek  <polacek@redhat.com>
47383         PR other/59661
47384         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
47385         __builtin_FILE.
47387 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
47389         PR target/59625
47390         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
47391         asm goto as jump.
47393         * config/i386/i386.md (MODE_SIZE): New mode attribute.
47394         (push splitter): Use <P:MODE_SIZE> instead of
47395         GET_MODE_SIZE (<P:MODE>mode).
47396         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
47397         (mov -1, reg peephole2): Likewise.
47398         * config/i386/sse.md (*mov<mode>_internal,
47399         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
47400         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
47401         *<code><mode>3, *andnot<mode>3<mask_name>,
47402         <mask_codefor><code><mode>3<mask_name>): Likewise.
47403         * config/i386/subst.md (mask_mode512bit_condition,
47404         sd_mask_mode512bit_condition): Likewise.
47406 2014-01-02  Xinliang David Li  <davidxl@google.com>
47408         PR tree-optimization/59303
47409         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
47410         (dump_predicates): Better output format.
47411         (pred_equal_p): New function.
47412         (is_neq_relop_p): Ditto.
47413         (is_neq_zero_form_p): Ditto.
47414         (pred_expr_equal_p): Ditto.
47415         (pred_neg_p): Ditto.
47416         (simplify_pred): Ditto.
47417         (simplify_preds_2): Ditto.
47418         (simplify_preds_3): Ditto.
47419         (simplify_preds_4): Ditto.
47420         (simplify_preds): Ditto.
47421         (push_pred): Ditto.
47422         (push_to_worklist): Ditto.
47423         (get_pred_info_from_cmp): Ditto.
47424         (is_degenerated_phi): Ditto.
47425         (normalize_one_pred_1): Ditto.
47426         (normalize_one_pred): Ditto.
47427         (normalize_one_pred_chain): Ditto.
47428         (normalize_preds): Ditto.
47429         (normalize_cond_1): Remove function.
47430         (normalize_cond): Ditto.
47431         (is_gcond_subset_of): Ditto.
47432         (is_subset_of_any): Ditto.
47433         (is_or_set_subset_of): Ditto.
47434         (is_and_set_subset_of): Ditto.
47435         (is_norm_cond_subset_of): Ditto.
47436         (pred_chain_length_cmp): Ditto.
47437         (convert_control_dep_chain_into_preds): Type change.
47438         (find_predicates): Ditto.
47439         (find_def_preds): Ditto.
47440         (destroy_predicates_vecs): Ditto.
47441         (find_matching_predicates_in_rest_chains): Ditto.
47442         (use_pred_not_overlap_with_undef_path_pred): Ditto.
47443         (is_pred_expr_subset): Ditto.
47444         (is_pred_chain_subset_of): Ditto.
47445         (is_included_in): Ditto.
47446         (is_superset_of): Ditto.
47448 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
47450         Update copyright years.
47452 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
47454         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
47455         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
47456         config/arc/arc.md, config/arc/arc.opt,
47457         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
47458         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
47459         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
47460         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
47461         config/linux-protos.h, config/linux.c, config/winnt-c.c,
47462         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
47463         vtable-verify.c, vtable-verify.h: Use the standard form for the
47464         copyright notice.
47466 2014-01-02  Tobias Burnus  <burnus@net-b.de>
47468         * gcc.c (process_command): Update copyright notice dates.
47469         * gcov-dump.c: Ditto.
47470         * gcov.c: Ditto.
47471         * doc/cpp.texi: Bump @copying's copyright year.
47472         * doc/cppinternals.texi: Ditto.
47473         * doc/gcc.texi: Ditto.
47474         * doc/gccint.texi: Ditto.
47475         * doc/gcov.texi: Ditto.
47476         * doc/install.texi: Ditto.
47477         * doc/invoke.texi: Ditto.
47479 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
47481         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
47483 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
47485         * config/i386/sse.md (*mov<mode>_internal): Guard
47486         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
47488         PR rtl-optimization/59647
47489         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
47490         new_rtx into UNSIGNED_FLOAT rtxes.
47492 Copyright (C) 2014 Free Software Foundation, Inc.
47494 Copying and distribution of this file, with or without modification,
47495 are permitted in any medium without royalty provided the copyright
47496 notice and this notice are preserved.