[combine] Don't transform sign and zero extends inside mults
[official-gcc.git] / gcc / ChangeLog
blob4d6165ecda5def635da54102dea8faaea35f489c
1 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
2             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4         * combine.c (subst): Don't substitute or simplify when
5         handling register-wise widening multiply.
6         (force_to_mode): Likewise.
8 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
10         PR tree-optimization/68264
11         * tree-call-cdce.c (gen_one_condition): Update commentary.
12         (gen_conditions_for_pow_int_base): Invert the sense of the tests
13         passed to gen_one_condition.
14         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
15         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
16         using EDGE_FALSE_VALUE for edges to the call block and
17         EDGE_TRUE_VALUE for the others.
19 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
21         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
22         complex types.
24 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
26         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
28 2015-11-13  Tom de Vries  <tom@codesourcery.com>
30         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
31         len_of_prefix.
33 2015-11-13  Tom de Vries  <tom@codesourcery.com>
35         * gen-pass-instances.awk (handle_line): Add args_str variable.
37 2015-11-13  Martin Liska  <mliska@suse.cz>
39         * graphite-poly.c (free_scop): Release scop->drs vector.
40         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
41         Release dom vector.
42         (try_generate_gimple_bb): Use vNULL as a default initialization
43         for vectors.
45 2015-11-13  Martin Liska  <mliska@suse.cz>
47         PR ipa/68311
48         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
49         Replace array initialization (using a variable post-increment)
50         that possible triggers multiple unsequenced modifications
51         with a pair of pushes to a vector.
53 2015-11-13  Richard Biener  <rguenther@suse.de>
55         PR tree-optimization/68306
56         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
57         loop related checks ...
58         (vect_verify_datarefs_alignment): ... here.
59         (vect_slp_analyze_and_verify_node_alignment): Compute and
60         verify alignment of the single DR that it matters.
61         * tree-vect-stmts.c (vectorizable_store): Add an assert.
62         (vectorizable_load): Add a comment.
63         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
64         for determining load cost.
66 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
68         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
69         mix of boolean and integer vectors in a single statement.
70         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
71         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
72         determine constant type.
73         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
74         for loop invariants.
76 2015-11-13  Alan Hayward <alan.hayward@arm.com>
78         PR tree-optimization/66558
79         * tree-vect-loop.c (is_integer_induction):Add.
80         (vectorizable_reduction): Add integer induction checks.
82 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
84         Revert [ARM] Remove neon-testgen.ml and generated tests.
86         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
88         [ARM] Remove neon-testgen.ml and generated tests.
90         * config/arm/neon-testgen.ml: Remove.
92 2015-11-13  Richard Biener  <rguenther@suse.de>
94         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
95         Signal fatal failure if early checks fail.
96         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
97         do not bother testing further vector sizes.
99 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
101         * config/i386/predicates.md (misaligned_operand): Return true if
102         operand is aligned to less than its natural alignmnet.
104 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
106         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
107         (vec_cmpu@var{m}@var{n}): New item.
108         (vcond@var{m}@var{n}): Specify comparison is signed.
109         (vcondu@var{m}@var{n}): New item.
110         (vcond_mask_@var{m}@var{n}): New item.
111         (maskload@var{m}@var{n}): New item.
112         (maskstore@var{m}@var{n}): New item.
114 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
116         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
117         types of stored value and storage are compatible.
119 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
121         * gcc.c (POST_LINK_SPEC): Define if not already defined.
122         (LINK_COMMAND_SPEC): Use post_link.
123         (post_link_spec): New, initialize to POST_LINK_SPEC.
124         (post_link): Initialize new static spec.
125         * doc/tm.texi.in (POST_LINK_SPEC): Document.
126         * doc/tm.texi: Regenerated.
128 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
130         PR driver/67613
131         * Makefile.in (GCC_OBJS): Add spellcheck.o.
132         (OBJS): Add spellcheck-tree.o.
133         * gcc.c: Include "spellcheck.h".
134         (suggest_option): New function.
135         (driver::handle_unrecognized_options): Call suggest_option to
136         provide a hint about misspelled options.
137         * spellcheck.c: Update file comment.
138         (levenshtein_distance): Convert 4-param implementation from static
139         to extern scope.  Remove note about unit tests from leading
140         comment for const char * implementation.  Move tree
141         implementation to...
142         * spellcheck-tree.c: New file.
143         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
145 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
147         * Makefile.in (OBJS): Add spellcheck.o.
148         * spellcheck.c: New file.
149         * spellcheck.h: New file.
151 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
153         * config/ft32/ft32.md (*sne): New insn pattern.
155 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
157         * gcc/cprop.c (is_too_expensive): Remove.
158         (gcse.h): Include.
159         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
160         is_too_expensive.
161         * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
162         * gcc/gcse.c (is_too_expensive): Rename to ...
163         (gcse_or_cprop_is_too_expensive): ... this.
164         Expand warning to add required size of max-gcse-memory.
165         (one_pre_gcse_pass): Use it.
166         (one_code_hoisting_pass): Use it.
167         * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
169 2015-11-12  James Norris  <jnorris@codesourcery.com>
170             Joseph Myers  <joseph@codesourcery.com>
172         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
173         GF_OMP_TARGET_KIND_OACC_DECLARE. 
174         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
175         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
176         * gimplify.c (oacc_declare_returns): New.
177         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
178         (device_resident_p): New function.
179         (oacc_default_clause): Handle device_resident clause.
180         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
181         (gimplify_expr): Handle OACC_DECLARE.
182         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
183         * omp-low.c (expand_omp_target): Handle
184         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
185         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
186         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
187         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
188         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
189         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
190         GOMP_MAP_DEVICE_RESIDENT.
192 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
194         [ARM] Remove neon-testgen.ml and generated tests.
196         * config/arm/neon-testgen.ml: Remove.
198 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
200         * config/aarch64/aarch64-cores.def (qdf24xx): New.
201         * config/aarch64/aarch64-tune.md: Regenerated.
202         * config/arm/arm-cores.def (qdf24xx): New.
203         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
204         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
205         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
206         (ARM Options/-mtune); Likewise.
208 2015-11-12  Martin Liska  <mliska@suse.cz>
210         * config/i386/i386.c (ix86_valid_target_attribute_p):
211         Finalize options at the of the function.
212         * gcc.c (driver_get_configure_time_options): Call newly
213         introduced init_opts_obstack.
214         * lto-wrapper.c (main): Likewise.
215         * opts.c (init_opts_obstack): New function.
216         (init_options_struct): Call newly
217         introduced init_opts_obstack.
218         * opts.h (init_options_struct): Declare.
220 2015-11-12  Martin Liska  <mliska@suse.cz>
222         PR ipa/68035
223         * ipa-icf.c (void sem_item::set_hash): New function.
224         (sem_function::get_hash): Use renamed m_hash member variable.
225         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
226         (sem_item::update_hash_by_local_refs): Likewise.
227         (sem_variable::get_hash): Use renamed m_hash member variable.
228         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
229         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
230         (sem_item_optimizer::build_graph): As the hash value of an item
231         is lazy initialized, force the calculation.
232         * ipa-icf.h (set_hash): Declare new function and rename hash member
233         variable to m_hash.
235 2015-11-12  Richard Biener  <rguenther@suse.de>
237         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
238         Rename to vect_slp_analyze_instance_dependence.
239         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
240         Remove WAR special-case.
241         (vect_slp_analyze_node_dependences): Instead add more specific
242         code here, not relying on other instances being vectorized.
243         (vect_slp_analyze_instance_dependence): Adjust accordingly.
244         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
245         vertical space in dump files.
246         (vect_print_slp_tree): Likewise.
247         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
248         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
249         not vectorized stmts until after dependence analysis removed
250         instances.  Merge alignment and dependence checks.
251         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
252         flag on all stmts.
254 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
256         * config/aarch64/aarch64-protos.h (tune_params): Add new members
257         "max_case_values" and "cache_line_size".
258         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
259         function.
260         (aarch64_override_options_internal): Tune heuristics based on new
261         members in "tune_params".
262         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
264 2015-11-12  Richard Biener  <rguenther@suse.de>
266         PR tree-optimization/68306
267         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
268         relevant and vectorizable checks here.
269         (vect_verify_datarefs_alignment): Add relevant check here.
271 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
273         * gimplify.c (oacc_default_clause): New.
274         (omp_notice_variable): Call it.
276 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
278         PR tree-optimization/68305
279         * tree-vect-slp.c (vect_get_constant_vectors): Support
280         COND_EXPR with SSA_NAME as a condition.
282 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
284         * config/visium/visium-protos.h (notice_update_cc): Delete.
285         (print_operand): Likewise.
286         (print_operand_address): Likewise.
288 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
290         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
291         FUNCTION_VALUE_REGNO_P): Remove.
292         * config/alpha/alpha-protos.h (function_value): Remove.
293         * config/alpha/alpha.c (function_value): Rename to...
294         (alpha_function_value_1): ... this.  Make static.
295         (alpha_function_value, alpha_libcall_value,
296         alpha_function_value_regno_p): New functions.
297         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
298         TARGET_FUNCTION_VALUE_REGNO_P): Define.
300 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
302         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
303         * config/alpha/alpha.c (alpha_memory_latency): Make static.
304         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
305         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
307 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
309         PR target/67265
310         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
311         assertion on the CFA register.
313 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
315         * expr.c (do_store_flag): Expand vector comparison as
316         VEC_COND_EXPR if vector comparison is not supported
317         by target.
319 2015-11-12  Renlin Li  <renlin.li@arm.com>
321         * config/arm/arm.md (addsi3_compare_op2): Make the order of
322         assembly pattern consistent with constraint order.
324 2015-11-12  Tom de Vries  <tom@codesourcery.com>
326         * gen-pass-instances.awk (handle_line): Simplify match regexp.
328 2015-11-12  Tom de Vries  <tom@codesourcery.com>
330         * gen-pass-instances.awk (handle_line): Simplify init of
331         postfix_starts_at.
333 2015-11-12  Tom de Vries  <tom@codesourcery.com>
335         * gen-pass-instances.awk (handle_line): Rename var where to
336         call_starts_at.
338 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
340         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
341         do not expand to rtl.
343 2015-11-12  Richard Biener  <rguenther@suse.de>
345         PR tree-optimization/58497
346         * tree-vect-generic.c: Include gimplify.h.
347         (tree_vec_extract): Lookup constant/constructor DEFs.
348         (do_cond): Unshare cond.
350 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
352         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
353         combined insn if the alignment of vector mode memory operand
354         is less than ssememalign.
356 2015-11-12  Tom de Vries  <tom@codesourcery.com>
358         * gen-pass-instances.awk (handle_line): Print parentheses and
359         pass_name explicitly.
361 2015-11-12  Tom de Vries  <tom@codesourcery.com>
363         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
364         and postfix vars.
366 2015-11-12  Tom de Vries  <tom@codesourcery.com>
368         * gen-pass-instances.awk (handle_line): Add comments.
370 2015-11-12  Tom de Vries  <tom@codesourcery.com>
372         * gen-pass-instances.awk (handle_line): Rename len_of_end to
373         len_of_close.
375 2015-11-12  Tom de Vries  <tom@codesourcery.com>
377         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
379 2015-11-12  Tom de Vries  <tom@codesourcery.com>
381         * gen-pass-instances.awk (handle_line): Restructure using early-out.
383 2015-11-12  Tom de Vries  <tom@codesourcery.com>
385         * gen-pass-instances.awk (handle_line): Unify semicolon use.
387 2015-11-12  Tom de Vries  <tom@codesourcery.com>
389         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
391 2015-11-12  Tom de Vries  <tom@codesourcery.com>
393         * gen-pass-instances.awk: Add emacs indent setting.
395 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
397         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
398         to match.pd.
399         Move Convert A/(B/C) to (A/B)*C to match.pd.
400         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
401         Move Optimize (X & (-A)) / A where A is a power of 2, to
402         X >> log2(A) to match.pd.
404         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
405         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
406         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
407         New simplifier.
408         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
410 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
412         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
413         variable.
414         (neon_vst2_lane<mode>): Likewise.
415         (neon_vld3_lane<mode>): Likewise.
416         (neon_vst3_lane<mode>): Likewise.
417         (neon_vld4_lane<mode>): Likewise.
418         (neon_vst4_lane<mode>): Likewise.
420 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
421             Sebastian Pop  <s.pop@samsung.com>
423         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
424         New member codegen_error
425         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
426         early return.
427         (translate_isl_ast_node_user): Early return in case of error.
428         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
429         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
430         (add_parameters_to_ivs_params): Remove macro.
431         (graphite_regenerate_ast_isl): Add if_region pointer to region.
432         * graphite-poly.c (new_poly_dr): Remove macro.
433         (print_pdr): Same.
434         (new_gimple_poly_bb): Same.
435         (free_gimple_poly_bb): Same.
436         (print_scop_params): Same.
437         * graphite-poly.h (struct poly_dr): Same.
438         (struct poly_bb): Add new_bb.
439         (gbb_from_bb): Remove dead code.
440         (pbb_from_bb): Same.
441         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
442         (parameter_index_in_region): Same.
443         (find_scop_parameters): Same.
444         (build_cross_bb_scalars_def): New.
445         (build_cross_bb_scalars_use): New.
446         (graphite_find_cross_bb_scalar_vars): New
447         (try_generate_gimple_bb): Reads and Writes.
448         (build_alias_set): Move.
449         (gather_bbs::before_dom_children): Gather bbs visited.
450         (build_scops): call build_alias_set.
451         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
452         (remove_simple_copy_phi): Delete.
453         (remove_invariant_phi): Delete.
454         (simple_copy_phi_p): Delete.
455         (reduction_phi_p): Delete.
456         (isl_id_for_dr): Remove unused param.
457         (parameter_index_in_region_1): Remove macro usage.
458         (set_scop_parameter_dim): Same.
459         (add_param_constraints): Same.
460         (add_conditions_to_constraints): Same
461         (build_scop_iteration_domain): Same.
462         (pdr_add_alias_set): Comment.
463         (add_scalar_version_numbers): New.
464         (build_poly_dr): ISL id.
465         (build_scop_drs): Move.
466         (build_poly_sr_1): Same.
467         (insert_stmts): Remove.
468         (build_poly_sr): New.
469         (new_pbb_from_pbb): Delete.
470         (insert_out_of_ssa_copy_on_edge): Delete.
471         (create_zero_dim_array): Delete.
472         (scalar_close_phi_node_p): Delete.
473         (propagate_expr_outside_region): Delete.
474         (rewrite_close_phi_out_of_ssa): Delete.
475         (rewrite_phi_out_of_ssa): Delete.
476         (rewrite_degenerate_phi): Delete.
477         (rewrite_reductions_out_of_ssa): Delete.
478         (rewrite_cross_bb_scalar_dependence): Delete.
479         (handle_scalar_deps_crossing_scop_limits):
480         (rewrite_cross_bb_scalar_deps): Delete.
481         (build_poly_scop): Remove calls to out-of-ssa functions.
482         * graphite.c (graphite_transform_loops): Early return in case of
483         codegen error.
484         * sese.c (debug_rename_map_1): Delete.
485         (debug_rename_map): Delete.
486         (sese_record_loop): Remove macro.
487         (build_sese_loop_nests): Same.
488         (new_sese_info): Same.
489         (free_sese_info): Same.
490         (sese_insert_phis_for_liveouts):
491         (is_loop_closed_ssa_use): New.
492         (number_of_phi_nodes): New.
493         (bb_contains_loop_close_phi_nodes): New.
494         (bb_contains_loop_phi_nodes): New.
495         (phi_uses_name): New.
496         (is_valid_rename):
497         (get_rename): Add old_bb and loop_phi for more precise matching of
498         exprs.
499         (set_rename): Pass region.
500         (later_of_the_two): New.
501         (gsi_insert_earliest): New.
502         (collect_all_ssa_names): New.
503         (substitute_ssa_name): New.
504         (rename_all_uses): New.
505         (get_rename_from_scev): New.
506         (rename_uses): Pass old_bb for more precise matching of exprs.
507         (get_def_bb_for_const): New.
508         (get_new_name): New.
509         (get_loc): New.
510         (get_edges): New.
511         (copy_loop_phi_args): New.
512         (copy_loop_phi_nodes): New.
513         (get_loop_init_value): New.
514         (find_init_value): New.
515         (find_init_value_close_phi): New.
516         (copy_loop_close_phi_args): New.
517         (copy_loop_close_phi_nodes): New.
518         (add_phi_arg_for_new_expr): New.
519         (copy_cond_phi_args): New.
520         (copy_cond_phi_nodes): New.
521         (copy_phi_nodes): New.
522         (should_copy_to_new_region): New.
523         (set_rename_for_each_def): New.
524         (graphite_copy_stmts_from_block): Early return in case of error.
525         (copy_bb_and_scalar_dependences): Same.
526         * sese.h (vec_find): New.
527         (SESE_PARAMS): Delete.
528         (SESE_LOOPS): Delete.
529         (SESE_LOOP_NEST): Delete.
530         (sese_contains_loop): Remove macro usage.
531         (sese_nb_params): Same.
532         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
534 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
536         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
537         isl_union_map_add_map on every pbb->schedule.
539 2015-11-11  Tom de Vries  <tom@codesourcery.com>
541         * tree-parloops.c (create_parallel_loop): Return void.
543 2015-11-11  Tom de Vries  <tom@codesourcery.com>
545         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
546         block only when needed.
548 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
550         * config/alpha/alpha-protos.h (print_operand): Remove.
551         (print_operand_address): Remove.
552         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
553         (PRINT_OPERAND_ADDRESS): Remove.
554         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
555         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
556         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
557         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
558         (print_operand_address): Rename to...
559         (alpha_print_operand_address): ...this and make static.
560         (print_operand): Rename to...
561         (alpha_print_operand): ...this and make static.
562         (alpha_print_operand_punct_valid_p): New static function.
564 2015-11-11  Richard Biener  <rguenther@suse.de>
566         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
567         Declare.
568         (vect_analyze_data_refs_alignment): Make loop vect specific.
569         (vect_verify_datarefs_alignment): Likewise.
570         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
571         Add missing continue.
572         (vect_compute_data_ref_alignment): Export.
573         (vect_compute_data_refs_alignment): Merge into...
574         (vect_analyze_data_refs_alignment): ... this.
575         (verify_data_ref_alignment): Split out from ...
576         (vect_verify_datarefs_alignment): ... here.
577         (vect_slp_analyze_and_verify_node_alignment): New function.
578         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
579         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
580         misplaced checks on alignment.
581         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
582         alignment analysis after SLP discovery and do it per instance.
583         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
584         bother to re-try using different vector sizes.
586 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
587             Cesar Philippidis  <cesar@codesourcery.com>
589         * gimplify.c (enum omp_region_type): Add ORT_ACC,
590         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
591         (gimple_add_tmp_var): Add ORT_ACC checks.
592         (gimplify_var_or_parm_decl): Likewise.
593         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a
594         mask.
595         (omp_add_variable): Look in outer contexts for openacc and allow
596         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA
597         checks.
598         (omp_notice_variable, omp_is_private, omp_check_private): Add
599         ORT_ACC checks.
600         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
601         Permit private openacc reductions.
602         (gimplify_oacc_cache): Specify ORT_ACC.
603         (gimplify_omp_workshare): Adjust OpenACC region types.
604         (gimplify_omp_target_update): Likewise.
605         * omp-low.c (scan_sharing_clauses): Remove Openacc
606         firstprivate sorry.
607         (lower-rec_input_clauses): Don't handle openacc firstprivate
608         references here.
609         (lower_omp_target): Emit initializers for openacc firstprivate vars.
611 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
613         PR target/67265
614         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
615         frame pointer for stack checking if non-call exceptions aren't used.
616         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
618 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
620         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
621         [LA]SHIFTRT.
623 2015-11-11  Martin Liska  <mliska@suse.cz>
624             Richard Biener  <rguenther@suse.de>
626         PR rtl-optimization/68287
627         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
628         number of elements.
630 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
632         * config/mips/mips.c (mips_breakable_sequence_p): New function.
633         (mips_break_sequence): New function.
634         (mips_reorg_process_insns): Use them. Use compact branches in selected
635         situations.
637 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
639         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
641 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
642             Jim Wilson  <wilson@gcc.gnu.org>
644         PR target/67305
645         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
646         be true and eliminable registers mentioned.
648 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
650         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
651         options.
652         * config/arc/arc-opts.h: Add ARCv2 CPUs.
653         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
654         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
655         situation, and store instructions with large offsets.
656         (arc_secondary_reload_conv): New function.
657         (arc_init): Add ARCv2 options.
658         (arc_conditional_register_usage): Select the proper register usage
659         for ARCv2 processors.
660         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
661         architecture.
662         (arc_compute_function_type): Likewise.
663         (arc_print_operand): Handle new ARCv2 punctuation characters.
664         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16
665         bytes.
666         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
667         function.
668         (arc_reorg, arc_hazard): Use it.
669         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and
670         __EM__.
671         (ASM_SPEC): Add ARCv2 options.
672         (TARGET_NORM): ARC HS has norm instructions by default.
673         (TARGET_OPTFPE): Use optimized floating point emulation for ARC
674         HS.
675         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
676         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI):
677         Define.
678         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
679         Likewise.
680         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
681         (TARGET_LP_WR_INTERLOCK): Likewise.
682         * config/arc/arc.md
683         (commutative_binary_mult_comparison_result_used, movsicc_insn)
684         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
685         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
686         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
687         Use it for ARCv2.
688         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
689         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
690         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
691         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
692         (extzvsi): New pattern.
693         * config/arc/arc.opt: New ARCv2 options.
694         * config/arc/arcEM.md: New file.
695         * config/arc/arcHS.md: Likewise.
696         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
697         values.
698         (Cm2): A signed 9-bit integer constant constraint.
699         (C62): An unsigned 6-bit integer constant constraint.
700         (C16): A signed 16-bit integer constant constraint.
701         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
702         (short_const_int_operand): New predicate.
703         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
704         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
705         -mcode-density and -mdiv-rem.
707 2015-11-11  Julia Koval  <julia.koval@intel.com>
709         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
711 2015-11-11  Julia Koval  <julia.koval@intel.com>
713         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
715 2015-11-11  Martin Liska  <mliska@suse.cz>
717         * gimple-ssa-strength-reduction.c (create_phi_basis):
718         Use auto_vec.
719         * passes.c (release_dump_file_name): New function.
720         (pass_init_dump_file): Used from this function.
721         (pass_fini_dump_file): Likewise.
722         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
723         * var-tracking.c (vt_initialize): Use pool_allocator.
725 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
726             Jiong Wang      <jiong.wang@arm.com>
728         PR tree-optimization/68234
729         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
730         node which estimiated to be VR_VARYING initially.
732 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
734         * regname.c (scan_rtx_reg): Check the matching number of consecutive
735         registers when tying chains.
736         (build_def_use): Move terminated_this_insn earlier in the function.
738 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
740         * configure.ac: Use = with test and not ==.
741         * configure: Regenerated.
743 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
745         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
746         machine asserts.  Update defines for 64 bit.
748 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
750         PR target/63870
751         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
752         lane number.
753         (neon_vst1_lane<mode>): Likewise.
754         (neon_vld2_lane<mode>): Likewise.
755         (neon_vst2_lane<mode>): Likewise.
756         (neon_vld3_lane<mode>): Likewise.
757         (neon_vst3_lane<mode>): Likewise.
758         (neon_vld4_lane<mode>): Likewise.
759         (neon_vst4_lane<mode>): Likewise.
761 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
763         PR target/63870
764         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
765         qualifier_struct_load_store_lane_index.
766         (arm_storestruct_lane_qualifiers) Likewise.
767         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
768         big-endian.
769         (neon_vst1_lane<mode>) Likewise.
770         (neon_vld2_lane<mode>) Likewise.
771         (neon_vst2_lane<mode>) Likewise.
772         (neon_vld3_lane<mode>) Likewise.
773         (neon_vst3_lane<mode>) Likewise.
774         (neon_vld4_lane<mode>) Likewise.
775         (neon_vst4_lane<mode>) Likewise.
777 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
779         PR target/63870
780         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
781         qualifier_struct_load_store_lane_index.
782         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
783         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
784         argument qualifiers.
785         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
786         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
788 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
790         * config/nvptx/nvptx.opt (moptimize): New flag.
791         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
792         default.
793         (nvptx_optimize_inner): New.
794         (nvptx_process_pars): Call it when optimizing.
795         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
797 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
799         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
800         Remove redundant code.
802 2015-11-10  Jeff Law  <law@redhat.com>
804         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
805         call to output_address.
806         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
807         Add unnamed machine_mode argument.
809 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
811         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
812         default to 64-bit.
814 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
816         * config/i386/i386.md (*movabs<mode>_1): Add explicit
817         size directives for -masm=intel.
818         (*movabs<mode>_2): Ditto.
820 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
822         * config/i386/i386.c (ix86_print_operand): Remove dead code that
823         tried to avoid (%rip) for call operands.
825 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
827         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
828         argument.  Do not use RIP relative addressing when no_rip is set.
829         (ix86_print_operand): Update call to ix86_print_operand_address_as.
830         (ix86_print_operand_address): Ditto.
831         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
832         absolute movabs operand 0.  Add square braces for -masm=intel.
833         (*movabs<mode>_2): Ditto for operand 1.
835 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
837         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
838         combine_vcvtf2i pattern.
840 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
842         * config/arm/arm.c (neon_valid_immediate): Remove integer
843         CONST_DOUBLE handling.  It should never occur.
845 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
847         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
848         (ATOMIC_LDOP): Likewise.
849         (atomic_ldop): Likewise.
850         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
851         (ATOMIC_LDOP): Likewise.
852         (atomic_ldop): Likewise.
854 2015-11-10  Martin Liska  <mliska@suse.cz>
856         * alloc-pool.h (allocate_raw): New function.
857         (operator new (size_t, object_allocator<T> &a)): Use the
858         function instead of object_allocator::allocate).
860 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
862         * config/i386/sse.md (HALFMASKMODE): New attribute.
863         (DOUBLEMASKMODE): New attribute.
864         (vec_pack_trunc_qi): New.
865         (vec_pack_trunc_<mode>): New.
866         (vec_unpacks_lo_hi): New.
867         (vec_unpacks_lo_si): New.
868         (vec_unpacks_lo_di): New.
869         (vec_unpacks_hi_hi): New.
870         (vec_unpacks_hi_<mode>): New.
872 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
874         * optabs.c (expand_binop_directly): Allow scalar mode for
875         vec_pack_trunc_optab.
876         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
877         boolean vector producers from pattern sequence when computing VF.
878         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
879         vect_recog_mask_conversion_pattern.
880         (search_type_for_mask): Choose the smallest
881         type if different size types are mixed.
882         (build_mask_conversion): New.
883         (vect_recog_mask_conversion_pattern): New.
884         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
885         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
886         load with pattern.
887         (vectorizable_conversion): Support boolean vectors.
888         (free_stmt_vec_info): Allow patterns for statements with no lhs.
889         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
891 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
893         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
894         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
895         Cast mask to FP mode if required.
896         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
897         (vcond_mask_<mode><avx512fmaskmodelower>): New.
898         (vcond_mask_<mode><sseintvecmodelower>): New.
899         (vcond_mask_<mode><sseintvecmodelower>): New.
900         (vcond_mask_v2div2di): New.
901         (vcond_mask_<mode><sseintvecmodelower>): New.
902         (vcond_mask_<mode><sseintvecmodelower>): New.
904 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
906         * optabs-query.h (get_vcond_mask_icode): New.
907         * optabs-tree.c (expand_vec_cond_expr_p): Use
908         get_vcond_mask_icode for VEC_COND_EXPR with mask.
909         * optabs.c (expand_vec_cond_mask_expr): New.
910         (expand_vec_cond_expr): Use get_vcond_mask_icode
911         when possible.
912         * optabs.def (vcond_mask_optab): New.
913         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
914         generate redundant comparison for COND_EXPR.
915         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
916         as a condition.
917         (vectorizable_condition): Likewise.
918         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
919         cond_exp with no embedded comparison.
920         (vect_build_slp_tree_1): Likewise.
922 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
924         * config/i386/sse.md (maskload<mode>): Rename to ...
925         (maskload<mode><sseintvecmodelower>): ... this.
926         (maskstore<mode>): Rename to ...
927         (maskstore<mode><sseintvecmodelower>): ... this.
928         (maskload<mode><avx512fmaskmodelower>): New.
929         (maskstore<mode><avx512fmaskmodelower>): New.
931 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
933         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
934         (expand_MASK_STORE): Adjust to maskstore optab changes.
935         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
936          Adjust to maskload, maskstore optab changes.
937         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
938         * optabs.def (maskload_optab): Transform into convert optab.
939         (maskstore_optab): Likewise.
940         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
941         can_vec_mask_load_store_p signature change.
942         (predicate_mem_writes): Use boolean mask.
943         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
944         can_vec_mask_load_store_p signature change.  Allow invariant masks.
945         (vectorizable_operation): Ignore type precision for boolean vectors.
947 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
949         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
950         (const_vector_mask_from_tree): New.
951         (const_vector_from_tree): Use const_vector_mask_from_tree
952         for boolean vectors.
953         * optabs-query.h (get_vec_cmp_icode): New.
954         * optabs-tree.c (expand_vec_cmp_expr_p): New.
955         * optabs-tree.h (expand_vec_cmp_expr_p): New.
956         * optabs.c (vector_compare_rtx): Add OPNO arg.
957         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
958         (expand_vec_cmp_expr): New.
959         * optabs.def (vec_cmp_optab): New.
960         (vec_cmpu_optab): New.
961         * optabs.h (expand_vec_cmp_expr): New.
962         * tree-vect-generic.c (expand_vector_comparison): Add vector
963         comparison optabs check.
964         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
965         operations for VF.  Add mask type computation.
966         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
967         (vectorizable_comparison): New.
968         (vect_analyze_stmt): Add vectorizable_comparison.
969         (vect_transform_stmt): Likewise.
970         (vect_init_vector): Support boolean vector invariants.
971         (vect_get_vec_def_for_operand): Add VECTYPE arg.
972         (vectorizable_condition): Directly provide vectype for invariants
973         used in comparison.
974         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
975         (enum vect_var_kind): Add vect_mask_var.
976         (enum stmt_vec_info_type): Add comparison_vec_info_type.
977         (vectorizable_comparison): New.
978         (vect_get_vec_def_for_operand): Add VECTYPE arg.
979         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
980         (vect_create_destination_var): Likewise.
981         * tree-vect-patterns.c (check_bool_pattern): Check fails
982         if we can vectorize comparison directly.
983         (search_type_for_mask): New.
984         (vect_recog_bool_pattern): Support cases when bool pattern
985         check fails.
986         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
987         comparison statements.
988         (vect_get_constant_vectors): Support boolean vector
989         constants.
990         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
991         (ix86_expand_int_vec_cmp): New.
992         (ix86_expand_fp_vec_cmp): New.
993         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
994         op_true and op_false.
995         (ix86_int_cmp_code_to_pcmp_immediate): New.
996         (ix86_fp_cmp_code_to_pcmp_immediate): New.
997         (ix86_cmp_code_to_pcmp_immediate): New.
998         (ix86_expand_mask_vec_cmp): New.
999         (ix86_expand_fp_vec_cmp): New.
1000         (ix86_expand_int_sse_cmp): New.
1001         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
1002         (ix86_expand_int_vec_cmp): New.
1003         (ix86_get_mask_mode): New.
1004         (TARGET_VECTORIZE_GET_MASK_MODE): New.
1005         * config/i386/sse.md (avx512fmaskmodelower): New.
1006         (vec_cmp<mode><avx512fmaskmodelower>): New.
1007         (vec_cmp<mode><sseintvecmodelower>): New.
1008         (vec_cmpv2div2di): New.
1009         (vec_cmpu<mode><avx512fmaskmodelower>): New.
1010         (vec_cmpu<mode><sseintvecmodelower>): New.
1011         (vec_cmpuv2div2di): New.
1013 2015-11-10  Richard Biener  <rguenther@suse.de>
1015         PR tree-optimization/68240
1016         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
1017         properly.
1018         (visit_phi): For PHIs with just a single executable edge
1019         take its value directly.
1020         (expressions_equal_p): Handle VN_TOP properly.
1022 2015-11-10  Richard Biener  <rguenther@suse.de>
1024         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
1025         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
1026         conservatively.
1028 2015-11-10  Richard Biener  <rguenther@suse.de>
1030         PR tree-optimization/56118
1031         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
1032         cost favor vectorized version.
1034 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1036         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
1037         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
1038         (neg_not_op): New code attribute.
1040 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1042         * ifcvt.c (noce_try_inverse_constants): New function.
1043         (noce_process_if_block): Call it.
1044         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
1045         * optabs.def (negcc_optab, notcc_optab): Declare.
1046         * optabs.c (emit_conditional_neg_or_complement): New function.
1047         * doc/tm.texi (Standard Names): Document negcc, notcc names.
1049 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1051         PR rtl-optimization/68236
1052         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
1053         if insn_queue doesn't exist.
1054         (haifa_sched_finish): Reset insn_queue to NULL.
1056 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
1058         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
1059         (build_def_use): Initialize terminated_this_insn.
1060         (find_best_rename_reg): Pick and check register from the tied chain.
1061         (regrename_do_replace): Mark head as renamed.
1062         (struct du_head *terminated_this_insn). New static variable.
1063         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
1064         * regrename.h (struct du_head): Add tied_chain, renamed members.
1066 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1068         PR bootstrap/68256
1069         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
1070         Return false.
1072 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1074         PR target/57845
1075         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
1076         not promote the mode for aggregate types.
1078 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
1080         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
1081         * omp-low.c (build_oacc_routine_dims): New.
1083 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1085         * config/rs6000/constraints.md (wF constraint): New constraints
1086         for power9/toc fusion.
1087         (wG constraint): Likewise.
1089         * config/rs6000/predicates.md (u6bit_cint_operand): New
1090         predicate, recognize 0..63.
1091         (upper16_cint_operand): New predicate for power9 and toc fusion.
1092         (fpr_reg_operand): Likewise.
1093         (toc_fusion_or_p9_reg_operand): Likewise.
1094         (toc_fusion_mem_raw): Likewise.
1095         (toc_fusion_mem_wrapped): Likewise.
1096         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
1097         address range.
1098         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
1099         instead.
1100         (fusion_addis_mem_combo_load): Add support for power9 fusion of
1101         floating point loads, floating point stores, and gpr stores.
1102         (fusion_addis_mem_combo_store): Likewise.
1103         (fusion_offsettable_mem_operand): Likewise.
1105         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
1106         declarations.
1107         (emit_fusion_load_store): Likewise.
1108         (fusion_p9_p): Likewise.
1109         (expand_fusion_p9_load): Likewise.
1110         (expand_fusion_p9_store): Likewise.
1111         (emit_fusion_p9_load): Likewise.
1112         (emit_fusion_p9_store): Likewise.
1113         (fusion_wrap_memory_address): Likewise.
1115         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
1116         elements for power9 fusion.
1117         (rs6000_debug_print_mode): Rework debug information to print more
1118         information about fusion.
1119         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
1120         support.
1121         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
1122         offsettable memory address.
1123         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
1124         (emit_fusion_gpr_load): Move most of the code from
1125         emit_fusion_gpr_load into emit_fusion-addis that handles both
1126         power8 and power9 fusion.
1127         (emit_fusion_addis): Likewise.
1128         (emit_fusion_load_store): Likewise.
1129         (fusion_wrap_memory_address): Add support for TOC fusion.
1130         (fusion_split_address): Likewise.
1131         (fusion_p9_p): Add support for power9 fusion.
1132         (expand_fusion_p9_load): Likewise.
1133         (expand_fusion_p9_store): Likewise.
1134         (emit_fusion_p9_load): Likewise.
1135         (emit_fusion_p9_store): Likewise.
1137         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
1138         new instructions in ISA 3.0.
1139         (TARGET_CTZ): Likewise.
1140         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
1141         (TARGET_TOC_FUSION_FP): Likewise.
1143         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
1144         fusion unspecs.
1145         (UNSPEC_FUSION_ADDIS): Likewise.
1146         (QHSI mode iterator): New iterator for power9 fusion.
1147         (GPR_FUSION): Likewise.
1148         (FPR_FUSION): Likewise.
1149         (mod<mode>3): Add support for ISA 3.0
1150         modulus instructions.
1151         (umod<mode>3): Likewise.
1152         (divmod peephole): Likewise.
1153         (udivmod peephole): Likewise.
1154         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
1155         instructions.
1156         (ctz<mode>2_h): Likewise.
1157         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
1158         (ashdi3_extswsli_dot): Likewise.
1159         (ashdi3_extswsli_dot2): Likewise.
1160         (power9 fusion splitter): New power9/toc fusion support.
1161         (toc_fusionload_<mode>): Likewise.
1162         (toc_fusionload_di): Likewise.
1163         (fusion_gpr_load_<mode>): Update predicate function.
1164         (power9 fusion peephole2s): New power9/toc fusion support.
1165         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
1166         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
1167         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1168         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1169         (fusion_p9_<mode>_constant): Likewise.
1171 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
1173         * optabs.c (prepare_libcall_arg): New function.
1174         (expand_fixed_convert): Add call to prepare_libcall_arg.
1176 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
1178         * sched-int.h (dump_rgn_dependencies_dot): Declare
1179         * sched-rgn.c (dump_rgn_dependencies_dot): New function
1180         * print-rtl.h (print_insn): Add prototype
1182         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
1183         * common.opt (-fsched-verbose): Set default value to 1.
1184         * invoke.texi (-fsched-verbose): Update the option's description.
1186 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1188         * config/visium/visium.h (PRINT_OPERAND): Delete.
1189         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
1190         (PRINT_OPERAND_ADDRESS): Likewise.
1191         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
1192         to...
1193         (visium_print_operand_punct_valid_p): ...this.  New function.
1194         (TARGET_PRINT_OPERAND): Define to...
1195         (print_operand): Rename to...
1196         (visium_print_operand): ...this.
1197         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
1198         (visium_output_address): Rename to...
1199         (visium_print_operand_address): ...this.
1200         (print_operand_address): Delete.
1202 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1204         PR middle-end/68259
1205         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
1206         Check that the type of the first operand is an aggregate type.
1208 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
1210         * omp-low.c: Fix some OpenACC comment typos.
1211         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
1212         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
1213         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
1215 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
1217         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
1219 2015-11-09  Jeff Law  <law@redhat.com>
1221         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
1222         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
1223         Fix comment typo.
1225 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1226             Peter Bergner  <bergner@vnet.ibm.com>
1228         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
1229         ISA 3.0 (power9).
1230         (-mpower9-vector): Likewise.
1231         (-mpower9-dform): Likewise.
1232         (-mpower9-minmax): Likewise.
1233         (-mtoc-fusion): Likewise.
1234         (-mmodulo): Likewise.
1235         (-mfloat128-hardware): Likewise.
1237         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
1238         mask for ISA 3.0 (power9).
1239         (POWERPC_MASKS): Add new ISA 3.0 switches.
1240         (power9 cpu): Add power9 cpu.
1242         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
1243         power9.
1244         (ASM_CPU_SPEC): Likewise.
1245         (EXTRA_SPECS): Likewise.
1247         * config/rs6000/rs6000-opts.h (enum processor_type): Add
1248         PROCESSOR_POWER9.
1250         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
1251         power9.
1252         (rs6000_debug_reg_global): Add support for power9 fusion.
1253         (rs6000_setup_reg_addr_masks): Cache mode size.
1254         (rs6000_option_override_internal): Until real power9 tuning is
1255         added, use -mtune=power8 for -mcpu=power9.
1256         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
1257         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
1258         of Altivec registers.
1259         (rs6000_option_override_internal): Add support for ISA 3.0
1260         switches.
1261         (rs6000_loop_align): Add support for power9 cpu.
1262         (rs6000_file_start): Likewise.
1263         (rs6000_adjust_cost): Likewise.
1264         (rs6000_issue_rate): Likewise.
1265         (insn_must_be_first_in_group): Likewise.
1266         (insn_must_be_last_in_group): Likewise.
1267         (force_new_group): Likewise.
1268         (rs6000_register_move_cost): Likewise.
1269         (rs6000_opt_masks): Likewise.
1271         * config/rs6000/rs6000.md (cpu attribute): Add power9.
1272         * config/rs6000/rs6000-tables.opt: Regenerate.
1274         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1275         _ARCH_PWR9 if power9 support is available.
1277         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
1278         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
1280         * configure.ac: Determine if the assembler supports the ISA 3.0
1281         instructions.
1282         * config.in (HAVE_AS_POWER9): Likewise.
1283         * configure: Regenerate.
1285         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
1286         switches.
1288 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1290         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
1291         Remove integer CONST_DOUBLE handling.  It should never occur.
1293 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1295         PR target/68129
1296         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
1297         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
1298         Delete VOIDmode case.  Assert that mode is not VOIDmode.
1299         * config/aarch64/predicates.md (const0_operand): Remove const_double
1300         match.
1302 2015-11-09  Martin Liska  <mliska@suse.cz>
1304         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
1305         body_info release function.
1306         * ipa-prop.c (ipa_release_body_info): New function.
1307         (ipa_analyze_node): Call the function.
1308         (ipa_node_params::~ipa_node_params): Release known_csts.
1309         * ipa-prop.h (ipa_release_body_info): Declare.
1311 2015-11-09  Martin Liska  <mliska@suse.cz>
1313         * gcc.c (record_temp_file): Release name string.
1314         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
1315         of vec.
1316         * lra-lives.c (free_live_range_list): Utilize
1317         lra_live_range_pool for allocation and deallocation.
1318         (create_live_range): Likewise.
1319         (copy_live_range): Likewise.
1320         (lra_merge_live_ranges): Likewise.
1321         (remove_some_program_points_and_update_live_ranges): Likewise.
1322         (lra_create_live_ranges_1): Release point_freq_vec that can
1323         be not freed from previous iteration of the function.
1324         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
1325         vec.
1326         * tree-sra.c (sra_deinitialize): Release all vectors in
1327         base_access_vec.
1328         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
1329         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
1330         Release edge_info for a removed edge.
1331         (thread_through_all_blocks): Free region vector.
1332         * tree-ssa.h (free_dom_edge_info): Declare function extern.
1334 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
1336         * optabs.c (expand_vec_cond_expr): Always get sign from type.
1337         * tree.c (wide_int_to_tree): Support negative values for boolean.
1338         (build_nonstandard_boolean_type): Use signed type for booleans.
1340 2015-11-09  Richard Biener  <rguenther@suse.de>
1342         PR tree-optimization/68248
1343         * tree-vect-generic.c (expand_vector_operations_1): Handle
1344         scalar rhs2.
1346 2015-11-09  Richard Biener  <rguenther@suse.de>
1348         PR tree-optimization/56118
1349         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
1350         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
1351         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
1352         function.
1353         (vect_slp_analyze_data_ref_dependences): Instead of computing
1354         all dependences of the region DRs just analyze the code motions
1355         SLP vectorization will perform.  Remove SLP instances that
1356         cannot have their store/load motions applied.
1357         (vect_analyze_data_refs): Allow DRs without a vectype
1358         in BB vectorization.
1360 2015-11-09  Julian Brown  <julian@codesourcery.com>
1362         * final.c (output_asm_insn): Pass VOIDmode to output_address.
1363         (output_address): Add MODE argument. Pass to print_operand_address
1364         hook.
1365         * targhooks.c (default_print_operand_address): Add MODE argument.
1366         * targhooks.h (default_print_operand_address): Update prototype.
1367         * output.h (output_address): Update prototype.
1368         * target.def (print_operand_address): Add MODE argument.
1369         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
1370         output_address.
1371         (print_operand): Pass access mode to output_address.
1372         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
1373         argument.
1374         (mcore_print_operand): Update calls to mcore_print_operand_address.
1375         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
1376         output_address.
1377         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
1378         output_address.
1379         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
1380         global.
1381         (tilegx_print_operand): Don't set above global. Update calls to
1382         output_address.
1383         (tilegx_print_operand_address): Add MODE argument. Use instead of
1384         output_memory_reference_mode global.
1385         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
1386         (frv_print_operand): Pass mode to frv_print_operand_address calls.
1387         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
1388         output_address.
1389         * config/cris/cris.c (cris_print_operand_address): Add MODE
1390         argument.
1391         (cris_print_operand): Pass mode to output_address calls.
1392         * config/spu/spu.c (print_operand): Pass mode to output_address
1393         calls.
1394         * config/aarch64/aarch64.h (aarch64_print_operand)
1395         (aarch64_print_operand_address): Remove prototypes.
1396         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
1397         global.
1398         (aarch64_print_operand): Make static. Update calls to
1399         output_address.
1400         (aarch64_print_operand_address): Add MODE argument. Use instead of
1401         aarch64_memory_reference_mode global.
1402         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
1403         hooks.
1404         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
1405         Delete macro definitions.
1406         * config/pa/pa.c (pa_print_operand): Pass mode in output_address
1407         calls.
1408         * config/xtensa/xtensa.c (print_operand): Pass mode in
1409         output_address calls.
1410         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
1411         argument.
1412         (h83000_print_operand): Update calls to h8300_print_operand_address
1413         and output_address.
1414         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
1415         argument.
1416         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
1417         global.
1418         (tilepro_print_operand): Pass mode to output_address.
1419         (tilepro_print_operand_address): Add MODE argument. Use instead of
1420         output_memory_reference_mode.
1421         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
1422         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
1423         to output_address calls.
1424         (nvptx_print_operand_address): Add MODE argument.
1425         * config/alpha/alpha.c (print_operand): Pass mode argument in
1426         output_address calls.
1427         * config/m68k/m68k.c (print_operand): Pass mode argument in
1428         output_address call.
1429         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
1430         (avr_print_operand): Update calls to avr_print_operand_address.
1431         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
1432         argument. Update calls to output_address.
1433         (sparc_print_operand): Pass mode to output_address.
1434         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
1435         argument.
1436         (iq2000_print_operand): Pass mode in output_address calls.
1437         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
1438         MODE argument.
1439         (xstormy16_print_operand): Pass mode to
1440         xstormy16_print_operand_address calls.
1441         * config/mips/mips.c (mips_print_operand): Update calls to
1442         output_address.
1443         (mips_print_operand_address): Add MODE argument.
1444         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
1445         to output_address.
1446         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
1447         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
1448         output_address.
1449         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
1450         (rx_print_operand): Update calls to output_address,
1451         rx_print_operand_address.
1452         * config/nds32/nds32.c (nds32_print_operand): Update calls to
1453         output_address.
1454         (nds32_print_operand_address): Add MODE argument.
1455         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
1456         output_address calls.
1457         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
1458         output_address call.
1459         (c6x_print_address_operand): Update calls to output_address.
1460         (c6x_print_operand_address): Pass mode to above.
1461         * config/v850/v850.c (v850_print_operand_address): Add MODE
1462         argument.
1463         (v850_print_operand): Pass mode to v850_print_operand_address,
1464         output_address.
1465         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
1466         argument.
1467         (mmix_print_operand): Pass mode in output_address calls.
1468         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
1469         (sh_print_operand): Pass mem mode to output_address,
1470         sh_print_operand_address.
1471         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
1472         argument.
1473         (cr16_print_operand): Pass mode to output_address,
1474         cr16_print_operand_address.
1475         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
1476         output_address.
1477         * config/microblaze/microblaze.c (print_operand): Pass mode to
1478         output_address.
1479         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
1480         output_address.
1481         (nios2_print_operand_address): Add MODE argument. Update call to
1482         nios2_print_operand_address.
1483         * config/s390/s390.c (print_operand): Pass mode to output_address.
1484         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
1485         argument.
1486         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
1487         output_address.
1488         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
1489         Use instead of output_memory_reference_mode.
1490         (output_memory_reference_mode): Delete global.
1491         (arm_print_operand): Pass mem mode to output_address.
1492         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
1493         argument.
1494         (m32r_print_operand): Pass mode to output_address.
1495         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
1496         argument.
1497         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
1498         * config/i386/i386.c (ix86_print_operand): Pass mode to
1499         output_address calls.
1500         (ix86_print_operand_address): Add MODE argument.
1502 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1504         PR middle-end/68251
1505         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
1506         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
1507         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
1508         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1510 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1512         PR rtl-optimization/67749
1513         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
1514         case before emitting the two blocks.  Instead modify the register
1515         in the corresponding final insn of the basic block.
1517 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1519         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
1520         assembler syntax.
1521         Support Solaris ld.
1522         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
1524         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
1525         HAVE_INITFINI_ARRAY_SUPPORT.
1526         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
1527         value.
1529         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
1530         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
1531         Don't check HAVE_AS_SPARC_NOBITS.
1532         Heed SECTION_NOTYPE.
1534         * configure: Regenerate.
1535         * config.in: Regenerate.
1537 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1539         PR middle-end/68253
1540         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
1542 2015-11-09  Richard Henderson  <rth@redhat.com>
1544         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
1545         __SEG_GS, __SEG_TLS.
1546         (ix86_register_pragmas): Register address spaces __seg_fs,
1547         __seg_gs, __seg_tls.
1548         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
1549         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
1550         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
1551         * config/i386/i386.c (ix86_decompose_address): Likewise.
1552         (ix86_legitimate_address_p): Likewise.
1553         (memory_address_length): Likewise.  Check mem address space too.
1554         (ix86_print_operand): Use ix86_print_operand_address_as.
1555         (ix86_print_operand_address_as): Rename from
1556         ix86_print_operand_address, add new addr_space_t parameter.
1557         Validate that either the parameter or the ix86_address segment
1558         is default address space.  Handle ADDR_SPACE_SEG_TLS.
1559         (ix86_print_operand_address): New.
1560         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
1561         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
1562         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
1563         (ix86_addr_space_zero_address_valid): New.
1564         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1565         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
1566         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
1567         * config/i386/predicates.md (address_no_seg_operand): Likewise.
1568         (vsib_address_operand): Likewise.
1569         (address_mpx_no_base_operand): Likewise.
1570         (address_mpx_no_index_operand): Likewise.
1571         * doc/extend.texi (x86 Named Address Spaces): New section.
1573         * config/i386/i386.c (ix86_check_no_addr_space): New.
1574         (decide_alg): Add have_as parameter.
1575         (alg_usable_p): Likewise; disable rep algorithms if set.
1576         (ix86_expand_set_or_movmem): Notice if either MEM has a
1577         non-default address space.
1578         (ix86_expand_strlen): Likewise.
1579         * config/i386/i386.md (strmov, strset): Likewise.
1580         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
1581         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
1582         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
1583         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
1584         *cmpstrnqi_1, *strlenqi_1): Likewise.
1586         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
1587         (*movabs<mode>_2): Likewise.
1589         * dwarf2out.c (modified_type_die): Pass the address space number
1590         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
1591         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
1592         * targhooks.c (default_addr_space_debug): New.
1593         * targhooks.h (default_addr_space_debug): Declare.
1594         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
1595         * doc/tm.texi: Rebuild.
1597         * gimple.c (check_loadstore): Return false when 0 is a valid address.
1598         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
1599         null when 0 is valid in the source address space.
1600         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1601         * targhooks.c (default_addr_space_zero_address_valid): New.
1602         * targhooks.h (default_addr_space_zero_address_valid): Declare.
1603         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
1604         * doc/tm.texi: Rebuild.
1606         * cselib.c (add_mem_for_addr): Compare address spaces when
1607         matching memories.
1608         (cselib_lookup_mem): Likewise.
1609         * fold-const.c (operand_equal_p): Check address spaces of
1610         pointer types before checking integer constants.
1612         PR tree-opt/66768
1613         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
1614         the correct type for the base.
1616 2015-11-09  Jeff Law  <law@redhat.com>
1618         * tree-into-ssa.c (names_to_release): No longer static.
1619         * tree-into-ssa.h (names_to_release): Declare.
1620         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
1621         (release_free_names_and_compact_live_names): New function extracted
1622         from pass_release_ssa_names::execute.
1623         (pass_release_ssa_names::execute): Use it.
1625 2015-11-09  Alan Modra  <amodra@gmail.com>
1627         * gensupport.c (add_mnemonic_string): Make len param a size_t.
1628         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
1629         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
1630         return value.
1632 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
1634         PR rtl-optimization/68182
1635         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
1636         branch with only one successor just like unconditional branches.
1638 2015-11-08  Jeff Law  <law@redhat.com>
1640         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
1641         non-FSM path has no edges marked with EDGE_DFS_BACK.
1642         (ssa_redirect_edges): No longer call mark_loop_for_removal.
1643         (thread_single_edge, def_split_header_continue_p): Remove.
1644         (bb_ends_with_multiway_branch): Likewise.
1645         (thread_through_loop_header): Remove cases of threading from
1646         latch through the header.  Simplify knowing we won't thread
1647         the latch.
1648         (thread_through_all_blocks): Simplify knowing that only the FSM
1649         threader needs to handle backedges.
1651 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1653         * doc/extend.texi (type attributes): Document scalar_storage_order.
1654         (Structure-Packing Pragmas): Rename into...
1655         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
1656         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
1657         (Warnings): Document -Wno-scalar-storage-order.
1658         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
1659         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
1660         extract_bit_field and store_bit_field.
1661         (initialize_argument_information): Adjust call to store_expr.
1662         (load_register_parameters): Adjust call to extract_bit_field.
1663         * expmed.c (check_reverse_storage_order_support): New function.
1664         (check_reverse_float_storage_order_support): Likewise.
1665         (flip_storage_order): Likewise.
1666         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
1667         of the value if it is true.  Pass REVERSE to recursive call after
1668         adjusting the target offset.
1669         Do not use extraction or movstrict instruction if REVERSE is true.
1670         Pass REVERSE to store_fixed_bit_field.
1671         (store_bit_field): Add REVERSE parameter and pass to it to above.
1672         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
1673         store_split_bit_field and store_fixed_bit_field_1.
1674         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
1675         order of the value if it is true and adjust the target offset.
1676         (store_split_bit_field): Add REVERSE parameter and pass it to
1677         store_fixed_bit_field.  Adjust the target offset if it is true.
1678         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
1679         of the value if it is true.  Pass REVERSE to recursive call after
1680         adjusting the target offset.
1681         Do not use extraction or subreg instruction if REVERSE is true.
1682         Pass REVERSE to extract_fixed_bit_field.
1683         (extract_bit_field): Add REVERSE parameter and pass to it to above.
1684         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
1685         extract_split_bit_field and extract_fixed_bit_field_1.
1686         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
1687         order of the value if it is true and adjust the target offset.
1688         (extract_split_bit_field): Add REVERSE parameter and pass it to
1689         extract_fixed_bit_field.  Adjust the target offset if it is true.
1690         * expmed.h (flip_storage_order): Declare.
1691         (store_bit_field): Adjust prototype.
1692         (extract_bit_field): Likewise.
1693         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1694         (emit_group_store): Adjust call to store_bit_field.
1695         (copy_blkmode_from_reg): Likewise.
1696         (copy_blkmode_to_reg): Likewise.
1697         (write_complex_part): Likewise.
1698         (read_complex_part): Likewise.
1699         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
1700         that it isn't true if the target is a register.
1701         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
1702         and flip the storage order of the value.
1703         <BIT_IOR_EXPR>: Flip the storage order of the value.
1704         (get_bit_range): Adjust call to get_inner_reference.
1705         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
1706         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
1707         with reverse storage order.
1708         (store_expr_with_bounds): Add REVERSE parameter and pass it to
1709         recursive calls and call to store_bit_field.  Force the value into a
1710         register if it is true and then flip the storage order of the value.
1711         (store_expr): Add REVERSE parameter and pass it to above.
1712         (categorize_ctor_elements_1): Adjust call to
1713         initializer_constant_valid_p.
1714         (store_constructor_field): Add REVERSE parameter and pass it to
1715         recursive calls and call to store_field.
1716         (store_constructor): Add REVERSE parameter and pass it to calls to
1717         store_constructor_field and store_expr.  Set it to true for an
1718         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
1719         (store_field): Add REVERSE parameter and pass it to recursive calls
1720         and calls to store_expr and store_bit_field.  Temporarily flip the
1721         storage order of the value with record type and integral mode and
1722         adjust the shift if it is true.
1723         (get_inner_reference): Add PREVERSEP parameter and set it to true
1724         upon encoutering a reference with reverse storage order.
1725         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
1726         (expand_constructor): Adjust call to store_constructor.
1727         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
1728         of the union type to store_expr in the MEM case and assert that it
1729         isn't set in the REG case.  Adjust call to store_field.
1730         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
1731         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
1732         get_inner_reference and extract_bit_field. Temporarily flip the
1733         storage order of the value with record type and integral mode and
1734         adjust the shift if it is true.  Flip the storage order of the value
1735         at the end if it is true.
1736         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
1737         get_inner_reference.  Do not fetch an inner reference if it is true.
1738         * expr.h (store_expr_with_bounds): Ajust prototype.
1739         (store_expr): Likewise.
1740         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
1741         REF_REVERSE_STORAGE_ORDER on the reference according to it.
1742         (optimize_bit_field_compare): Deal with reverse storage order.
1743         Adjust calls to get_inner_reference and make_bit_field_ref.
1744         (decode_field_reference): Add PREVERSEP parameter and adjust call to
1745         get_inner_reference.
1746         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
1747         to decode_field_reference and make_bit_field_ref.
1748         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
1749         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
1750         (fold_comparison): Adjust call to get_inner_reference.
1751         (split_address_to_core_and_offset): Adjust call to
1752         get_inner_reference.
1753         * gimple-expr.c (useless_type_conversion_p): Return false for array
1754         types with different TYPE_REVERSE_STORAGE_ORDER flag.
1755         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
1756         REF_REVERSE_STORAGE_ORDER flag.
1757         * lto-streamer-out.c (hash_tree): Deal with
1758         TYPE_REVERSE_STORAGE_ORDER.
1759         * output.h (assemble_real): Adjust prototype.
1760         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
1761         * stor-layout.c (finish_record_layout): Propagate the
1762         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
1763         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
1764         (TYPE_SATURATING): Adjust.
1765         (REF_REVERSE_STORAGE_ORDER): Document.
1766         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
1767         set it to true upon encoutering a reference with reverse storage
1768         order.
1769         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
1770         * tree-inline.c (remap_gimple_op_r): Propagate the
1771         REF_REVERSE_STORAGE_ORDER flag.
1772         (copy_tree_body_r): Likewise.
1773         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
1774         store_expr.
1775         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
1776         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
1777         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1778         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
1779         REF_REVERSE_STORAGE_ORDER flag.
1780         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
1781         (gimple_canonical_types_compatible_p): Likewise.
1782         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
1783         (TYPE_SATURATING): Adjust.
1784         (REF_REVERSE_STORAGE_ORDER): New flag.
1785         (reverse_storage_order_for_component_p): New inline predicate.
1786         (storage_order_barrier_p): Likewise.
1787         (get_inner_reference): Adjust prototype.
1788         * varasm.c: Include expmed.h.
1789         (assemble_variable_contents): Adjust call to output_constant.
1790         (assemble_real): Add REVERSE parameter.  Flip the storage
1791         order of the value if REVERSE is true.
1792         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
1793         (assemble_constant_contents): Adjust call to output_constant.
1794         (output_constant_pool_2): Adjust call to assemble_real.
1795         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
1796         TYPE_REVERSE_STORAGE_ORDER.
1797         (initializer_constant_valid_p): Add REVERSE parameter.
1798         (output_constant): Add REVERSE parameter.
1799         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
1800         <REAL_TYPE>: Adjust call to assemble_real.
1801         <COMPLEX_TYPE>: Pass it to recursive calls.
1802         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
1803         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
1804         (struct oc_local_state): Add REVERSE field.
1805         (output_constructor_array_range): Adjust calls to output_constant.
1806         (output_constructor_regular_field): Likewise.
1807         (output_constructor_bitfield): Adjust call to output_constructor.
1808         Flip the storage order of the value if REVERSE is true.
1809         (output_constructor): Add REVERSE parameter.  Set it to true for an
1810         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
1811         output_constructor_bitfield.
1812         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
1813         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
1814         * builtins.c (get_object_alignment_2): Likewise.
1815         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
1816         and get_ref_base_and_extent.
1817         * dbxout.c (dbxout_expand_expr): Likewise.
1818         * dwarf2out.c (add_var_loc_to_decl): Likewise.
1819         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
1820         (loc_list_from_tree): Likewise.
1821         (fortran_common): Likewise.
1822         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
1823         get_ref_base_and_extent.
1824         (get_base_constructor): Likewise.
1825         (fold_const_aggregate_ref_1): Likewise.
1826         * gimple-laddress.c (pass_laddress::execute): Adjust call to
1827         get_inner_reference.
1828         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
1829         get_inner_reference and bail out on reverse storage order.
1830         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
1831         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
1832         build_ref_for_offset.
1833         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
1834         get_ref_base_and_extent.
1835         (ipa_polymorphic_call_context): Likewise.
1836         (extr_type_from_vtbl_ptr_store): Likewise.
1837         (check_stmt_for_type_change): Likewise.
1838         (get_dynamic_type): Likewise.
1839         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
1840         get_ref_base_and_extent.
1841         (compute_complex_assign_jump_func): Likewise.
1842         (get_ancestor_addr_info): Likewise.
1843         (compute_known_type_jump_func): Likewise.
1844         (determine_known_aggregate_parts): Likewise.
1845         (ipa_get_adjustment_candidate): Likewise.
1846         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
1847         MEM_REF.
1848         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
1849         (build_ref_for_offset): Adjust prototype.
1850         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
1851         get_inner_reference.
1852         * tree-affine.c (tree_to_aff_combination): Adjust call to
1853         get_inner_reference.
1854         (get_inner_reference_aff): Likewise.
1855         * tree-data-ref.c (split_constant_offset_1): Likewise.
1856         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
1857         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
1858         get_inner_reference.
1859         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
1860         (dump_access): Print new fields.
1861         (create_access): Adjust call to get_ref_base_and_extent and set the
1862         REVERSE flag according to the result.
1863         (completely_scalarize_record): Set the REVERSE flag.
1864         (scalarize_elem): Add REVERSE parameter.
1865         (build_access_from_expr_1): Preserve storage order barriers.
1866         (build_accesses_from_assign): Likewise.
1867         (build_ref_for_offset): Add REVERSE parameter and set the
1868         REF_REVERSE_STORAGE_ORDER flag accordingly.
1869         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
1870         the REF_REVERSE_STORAGE_ORDER flag if there are components.
1871         (analyze_access_subtree): Likewise.
1872         (create_artificial_child_access): Set the REVERSE flag.
1873         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
1874         (turn_representatives_into_adjustments): Propagate REVERSE flag.
1875         (ipa_sra_check_caller): Adjust call to get_inner_reference.
1876         * tree-ssa-alias.c (ao_ref_base): Adjust call to
1877         get_ref_base_and_extent.
1878         (aliasing_component_refs_p): Likewise.
1879         (stmt_kills_ref_p_1): Likewise.
1880         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1881         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
1882         Return true if reverse storage order.
1883         <BIT_FIELD_REF>: Likewise.
1884         <COMPONENT_REF>: Likewise.
1885         <ARRAY_REF>: Likewise.
1886         <ARRAY_RANGE_REF>: Likewise.
1887         (split_address_cost): Likewise.  Bail out if reverse storage order.
1888         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
1889         get_inner_reference.  Bail out if reverse storage order.
1890         (bswap_replace): Adjust call to get_inner_reference.
1891         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
1892         the REF_REVERSE_STORAGE_ORDER flag.
1893         <BIT_FIELD_REF>: Likewise.
1894         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
1895         barriers.
1896         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
1897         to the REF_REVERSE_STORAGE_ORDER flag.
1898         <BIT_FIELD_REF>: Likewise.
1899         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
1900         (contains_storage_order_barrier_p): New predicate.
1901         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
1902         Punt on storage order barriers if necessary.
1903         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
1904         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
1905         call to get_ref_base_and_extent.
1906         (do_structure_copy): Likewise.
1907         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
1908         get_inner_reference.
1909         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage
1910         order.
1911         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
1912         * ubsan.c (instrument_bool_enum_load): Likewise.
1913         (instrument_object_size): Likewise.
1914         * var-tracking.c (track_expr_p): Adjust call to
1915         get_ref_base_and_extent
1916         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
1917         get_inner_reference.
1918         * config/s390/s390.c (s390_expand_atomic): Adjust call to
1919         store_bit_field.
1920         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
1921         extract_bit_field.
1922         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1924 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
1926         * config/sparc/sparc.opt (mfix-at697f): Add final period.
1928 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
1930         PR rtl-optimization/67864
1931         * common/config/i386/i386-common.c (ix86_option_optimization_table)
1932         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
1933         at -Os and up.
1935 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1937         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
1938         internal functions.
1940 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1942         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
1943         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
1945 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1947         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
1948         * internal-fn.c: Don't undef it here.
1949         * tree-core.h: Likewise.
1951 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1953         * builtins.c (fold_builtin_nan): Delete.
1954         (fold_builtin_memcmp): Remove case where both arguments are constant.
1955         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1956         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
1957         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
1958         * fold-const-call.c: Include fold-const.h.
1959         (host_size_t_cst_p): New function.
1960         (build_cmp_result, fold_const_builtin_nan): Likewise.
1961         (fold_const_call_1): New function, split out from...
1962         (fold_const_call): ...here (for all three interfaces).  Handle
1963         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
1965 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1967         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
1968         (fold_builtin_1): Don't call them.
1969         * fold-const-call.c: Include tm.h.
1970         (fold_const_call_ss): New variant for integer-to-integer folds.
1971         (fold_const_call): Call it.
1973 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1975         * builtins.c (fold_builtin_classify): Move constant cases to...
1976         * fold-const-call.c (fold_const_call_ss): ...here.
1978 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1980         * builtins.h (c_getstr): Move to...
1981         * fold-const.h (c_getstr): ...here.
1982         * builtins.c (c_getstr): Move to...
1983         * fold-const.c (c_getstr): ...here.
1985 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1987         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
1988         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
1990 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1992         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
1993         the dominance info; free it if we can't.
1994         (pass_call_cdce::execute): Don't free the dominance info here.
1996 2015-11-06  Jeff Law <law@redhat.com>
1998         * tree-ssa-threadedge.c (dummy_simplify): Remove.
1999         (thread_around_empty_blocks): Remove backedge_seen_p argument.
2000         If we thread to a backedge, then return false.  Update recursive
2001         call to eliminate backedge_seen_p argument.
2002         (thread_through_normal_block): Remove backedge_seen_p argument.
2003         Remove backedge_seen_p argument from calls to
2004         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
2005         If we thread to a backedge, then return 0.
2006         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
2007         pass it to thread_through_normal_block or thread_through_empty_blocks.
2008         For joiner handling, if we see a backedge, do not try normal
2009         threading.
2011 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2013         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
2014         * graphite-poly.c (new_scop): Initialize original_schedule.
2015         (free_scop): Free original_schedule.
2016         * graphite-poly.h (struct scop): Add field original_schedule.
2017         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
2018         (build_poly_scop): Call build_scop_original_schedule.
2020 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2022         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
2023         (build_pbb_minimal_scattering_polyhedrons): New.
2024         (build_scop_scattering): Remove.
2025         (build_scop_minimal_scattering): New.
2026         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
2027         (build_poly_scop): Call build_scop_minimal_scattering.
2029 2015-11-06  Jeff Law <law@redhat.com>
2031         * cfg-flags.def (IGNORE): New edge flag.
2032         * tree-vrp.c (identify_jump_threads): Mark and clear edges
2033         scheduled for removal with EDGE_IGNORE around call into
2034         jump threader.  Do no thread across edges with EDGE_IGNORE,
2035         but do allow threading across those with EDGE_DFS_BACK.
2037 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
2039         * doc/md.texi (multi-alternative constraints): Don't document
2040         alternatives inherently tied to reload for the user documentation.
2042 2015-11-06  Michael Collison  <michael.collison@linaro.org
2043             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2045         Revert:
2046         2015-08-01  Michael Collison  <michael.collison@linaro.org
2047                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2049         * config/arm/arm.md (*arm_smin_cmp): New pattern.
2050         (*arm_umin_cmp): Likewise.
2052 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
2054         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
2055         wording.
2056         * omp-low.c (check_omp_nesting_restrictions): Update for the
2057         various new OpenMP 4.5 nesting restrictions, clarified
2058         nesting glossary, closely nested region relationship clarified
2059         to mean explicit or implicit parallel regions (target/teams),
2060         use %</%> or %qs where appropriate.
2062 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
2063             Sebastian Pop  <s.pop@samsung.com>
2065         * graphite-scop-detection.c (loop_is_valid_scop): Call
2066         optimize_loop_nest_for_speed_p.
2068 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
2069             Sebastian Pop  <s.pop@samsung.com>
2071         * graphite-optimize-isl.c (optimize_isl): Call
2072         isl_options_set_schedule_maximize_band_depth.
2074 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
2075             Sebastian Pop  <s.pop@samsung.com>
2077         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
2078         and exit edges should not be a part of irreducible loop.
2079         (scop_detection::can_represent_loop_1): Loops should not be
2080         irreducible.
2081         (scop_detection::harmful_stmt_in_region): All the basic block
2082         should belong to reducible loops.
2084 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
2086         * config/aarch64/aarch64-simd-builtins.def: Update builtins
2087         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
2088         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
2089         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
2090         (aarch64_tbx4v8qi): Rename to...
2091         aarch64_tbx4<mode>): ... this.
2092         (aarch64_qtbl3<mode>): New pattern.
2093         (aarch64_qtbx3<mode>): New pattern.
2094         (aarch64_qtbl4<mode>): New pattern.
2095         (aarch64_qtbx4<mode>): New pattern.
2096         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
2097         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
2098         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
2099         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
2100         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
2101         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
2102         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
2103         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
2104         functions.
2106 2015-11-06  Mike Stump  <mikestump@comcast.net>
2108         PR debug/66728
2109         * dwarf2out.c (get_full_len): Return a value based upon the actual
2110         precision needed for the value.
2111         (add_const_value_attribute): Use a maximal wide-int for
2112         CONST_WIDE_INTs, not VOIDmode.
2113         (output_die): Don't ever output NULL with printf.
2115         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
2116         BLKmode nor VOIDmode values.
2118 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2120         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
2121         and "range2".
2122         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
2123         * diagnostic-core.h (warning_at_rich_loc): New declaration.
2124         (error_at_rich_loc): New declaration.
2125         (permerror_at_rich_loc): New declaration.
2126         (inform_at_rich_loc): New declaration.
2127         * diagnostic-show-locus.c (adjust_line): Delete.
2128         (struct point_state): New struct.
2129         (class colorizer): New class.
2130         (class layout_point): New class.
2131         (class layout_range): New class.
2132         (struct line_bounds): New.
2133         (class layout): New class.
2134         (colorizer::colorizer): New ctor.
2135         (colorizer::~colorizer): New dtor.
2136         (layout::layout): New ctor.
2137         (layout::print_source_line): New method.
2138         (layout::print_annotation_line): New method.
2139         (layout::get_state_at_point): New method.
2140         (layout::get_x_bound_for_row): New method.
2141         (diagnostic_show_locus): Reimplement in terms of class layout.
2142         (diagnostic_print_caret_line): Delete.
2143         * diagnostic.c (diagnostic_initialize): Replace
2144         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
2145         (diagnostic_set_info_translated): Convert param from location_t
2146         to rich_location *.  Eliminate calls to set_location on the
2147         message in favor of storing the rich_location ptr there.
2148         (diagnostic_set_info): Convert param from location_t to
2149         rich_location *.
2150         (diagnostic_build_prefix): Break out array into...
2151         (diagnostic_kind_color): New variable.
2152         (diagnostic_get_color_for_kind): New function.
2153         (diagnostic_report_diagnostic): Colorize the option_text
2154         using the color for the severity.
2155         (diagnostic_append_note): Update for change in signature of
2156         diagnostic_set_info.
2157         (diagnostic_append_note_at_rich_loc): New function.
2158         (emit_diagnostic): Update for change in signature of
2159         diagnostic_set_info.
2160         (inform): Likewise.
2161         (inform_at_rich_loc): New function.
2162         (inform_n): Update for change in signature of diagnostic_set_info.
2163         (warning): Likewise.
2164         (warning_at): Likewise.
2165         (warning_at_rich_loc): New function.
2166         (warning_n): Update for change in signature of diagnostic_set_info.
2167         (pedwarn): Likewise.
2168         (permerror): Likewise.
2169         (permerror_at_rich_loc): New function.
2170         (error): Update for change in signature of diagnostic_set_info.
2171         (error_n): Likewise.
2172         (error_at): Likewise.
2173         (error_at_rich_loc): New function.
2174         (sorry): Update for change in signature of diagnostic_set_info.
2175         (fatal_error): Likewise.
2176         (internal_error): Likewise.
2177         (internal_error_no_backtrace): Likewise.
2178         (source_range::debug): New function.
2179         * diagnostic.h (struct diagnostic_info): Eliminate field
2180         "override_column".  Add field "richloc".
2181         (struct diagnostic_context): Add field "colorize_source_p".
2182         (diagnostic_override_column): Delete.
2183         (diagnostic_set_info): Convert param from location_t to
2184         rich_location *.
2185         (diagnostic_set_info_translated): Likewise.
2186         (diagnostic_append_note_at_rich_loc): New function.
2187         (diagnostic_num_locations): New function.
2188         (diagnostic_expand_location): Get the location from the
2189         rich_location.
2190         (diagnostic_print_caret_line): Delete.
2191         (diagnostic_get_color_for_kind): New declaration.
2192         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
2193         (error_cb): Update for change in signature of "error" callback.
2194         (fatal_at): Likewise.
2195         (warning_at): Likewise.
2196         * input.c (linemap_client_expand_location_to_spelling_point): New.
2197         * pretty-print.c (text_info::set_range): New method.
2198         (text_info::get_location): New method.
2199         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
2200         (struct text_info): Eliminate "locations" array in favor of
2201         "m_richloc", a rich_location *.
2202         (textinfo::set_location): Add a "caret_p" param, and reimplement
2203         in terms of a call to set_range.
2204         (textinfo::get_location): Eliminate inline implementation in favor of
2205         an out-of-line reimplementation.
2206         (textinfo::set_range): New method.
2207         * rtl-error.c (diagnostic_for_asm): Update for change in signature
2208         of diagnostic_set_info.
2209         * tree-diagnostic.c (default_tree_printer): Update for new
2210         "caret_p" param for textinfo::set_location.
2211         * tree-pretty-print.c (percent_K_format): Likewise.
2213 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2215         Properly apply.
2216         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2217         * config/aarch64/aarch64.c
2218         (aarch64_can_use_per_function_literal_pools_p): New.
2219         (aarch64_use_blocks_for_constant_p): Adjust declaration
2220         and use aarch64_can_use_function_literal_pools_p.
2221         (aarch64_select_rtx_section): Update.
2223 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2225         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
2226         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
2227         (arm_output_multireg_pop): Likewise.
2228         (output_move_double):  Likewise.
2229         (output_move_quad):  Likewise.
2230         (output_return_instruction): Likewise.
2231         (arm_print_operand): Remove support for %( and %. print modifiers.
2232         (arm_output_shift): Make unified asm.
2233         (arm_declare_function_name): Likewise.
2234         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
2235         (ASM_APP_OFF): Adjust.
2236         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
2237         (ASM_OUTPUT_REG_POP): Likewise.
2238         * config/arm/arm.md: Adjust uses of %., %(, %)
2239         * config/arm/sync.md: Likewise.
2240         * config/arm/thumb2.md: Likewise.
2241         * config/arm/ldmstm.md: Regenerate.
2242         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
2243         * doc/invoke.texi (masm-unified-syntax): Update documentation.
2245 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2247         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
2249 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
2251         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
2252         add OEP_MATCH_SIDE_EFFECTS.
2253         * fold-const.c (operand_equal_p): Update documentation; handle
2254         OEP_MATCH_SIDE_EFFECTS.
2255         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
2256         OEP_MATCH_SIDE_EFFECTS.
2258 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
2259             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
2261         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
2262         * config/aarch64/aarch64-protos.h: Declare.
2263         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
2264         frsqrts.
2265         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
2266         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
2267         code when applicable.
2268         * config/aarch64/aarch64.md: Added enum entries.
2269         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
2270         * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
2271         macros for assembly checks.
2272         * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
2273         frsqrts and frsqrte are not emitted.
2274         * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
2275         frsqrts and frsqrte are emitted.
2276         * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
2278 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
2280         PR ipa/68057
2281         PR ipa/68220
2282         * ipa-polymorphic-call.c
2283         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
2284         issue when offset is out of range.
2285         (contains_type_p): Fix out of range check, clear dynamic flag.
2287 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
2289         * config.gcc (e6500): Fix cpu_is_64bit typo.
2291 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
2293         * tree-sra.c (completely_scalarize): Properly handle negative array
2294         indices using offset_int.
2296 2015-11-06  Richard Biener  <rguenther@suse.de>
2298         * alloc-pool.h (object_allocator::allocate): Default-initialize
2299         object.
2301 2015-11-06  Richard Biener  <rguenther@suse.de>
2303         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
2304         * lra.c (init_reg_info): Truncate copy_vec instead of
2305         re-allocating a new one and leaking the old.
2306         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
2307         bb_infos vec.
2308         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
2309         * postreload-gcse.c (free_mem): Free modify_mem_list and
2310         canon_modify_mem_list.
2312 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
2314         PR tree-optimization/68145
2315         * tree-vect-stmts.c (vectorizable_operation): Fix
2316         determination for booleans.
2318 2015-11-06  Tom de Vries  <tom@codesourcery.com>
2320         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
2321         cond_jump, instead of split after last nondebug insn before cond_jump.
2322         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
2323         returning.
2325 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2327         PR target/68088
2328         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
2329         subregs from accumulator and make sure it's a register.
2331 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
2333         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
2334         low part to scalar.
2335         (reduc_uplus_<mode>): Remove.
2336         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
2337         loongson_extract_lo_<mode>.
2338         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
2339         reduc_smax_<mode>, reduc_smax_<mode>, use vec
2340         loongson_extract_lo_<mode>.
2341         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
2343 2015-11-06  Richard Biener  <rguenther@suse.de>
2345         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
2346         members.
2347         (vect_stmt_in_region_p): Declare.
2348         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
2349         (destroy_bb_vec_info): Likewise.
2350         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
2351         (vect_get_and_check_slp_defs): Likewise.
2352         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
2353         (vect_slp_bb): Likewise.
2354         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
2355         in terms of vect_stmt_in_region_p.
2356         (vect_pattern_recog): Iterate over the BB region.
2357         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
2358         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
2359         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
2360         * config/i386/i386.c: Include gimple-iterator.h.
2361         * config/aarch64/aarch64.c: Likewise.
2363 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
2365         PR rtl-optimization/67753
2366         PR rtl-optimization/64164
2367         * function.c (assign_parm_setup_block): Avoid allocating a
2368         stack slot if we don't have an ABI-reserved one.  Emit the
2369         copy to target_reg in the conversion seq if the copy from
2370         entry_parm is in it too.  Don't use the conversion seq to copy
2371         a PARALLEL to a REG or a CONCAT.
2373 2015-11-06  Richard Biener  <rguenther@suse.de>
2375         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
2376         equal_keys.
2378 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
2379             Thomas Schwinge  <thomas@codesourcery.com>
2380             James Norris  <jnorris@codesourcery.com>
2383         * gimplify.c (gimplify_scan_omp_clauses): Add support for
2384         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
2385         (gimplify_adjust_omp_clauses): Likewise.
2386         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
2387         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
2388         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
2389         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
2390         (omp_clause_code_name): Likewise.
2391         (walk_tree_1): Handle OMP_CLAUSE_TILE.
2392         * tree.h (OMP_TILE_LIST): New macro.
2394 2015-11-05  Martin Sebor  <msebor@redhat.com>
2396         PR c++/67942
2397         * doc/invoke.texi (-Wplacement-new): Document new option.
2399 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
2401         PR tree-optimization/65963
2402         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
2403         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
2405 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
2407         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
2408         (noce_convert_multiple_sets): Likewise.
2409         (noce_process_if_block): Call them.
2411 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
2413         * gimple-fold.c: Include omp-low.h.
2414         (fold_internal_goacc_dim): New.
2415         (gimple_fold_call): Call it.
2417 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
2418             Ilya Verbin  <ilya.verbin@intel.com>
2420         * builtin-types.def
2421         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
2422         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
2423         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2424         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
2425         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
2426         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
2427         (struct cgraph_simd_clone_arg): Adjust comment.
2428         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
2429         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
2430         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
2431         to GOMP_target_data_ext.
2432         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
2433         to GOMP_target_update_ext.
2434         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
2435         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
2436         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
2437         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
2438         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
2439         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
2440         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
2441         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
2442         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
2443         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
2444         * tree-core.h (enum omp_clause_schedule_kind): Add
2445         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
2446         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
2447         OMP_CLAUSE_SCHEDULE_LAST value.
2448         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
2449         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
2450         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
2451         OMP_FOR_CHECK.  Remove comment.
2452         * tree-pretty-print.c (dump_omp_clause): Handle
2453         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
2454         Simplify.  Print schedule clause modifiers.
2455         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
2456         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
2457         cases.
2458         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
2459         (omp_default_clause): Tweak for
2460         private/firstprivate/is_device_ptr variables on target
2461         construct and use_device_ptr on target data.
2462         (omp_check_private): Likewise.
2463         (omp_notice_variable): For references check whether what it refers
2464         to has mappable type, rather than the reference itself.
2465         (omp_is_private): Diagnose linear iteration variables on non-simd
2466         constructs.
2467         (omp_no_lastprivate): Return true only for Fortran.
2468         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
2469         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
2470         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
2471         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
2472         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
2473         lastprivate and linear when combined with distribute.  Gimplify
2474         variable low-bound for array reduction.  Look through
2475         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
2476         reductions.
2477         (gimplify_adjust_omp_clauses_1): For implicit references to
2478         variables with reference type and when not ref to scalar or
2479         ref to pointer, map what they refer to using tofrom and
2480         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
2481         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
2482         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
2483         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
2484         Diagnose the same var on both firstprivate and lastprivate on
2485         distribute construct.
2486         (gimplify_omp_for): Fix up handling of predetermined
2487         lastprivate or linear iter vars when combined with distribute.
2488         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
2489         functions.
2490         (gimplify_omp_workshare): Call optimize_target_teams.
2491         * omp-low.c (struct omp_region): Add sched_modifiers field.
2492         (struct omp_for_data): Likewise.
2493         (omp_any_child_fn_dumped): New variable.
2494         (extract_omp_for_data): Fill in sched_modifiers, and mask out
2495         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
2496         from sched_kind.
2497         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
2498         bits of OMP_CLAUSE_SCHED_KIND.
2499         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
2500         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
2501         for array section reductions.
2502         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
2503         for distribute parallel for, if there are lastprivate clauses on the
2504         for.
2505         (lower_rec_input_clauses): Handle non-zero low-bound on array
2506         section reductions.
2507         (lower_reduction_clauses): Likewise.
2508         (lower_send_clauses): Look through POINTER_PLUS_EXPR
2509         for array section reductions.
2510         (expand_parallel_call): Use nonmonotonic entrypoints for
2511         nonmonotonic: dynamic/guided.
2512         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
2513         child_fn if current_function_decl has assembler name set, but child_fn
2514         does not.  Dump the header and IL of the child function when not in SSA
2515         form.
2516         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
2517         arguments to BUILT_IN_GOMP_TARGET.
2518         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2519         Initialize the extra _looptemp_ clause to fd->loop.n2.
2520         (expand_omp_for): Use nonmonotonic entrypoints for
2521         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
2522         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
2523         again if we have dumped any child functions.
2524         (lower_omp_for_lastprivate): Determine the right count variable
2525         for distribute simd, or distribute parallel for{, simd}.
2526         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
2527         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
2528         support.
2529         (simd_clone_clauses_extract): Handle variable step
2530         for references and arguments passed by reference.
2531         (simd_clone_mangle): Mangle ref/uval/val variable steps.
2532         (simd_clone_adjust_argument_types): Handle
2533         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
2534         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2535         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
2536         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2537         (simd_clone_linear_addend): New function.
2538         (simd_clone_adjust): Handle variable step like similarly
2539         to constant step, use simd_clone_linear_addend to determine
2540         the actual step at runtime.
2542 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
2544         * target.def (goacc.dim_limit): New hook.
2545         * targhooks.h (default_goacc_dim_limit): Declare.
2546         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
2547         * doc/tm.texi: Rebuilt.
2548         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
2549         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
2550         (default_goacc_dim_limit): New.
2551         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2552         (nvptx_goacc_dim_limit) New.
2553         (TARGET_GOACC_DIM_LIMIT): Override.
2554         * tree-vrp.c: Include omp-low.h, target.h.
2555         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
2556         IFN_GOACC_DIM_POS.
2558 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2560         * tree-vect-generic.c (do_compare): Use -1 for true
2561         result instead of 1.
2563 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2565         * config/aarch64/aarch64.c
2566         (aarch64_can_use_per_function_literal_pools_p): New.
2567         (aarch64_use_blocks_for_constant_p): Adjust declaration
2568         and use aarch64_can_use_function_literal_pools_p.
2569         (aarch64_select_rtx_section): Update.
2571 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2573         * targhooks.c (default_get_mask_mode): Use BLKmode in
2574         case target doesn't support required vector mode.
2575         * stor-layout.c (layout_type); Check for BLKmode.
2577 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
2578             Sebastian Pop  <s.pop@samsung.com>
2580         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2581         Remove use of parameter_rename_map.
2582         (copy_def): Remove.
2583         (copy_internal_parameters): Remove.
2584         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2585         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2586         (free_sese_info): Do not free parameter_rename_map.
2587         (set_rename): Do not use parameter_rename_map.
2588         (rename_uses): Update call to set_rename.
2589         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2590         * sese.h (parameter_rename_map_t): Remove.
2591         (struct sese_info_t): Remove field parameter_rename_map.
2593 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
2594             Sebastian Pop  <s.pop@samsung.com>
2596         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
2597         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
2598         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
2599         anonymous namespace.
2600         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
2601         (isl_id_for_pbb): Use a buffer of size 10.
2602         (isl_id_for_ssa_name): Same.
2603         * sese.c (set_rename): Add more dumps.
2605 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2607         * omp-low.c (struct omp_context): Remove reduction_map field.
2608         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
2609         (new_omp_context, delete_omp_context, scan_omp_target): Remove
2610         reduction_map handling.
2611         (lower_omp_target): Remove obsolete openacc reduction handling.
2613 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2615         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
2617 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2618             Cesar Philippidis  <cesar@codesourcery.com>
2620         * config/nvptx/nvptx.c: Include gimple headers.
2621         (worker_red_size, worker_red_align, worker_red_name,
2622         worker_red_sym): New.
2623         (nvptx_option_override): Initialize worker reduction buffer.
2624         (nvptx_file_end): Write out worker reduction buffer var.
2625         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
2626         nvptx_expand_cmp_swap): New builtin expanders.
2627         (enum nvptx_builtins): New.
2628         (nvptx_builtin_decls): New.
2629         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
2630         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2631         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
2632         nvptx_lockless_update): New helpers.
2633         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
2634         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
2635         (nvptx_goacc_reduction): New.
2636         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
2637         TARGET_BUILTIN_DECL): Override.
2638         (TARGET_GOACC_REDUCTION): Override.
2640 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2641             Cesar Philippidis  <cesar@codesourcery.com>
2643         * internal-fn.def (GOACC_REDUCTION): New.
2644         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
2645         * internal-fn.c (expand_GOACC_REDUCTION): New.
2646         * target.def (goacc.reduction): New OpenACC hook.
2647         * targhooks.h (default_goacc_reduction): Declare.
2648         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
2649         * doc/tm.texi: Rebuilt.
2650         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
2651         scan_sharing_clauses): Remove oacc reduction handling here.
2652         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
2653         (oacc_lower_reduction_var_helper): Delete.
2654         (lower_oacc_reductions): New.
2655         (lower_reduction_clauses): Don't handle OpenACC reductions here.
2656         (lower_oacc_head_tail): Call lower_oacc_reductions.
2657         (oacc_gimple_assign, oacc_init_reduction_array,
2658         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
2659         oacc_process_reduction_data): Delete.
2660         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
2661         dummy OpenACC gang reduction for reductions at outer level.
2662         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
2663         (default_goacc_reduction): New.
2664         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
2666 2015-11-04  Martin Liska  <mliska@suse.cz>
2668         * cgraphunit.c (cgraph_node::expand_thunk): Call
2669         allocate_struct_function before init_function_start.
2670         (cgraph_node::expand): Use push_cfun and pop_cfun.
2671         * config/i386/i386.c (ix86_code_end): Call
2672         allocate_struct_function before init_function_start.
2673         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
2674         * function.c (init_function_start): Move preamble to all
2675         callers.
2676         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
2677         (execute_one_pass): Handle newly added TODO_discard_function.
2678         (execute_pass_list_1): Terminate if cfun equals to NULL.
2679         (execute_pass_list): Do not push and pop cfun, expect that
2680         cfun is set.
2681         * tree-pass.h (TODO_discard_function): Define.
2683 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
2685         * cfganal.c (inverted_post_order_compute): Remove conditional
2686         compilation, use flag_checking.
2687         * config.in: Regenerate.
2688         * configure: Regenerate.
2689         * configure.ac: Remove ENABLE_CHECKING.
2690         * genconditions.c: Do not #undef ENABLE_CHECKING.
2691         * sese.h (bb_in_region): Comment out broken check.
2692         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
2693         conditional compilation, use flag_checking.
2695 2015-11-04  Tom de Vries  <tom@codesourcery.com>
2697         PR tree-optimization/67742
2698         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
2699         field.
2700         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
2701         (create_variable_info_for_1): Add and handle handle_param parameter.
2702         Add restrict handling.
2703         (create_variable_info_for): Call create_variable_info_for_1 with extra
2704         arg.
2705         (make_param_constraints): Drop restrict_name parameter.  Ignore
2706         vi->only_restrict_pointers.
2707         (intra_create_variable_infos): Call create_variable_info_for_1 with
2708         extra arg.  Remove restrict handling.  Call make_param_constraints with
2709         one fewer arg.
2711 2015-11-04  Tom de Vries  <tom@codesourcery.com>
2713         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
2714         variable.
2716 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2718         * config/arm/coff.h: Remove.
2720 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2722         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
2723         check for aggregate types and beef up comment for mode check.
2725 2015-11-03  Richard Biener  <rguenther@suse.de>
2727         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
2728         data references here.
2729         * tree-vect-loop.c: Include cgraph.h.
2730         (vect_analyze_loop_2): Collect data references here.
2731         * tree-vect-slp.c (find_bb_location): Inline ...
2732         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
2733         Factor in vect_slp_transform_bb.
2734         (vect_slp_transform_bb): Removed.
2735         (vect_slp_analyze_bb_1): Collect data references here.
2736         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
2737         vect_slp_bb.
2738         * tree-vectorizer.h (vect_slp_bb): Declare.
2739         (vect_slp_analyze_bb): Remove.
2740         (vect_slp_transform_bb): Remove.
2741         (find_bb_location): Remove.
2742         (vect_analyze_data_refs): Remove stmt count reference parameter.
2744 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
2746         * multiple_target.c (create_dispatcher_calls): Add target check
2747         on ifunc.
2748         (create_target_clone): Change assembler name for versioned declarations.
2750 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
2751             Chung-Lin Tang  <cltang@codesourcery.com>
2753         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
2754         * omp-low.c (check_omp_nesting_restrictions): Allow
2755         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
2756         contexts.
2758 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
2760         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
2761         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
2762         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
2763         builtin.
2764         (vmulxq_f32): Likewise.
2765         (vmulx_f64): New.
2766         (vmulxq_f64): Rewrite to call fmulx builtin.
2767         (vmulxs_f32): Likewise.
2768         (vmulxd_f64): Likewise.
2769         (vmulx_lane_f32): Remove.
2770         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
2772 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
2774         * config/aarch64/aarch64.md (*movhf_aarch64): Use
2775         aarch64_reg_or_fp_zero for second operand.
2777 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
2779         * gimple-expr.c: Include hash-set.h and rtl.h.
2780         (mark_addressable_queue): New var.
2781         (mark_addressable): Factor actual marking into...
2782         (mark_addressable_1): ... this.  Queue it up during expand.
2783         (mark_addressable_2): New.
2784         (flush_mark_addressable_queue): New.
2785         * gimple-expr.h (flush_mark_addressable_queue): Declare.
2786         * cfgexpand.c: Include gimple-expr.h.
2787         (pass_expand::execute): Flush mark_addressable queue.
2789 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
2791         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
2792         bb_no_side_effects_p tests...
2793         (tree_ssa_ifcombine_bb): ... here.
2795         PR tree-optimization/68083
2796         * tree-ssa-ifcombine.c: Include tree-ssa.h.
2797         (bb_no_side_effects_p): Test for undefined uses too.
2798         * tree-ssa.c (gimple_uses_undefined_value_p): New.
2799         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
2801 2015-11-02  Jeff Law <law@redhat.com>
2803         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
2804         cases where the loop latch edge is in the middle of an FSM path.
2806 2015-11-03  Tom de Vries  <tom@codesourcery.com>
2808         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
2809         (make_param_constraints): ... this.  Add and handle restrict_name
2810         parameter.  Handle is_full_var case.
2811         (intra_create_variable_infos): Use make_param_constraints.
2813 2015-11-03  Tom de Vries  <tom@codesourcery.com>
2815         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
2816         make_copy_constraint call with make_constraint_from call.
2818 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
2820         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
2821         PIE executables.
2823 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
2825         * builtins.h (fold_fma): Move to fold-const-call.h.
2826         * builtins.c: Include fold-const-call.h.
2827         (mathfn_built_in_2): New function, split out from...
2828         (mathfn_built_in_1): ...here.
2829         (do_real_to_int_conversion, fold_const_builtin_pow)
2830         (fold_const_builtin_logb, fold_const_builtin_significand)
2831         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
2832         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
2833         (fold_builtin_sincos): Use fold_const_call to handle constants.
2834         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
2835         checks for ERROR_MARK.  Use fold_const_call to handle constant
2836         folds for math functions.
2837         (fold_fma): Move to fold-const-call.c.
2838         * fold-const.c: Include fold-const-call.h.
2839         * Makefile.in (OBJS): Add fold-const-call.o.
2840         (PLUGIN_HEADERS): Add fold-const-call.h.
2841         * realmpfr.h (real_from_mpfr): Allow the format to be specified
2842         directly.
2843         * realmpfr.c (real_from_mpfr): Likewise.
2844         * fold-const-call.h, fold-const-call.c: New files.
2846 2015-11-02  Julian Brown  <julian@codesourcery.com>
2848         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
2849         brackets and semicolon.
2851 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
2853         Revert:
2854         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2856         PR tree-optimization/65963
2857         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2858         LSHIFT_EXPRs as equivalent MULT_EXPRs.
2860 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2862         PR middle-end/68166
2863         * fold-const.c: Include "md5.h".
2865 2015-11-01  Jeff Law <law@redhat.com>
2867         * vmsdbgout.c: Revert unused header file reduction patch.
2869         * config/mcore/mcore.c: Include regs.h.
2871 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
2873         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
2875 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
2877         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
2878         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
2879         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
2881 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
2883         * ggc-common.c: Restore needed header for checking=release.
2885 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2887         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
2889 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2891         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
2892         existing varinfo for arguments.
2894 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2896         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
2897         create_function_info_for.  Dump constraints generated during
2898         create_function_info_for. Move intra_create_variable_infos call and
2899         function-return-values-escape bit to ...
2900         (create_function_info_for): ... here, and merge
2901         intra_create_variable_infos call with argument loop.  Add and handle
2902         nonlocal_p parameter.
2904 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2906         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
2907         updating is alap, and seperated from preceding code.  Make sure
2908         insert_vi_for_tree is seperated from surrounding code.
2910 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2912         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
2914 2015-10-30  Jeff Law <law@redhat.com>
2915             Nathan Sidwell  <nathan@acm.org>
2917         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
2918         args.
2919         (MOVE_MAX): Set to 8.
2921 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
2923         * cgraph.c: Include context.h for offloading.
2924         * varpool.c: Include context.h and omp-low.h.
2926 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
2928         * rtl.h (contains_symbol_ref_p): Declare.
2929         (SYMBOL_REF_P): Define.
2930         * rtlanal.c (contains_symbol_ref_p: New function.
2931         * lra-constraints.c (contains_symbol_ref_p): Remove.
2932         * var-tracking.c (contains_symbol_ref): Remove.
2933         (track_expr_p): Use contains_symbol_ref_p instead of
2934         contains_symbol_ref.
2936 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
2938         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
2939         * fold-const.c (get_array_ctor_element_at_index): New.
2940         (fold): Remove binary-search through CONSTRUCTOR, call previous.
2942         * fold-const.h (get_array_ctor_element_at_index): New.
2944 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
2946         * Makefile.in (OBJS): Add multiple_target.o.
2947         * attrib.c (make_attribute): Moved from config/i386/i386.c
2948         * config/i386/i386.c (make_attribute): Deleted.
2949         * multiple_target.c (create_dispatcher_calls): New.
2950         (get_attr_len): Ditto.
2951         (get_attr_str): Ditto.
2952         (separate_attrs): Ditto.
2953         (is_valid_asm_symbol): Ditto.
2954         (create_new_asm_name): Ditto.
2955         (create_target_clone): Ditto.
2956         (expand_target_clones): Ditto.
2957         (ipa_target_clone): Ditto.
2958         (ipa_dispatcher_calls): Ditto.
2959         * passes.def (pass_target_clone): Two new ipa passes.
2960         * tree-pass.h (make_pass_target_clone): Ditto.
2961         * doc/extend.texi (target_clones): New attribute description.
2963 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
2965         PR rtl-optimization/68106
2966         * lra-remat.c (input_regno_present_p): Process hard regs
2967         explicitly present in machine description insns.
2968         (call_used_input_regno_present_p): Ditto.
2969         (calculate_gen_cands): Ditto.
2970         (do_remat): Ditto.
2972 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
2974         * config/arm/neon-testgen.ml: Fix comment typo.
2976 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2978         * rtlanal.c (reg_set_p): Expand function comment.
2980 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
2982         * alias.c: Remove unused headers.
2983         * asan.c: Likewise.
2984         * attribs.c: Likewise.
2985         * auto-inc-dec.c: Likewise.
2986         * auto-profile.c: Likewise.
2987         * bb-reorder.c: Likewise.
2988         * bitmap.c: Likewise.
2989         * bt-load.c: Likewise.
2990         * builtins.c: Likewise.
2991         * caller-save.c: Likewise.
2992         * calls.c: Likewise.
2993         * ccmp.c: Likewise.
2994         * cfg.c: Likewise.
2995         * cfganal.c: Likewise.
2996         * cfgbuild.c: Likewise.
2997         * cfgcleanup.c: Likewise.
2998         * cfgexpand.c: Likewise.
2999         * cfghooks.c: Likewise.
3000         * cfgloop.c: Likewise.
3001         * cfgloopanal.c: Likewise.
3002         * cfgloopmanip.c: Likewise.
3003         * cfgrtl.c: Likewise.
3004         * cgraph.c: Likewise.
3005         * cgraphbuild.c: Likewise.
3006         * cgraphclones.c: Likewise.
3007         * cgraphunit.c: Likewise.
3008         * cilk-common.c: Likewise.
3009         * combine-stack-adj.c: Likewise.
3010         * combine.c: Likewise.
3011         * compare-elim.c: Likewise.
3012         * convert.c: Likewise.
3013         * coverage.c: Likewise.
3014         * cppbuiltin.c: Likewise.
3015         * cprop.c: Likewise.
3016         * cse.c: Likewise.
3017         * cselib.c: Likewise.
3018         * data-streamer-in.c: Likewise.
3019         * data-streamer-out.c: Likewise.
3020         * data-streamer.c: Likewise.
3021         * dbxout.c: Likewise.
3022         * dce.c: Likewise.
3023         * ddg.c: Likewise.
3024         * debug.c: Likewise.
3025         * df-core.c: Likewise.
3026         * df-problems.c: Likewise.
3027         * df-scan.c: Likewise.
3028         * dfp.c: Likewise.
3029         * dojump.c: Likewise.
3030         * dominance.c: Likewise.
3031         * domwalk.c: Likewise.
3032         * double-int.c: Likewise.
3033         * dse.c: Likewise.
3034         * dumpfile.c: Likewise.
3035         * dwarf2asm.c: Likewise.
3036         * dwarf2cfi.c: Likewise.
3037         * dwarf2out.c: Likewise.
3038         * emit-rtl.c: Likewise.
3039         * except.c: Likewise.
3040         * explow.c: Likewise.
3041         * expmed.c: Likewise.
3042         * expr.c: Likewise.
3043         * final.c: Likewise.
3044         * fixed-value.c: Likewise.
3045         * fold-const.c: Likewise.
3046         * function.c: Likewise.
3047         * fwprop.c: Likewise.
3048         * gcse.c: Likewise.
3049         * generic-match-head.c: Likewise.
3050         * ggc-common.c: Likewise.
3051         * gimple-builder.c: Likewise.
3052         * gimple-expr.c: Likewise.
3053         * gimple-fold.c: Likewise.
3054         * gimple-iterator.c: Likewise.
3055         * gimple-low.c: Likewise.
3056         * gimple-match-head.c: Likewise.
3057         * gimple-pretty-print.c: Likewise.
3058         * gimple-ssa-isolate-paths.c: Likewise.
3059         * gimple-ssa-strength-reduction.c: Likewise.
3060         * gimple-streamer-in.c: Likewise.
3061         * gimple-streamer-out.c: Likewise.
3062         * gimple-walk.c: Likewise.
3063         * gimple.c: Likewise.
3064         * gimplify-me.c: Likewise.
3065         * gimplify.c: Likewise.
3066         * godump.c: Likewise.
3067         * graph.c: Likewise.
3068         * graphds.c: Likewise.
3069         * haifa-sched.c: Likewise.
3070         * hw-doloop.c: Likewise.
3071         * ifcvt.c: Likewise.
3072         * init-regs.c: Likewise.
3073         * internal-fn.c: Likewise.
3074         * ipa-chkp.c: Likewise.
3075         * ipa-comdats.c: Likewise.
3076         * ipa-cp.c: Likewise.
3077         * ipa-devirt.c: Likewise.
3078         * ipa-icf-gimple.c: Likewise.
3079         * ipa-icf.c: Likewise.
3080         * ipa-inline-analysis.c: Likewise.
3081         * ipa-inline-transform.c: Likewise.
3082         * ipa-inline.c: Likewise.
3083         * ipa-polymorphic-call.c: Likewise.
3084         * ipa-profile.c: Likewise.
3085         * ipa-prop.c: Likewise.
3086         * ipa-pure-const.c: Likewise.
3087         * ipa-ref.c: Likewise.
3088         * ipa-reference.c: Likewise.
3089         * ipa-split.c: Likewise.
3090         * ipa-utils.c: Likewise.
3091         * ipa-visibility.c: Likewise.
3092         * ipa.c: Likewise.
3093         * ira-build.c: Likewise.
3094         * ira-color.c: Likewise.
3095         * ira-conflicts.c: Likewise.
3096         * ira-costs.c: Likewise.
3097         * ira-emit.c: Likewise.
3098         * ira-lives.c: Likewise.
3099         * ira.c: Likewise.
3100         * jump.c: Likewise.
3101         * langhooks.c: Likewise.
3102         * lcm.c: Likewise.
3103         * lists.c: Likewise.
3104         * loop-doloop.c: Likewise.
3105         * loop-init.c: Likewise.
3106         * loop-invariant.c: Likewise.
3107         * loop-iv.c: Likewise.
3108         * loop-unroll.c: Likewise.
3109         * lower-subreg.c: Likewise.
3110         * lra-assigns.c: Likewise.
3111         * lra-coalesce.c: Likewise.
3112         * lra-constraints.c: Likewise.
3113         * lra-eliminations.c: Likewise.
3114         * lra-lives.c: Likewise.
3115         * lra-remat.c: Likewise.
3116         * lra-spills.c: Likewise.
3117         * lra.c: Likewise.
3118         * lto-cgraph.c: Likewise.
3119         * lto-compress.c: Likewise.
3120         * lto-opts.c: Likewise.
3121         * lto-section-in.c: Likewise.
3122         * lto-section-out.c: Likewise.
3123         * lto-streamer-in.c: Likewise.
3124         * lto-streamer-out.c: Likewise.
3125         * lto-streamer.c: Likewise.
3126         * mcf.c: Likewise.
3127         * mode-switching.c: Likewise.
3128         * modulo-sched.c: Likewise.
3129         * optabs.c: Likewise.
3130         * opts-global.c: Likewise.
3131         * passes.c: Likewise.
3132         * plugin.c: Likewise.
3133         * postreload-gcse.c: Likewise.
3134         * postreload.c: Likewise.
3135         * predict.c: Likewise.
3136         * print-tree.c: Likewise.
3137         * profile.c: Likewise.
3138         * real.c: Likewise.
3139         * realmpfr.c: Likewise.
3140         * recog.c: Likewise.
3141         * ree.c: Likewise.
3142         * reg-stack.c: Likewise.
3143         * regcprop.c: Likewise.
3144         * reginfo.c: Likewise.
3145         * regrename.c: Likewise.
3146         * regstat.c: Likewise.
3147         * reload.c: Likewise.
3148         * reload1.c: Likewise.
3149         * reorg.c: Likewise.
3150         * resource.c: Likewise.
3151         * rtl-chkp.c: Likewise.
3152         * rtl-error.c: Likewise.
3153         * rtlanal.c: Likewise.
3154         * rtlhooks.c: Likewise.
3155         * sanopt.c: Likewise.
3156         * sched-deps.c: Likewise.
3157         * sched-ebb.c: Likewise.
3158         * sched-rgn.c: Likewise.
3159         * sdbout.c: Likewise.
3160         * sel-sched-dump.c: Likewise.
3161         * sel-sched-ir.c: Likewise.
3162         * sel-sched.c: Likewise.
3163         * sese.c: Likewise.
3164         * shrink-wrap.c: Likewise.
3165         * simplify-rtx.c: Likewise.
3166         * stack-ptr-mod.c: Likewise.
3167         * statistics.c: Likewise.
3168         * stmt.c: Likewise.
3169         * stor-layout.c: Likewise.
3170         * store-motion.c: Likewise.
3171         * stringpool.c: Likewise.
3172         * symtab.c: Likewise.
3173         * target-globals.c: Likewise.
3174         * targhooks.c: Likewise.
3175         * toplev.c: Likewise.
3176         * tracer.c: Likewise.
3177         * trans-mem.c: Likewise.
3178         * tree-affine.c: Likewise.
3179         * tree-call-cdce.c: Likewise.
3180         * tree-cfg.c: Likewise.
3181         * tree-cfgcleanup.c: Likewise.
3182         * tree-chkp-opt.c: Likewise.
3183         * tree-chkp.c: Likewise.
3184         * tree-chrec.c: Likewise.
3185         * tree-complex.c: Likewise.
3186         * tree-data-ref.c: Likewise.
3187         * tree-dfa.c: Likewise.
3188         * tree-diagnostic.c: Likewise.
3189         * tree-dump.c: Likewise.
3190         * tree-eh.c: Likewise.
3191         * tree-emutls.c: Likewise.
3192         * tree-if-conv.c: Likewise.
3193         * tree-inline.c: Likewise.
3194         * tree-into-ssa.c: Likewise.
3195         * tree-iterator.c: Likewise.
3196         * tree-loop-distribution.c: Likewise.
3197         * tree-nested.c: Likewise.
3198         * tree-nrv.c: Likewise.
3199         * tree-object-size.c: Likewise.
3200         * tree-outof-ssa.c: Likewise.
3201         * tree-parloops.c: Likewise.
3202         * tree-phinodes.c: Likewise.
3203         * tree-predcom.c: Likewise.
3204         * tree-pretty-print.c: Likewise.
3205         * tree-profile.c: Likewise.
3206         * tree-scalar-evolution.c: Likewise.
3207         * tree-sra.c: Likewise.
3208         * tree-ssa-address.c: Likewise.
3209         * tree-ssa-alias.c: Likewise.
3210         * tree-ssa-ccp.c: Likewise.
3211         * tree-ssa-coalesce.c: Likewise.
3212         * tree-ssa-copy.c: Likewise.
3213         * tree-ssa-dce.c: Likewise.
3214         * tree-ssa-dse.c: Likewise.
3215         * tree-ssa-forwprop.c: Likewise.
3216         * tree-ssa-ifcombine.c: Likewise.
3217         * tree-ssa-live.c: Likewise.
3218         * tree-ssa-loop-ch.c: Likewise.
3219         * tree-ssa-loop-im.c: Likewise.
3220         * tree-ssa-loop-ivcanon.c: Likewise.
3221         * tree-ssa-loop-ivopts.c: Likewise.
3222         * tree-ssa-loop-manip.c: Likewise.
3223         * tree-ssa-loop-niter.c: Likewise.
3224         * tree-ssa-loop-prefetch.c: Likewise.
3225         * tree-ssa-loop-unswitch.c: Likewise.
3226         * tree-ssa-loop.c: Likewise.
3227         * tree-ssa-math-opts.c: Likewise.
3228         * tree-ssa-operands.c: Likewise.
3229         * tree-ssa-phiopt.c: Likewise.
3230         * tree-ssa-phiprop.c: Likewise.
3231         * tree-ssa-pre.c: Likewise.
3232         * tree-ssa-propagate.c: Likewise.
3233         * tree-ssa-reassoc.c: Likewise.
3234         * tree-ssa-scopedtables.c: Likewise.
3235         * tree-ssa-sink.c: Likewise.
3236         * tree-ssa-strlen.c: Likewise.
3237         * tree-ssa-structalias.c: Likewise.
3238         * tree-ssa-tail-merge.c: Likewise.
3239         * tree-ssa-ter.c: Likewise.
3240         * tree-ssa-threadupdate.c: Likewise.
3241         * tree-ssa-uncprop.c: Likewise.
3242         * tree-ssa-uninit.c: Likewise.
3243         * tree-ssa.c: Likewise.
3244         * tree-ssanames.c: Likewise.
3245         * tree-stdarg.c: Likewise.
3246         * tree-streamer-in.c: Likewise.
3247         * tree-streamer-out.c: Likewise.
3248         * tree-streamer.c: Likewise.
3249         * tree-switch-conversion.c: Likewise.
3250         * tree-tailcall.c: Likewise.
3251         * tree-vect-data-refs.c: Likewise.
3252         * tree-vect-generic.c: Likewise.
3253         * tree-vect-loop-manip.c: Likewise.
3254         * tree-vect-loop.c: Likewise.
3255         * tree-vect-patterns.c: Likewise.
3256         * tree-vect-slp.c: Likewise.
3257         * tree-vect-stmts.c: Likewise.
3258         * tree-vectorizer.c: Likewise.
3259         * tree-vrp.c: Likewise.
3260         * tree.c: Likewise.
3261         * tsan.c: Likewise.
3262         * ubsan.c: Likewise.
3263         * value-prof.c: Likewise.
3264         * var-tracking.c: Likewise.
3265         * varasm.c: Likewise.
3266         * varpool.c: Likewise.
3267         * vmsdbgout.c: Likewise.
3268         * vtable-verify.c: Likewise.
3269         * web.c: Likewise.
3270         * wide-int-print.cc: Likewise.
3271         * wide-int.cc: Likewise.
3272         * xcoffout.c: Likewise.
3274 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
3276         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
3277         between pass numbering and execution order.
3279 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3281         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
3282         check for dependencies.
3284 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3286         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
3287         CDI_DOMINATORS.
3289 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3291         * real.h (format_helper): New.
3292         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
3293         (real_from_target, real_nan, real_2expN, real_value_truncate)
3294         (significand_size, real_from_string2, exact_real_inverse)
3295         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
3296         (real_round, real_isinteger, real_from_integer): Replace
3297         machine_mode arguments with format_helper arguments.
3298         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
3299         (real_from_integer, real_nan, real_2expN, real_convert)
3300         (real_value_truncate, exact_real_truncate, real_to_target)
3301         (real_from_target, significand_size, real_powi, real_trunc)
3302         (real_floor, real_ceil, real_round, real_isinteger): Replace
3303         machine_mode arguments with format_helper arguments.
3304         (real_to_target_fmt, real_from_target_fmt): Delete.
3305         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
3306         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
3307         argument with real_format.
3308         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
3310 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3312         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
3313         (fixed_to_decimal, fixed_convert_from_real)
3314         (real_convert_from_fixed): Fix mode arguments to real_2expN.
3316 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3318         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
3319         SCALAR_FLOAT_MODE_P.
3321 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
3323         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
3324         (completely_scalarize): Comment zero-length arrays.
3325         (get_access_replacement): Correct comment re. precondition.
3327 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3329         * config/i386/i386.c (get_builtin_code_for_version): Set priority
3330         for PROCESSOR_ZNVER1.
3331         (enum processor_model): Add M_AMDFAM17H_znver1.
3332         (struct arch_names_table): Likewise.
3333         * doc/extend.texi: ADD znver1.
3335 2015-10-30  Richard Biener  <rguenther@suse.de>
3337         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
3338         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
3339         zeros to be folded to VECTOR_CSTs.
3340         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
3341         * fold-const.c (fold): Use build_vector_from_ctor.
3343 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
3345         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
3346         "mov %0.h[0], %1.h[0] to "neon_move".
3347         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
3348         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
3349         "mov_imm".
3350         (*cmovsi_insn_uxtw): Likewise.
3352 2015-10-30  Tom de Vries  <tom@codesourcery.com>
3354         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
3355         unsigned, and initialize, and use initial value instead of hardcoded
3356         constant.  Add generic constraints dumping section.  Don't dump global
3357         initializers constraints dumping section if empty.  Don't update
3358         variable from if unused.
3360 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
3362         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
3363         flag_checking and/or CHECKING_P to eliminate conditional compilation
3364         on ENABLE_CHECKING.
3365         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
3366         * config/bfin/bfin.c (hwloop_optimize): Likewise.
3367         * config/i386/i386.c (ix86_print_operand_address): Likewise.
3368         (output_387_binary_op): Likewise.
3369         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
3370         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
3371         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
3372         Likewise.
3373         * config/rs6000/rs6000.h: Likewise.
3374         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
3376 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3378         * config/sh/sh.opt (mfdpic): Add missing period.
3380 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
3382         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3383         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
3384         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3385         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
3386         mcore_base_register_rtx_p, mcore_legitimate_index_p,
3387         mcore_legitimate_address_p): New functions.
3388         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3390 2015-10-29  Jeff Law  <law@redhat.com>
3392         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
3393         method.
3394         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
3395         * tree-ssa-threadedge.c
3396         (record_temporary_equivalences_from_stmts_at_dest): Remove
3397         backedge_seen argument and associated code which invalidated
3398         equivalences based on the value of that argument.
3399         (thread_through_normal_block): Corresponding changes.
3401 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
3403         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
3404         function earlier in the file.
3405         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
3406         df_regs_ever_live_p.
3408 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
3410         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
3411         by ignoring it.
3413 2015-10-29  Richard Henderson  <rth@redhat.com>
3415         PR target/68124
3416         PR rtl-opt/67609
3417         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3418         sse check to the exact conditions of PR 67609.
3420 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3422         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
3423         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
3424         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
3425         of the traditional names that TFmode uses for handling IEEE
3426         extended double. If -mfloat128, add KFmode functions for all of
3427         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
3428         make TFmode use the same emulation functions as KFmode.
3429         (init_float128_ibm): Likewise.
3430         (init_float128_ieee): Likewise.
3431         (rs6000_generate_compare): For IEEE 128-bit floating point
3432         comparisons, call the unordered comparison function instead of the
3433         ordered comparison function.
3434         (rs6000_expand_float128_convert): Deal with operands that are
3435         memory operands. Restructure the code to use a switch statement on
3436         the mode. Add support for TFmode defaulting to either IBM extended
3437         double or IEEE 128-bit floating point. If the underlying types are
3438         the same, use a move instead of a conversion function.
3439         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
3440         use for IEEE 128-bit floating point constants with -mfloat128.
3441         (rs6000_c_mode_for_suffix): Likewise.
3442         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
3443         128-bit floating point with IBM extended double floating point.
3444         (rs6000_invalid_binary_op): Likewise.
3445         (rs6000_gen_le_vsx_permute): On little endian systems generate a
3446         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
3447         types that can go in vector registers.
3448         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
3449         point types that can go in vector registers on little endian
3450         PowerPC systems.
3451         (mark_swaps_for_removal): Likewise.
3452         (rs6000_analyze_swaps): Likewise.
3453         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
3455         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
3456         rework IEEE 128-bit floating point insns to deal with TFmode being
3457         either IBM extended double or IEEE 128-bit floating point.
3458         (IFKF): Likewise.
3459         (IBM128): Update iterator to add condition that the mode is IBM
3460         extended double.
3461         (IEEE128): New iterator for IEEE 128-bit floating point.
3462         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
3463         (FLOAT128): Likewise.
3464         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
3465         iterator.
3466         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
3467         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
3468         instead of hard coding TFmode or KFmode.
3469         (negtf2_internal): Likewise.
3470         (neg<mode>2_internal): Likewise.
3471         (abs<mode>2): Likewise.
3472         (abstf2_internal): Likewise.
3473         (abs<mode>2_internal): Likewise.
3474         (ieee_128bit_neg<mode>2): Likewise.
3475         (ieee_128bit_neg<mode>2_internal): Likewise.
3476         (ieee_128bit_abs<mode>2): Likewise.
3477         (ieee_128bit_abs<mode>2_internal): Likewise.
3478         (ieee_128bit_nabs<mode>2): Likewise.
3479         (ieee_128bit_nabs<mode>2_internal): Likewise.
3480         (extendiftf2): Add explicit conversions between 128-bit floating
3481         point types. Drop the old conversions that had become unwieldy.
3482         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3483         (extendifkf2): Likewise.
3484         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3485         (extendtfkf2): Likewise.
3486         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3487         (trunciftf2): Likewise.
3488         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3489         (truncifkf2): Likewise.
3490         (float<SDI:mode><IFKF:mode>2): Likewise.
3491         (trunckftf2): Likewise.
3492         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3493         (trunctfif2): Likewise.
3494         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
3495         (extenddftf2): Rework 128-bit floating point conversions to
3496         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
3497         KFmode expanders into one function.
3498         (extenddf<mode>2): Likewise.
3499         (extenddftf2_fprs): Likewise.
3500         (extenddf<mode>2_fprs): Likewise.
3501         (extenddftf2_vsx): Likewise.
3502         (extenddf<mode>2_vsx): Likewise.
3503         (extendsftf2): Likewise.
3504         (extendsf<mode>2): Likewise.
3505         (trunctfdf2): Likewise.
3506         (trunc<mode>df2): Likewise.
3507         (trunctfdf2_internal1): Likewise.
3508         (trunc<mode>df2_internal1): Likewise.
3509         (trunctfdf2_internal2): Likewise.
3510         (trunc<mode>df2_internal2): Likewise.
3511         (trunctfsf2): Likewise.
3512         (trunc<mode>sf2): Likewise.
3513         (trunctfsf2_fprs): Likewise.
3514         (trunc<mode>sf2_fprs): Likewise.
3515         (floatsit2f): Likewise.
3516         (floatsi<mode>2): Likewise.
3517         (fix_trunc_helper): Likewise.
3518         (fix_trunc_helper<mode>): Likewise.
3519         (fix_trunctfsi2): Likewise.
3520         (fix_trunc<mode>si2): Likewise.
3521         (fix_trunctfsi2_fprs): Likewise.
3522         (fix_trunc<mode>si2_fprs): Likewise.
3523         (fix_trunctfsi2_internal): Likewise.
3524         (fix_trunc<mode>si2_internal): Likewise.
3525         (fix_trunctfdi2): Likewise.
3526         (fix_trunc<mode>di2): Likewise.
3527         (fixuns_trunctf<mode>2): Likewise.
3528         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3529         (floatditf2): Likewise.
3530         (floatdi<mode>2): Likewise.
3531         (floatuns<mode>tf2): Likewise.
3532         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
3533         (cmptf_internal1): Use a mode iterator to add support for both
3534         types (IFmode, TFmode) that support IBM extended double.
3535         (cmp<mode>_internal1): Likewise.
3536         (cmptf_internal2): Likewise.
3537         (cmp<mode>_internal2): Likewise.
3539         * doc/extend.texi (Floating Types): Document __ibm128 and
3540         __float128 on PowerPC.
3542         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3543         -mfloat128 and -mno-float128.
3545 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3547         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
3548         floating point modes that can go in vector registers.
3549         (MODES_TIEABLE_P): Move tests for vector modes before tests for
3550         scalar floating point, so that IEEE 128-bit floating point that
3551         can go in vector registers bind with vectors and not FP.
3552         (struct rs6000_args): Add libcall field.
3554         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
3555         and -mfloat128-software switches.  Replace them with a binary
3556         -mfloat128 switch.
3557         (-mfloat128): Likewise.
3559         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3560         128-bit floating point types in GPRs, even if the appropriate
3561         option enabling the type was not used.
3562         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
3563         debugging.
3564         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
3565         pre-decrement on IEEE 128-bit floating point values.
3566         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
3567         is IEEE 128-bit floating point.
3568         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
3569         128-bit floating point types that can go in vector registers.
3570         (rs6000_option_override_internal): Change -mfloat128-none and
3571         -mfloat128-software to -mfloat128, and move code to be near other
3572         VSX option handling.
3573         (rs6000_option_override_internal): Disable -mfloat128 if we don't
3574         have the Altivec ABI.
3575         (rs6000_init_builtins): Don't make TFmode use either IFmode or
3576         KFmode floating point nodes. Instead, have three separate nodes.
3577         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
3578         eventually moving the long double default to IEEE 128-bit floating
3579         point.
3580         (rs6000_opt_masks): Add -mfloat128.
3581         (struct rs6000_opt_var): Fix typo in comment.
3582         (init_cumulative_args): Initialize libcall field in
3583         CUMULATIVE_ARGS.
3584         (rs6000_function_arg): Treat library functions as if they had
3585         prototypes to prevent IEEE 128-bit support functions from passing
3586         arguments in both GPRs and vector registers.
3587         (rs6000_arg_partial_bytes): Likewise.
3589         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
3590         an option that can be turned on via -mcpu=<xxx>.
3592         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
3593         longer used.
3595         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3596         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
3597         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
3598         double is IBM extended double.
3600         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
3601         SUBREGs.
3603 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
3605         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
3606         * genconditions.c: Define CHECKING_P in the generated code.
3607         * genextract.c: Use flag_checking in insn_extract.
3608         * gengtype.c (main): Remove conditional compilation.
3609         * gengtype.h: Likewise.
3611 2015-10-29  Jeff Law  <law@redhat.com>
3613         PR tree-optimization/67892
3614         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
3615         in comment.
3616         (thread_through_normal_block): If we have seen a backedge, then
3617         do nothing.  No longer call find_jump_threads_backwards here.
3618         (thread_across_edge): Use find_jump_threads_backwards to find
3619         jump threads if the old style threader was not successful.
3620         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
3621         gsi_last_nondebug_bb.  Return NULL if the block does not end
3622         with a control statement.
3623         (find_jump_threads_backwards): Setup code moved here from
3624         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
3625         single edge argument instead of name & block.
3626         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
3627         prototype.
3629 2015-10-29  Tom de Vries  <tom@codesourcery.com>
3631         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
3632         types.
3634 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
3636         * omp-low.c (lower_omp_target): Remove unreachable code & merge
3637         ifs.
3639 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
3641         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
3643 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3645         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3646         guard_bb0 and use guard_bb throughout.
3648 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3650         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3651         unnecessary label.
3653 2015-10-29  Richard Biener  <rguenther@suse.de>
3655         PR middle-end/68142
3656         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
3657         overflow.
3659 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
3661         * alias.c: Reorder #include statements and remove duplicates.
3662         * asan.c: Likewise.
3663         * attribs.c: Likewise.
3664         * auto-inc-dec.c: Likewise.
3665         * auto-profile.c: Likewise.
3666         * bb-reorder.c: Likewise.
3667         * bt-load.c: Likewise.
3668         * builtins.c: Likewise.
3669         * caller-save.c: Likewise.
3670         * calls.c: Likewise.
3671         * ccmp.c: Likewise.
3672         * cfg.c: Likewise.
3673         * cfganal.c: Likewise.
3674         * cfgbuild.c: Likewise.
3675         * cfgcleanup.c: Likewise.
3676         * cfgexpand.c: Likewise.
3677         * cfghooks.c: Likewise.
3678         * cfgloop.c: Likewise.
3679         * cfgloopanal.c: Likewise.
3680         * cfgloopmanip.c: Likewise.
3681         * cfgrtl.c: Likewise.
3682         * cgraph.c: Likewise.
3683         * cgraphbuild.c: Likewise.
3684         * cgraphclones.c: Likewise.
3685         * cgraphunit.c: Likewise.
3686         * cilk-common.c: Likewise.
3687         * combine-stack-adj.c: Likewise.
3688         * combine.c: Likewise.
3689         * compare-elim.c: Likewise.
3690         * convert.c: Likewise.
3691         * coverage.c: Likewise.
3692         * cppbuiltin.c: Likewise.
3693         * cprop.c: Likewise.
3694         * cse.c: Likewise.
3695         * cselib.c: Likewise.
3696         * data-streamer-in.c: Likewise.
3697         * data-streamer-out.c: Likewise.
3698         * data-streamer.c: Likewise.
3699         * dbxout.c: Likewise.
3700         * dce.c: Likewise.
3701         * ddg.c: Likewise.
3702         * debug.c: Likewise.
3703         * df-core.c: Likewise.
3704         * df-problems.c: Likewise.
3705         * df-scan.c: Likewise.
3706         * dfp.c: Likewise.
3707         * dojump.c: Likewise.
3708         * dominance.c: Likewise.
3709         * double-int.c: Likewise.
3710         * dse.c: Likewise.
3711         * dumpfile.c: Likewise.
3712         * dwarf2asm.c: Likewise.
3713         * dwarf2cfi.c: Likewise.
3714         * dwarf2out.c: Likewise.
3715         * emit-rtl.c: Likewise.
3716         * except.c: Likewise.
3717         * explow.c: Likewise.
3718         * expmed.c: Likewise.
3719         * expr.c: Likewise.
3720         * final.c: Likewise.
3721         * fixed-value.c: Likewise.
3722         * fold-const.c: Likewise.
3723         * function.c: Likewise.
3724         * fwprop.c: Likewise.
3725         * gcse.c: Likewise.
3726         * generic-match-head.c: Likewise.
3727         * ggc-common.c: Likewise.
3728         * gimple-builder.c: Likewise.
3729         * gimple-expr.c: Likewise.
3730         * gimple-fold.c: Likewise.
3731         * gimple-iterator.c: Likewise.
3732         * gimple-low.c: Likewise.
3733         * gimple-match-head.c: Likewise.
3734         * gimple-pretty-print.c: Likewise.
3735         * gimple-ssa-isolate-paths.c: Likewise.
3736         * gimple-ssa-strength-reduction.c: Likewise.
3737         * gimple-streamer-in.c: Likewise.
3738         * gimple-streamer-out.c: Likewise.
3739         * gimple-walk.c: Likewise.
3740         * gimple.c: Likewise.
3741         * gimplify-me.c: Likewise.
3742         * gimplify.c: Likewise.
3743         * godump.c: Likewise.
3744         * graph.c: Likewise.
3745         * graphite-poly.c: Likewise.
3746         * haifa-sched.c: Likewise.
3747         * hw-doloop.c: Likewise.
3748         * ifcvt.c: Likewise.
3749         * incpath.c: Likewise.
3750         * init-regs.c: Likewise.
3751         * internal-fn.c: Likewise.
3752         * ipa-chkp.c: Likewise.
3753         * ipa-comdats.c: Likewise.
3754         * ipa-cp.c: Likewise.
3755         * ipa-devirt.c: Likewise.
3756         * ipa-icf-gimple.c: Likewise.
3757         * ipa-icf.c: Likewise.
3758         * ipa-inline-analysis.c: Likewise.
3759         * ipa-inline-transform.c: Likewise.
3760         * ipa-inline.c: Likewise.
3761         * ipa-polymorphic-call.c: Likewise.
3762         * ipa-profile.c: Likewise.
3763         * ipa-prop.c: Likewise.
3764         * ipa-pure-const.c: Likewise.
3765         * ipa-ref.c: Likewise.
3766         * ipa-reference.c: Likewise.
3767         * ipa-split.c: Likewise.
3768         * ipa-utils.c: Likewise.
3769         * ipa-visibility.c: Likewise.
3770         * ipa.c: Likewise.
3771         * ira-build.c: Likewise.
3772         * ira-color.c: Likewise.
3773         * ira-conflicts.c: Likewise.
3774         * ira-costs.c: Likewise.
3775         * ira-emit.c: Likewise.
3776         * ira-lives.c: Likewise.
3777         * ira.c: Likewise.
3778         * jump.c: Likewise.
3779         * langhooks.c: Likewise.
3780         * lcm.c: Likewise.
3781         * lists.c: Likewise.
3782         * loop-doloop.c: Likewise.
3783         * loop-init.c: Likewise.
3784         * loop-invariant.c: Likewise.
3785         * loop-iv.c: Likewise.
3786         * loop-unroll.c: Likewise.
3787         * lower-subreg.c: Likewise.
3788         * lra-assigns.c: Likewise.
3789         * lra-coalesce.c: Likewise.
3790         * lra-constraints.c: Likewise.
3791         * lra-eliminations.c: Likewise.
3792         * lra-lives.c: Likewise.
3793         * lra-remat.c: Likewise.
3794         * lra-spills.c: Likewise.
3795         * lra.c: Likewise.
3796         * lto-cgraph.c: Likewise.
3797         * lto-compress.c: Likewise.
3798         * lto-opts.c: Likewise.
3799         * lto-section-in.c: Likewise.
3800         * lto-section-out.c: Likewise.
3801         * lto-streamer-in.c: Likewise.
3802         * lto-streamer-out.c: Likewise.
3803         * lto-streamer.c: Likewise.
3804         * mode-switching.c: Likewise.
3805         * modulo-sched.c: Likewise.
3806         * omp-low.c: Likewise.
3807         * optabs.c: Likewise.
3808         * opts-global.c: Likewise.
3809         * passes.c: Likewise.
3810         * plugin.c: Likewise.
3811         * postreload-gcse.c: Likewise.
3812         * postreload.c: Likewise.
3813         * predict.c: Likewise.
3814         * print-tree.c: Likewise.
3815         * profile.c: Likewise.
3816         * real.c: Likewise.
3817         * realmpfr.c: Likewise.
3818         * recog.c: Likewise.
3819         * ree.c: Likewise.
3820         * reg-stack.c: Likewise.
3821         * regcprop.c: Likewise.
3822         * reginfo.c: Likewise.
3823         * regrename.c: Likewise.
3824         * regstat.c: Likewise.
3825         * reload.c: Likewise.
3826         * reload1.c: Likewise.
3827         * reorg.c: Likewise.
3828         * resource.c: Likewise.
3829         * rtl-chkp.c: Likewise.
3830         * rtl-error.c: Likewise.
3831         * rtlanal.c: Likewise.
3832         * rtlhooks.c: Likewise.
3833         * sanopt.c: Likewise.
3834         * sched-deps.c: Likewise.
3835         * sched-ebb.c: Likewise.
3836         * sched-rgn.c: Likewise.
3837         * sese.c: Likewise.
3838         * shrink-wrap.c: Likewise.
3839         * simplify-rtx.c: Likewise.
3840         * stack-ptr-mod.c: Likewise.
3841         * statistics.c: Likewise.
3842         * stmt.c: Likewise.
3843         * stor-layout.c: Likewise.
3844         * store-motion.c: Likewise.
3845         * stringpool.c: Likewise.
3846         * symtab.c: Likewise.
3847         * target-globals.c: Likewise.
3848         * targhooks.c: Likewise.
3849         * toplev.c: Likewise.
3850         * tracer.c: Likewise.
3851         * trans-mem.c: Likewise.
3852         * tree-affine.c: Likewise.
3853         * tree-call-cdce.c: Likewise.
3854         * tree-cfg.c: Likewise.
3855         * tree-cfgcleanup.c: Likewise.
3856         * tree-chkp-opt.c: Likewise.
3857         * tree-chkp.c: Likewise.
3858         * tree-chrec.c: Likewise.
3859         * tree-complex.c: Likewise.
3860         * tree-data-ref.c: Likewise.
3861         * tree-dfa.c: Likewise.
3862         * tree-diagnostic.c: Likewise.
3863         * tree-dump.c: Likewise.
3864         * tree-eh.c: Likewise.
3865         * tree-emutls.c: Likewise.
3866         * tree-if-conv.c: Likewise.
3867         * tree-inline.c: Likewise.
3868         * tree-into-ssa.c: Likewise.
3869         * tree-iterator.c: Likewise.
3870         * tree-loop-distribution.c: Likewise.
3871         * tree-nested.c: Likewise.
3872         * tree-nrv.c: Likewise.
3873         * tree-object-size.c: Likewise.
3874         * tree-outof-ssa.c: Likewise.
3875         * tree-parloops.c: Likewise.
3876         * tree-phinodes.c: Likewise.
3877         * tree-predcom.c: Likewise.
3878         * tree-pretty-print.c: Likewise.
3879         * tree-profile.c: Likewise.
3880         * tree-scalar-evolution.c: Likewise.
3881         * tree-sra.c: Likewise.
3882         * tree-ssa-address.c: Likewise.
3883         * tree-ssa-alias.c: Likewise.
3884         * tree-ssa-ccp.c: Likewise.
3885         * tree-ssa-coalesce.c: Likewise.
3886         * tree-ssa-copy.c: Likewise.
3887         * tree-ssa-dce.c: Likewise.
3888         * tree-ssa-dom.c: Likewise.
3889         * tree-ssa-dse.c: Likewise.
3890         * tree-ssa-forwprop.c: Likewise.
3891         * tree-ssa-ifcombine.c: Likewise.
3892         * tree-ssa-live.c: Likewise.
3893         * tree-ssa-loop-ch.c: Likewise.
3894         * tree-ssa-loop-im.c: Likewise.
3895         * tree-ssa-loop-ivcanon.c: Likewise.
3896         * tree-ssa-loop-ivopts.c: Likewise.
3897         * tree-ssa-loop-manip.c: Likewise.
3898         * tree-ssa-loop-niter.c: Likewise.
3899         * tree-ssa-loop-prefetch.c: Likewise.
3900         * tree-ssa-loop-unswitch.c: Likewise.
3901         * tree-ssa-loop.c: Likewise.
3902         * tree-ssa-math-opts.c: Likewise.
3903         * tree-ssa-operands.c: Likewise.
3904         * tree-ssa-phiopt.c: Likewise.
3905         * tree-ssa-phiprop.c: Likewise.
3906         * tree-ssa-pre.c: Likewise.
3907         * tree-ssa-propagate.c: Likewise.
3908         * tree-ssa-reassoc.c: Likewise.
3909         * tree-ssa-sccvn.c: Likewise.
3910         * tree-ssa-scopedtables.c: Likewise.
3911         * tree-ssa-sink.c: Likewise.
3912         * tree-ssa-strlen.c: Likewise.
3913         * tree-ssa-structalias.c: Likewise.
3914         * tree-ssa-tail-merge.c: Likewise.
3915         * tree-ssa-ter.c: Likewise.
3916         * tree-ssa-threadedge.c: Likewise.
3917         * tree-ssa-threadupdate.c: Likewise.
3918         * tree-ssa-uncprop.c: Likewise.
3919         * tree-ssa-uninit.c: Likewise.
3920         * tree-ssa.c: Likewise.
3921         * tree-ssanames.c: Likewise.
3922         * tree-stdarg.c: Likewise.
3923         * tree-streamer-in.c: Likewise.
3924         * tree-streamer-out.c: Likewise.
3925         * tree-streamer.c: Likewise.
3926         * tree-switch-conversion.c: Likewise.
3927         * tree-tailcall.c: Likewise.
3928         * tree-vect-data-refs.c: Likewise.
3929         * tree-vect-generic.c: Likewise.
3930         * tree-vect-loop-manip.c: Likewise.
3931         * tree-vect-loop.c: Likewise.
3932         * tree-vect-patterns.c: Likewise.
3933         * tree-vect-slp.c: Likewise.
3934         * tree-vect-stmts.c: Likewise.
3935         * tree-vectorizer.c: Likewise.
3936         * tree-vrp.c: Likewise.
3937         * tree.c: Likewise.
3938         * tsan.c: Likewise.
3939         * ubsan.c: Likewise.
3940         * value-prof.c: Likewise.
3941         * var-tracking.c: Likewise.
3942         * varasm.c: Likewise.
3943         * varpool.c: Likewise.
3944         * vtable-verify.c: Likewise.
3945         * web.c: Likewise.
3946         * wide-int-print.cc: Likewise.
3947         * wide-int.cc: Likewise.
3948         * xcoffout.c: Likewise.
3950 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
3952         * Makefile.in (NO_PIE_CFLAGS): New.
3953         (NO_PIE_FLAG): Likewise.
3954         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3955         (NO_PIE_FLAG_FOR_BUILD): Likewise.
3956         (BUILD_NO_PIE_CFLAGS): Likewise.
3957         (BUILD_NO_PIE_FLAG): Likewise.
3958         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
3959         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
3960         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
3961         $(BUILD_NO_PIE_CFLAGS).
3962         (BUILD_CXXFLAGS): Likewise.
3963         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
3964         $(BUILD_NO_PIE_FLAG).
3965         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
3966         (BUILD_NO_PIE_FLAG): Likewise.
3967         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3968         (NO_PIE_FLAG_FOR_BUILD): Likewise.
3969         * configure: Regenerated.
3971 2015-10-29  Richard Biener  <rguenther@suse.de>
3973         PR middle-end/56956
3974         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
3975         unsigned conditonal negation to ABS_EXPR.
3977 2015-10-29  Richard Biener  <rguenther@suse.de>
3979         * gimple-match-head.c (gimple_simplify): Remove premature checking
3980         of builtin_decl_implicit of function calls we simplify.
3982 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
3984         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
3985         (get_computation_cost_at): Ditto.
3986         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
3987         and inv_expr_id.
3989 2015-10-28  Tom de Vries  <tom@codesourcery.com>
3991         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
3992         superfluous code.
3994 2015-10-28  Jason Merrill  <jason@redhat.com>
3996         * Makefile.in (TAGS): Include libcpp and libiberty.
3998 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
4000         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
4001         (extract_omp_for_data): Remove OpenACC special handling of
4002         chunking.
4004         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
4005         (struct parallel): Update comment.
4006         (nvptx_reorg): Likewise.
4007         (nvptx_neuter): Cleanup whitespace.
4009 2015-10-28  Richard Henderson  <rth@redhat.com>
4011         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
4013 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4015         PR target/67839
4016         * config/avr/predicates.md (low_io_address_operand): Don't
4017         consider MODE when computing upper bound.
4018         (io_address_operand): Likewise.
4020 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
4022         * fold-const.c (operand_equal_p): Do not verify that types are
4023         compatible for MEM_REFs.
4025 2015-10-28  Richard Biener  <rguenther@suse.de>
4027         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
4028         in simplifying VEC_COND_EXPR conditions.
4030 2015-10-28  Tom de Vries  <tom@codesourcery.com>
4032         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
4033         into vi_next of a full_var.
4035 2015-10-28  Tom de Vries  <tom@codesourcery.com>
4037         * tree-ssa-structalias.c (new_var_info, make_heapvar)
4038         (make_constraint_from_restrict, make_constraint_from_global_restrict)
4039         (create_function_info_for, create_variable_info_for_1)
4040         (create_variable_info_for): Add and handle add_id parameter.
4041         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
4042         (init_base_vars): Add extra argument to calls to new_var_info.
4043         (get_vi_for_tree): Add extra argument to call to
4044         create_variable_info_for.
4045         (process_constraint, do_deref, process_all_all_constraints): Add extra
4046         argument to calls to new_scalar_tmp_constraint_exp.
4047         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
4048         argument to calls to make_heapvar.
4049         (make_restrict_var_constraints): Add extra argument to call to
4050         make_constraint_from_global_restrict.
4051         (intra_create_variable_infos): Add extra argument to call to
4052         create_variable_info_for_1.
4053         (ipa_pta_execute): Add extra argument to call to
4054         create_function_info_for.
4056 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4058         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
4059         (sibcall_value): Likewise.
4061 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
4063         * config/nvptx/nvptx.h (struct machine_function): Add
4064         axis_predicate.
4065         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
4066         nvptx_expand_oacc_join): Declare.
4067         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
4068         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
4069         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
4070         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
4071         UNSPECV_JOINING, UNSPECV_JOIN): New.
4072         (BITS, BITD): New mode iterators.
4073         (br_true_uni, br_false_uni): New.
4074         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
4075         (oacc_dim_size, oacc_dim_pos): New.
4076         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
4077         (oacc_fork, oacc_join): New.
4078         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
4079         (worker_load<mode>, worker_store<mode>): New.
4080         (nvptx_barsync): New.
4081         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
4082         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
4083         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
4084         worker_bcast_sym): New.
4085         (nvptx_option_override): Initialize worker broadcast buffer.
4086         (nvptx_emit_forking, nvptx_emit_joining): New.
4087         (nvptx_init_axis_predicate): New.
4088         (nvptx_declare_function_name): Init axis predicates.
4089         (nvptx_expand_call): Add fork/join markers around routine call.
4090         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
4091         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
4092         (nvptx_gen_vcast): New.
4093         (struct wcast_data_t): New.
4094         (enum propagate_mask): New.
4095         (nvptx_gen_wcast): New.
4096         (nvptx_print_operand): Add 'S' case.
4097         (struct parallel): New.
4098         (parallel::parallel, parallel::~parallel): New.
4099         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
4100         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
4101         nvptx_find_par, nvptx_discover_pars): New.
4102         (nvptx_propagate): New.
4103         (vprop_gen, nvptx_vpropagate): New.
4104         (wprop_gen, nvptx_wpropagate): New.
4105         (nvptx_wsync): New.
4106         (nvptx_single, nvptx_skip_par): New.
4107         (nvptx_process_pars, nvptx_neuter_pars): New.
4108         (ntptx_reorg): Split blocks, generate parallel structure, apply
4109         neutering.
4110         (nvptx_cannot_copy_insn_p): New.
4111         (nvptx_file_end): Emit worker broadcast decl.
4112         (nvptx_goacc_fork_join): New.
4113         (TARGET_CANNOT_COPY_INSN_P): Override.
4114         (TARGET_GOACC_FORK_JOIN): Override.
4116 2015-10-28  Richard Biener  <rguenther@suse.de>
4118         * fold-const.c (negate_expr_p): Adjust the division case to
4119         properly avoid introducing undefined overflow.
4120         (fold_negate_expr): Likewise.
4122 2015-10-28  Richard Biener  <rguenther@suse.de>
4124         PR tree-optimization/65962
4125         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4126         Avoid creating loop carried dependences also for outer loops
4127         of the loop a use to replace is in.
4129 2015-10-28  Richard Biener  <rguenther@suse.de>
4131         * common.opt (fchecking): New flag controlling flag_checking.
4132         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
4133         * timevar.c (timer::print): Adjust output.
4134         * doc/invoke.texi (fchecking): Document.
4136 2015-10-28  Richard Biener  <rguenther@suse.de>
4138         PR middle-end/68067
4139         * fold-const.c (negate_expr_p): We cannot negate plus or minus
4140         if overflow is not wrapping.  Likewise multiplication unless
4141         one operand is constant and not power of two.
4142         (fold_negate_expr): Adjust accordingly.
4144 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4146         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
4147         fields.
4148         (is_oacc_parallel, is_oacc_kernels): New.
4149         (enclosing_target_ctx): May return NULL.
4150         (ctx_in_oacc_kernels_region): New.
4151         (check_oacc_kernel_gwv): New.
4152         (oacc_loop_or_target_p): Delete.
4153         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
4154         operands.  Strip reductions fro kernels.
4155         (scan_omp_target): Don't calculate gwv mask.
4156         (lower_oacc_head_mark, lower_oacc_loop_marker,
4157         lower_oacc_head_tail): New.
4158         (struct oacc_collapse): New.
4159         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
4160         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4161         Remove OpenACC handling.
4162         (expand_oacc_for): New.
4163         (expand_omp_for): Call expand_oacc_for.
4164         (lower_omp_for): Call lower_oacc_head_tail.
4166 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
4168         * attribs.c (check_attribute_tables): New function, broken out from...
4169         (init_attributes): Use it.
4170         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
4171         gcc_checking_assert and checking_* functions to eliminate
4172         ENABLE_CHECKING conditionals.
4173         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
4174         (pass_expand::execute): Likewise.
4175         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
4176         * cgraphunit.c (mark_functions_to_output): Likewise.
4177         (cgraph_node::expand_thunk): Likewise.
4178         (symbol_table::compile): Likewise.
4179         * ddg.c (add_cross_iteration_register_deps): Likewise.
4180         (create_ddg_all_sccs): Likewise.
4181         * df-core.c (df_finish_pass, df_analyze): Likewise.
4182         * diagnostic-core.h: Likewise.
4183         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
4184         * dominance.c (calculate_dominance_info): Likewise.
4185         * dwarf2out.c (add_AT_die_ref): Likewise.
4186         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
4187         (loc_list_from_tree, gen_lexical_block_die): Likewise.
4188         gen_type_die_with_usage, gen_type_die): Likewise.
4189         (dwarf2out_decl): Likewise.
4190         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
4191         * except.c (duplicate_eh_regions): Likewise.
4192         * fwprop.c (register_active_defs, update_df_init): Likewise.
4193         (fwprop_init, fwprop_done): Likewise.
4194         (update_uses): Likewise.
4195         * ggc-page.c (ggc_grow): Likewise.
4196         * gimplify.c (gimplify_body): Likewise.
4197         (gimplify_hasher::equal): Likewise.
4198         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
4199         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
4200         Likewise.
4201         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
4202         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
4203         * hash-table.h (::find_empty_slot_for_expand): Likewise.
4204         * ifcvt.c (if_convert): Likewise.
4205         * ipa-cp.c (ipcp_propagate_stage): Likewise.
4206         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
4207         (odr_type_p, odr_types_equivalent_p): Likewise.
4208         (add_type_duplicate, get_odr_type): Likewise.
4209         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
4210         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4211         (sem_item_optimizer::verify_classes): Likewise.
4212         (sem_item_optimizer::traverse_congruence_split): Likewise.
4213         (sem_item_optimizer::checking_verify_classes): New.
4214         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
4215         method.
4216         * cfgrtl.c (commit_edge_insertions): Likewise.
4217         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
4218         (rtl_flow_call_edges_add): Likewise.
4219         * cgraph.c (symbol_table::create_edge): Likewise.
4220         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4221         * cgraph.h (symtab_node): Likewise.
4222         (symtab_node::checking_verify_symtab_nodes): Define.
4223         (cgraph_node::checking_verify_cgraph_nodes): Define.
4224         * cfghooks.h (checking_verify_flow_info): Define.
4225         * cfgloop.h (checking_verify_loop_structure): Define.
4226         * dominance.h (checking_verify_dominators): Define.
4227         * et-forest.c: Fix comment.
4228         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
4229         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4230         ENABLE_CHECKING conditionals.
4231         * ipa-inline-transform.c (save_inline_function_body): Likewise.
4232         * ipa-inline.c (inline_small_functions): Likewise.
4233         (early_inliner): Likewise.
4234         * ipa-inline.h (estimate_edge_growth): Likewise.
4235         * ipa-visibility.c (function_and_variable_visibility): Likewise.
4236         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
4237         (ipa_single_use): Likewise.
4238         * ira-int.h: Likewise.
4239         * ira.c (ira): Likewise.
4240         * loop-doloop.c (doloop_optimize_loops): Likewise.
4241         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
4242         * loop-invariant.c (move_loop_invariants): Likewise.
4243         * lra-assigns.c (lra_assign): Likewise.
4244         * lra-constraints.c (lra_constraints): Likewise.
4245         * lra-eliminations.c (lra_eliminate): Likewise.
4246         * lra-int.h (struct lra_reg): Likewise.
4247         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
4248         (lra_create_live_ranges_1): Likewise.
4249         * lra-remat.c (create_remat_bb_data): Likewise.
4250         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
4251         (lra): Likewise.
4252         (check_rtl): Always define. Remove incorrect guard around
4253         extract_constrain_insn call.
4254         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
4255         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4256         ENABLE_CHECKING conditionals.
4257         * lto-streamer-out.c (DFS::DFS): Likewise.
4258         (lto_output): Likewise.
4259         * lto-streamer.c (lto_streamer_init): Likewise.
4260         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
4261         expand_omp_target, execute_expand_omp): Likewise.
4262         (lower_omp_target): Likewise.
4263         * passes.c (execute_function_todo): Likewise.
4264         (execute_todo, execute_one_pass): Likewise.
4265         (verify_curr_properties): Always define.
4266         * predict.c (tree_estimate_probability: Use flag_checking,
4267         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4268         ENABLE_CHECKING conditionals.
4269         (propagate_freq): Likewise.
4270         * pretty-print.c (pp_format): Likewise.
4271         * real.c (real_to_decimal_for_mode): Likewise.
4272         * recog.c (split_all_insns): Likewise.
4273         * regcprop.c (kill_value_one_regno): Likewise.
4274         (copy_value): Likewise.
4275         (validate_value_data): Define unconditionally.
4276         * reload.c: Fix comment.
4277         * timevar.c: Include options.h
4278         * tree-ssa.h (checking_verify_ssa): Define.
4279         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
4280         * sched-deps.c (CHECK): Remove unused macro.
4281         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
4282         gcc_checking_assert and checking_* functions to eliminate
4283         ENABLE_CHECKING conditionals.
4284         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
4285         * sel-sched.c (struct moveop_static_params): Likewise.
4286         (find_best_reg_for_expr, move_cond_jump): Likewise.
4287         (move_op_orig_expr_not_found): Likewise.
4288         (code_motion_process_successors, move_op): Likewise.
4289         * ssa-iterators.h (first_readonly_imm_use): Likewise.
4290         (next_readonly_imm_use): Likewise.
4291         * store-motion.c (compute_store_table): Likewise.
4292         * symbol-summary.h (function_summary::function_summary): Likewise.
4293         * target.h (cumulative_args_t): Likewise.
4294         (get_cumulative_args, pack_cumulative_args): Likewise.
4295         * timevar.c: (timer::print): Likewise.
4296         * trans-mem.c (ipa_tm_execute): Likewise.
4297         * tree-cfg.c (move_stmt_op): Likewise.
4298         (move_sese_region_to_fn): Likewise.
4299         (gimple_flow_call_edges_add): Likewise.
4300         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
4301         Likewise.
4302         * tree-eh.c (remove_unreachable_handlers): Likewise.
4303         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
4304         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
4305         * tree-into-ssa.c (update_ssa): Likewise.
4306         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
4307         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
4308         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
4309         * tree-predcom.c (suitable_component_p): Likewise.
4310         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
4311         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
4312         * tree-ssa-live.c (verify_live_on_entry): Likewise.
4313         * tree-ssa-live.h (register_ssa_partition): Likewise.
4314         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
4315         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
4316         (tree_transform_and_unroll_loop): Likewise.
4317         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4318         * tree-ssa-operands.c (get_expr_operands): Likewise.
4319         * tree-ssa-propagate.c (replace_exp_1): Likewise.
4320         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4321         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
4322         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
4323         * tree-ssanames.c (release_ssa_name_fn): Likewise.
4324         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
4325         * tree-vect-loop-manip.c
4326         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4327         (slpeel_checking_verify_cfg_after_peeling): Likewise.
4328         (vect_do_peeling_for_loop_bound): Likewise.
4329         (vect_do_peeling_for_alignment): Likewise.
4330         * tree-vrp.c (supports_overflow_infinity): Likewise.
4331         (set_value_range): Likewise.
4332         * tree.c (free_lang_data_in_cgraph): Likewise.
4333         * value-prof.c (gimple_remove_histogram_value): Likewise.
4334         (free_hist): Likewise.
4335         * var-tracking.c (canonicalize_values_star): Likewise.
4336         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
4338 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4340         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
4341         IFN_GOACC_LOOP): New.
4342         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
4343         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
4344         IFN_UNIQUE_OACC_TAIL_MARK.
4345         (enum ifn_goacc_loop_kind): New.
4346         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
4347         IFN_UNIQUE_OACC_JOIN cases.
4348         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
4349         (expand_GOACC_LOOP): New.
4350         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
4351         * omp-low.c: Include gimple-pretty-print.h.
4352         (struct oacc_loop): New.
4353         (enum oacc_loop_flags): New.
4354         (oacc_thread_numbers): New.
4355         (oacc_xform_loop): New.
4356         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
4357         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
4358         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
4359         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
4360         oacc_loop_discovery): New.
4361         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
4362         oacc_loop_process): New.
4363         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
4364         (execute_oacc_device_lower): Discover & process loops.  Process
4365         internal fns.
4366         * target.def (goacc.fork_join): Change sense of hook, clarify
4367         documentation.
4368         * doc/tm.texi: Regenerated.
4370 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4372         * target-insns.def (oacc_fork, oacc_join): Define.
4373         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
4374         (goacc.fork_join): New GOACC hook.
4375         * targhooks.h (default_goacc_fork_join): Declare.
4376         * omp-low.c (default_goacc_forkjoin): New.
4377         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
4378         * doc/tm.texi: Regenerate.
4380 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4382         * omp-low.c (oacc_init_rediction_array): New.
4383         (oacc_initialize_reduction_data): Initialize array.
4385 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4387         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
4389 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4391         * internal-fn.c (expand_UNIQUE): New.
4392         * internal-fn.h (enum ifn_unique_kind): New.
4393         * internal-fn.def (IFN_UNIQUE): New.
4394         * target-insns.def (unique): Define.
4395         * gimple.h (gimple_call_internal_unique_p): New.
4396         * gimple.c (gimple_call_same_target_p): Check internal fn
4397         uniqueness.
4398         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
4399         * tree-ssa-threadedge.c
4400         (record_temporary_equivalences_from_stmts): Likewise.
4401         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
4403 2015-10-27  Richard Henderson  <rth@redhat.com>
4405         PR rtl-opt/67609
4406         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
4407         narrowing subregs on SSE and MMX registers.
4408         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
4409         appear to be sub-words of multi-register pseudos must be rejected.
4410         * doc/tm.texi: Regenerate.
4412 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4414         PR target/68102
4415         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
4416         operands[0] is a reg before taking its REGNO in split condition.
4417         (*movdi_aarch64): Likewise.
4419 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4421         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
4422         Handle floating point inner modes properly.
4424 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
4426         * tree-vect-looop.c
4427         (vectorizable_live_operation): Change iterator.
4429 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4430             Aditya Kumar  <aditya.k7@samsung.com>
4432         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
4433           function to schedule based on isl_schedule_node.
4434         (get_schedule_map_st): New schedule optimizer based on
4435         isl_schedule_node.
4436         (scop_get_domains): New. Return the isl_union_set containing the
4437         domains of all the pbbs.
4438         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
4440 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
4442         PR target/67215
4443         * calls.c (prepare_call_address): Don't handle -fno-plt here.
4444         * config/i386/i386.c (ix86_expand_call): Generate indirect call
4445         via GOT for -fno-plt.  Support indirect call via GOT for x32.
4446         * config/i386/predicates.md (sibcall_memory_operand): Allow
4447         GOT memory operand.
4449 2015-10-27  Richard Biener  <rguenther@suse.de>
4451         PR tree-optimization/68104
4452         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4453         strided access check ...
4454         (vect_compute_data_refs_alignment): ... here.
4456 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
4457             Joseph Myers  <joseph@codesourcery.com>
4458             Mark Shinwell  <shinwell@codesourcery.com>
4459             Andrew Stubbs  <ams@codesourcery.com>
4460             Rich Felker <dalias@libc.org>
4462         * config.gcc: Handle --enable-fdpic.
4463         * config/sh/constraints.md (Ccl): New constraint.
4464         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
4465         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
4466         __SH_FDPIC__.
4467         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
4468         library functions.
4469         * config/sh/sh-protos.h (function_symbol_result): New struct.
4470         (function_symbol): Return function_symbol_result.
4471         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
4472         declarations.
4473         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
4474         target hook.
4475         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
4476         (sh_option_override): Force -fPIC if FDPIC is in effect.
4477         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
4478         UNSPEC_GOTOFFFUNCDESC cases.
4479         (prepare_move_operands): Use FDPIC initial GOT register for
4480         TLS-related GOT access; inhibit cross-section address offset constants
4481         for FDPIC.
4482         (sh_assemble_integer): New function.
4483         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
4484         PC-relative call sites.
4485         (expand_ashiftrt): Adapt invocation of function_symbol.
4486         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
4487         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
4488         UNSPEC_GOTOFFFUNCDESC.
4489         (legitimize_pic_address): Resolve function symbols to function
4490         descriptors for FDPIC.  Do not use GOT-relative addressing for local
4491         data that may be read-only on FDPIC.
4492         (sh_emit_storesi, sh_emit_storehi): New functions.
4493         (sh_trampoline_init): Generate FDPIC trampolines.
4494         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
4495         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
4496         (sh_output_mi_thunk): Generate FDPIC call.
4497         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
4498         FDPIC, generate call site labels to use PC-relative addressing rather
4499         than GOT-relative addressing.
4500         (sh_conditional_register_usage): Make PIC register fixed and call used
4501         when FDPIC is in effect.
4502         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
4503         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
4504         sh_get_fdpic_reg_initial_val): New functions.
4505         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
4506         Handle -mfdpic.
4507         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
4508         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
4509         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
4510         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
4511         FDPIC_SELF_SPECS.
4512         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
4513         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
4514         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
4515         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
4516         constants.
4517         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
4518         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
4519         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
4520         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
4521         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
4522         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
4523         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
4524         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
4525         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
4526         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
4527         block_move_real, block_lump_real, block_move_real_i4,
4528         block_lump_real_i4): Add support for FDPIC calls.
4529         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
4530         call_value_pop): Adjust for new function_symbol signature.
4531         * config/sh/sh.opt (-mfdpic): New option.
4532         * doc/install.texi (Options specification): Document --enable-fdpic.
4533         * doc/invoke.texi (SH Options): Document -mfdpic.
4536 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
4538         PR tree-optimization/65963
4539         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4540         LSHIFT_EXPRs as equivalent MULT_EXPRs.
4542 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4544         PR target/67929
4545         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
4546         * config/arm/constraints.md (Dp): Update callsite.
4547         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
4549 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4551         * builtins.c (fold_builtin_load_exponent): Rename to...
4552         (fold_const_builtin_load_exponent): ...this and only handle
4553         constant arguments.
4554         (fold_builtin_2): Update accordingly.
4555         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
4557 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4559         * builtins.c (fold_builtin_logb): Rename to...
4560         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
4561         (fold_builtin_significand): Rename to...
4562         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
4563         (fold_builtin_1): Update accordingly.
4565 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4567         * builtins.c (fold_builtin_fmin_fmax): Delete.
4568         (fold_builtin_2): Handle constant fmin and fmax arguments here.
4569         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
4571 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
4573         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
4574         for register extension into sign and zero register extension.
4575         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
4576         for sign and zero register extension.
4577         (cortexa57_addrcost_table): Likewise.
4578         (xgene1_addrcost_table): Likewise.
4580 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4582         * fold-const.c (fold_minmax): Delete.
4583         (fold_binary_loc): Don't call it.
4584         * match.pd: Add rules previously handled by fold_minmax.
4586 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4588         * builtins.c (fold_builtin_fma): Remove constant handling.
4589         (fold_builtin_3): Handle constant fma arguments here.
4591 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4593         * builtins.c (fold_builtin_fabs): Remove constant handling.
4594         (fold_builtin_abs): Likewise.
4596 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4598         * builtins.c (fold_builtin_copysign): Delete.
4599         (fold_builtin_2): Handle constant copysign arguments here.
4600         * match.pd: Add rules previously handled by fold_builtin_copysign.
4602 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4604         * builtins.c (fold_builtin_signbit): Delete.
4605         (fold_builtin_2): Handle constant signbit arguments here.
4606         * match.pd: Add rules previously handled by fold_builtin_signbit.
4608 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4610         * match.pd: Handle sqrt(x) cmp 0 specially.
4612 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
4614         * tree-vect-generic.c (expand_vector_operations_1): Check
4615         optab type before using it.
4617 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4619         * config/aarch64/aarch64-protos.h
4620         (struct tune_params): Add autoprefetcher_model field.
4621         * config/aarch64/aarch64.c: Include params.h
4622         (generic_tunings): Specify autoprefetcher_model value.
4623         (cortexa53_tunings): Likewise.
4624         (cortexa57_tunings): Likewise.
4625         (cortexa72_tunings): Likewise.
4626         (thunderx_tunings): Likewise.
4627         (xgene1_tunings): Likewise.
4628         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
4629         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4630         (aarch64_override_options_internal): Set
4631         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
4633 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4635         * builtins.c (fold_builtin_exponent): Delete.
4636         (fold_builtin_2): Handle constant expN arguments here.
4637         * match.pd: Fold expN(logN(x)) -> x.
4639 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4641         * builtins.c (fold_builtin_powi): Delete.
4642         (fold_builtin_2): Handle constant powi arguments here.
4643         * match.pd: Add rules previously handled by fold_builtin_powi.
4645 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4647         * builtins.c (fold_builtin_pow): Delete in favor of...
4648         (fold_const_builtin_pow): ...this new function.  Only handle constant
4649         arguments.
4650         (fold_builtin_2): Update accordingly.
4651         * match.pd: Add rules previously handled by fold_builtin_pow.
4653 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4655         * builtins.c (fold_builtin_hypot): Delete.
4656         (fold_builtin_2): Handle constant hypot arguments here.
4657         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
4658         hypot(x, x) to fabs(x)*sqrt(2).
4660 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4662         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
4663         instead of make_ssa_name if not yet in SSA form.
4665 2015-10-27  Richard Biener  <rguenther@suse.de>
4667         * cfg.c (free_edge): Add function argument and use it instead of cfun.
4668         (clear_edges): Likewise.
4669         * cfg.h (clear_edges): Adjust prototype.
4670         * cfgexpand.c (pass_expand::execute): Adjust.
4671         * cfgloop.c (release_recorded_exits): Add function argument and use
4672         it instead of cfun.
4673         * cfgloop.h (release_recorded_exits): Adjust prototype.
4674         (loops_state_satisfies_p): Add overload with function argument.
4675         (loops_state_set): Likewise.
4676         (loops_state_clear): Likewise.
4677         (struct loop_iterator): Add function argument to constructor
4678         and iterator and use it instead of cfun.
4679         (FOR_EACH_LOOP_FN): New macro.
4680         (loop_optimizer_finalize): Add overload with function argument.
4681         * loop-init.c (loop_optimizer_init): Adjust.
4682         (fix_loop_structure): Likewise.
4683         (loop_optimizer_finaliz): Add function argument and use it
4684         instead of cfun.
4685         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
4686         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
4687         * cgraph.c (release_function_body): Do not push/pop cfun.
4688         * final.c (rest_of_clean_state): Adjust.
4689         * graphite.c (graphite_finalize): Likewise.
4690         * tree-ssa-copy.c (fini_copy_prop): Likewise.
4691         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4692         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
4693         (tree_unroll_loops_completely): Likewise.
4694         (pass_complete_unrolli::execute): Likewise.
4695         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
4696         Add function argument and use it instead of cfun.
4697         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
4698         Adjust prototype.
4699         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
4700         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
4701         instead of cfun.
4702         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
4703         * tree-ssanames.c (fini_ssanames): Add function argument and use it
4704         instead of cfun.
4705         * tree-ssanames.c (fini_ssanames): Adjust prototype.
4706         * tree-vrp.c (execute_vrp): Adjust.
4707         * value-prof.c (free_histograms): Add function argument and use it
4708         instead of cfun.
4709         * value-prof.h (free_histograms): Adjust prototype.
4711 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
4713         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
4714         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
4715         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
4717 2015-10-27  Tom de Vries  <tom@codesourcery.com>
4719         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
4720         field_type.
4722 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
4724         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
4725         (inv_can_prop_to_addr_use): New function.
4726         (record_use): Call can_prop_to_addr_uses, set the new field.
4727         (get_inv_cost): Count cost if inv can't be propagated into its
4728         address uses.
4730 2015-10-26  Doug Evans  <dje@google.com>
4732         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
4734 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
4736         * match.pd (fold_widened_comparison): Apply simplifications to all
4737         integral types.
4739 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
4741         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
4742         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
4743         * doc/tm.texi: Regenerated.
4744         * reorg.c (dbr_schedule): Use new hook.
4745         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
4747 2015-10-26  Jeff Law  <law@redhat.com>
4749         PR tree-optimization/68013
4750         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4751         Make sure the first block in the path is in VISITED_BBs.
4753 2015-10-26  Richard Biener  <rguenther@suse.de>
4754         Dominik Vogt  <vogt@linux.vnet.ibm.com>
4756         PR middle-end/67443
4757         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
4758         Properly prune ref->ref for accesses outside of ref.
4760 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4762         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
4763         new statements to be inserted if inplace.  Allow calls to have
4764         nonempty sequences.
4766 2015-10-26  Richard Biener  <rguenther@suse.de>
4768         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
4769         (do_valueize): New function.
4770         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
4771         replace_uses_by.
4772         * tree-ssa-threadedge.c: Remove builtins.h include, include
4773         gimple-fold.h
4774         (fold_assignment_stmt): Remove.
4775         (threadedge_valueize): New function.
4776         (record_temporary_equivalences_from_stmts): Use
4777         gimple_fold_stmt_to_constant_1, note additional cleanup
4778         opportunities.
4780 2015-10-26  Richard Biener  <rguenther@suse.de>
4782         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
4783         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
4785 2015-10-26  Alan Hayward <alan.hayward@arm.com>
4787         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4788         VEC_COND_EXPR types.
4790 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4792         * auto-inc-dec.c (insert_move_insn_before): Delete.
4793         (attempt_change): Remember to cost the simple move in the
4794         FORM_PRE_ADD and FORM_POST_ADD cases.
4796 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
4798         PR target/68091
4799         * config/sh/sh.c (sh_vector_mode_supported_p): Use
4800         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
4802 2015-10-26  Tom de Vries  <tom@codesourcery.com>
4804         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
4805         factored out of ...
4806         (intra_create_variable_infos): ... here.
4808 2015-10-26  Tom de Vries  <tom@codesourcery.com>
4810         * tree-ssa-structalias.c (intra_create_variable_infos): Add
4811         restrict_pointer_p and recursive_restrict_p variables.
4813 2015-10-26  Tom de Vries  <tom@codesourcery.com>
4815         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
4816         get_vi_for_tree call.
4818 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4820         PR middle-end/67989
4821         * optabs.c (expand_atomic_compare_and_swap): Handle case when
4822         ptarget_oval or ptarget_bool are const0_rtx.
4824 2015-10-26  Christian Bruel  <christian.bruel@st.com>
4826         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
4827         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
4828         * cp/method.c (implicitly_declare_fn): Likewise.
4829         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
4830         * java/class.c (add_method_1): Likewise.
4832 2015-10-26  Richard Biener  <rguenther@suse.de>
4834         * alloc-pool.h (base_pool_allocator): Use placement new.
4835         (base_pool_allocator::remove): Likewise.  Compute size outside of
4836         flag_checking.
4838 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4840         * builtins.c (do_real_to_int_conversion): New function.
4841         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
4842         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
4843         arguments here.
4844         * match.pd: Add rules previously handled by fold_fixed_mathfn
4845         and fold_builtin_int_roundingfn.
4847 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4849         * match.pd: Use macros to define built-in operator lists.
4851 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
4852             Richard Biener  <rguenther@suse.de>
4854         * genmatch.c (dt_simplify::gen): Skip captures that are
4855         part of the result.
4856         (parser::parse_expr): Allow captures in results too.
4857         * builtins.c (fold_builtin_cexp): Delete.
4858         (fold_builtin_1): Handle constant cexp arguments here.
4859         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
4861 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
4863         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
4864         conditional compilation.
4865         (base_pool_allocator::remove): Use flag_checking.
4867 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
4869         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
4871         PR middle-end/68079
4872         * dojump.c (do_compare_and_jump): Canonicalize both function and
4873         method types.
4875 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
4877         PR target/68084
4878         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
4879         for =@ccae.
4881 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4883         PR ipa/pr67600
4884         * ipa-polymorphic-call.c
4885         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
4886         instance offset with offset of outer type.
4888 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4890         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
4892 2015-10-23  Caroline Tice  <cmtice@google.com>
4894         (from Richard Biener
4895         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
4896         call to iterative_hash_host_wide_int.
4898 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
4900         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
4901         Define as yes.
4903 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4905         * tree-vect-generic.c (expand_vector_operations_1): Check
4906         optab exists before use it.
4908 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4910         * tree-vect-generic.c (expand_vector_condition): Avoid
4911         uninitialized variable warning.
4913 2015-10-23  Jeff Law  <law@redhat.com>
4915         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
4916         here.  Instead...
4917         (execute_todo): Call it here.
4918         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
4919         statistics
4920         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
4922 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
4923             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4925         * config.gcc (enable_secureplt): Add *-linux*-musl*.
4927 2015-10-23  Jeff Law  <law@redhat.com>
4929         PR tree-optimization/67830
4930         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
4931         Explicitly verify the mask has no bits outside the type of
4932         the innermost operands.
4934 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
4935             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4937         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4938         (MUSL_DYNAMIC_LINKER64): Define.
4939         (GNU_USER_DYNAMIC_LINKER32): Update.
4940         (GNU_USER_DYNAMIC_LINKER64): Update.
4941         (CHOOSE_DYNAMIC_LINKER): Update.
4943         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
4944         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
4945         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4946         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4947         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4948         (CHOOSE_DYNAMIC_LINKER): Update.
4949         (INCLUDE_DEFAULTS): Redefine.
4951         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
4953 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4955         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
4956         comparing addresses.
4958 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4960         * fold-const.c (operand_equal_p): Handle matching of vector
4961         constructors.
4963 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
4965         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
4967 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
4968             Andrew Pinski  <apinski@cavium.com>
4970         PR rtl-optimization/67736
4971         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
4972         of gen_lowpart.
4974 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4976         PR middle-end/68066
4977         * tree.c (build_truth_vector_type): Support BLK mode
4978         returned for boolean vector.
4980 2015-10-23  Alan Hayward <alan.hayward@arm.com>
4982         PR tree-optimization/65947
4983         * tree-vect-loop.c
4984         (vect_is_simple_reduction_1): Find condition reductions.
4985         (vect_model_reduction_cost): Add condition reduction costs.
4986         (get_initial_def_for_reduction): Add condition reduction initial var.
4987         (vect_create_epilog_for_reduction): Add condition reduction epilog.
4988         (vectorizable_reduction): Condition reduction support.
4989         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
4990         * doc/sourcebuild.texi (Vector-specific attributes): Document
4991         vect_max_reduc
4993 2015-10-23  Richard Biener  <rguenther@suse.de>
4995         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
4996         and builtins.def.
4998 2015-10-23  Richard Biener  <rguenther@suse.de>
4999             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5001         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
5002         into (A ^ B) - B to match.pd
5003         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
5005         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
5006         New simplifier.
5007         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
5008         New simplifier.
5009         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
5010         New simplifier.
5011         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
5012         New simplifier.
5013         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
5014         INTEGER_CST@1)): New simplifier.
5016 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
5018         * builtins.c (integer_valued_real_p): Move to fold-const.c.
5019         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
5020         (fold_builtin_ceil, fold_builtin_round): Delete.
5021         (fold_builtin_1): Handle constant trunc, floor, ceil and round
5022         arguments here.
5023         * convert.c (convert_to_real): Remove narrowing of rounding
5024         functions.
5025         * fold-const.h (integer_valued_real_unary_p)
5026         (integer_valued_real_binary_p, integer_valued_real_call_p)
5027         (integer_valued_real_single_p, integer_valued_real_p): Declare.
5028         * fold-const.c (tree_single_nonnegative_warnv_p): Move
5029         name_registered_for_update_p check to SSA_NAME case statement.
5030         Don't call tree_simple_nonnegative_warnv_p for SSA names.
5031         (integer_valued_real_unary_p, integer_valued_real_binary_p)
5032         (integer_valued_real_call_p, integer_valued_real_single_p)
5033         (integer_valued_real_invalid_p): New functions.
5034         (integer_valued_real_p): Move from fold-const.c and rework
5035         to call the functions above.  Handle SSA names.
5036         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
5037         * gimple-fold.c (gimple_assign_integer_valued_real_p)
5038         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
5039         (gimple_stmt_integer_valued_real_p): New functions.
5040         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
5041         Fold f(x)->x for the same f if x is known to be integer-valued.
5042         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
5043         the result.  Canonicalize floor(x) as trunc(x) if x is
5044         nonnegative.
5046 2015-10-23  Tom de Vries  <tom@codesourcery.com>
5048         * tree-ssa-structalias.c (intra_create_variable_infos): Use
5049         make_constraint_from.
5051 2015-10-23  Tom de Vries  <tom@codesourcery.com>
5053         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
5054         setting of is_full_var in case of a single field.
5056 2015-10-22  Martin Sebor  <msebor@redhat.com>
5058         PR driver/68043
5059         * config/i386/i386.opt: Add missing periods to the ends of sentences.
5060         * config/msp430/msp430.opt: Same.
5062 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
5064         * doc/extend.exp (Global Register Variables): Rewrite.
5066 2015-10-22  Jeff Law  <law@redhat.com>
5068         * genattrtab.c (main): If we do not have any annul-true or annul-false
5069         slots, then write out a dummy eligible_for_annul_true or
5070         eligible_for_annul_false as needed.
5072 2015-10-22  Nick Clifton  <nickc@redhat.com>
5074         * config/msp430/msp430.opt: Add -msilicon-errata and
5075         -msilicon-errata-warn.
5076         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
5077         assembler.
5078         * doc/invoke.texi: Document new options.
5080 2015-10-22  Richard Biener  <rguenther@suse.de>
5082         PR tree-optimization/58497
5083         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
5084         (expand_vector_operations_1): Use it.  Lower operations on
5085         all uniform vectors to scalar operations if the HW supports it.
5087 2015-10-22  Richard Biener  <rguenther@suse.de>
5089         PR tree-optimization/19049
5090         PR tree-optimization/65962
5091         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
5092         to strided accesses if single-element interleaving doesn't work.
5094 2015-10-22  Richard Biener  <rguenther@suse.de>
5096         PR middle-end/68046
5097         PR middle-end/61893
5098         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
5099         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
5100         (expand_unop): Likewise.
5102 2015-10-22  Richard Biener  <rguenther@suse.de>
5104         * fold-const.c (fold_addr_of_array_ref_difference): Properly
5105         convert operands before folding a MINUS_EXPR.
5106         (fold_binary_loc): Move simplification of MINUS_EXPR on
5107         converted POINTER_PLUS_EXPRs ...
5108         * match.pd: ... here.
5110 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
5112         * builtins.c (fold_builtin_tan): Delete.
5113         (fold_builtin_1): Handle constant tan arguments here.
5114         * match.pd: Simplify (tan (atan x)) to x.
5116 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
5118         * builtins.c (fold_builtin_cproj): Delete.
5119         (fold_builtin_1): Handle constant arguments here.
5120         (build_complex_cproj): Move and rename to...
5121         * tree.c: (build_complex_inf): ...this.
5122         * tree.h (build_complex_inf): Declare.
5123         * match.pd: Fold cproj(x)->x if x has no infinity.
5124         Use build_complex_inf for existing cproj rules.
5126 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5128         PR target/68015
5129         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
5130         already have a comparison result.
5132 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5134         PR target/63304
5135         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
5136         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
5137         (aarch64_classify_address): Likewise.
5138         (aarch64_secondary_reload): Likewise.
5139         (aarch64_override_options_after_change_1): Adjust.
5140         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5141         Use aarch64_nopcrelative_literal_loads.
5142         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5143         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
5144         Declare.
5146 2015-10-21  Martin Sebor  <msebor@redhat.com>
5148         PR driver/68043
5149         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
5150         (print_filtered_help): Reference aliased option's name and encourage
5151         readers to use it in preference to the alias if the former is not
5152         documented.  Mention when using an option is diagnosed.
5153         * gcc.c (display_help): End each sentence with a period.
5155         * common.opt: End each sentence that describes an option with
5156         a period.
5157         * config/aarch64/aarch64.opt: Same.
5158         * config/alpha/alpha.opt: Same.
5159         * config/arc/arc.opt: Same.
5160         * config/arm/arm.opt: Same.
5161         * config/avr/avr.opt: Same.
5162         * config/bfin/bfin.opt: Same.
5163         * config/c6x/c6x.opt: Same.
5164         * config/cr16/cr16.opt: Same.
5165         * config/cris/cris.opt: Same.
5166         * config/cris/linux.opt: Same.
5167         * config/darwin.opt: Same.
5168         * config/epiphany/epiphany.opt: Same.
5169         * config/fr30/fr30.opt: Same.
5170         * config/frv/frv.opt: Same.
5171         * config/ft32/ft32.opt: Same.
5172         * config/g.opt: Same.
5173         * config/h8300/h8300.opt: Same.
5174         * config/i386/cygming.opt: Same.
5175         * config/i386/djgpp.opt: Same.
5176         * config/i386/i386.opt: Same.
5177         * config/i386/interix.opt: Same.
5178         * config/i386/mingw-w64.opt: Same.
5179         * config/i386/mingw.opt: Same.
5180         * config/ia64/ia64.opt: Same.
5181         * config/ia64/ilp32.opt: Same.
5182         * config/iq2000/iq2000.opt: Same.
5183         * config/linux.opt: Same.
5184         * config/lm32/lm32.opt: Same.
5185         * config/lynx.opt: Same.
5186         * config/m32c/m32c.opt: Same.
5187         * config/m32r/m32r.opt: Same.
5188         * config/m68k/ieee.opt: Same.
5189         * config/m68k/m68k.opt: Same.
5190         * config/mcore/mcore.opt: Same.
5191         * config/mep/mep.opt: Same.
5192         * config/microblaze/microblaze.opt: Same.
5193         * config/mips/mips.opt: Same.
5194         * config/mmix/mmix.opt: Same.
5195         * config/mn10300/mn10300.opt: Same.
5196         * config/moxie/moxie.opt: Same.
5197         * config/msp430/msp430.opt: Same.
5198         * config/nios2/elf.opt: Same.
5199         * config/nios2/nios2.opt: Same.
5200         * config/nvptx/nvptx.opt: Same.
5201         * config/pa/pa-hpux.opt: Same.
5202         * config/pa/pa-hpux1010.opt: Same.
5203         * config/pa/pa-hpux1111.opt: Same.
5204         * config/pa/pa-hpux1131.opt: Same.
5205         * config/pa/pa.opt: Same.
5206         * config/pa/pa64-hpux.opt: Same.
5207         * config/pdp11/pdp11.opt: Same.
5208         * config/rl78/rl78.opt: Same.
5209         * config/rs6000/476.opt: Same.
5210         * config/rs6000/aix64.opt: Same.
5211         * config/rs6000/darwin.opt: Same.
5212         * config/rs6000/linux64.opt: Same.
5213         * config/rs6000/rs6000.opt: Same.
5214         * config/rs6000/sysv4.opt: Same.
5215         * config/s390/s390.opt: Same.
5216         * config/s390/tpf.opt: Same.
5217         * config/sh/sh.opt: Same.
5218         * config/sol2.opt: Same.
5219         * config/sparc/long-double-switch.opt: Same.
5220         * config/sparc/sparc.opt: Same.
5221         * config/spu/spu.opt: Same.
5222         * config/stormy16/stormy16.opt: Same.
5223         * config/tilegx/tilegx.opt: Same.
5224         * config/tilepro/tilepro.opt: Same.
5225         * config/v850/v850.opt: Same.
5226         * config/vax/vax.opt: Same.
5227         * config/visium/visium.opt: Same.
5228         * config/vms/vms.opt: Same.
5229         * config/vxworks.opt: Same.
5230         * config/xtensa/xtensa.opt: Same.
5232 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5233             Sebastian Pop  <s.pop@samsung.com>
5235         * graphite-scop-detection.c (parameter_index_in_region): Update call to
5236         invariant_in_sese_p_rec.
5237         * graphite-sese-to-poly.c (extract_affine): Same.
5238         * sese.c (invariant_in_sese_p_rec): Pass in an extra
5239         parameter has_vdefs.
5240         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
5241         variable depends on virtual definitions in the current region.
5242         * sese.h (invariant_in_sese_p_rec): Update declaration.
5244 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5245             Sebastian Pop  <s.pop@samsung.com>
5247         * graphite-scop-detection.c (build_scops): Do not handle scops
5248         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
5249         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
5251 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
5253         * config.in: Regenerate.
5254         * configure: Regenerate.
5255         * configure.ac (CHECKING_P): Define.
5256         * system.h: Use CHECKING_P.
5258 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5260         PR ipa/67056
5261         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
5262         is negative we don't know the type.
5263         (check_stmt_for_type_change): Skip constructors of non-polymorphic
5264         types as those won't help devirutalization.
5266 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5268         * fold-const.c (operand_equal_p): Add code matching empty constructors.
5270 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
5272         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
5273         comments.
5274         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
5275         Add comments on sign of the result.
5276         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
5277         Recurse on operand #1 instead of operand #0.
5278         <CEIL_MOD_EXPR>: Do not recurse.
5279         <ROUND_MOD_EXPR>: Likewise.
5281 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5283         * cfgrtl.c (pass_free_cfg::execute): Adjust.
5284         * final.c (dbr_sequence_length): Always define.
5285         (shorten_branches): Adjust.
5286         * genattr-common.c (main): Always define DELAY_SLOTS.
5287         * genattr.c (main): Unconditionally declare functions and define
5288         macros related to delay slots.
5289         * genattrtab.c (write_eligible_delay): Adjust.
5290         (main): Always write out delay slot functions.
5291         * opts.c (default_options_table): Adjust.
5292         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
5293         (redirect_with_delay_list_safe_p): Likewise.
5294         (fill_simple_delay_slots): Likewise.
5295         (fill_slots_from_thread): Likewise.
5296         (make_return_insns): Likewise.
5297         (dbr_schedule): Likewise.
5298         (rest_of_handle_delay_slots): Likewise.
5299         (pass_delay_slots::gate): Likewise.
5300         * toplev.c (process_options): Likewise.
5302 2015-10-21  Richard Henderson  <rth@redhat.com>
5304         * targhooks.c (default_addr_space_pointer_mode): Remove check
5305         for generic address space.
5306         (default_addr_space_address_mode): Likewise.
5307         (default_addr_space_valid_pointer_mode): Likewise.
5308         (default_addr_space_legitimate_address_p): Likewise.
5309         (default_addr_space_legitimize_address): Likewise.
5310         * target.def (addr_space.pointer_mode): Update documentation
5311         of default behavior.
5312         (addr_space.address_mode): Likewise.
5313         * tm.texi: Update.
5315         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
5316         address spaces.
5318 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5320         * builtins.c (fold_builtin_cabs): Delete.
5321         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
5322         * match.pd: Add rules previously handled by fold_builtin_cabs.
5324 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5326         * fold-const.h (fold_strip_sign_ops): Delete.
5327         * fold-const.c (fold_strip_sign_ops): Likewise.
5328         (fold_unary_loc, fold_binary_loc): Remove calls to it.
5329         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
5330         (fold_builtin_ccos): Delete.
5331         (fold_builtin_pow): Don't call fold_strip_sign_ops.
5332         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
5333         Remove fndecl argument.
5334         (fold_builtin_1): Update calls accordingly.  Handle constant
5335         cos, cosh, ccos and ccosh here.
5337 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5339         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
5340         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
5341         * common.opt (fssa-backprop): New option.
5342         * fold-const.h (negate_mathfn_p): Declare.
5343         * fold-const.c (negate_mathfn_p): Make public.
5344         * timevar.def (TV_TREE_BACKPROP): New.
5345         * tree-pass.h (make_pass_backprop): Declare.
5346         * passes.def (pass_backprop): Add.
5347         * gimple-ssa-backprop.c: New file.
5349 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5350             Sebastian Pop  <s.pop@samsung.com>
5352         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
5353         Do not call create_empty_if_region_on_edge when cond_expr is true.
5354         (translate_isl_ast_node_for): Check whether a guard has been generated.
5356 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5358         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
5359         (operator=): Removed.
5360         (dr_info): Make alias_set number the last argument with default
5361         value of invalid_alias_set.
5362         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
5363         of dr_info.
5364         (rewrite_reductions_out_of_ssa): Iterate only through the
5365         basic blocks which are inside region.
5366         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
5367         * sese.h (struct sese_l): Removed assignment operator.
5368         (split_region_for_bb): Removed dead code.
5370 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5372         * graphite-poly.h (struct dr_info): Removed conversion constructor.
5373         (struct scop): Renamed scop::region to scop::scop_info
5374         (scop_set_region): Same.
5375         (SCOP_REGION): Removed
5376         (SCOP_CONTEXT): Removed.
5377         (POLY_SCOP_P): Removed.
5378         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
5379         Rename scop->region to scop->scop_info.
5380         (add_parameters_to_ivs_params): Same.
5381         (graphite_regenerate_ast_isl): Same.
5382         * graphite-poly.c (new_scop): Same.
5383         (free_scop): Same.
5384         (print_scop_params): Same.
5385         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
5386         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
5387         (dot_all_scops_1): Rename scop->region to scop->scop_info.
5388         (scop_detection::nb_pbbs_in_loops): Same.
5389         (find_scop_parameters): Same.
5390         (try_generate_gimple_bb): Same.
5391         (gather_bbs::before_dom_children): Same.
5392         (gather_bbs::after_dom_children): Same.
5393         (build_scops): Same.
5394         * graphite-sese-to-poly.c (build_scop_scattering): Same.
5395         (extract_affine_chrec): Same.
5396         (extract_affine): Same.
5397         (set_scop_parameter_dim): Same.
5398         (build_loop_iteration_domains): Same.
5399         (create_pw_aff_from_tree): Same.
5400         (add_param_constraints): Same.
5401         (build_scop_iteration_domain): Same.
5402         (build_scop_drs): Same.
5403         (analyze_drs_in_stmts): Same.
5404         (insert_out_of_ssa_copy_on_edge): Same.
5405         (rewrite_close_phi_out_of_ssa):Same.
5406         (rewrite_reductions_out_of_ssa):Same.
5407         (handle_scalar_deps_crossing_scop_limits):Same.
5408         (rewrite_cross_bb_scalar_deps):Same.
5409         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
5410         (build_poly_scop):Same.
5411         (build_alias_set): Use pointer to dr_info.
5412         * graphite.c (print_graphite_scop_statistics):
5413         (graphite_transform_loops):
5414         * sese.h (struct sese_l): Remove conversion constructor.
5416 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5418         PR middle-end/67966
5419         * tree.c (verify_type): Verify that TYPE_MODE match
5420         between TYPE_CANONICAL and type.
5421         * expr.c (store_expr_with_bounds): Revert my previous change.
5422         * expmed.c (store_bit_field_1): Revert prevoius change.
5423         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
5424         to match for all types.
5426 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
5428         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
5429         nesting.
5431 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
5433         * doc/tm.texi: Regenerated.
5434         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
5435         * stor-layout.c (layout_type): Use mode to get vector mask size.
5436         * target.def (get_mask_mode): New.
5437         * targhooks.c (default_get_mask_mode): New.
5438         * targhooks.h (default_get_mask_mode): New.
5439         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
5440         for boolean vector.
5441         * tree.c (MAX_BOOL_CACHED_PREC): New.
5442         (nonstandard_boolean_type_cache): New.
5443         (build_nonstandard_boolean_type): New.
5444         (make_vector_type): Vector mask has no canonical type.
5445         (build_truth_vector_type): New.
5446         (build_same_sized_truth_vector_type): New.
5447         (truth_type_for): Support vector masks.
5448         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
5449         (build_truth_vector_type): New.
5450         (build_same_sized_truth_vector_type): New.
5451         (build_nonstandard_boolean_type): New.
5452         * tree-cfg.c (verify_gimple_comparison) Require boolean
5453         vector type for vector comparison.
5454         (verify_gimple_assign_ternary): Likewise.
5455         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
5456         condition operand.
5457         * tree-vect-stmts.c (vectorizable_condition): Use boolean
5458         vector type for vector comparison.
5459         * tree-vect-generic.c (elem_op_func): Add new operand to hold
5460         vector type.
5461         (do_unop): Adjust to modified function type.
5462         (do_binop): Likewise.
5463         (do_plus_minus): Likewise.
5464         (do_negate); Likewise.
5465         (expand_vector_piecewise): Likewise.
5466         (do_cond): Likewise.
5467         (do_compare): Use comparison instead of condition.
5468         (expand_vector_divmod): Use boolean vector type for comparison.
5469         (expand_vector_operations_1): Skip scalar mask operations.
5471 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
5473         * omp-low.c (simd_clone_create): Set in_other_partition
5474         for created clones.
5476 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
5478         * doc/extend.exp (Local Register Variables): Rewrite.
5480 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5482         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
5483         and x*x in cases where the operands are sign ops.  Extend these
5484         rules to handle copysign as a sign op (including for cos, cosh
5485         and pow, which already treated negate and abs as sign ops).
5487 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
5489         PR target/68018
5490         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
5491         for 64-bit MS_ABI targets also when default incoming stack boundary
5492         is overriden.
5494 2015-10-21  Richard Biener  <rguenther@suse.de>
5496         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
5497         cond stmts, enhanced and split out from ...
5498         (vn_phi_eq): ... here.
5500 2015-10-21  Richard Biener  <rguenther@suse.de>
5502         PR middle-end/68031
5503         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
5504         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
5505         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
5506         make sure they are not registered for update.
5508 2015-10-21  Richard Biener  <rguenther@suse.de>
5510         PR tree-optimization/68026
5511         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
5512         unsigned VARYING values.
5514 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
5516         * asan.c (asan_emit_stack_protection): Don't pass local stack to
5517         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
5518         NULL and use local stack than.
5519         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
5520         in addition to __asan_init.
5521         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
5522         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
5523         * asan.h (asan_intercepted_p): Handle new string builtins.
5524         * ubsan.c (ubsan_use_new_style_p): New function.
5525         (ubsan_instrument_float_cast): If location is unknown, assign
5526         input_location to loc. Propagate loc to ubsan_create_data if
5527         ubsan_use_new_style_p returned true.
5529 2015-10-21  Jeff Law  <law@redhat.com>
5531         * Makefile.in (OBJS): Remove sched-vis.c
5532         * sched-vis.c: Removed.  Code moved into...
5533         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
5534         * rtl.h: Remove prototypes for functions now living in print-rtl.c
5535         * print-rtl.h Add prototypes for new functions in print-rtl.c.
5536         * auto-inc-dec.c: Include print-rtl.h
5537         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
5538         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
5540         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
5541         ATTRIBUTE_UNUSED.
5543 2015-10-21  Richard Biener  <rguenther@suse.de>
5544             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5546         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
5547         to match.pd.
5548         Move (a * (1 << b)) is (a << b) to match.pd.
5549         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
5550         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
5551         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
5553         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
5554         New simplifier.
5555         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
5556         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
5557         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
5558         : New simplifier.
5559         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
5560         New simplifier.
5561         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
5563 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
5564             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5565             Alan Modra  <amodra@gmail.com>
5567         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
5568         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
5569         (LINK_SPEC): Add %(link_secure_plt).
5570         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
5571         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
5573 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
5574             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5576         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
5577         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
5579 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5581         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
5582         New function.
5583         (fusion_load_store): Use it.
5584         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
5585         ldp and stp in VD modes.
5586         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
5587         (store_pair<mode>, VD): Likewise.
5589 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
5591         PR rtl-optimization/67609
5592         * lra-splill.c (lra_final_code_change): Don't remove all
5593         sub-registers.
5595 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5597         * simplify-rtx.c (simplify_binary_operation): If either operand was
5598         a constant pool reference use them if all other simplifications failed.
5600 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5602         * config/aarch64/aarch64.md
5603         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
5604         * config/aarch64/aarch64-simd.md
5605         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
5606         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
5607         (aarch64_fpconst_pow_of_2): New function.
5608         (aarch64_vec_fpconst_pow_of_2): Likewise.
5609         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
5610         prototype.
5611         (aarch64_vec_fpconst_pow_of_2): Likewise.
5612         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
5613         (aarch64_fp_vec_pow2): Likewise.
5615 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
5617         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
5618         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
5619         * config/alpha/alpha.c (alpha_function_arg_advance): Update
5620         ALPHA_ARG_SIZE usage.
5621         (alpha_arg_partial_bytes): Ditto.
5623 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5625         PR target/66810
5626         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
5627         error_mark_node decls.
5629 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5631         PR target/67963
5632         PR target/67985
5633         * common/config/i386/i386-common.c (ix86_handle_option): Remove
5634         OPT_miamcu handling.
5635         * config/i386/i386.c (PTA_NO_80387): New macro.
5636         (processor_alias_table): Add PTA_NO_80387 to lakemont.
5637         (ix86_option_override_internal): Update MASK_80387 from
5638         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
5639         SSE math only if 80387 is supported.  Don't change
5640         MASK_FLOAT_RETURNS.
5641         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
5642         80387 is supported.
5643         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
5644         if TARGET_80387 is true and TARGET_IAMCU is false.
5645         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
5646         is true and TARGET_IAMCU_P is false.
5648 2015-10-20  Richard Biener  <rguenther@suse.de>
5650         PR tree-optimization/68017
5651         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5653 2015-10-20  Martin Liska  <mliska@suse.cz>
5655         * cgraphclones.c (cgraph_node::create_virtual_clone):
5656         Verify cgraph_node.local.versionable instead of calling
5657         tree_versionable_function_p.
5658         * ipa-cp.c (determine_versionability): Save the information
5659         to ipa_node_params summary.
5660         (ipcp_versionable_function_p): Use it.
5661         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
5662         (ipcp_generate_summary): Do not compute cgraph_node
5663         versionability.
5664         * ipa-inline-analysis.c (inline_generate_summary): Compute
5665         versionability for all cgraph nodes.
5666         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
5667         ipa_node_params::versionability.
5668         * ipa-prop.h (struct ipa_node_params): Declare it.
5670 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5672         PR other/67868
5673         * varasm.c (assemble_variable): Move special vtv handling to..
5674         (handle_vtv_comdat_sections): .. here. New function.
5675         (output_object_block): Handle vtv sections.
5677 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5679         PR target/66912
5680         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
5682 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
5684         * doc/extend.texi: Update documentation WRT inline functions.
5686 2015-10-20  Alan Modra  <amodra@gmail.com>
5688         PR go/66870
5689         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
5690         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5691         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5693 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
5695         PR rtl-optimization/66790
5696         * df.h (DF_MIR): New macro.
5697         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
5698         (DF_MIR_INFO_BB): New macro.
5699         (DF_MIR_IN, DF_MIR_OUT): New macros.
5700         (struct df_mir_bb_info): New.
5701         (df_mir): New macro.
5702         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
5703         declarations.
5704         (df_mir_get_bb_info): New.
5705         * df-problems.c (struct df_mir_problem_data): New.
5706         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
5707         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
5708         df_mir_confluence_0, df_mir_confluence_n,
5709         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
5710         df_mir_bottom_dump, df_mir_verify_solution_start,
5711         df_mir_verify_solution_end): New.
5712         (problem_MIR): New.
5713         (df_mir_add_problem, df_mir_simulate_one_insn): New.
5714         * timevar.def (TV_DF_MIR): New.
5715         * ree.c: Include bitmap.h
5716         (add_removable_extension): Add an INIT_REGS parameter.  Use it
5717         to skip zero-extensions that may get an uninitialized register.
5718         (find_removable_extensions): Compute must-initialized registers
5719         using the MIR dataflow problem. Update the call to
5720         add_removable_extension.
5721         (find_and_remove_re): Call df_mir_add_problem.
5723 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
5725         * common/config/mn10300/mn10300-common.c
5726         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
5727         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
5729 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
5731         * doc/extend.texi (Explicit Register Variables): Simplify and
5732         avoid unnecessary and confusion abbreviations.  Update cross
5733         references.
5734         doc/implement-c.tex: Update cross reference.
5736 2015-10-19  Jeff Law  <law@redhat.com>
5738         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
5739         that create irreducible loops unless the path elimiantes a multiway
5740         branch.
5742 2015-10-19  Richard Biener  <rguenther@suse.de>
5744         PR tree-optimization/67975
5745         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
5746         * tree-cfg.c (extract_true_false_controlled_edges): Split out
5747         core worker from ...
5748         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
5749         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
5750         instead of block number for PHIs with two or one args.
5751         (vn_phi_eq): Compare edge predicates of PHIs that are in different
5752         blocks.
5754 2015-10-19  Richard Biener  <rguenther@suse.de>
5756         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
5757         (gimple_stmt_nonnegative_warnv_p): Use it.
5758         * match.pd (CPROJ): New operator list.
5759         (cproj (complex ...)): Move simplifications from ...
5760         * builtins.c (fold_builtin_cproj): ... here.
5762 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
5764         * config/i386/i386.c (ix86_expand_vector_move): Use
5765         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
5766         alignment.
5768 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
5770         * doc/invoke.texi: Replace @optindex with @opindex.
5772 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
5774         PR target/67995
5775         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
5776         arch= is set,  clear all bits in x_ix86_isa_flags, except for
5777         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
5779 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
5781         PR middle-end/68002
5782         * common.opt (fkeep-static-functions): New option.
5783         * doc/invoke.texi: Document it.
5784         * cgraphunit.c (cgraph_node::finalize_function): Use it.
5786 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5788         * sched-int.h (struct autopref_multipass_data_): Remove offset
5789         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
5790         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
5791         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
5792         (autopref_rank_data): New function.
5793         (autopref_rank_for_schedule): Use it.
5794         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
5796 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
5798         PR other/65800
5799         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
5801 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5803         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
5804         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
5805         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
5806         (STANDARD_STARTFILE_PREFIX_1): New.
5807         (STANDARD_STARTFILE_PREFIX_2): New.
5809 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5811         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
5812         (darwin_driver_init): Note a version-min when provided on the c/l.
5813         * config/darwin.h (%darwin_minversion): Remove.
5814         * config/i386/darwin.h: Likewise.
5815         * config/rs6000/darwin.h: Likewise.
5816         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
5817         rather than an arbitrary constant.
5819 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5821         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
5822         PPC, detect conflicts between -arch and multilib settings.  Detect
5823         and warn about conflicts between multiple -arch definitions.
5825 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5827         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
5829 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5831         * lra-constraints.c (add_next_usage_insn): Change argument type
5832         from rtx to rtx_insn *.
5834 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
5836         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
5837         for Lakemont.
5839 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
5841         * config/tilepro/gen-mul-tables.cc: Adjust include files.
5842         * config/tilegx/mul-tables.c: Regenerate.
5843         * config/tilepro/mul-tables.c: Regenerate.
5845         * config/tilegx/tilegx-c.c: Adjust include files.
5846         * config/tilegx/tilegx.c: Likewise.
5847         * config/tilepro/tilepro-c.c: Likewise.
5848         * config/tilepro/tilepro.c: Likewise.
5849         * config/aarch64/aarch64-builtins.c: Likewise.
5850         * config/aarch64/aarch64.c: Likewise.
5851         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5852         * config/alpha/alpha.c: Likewise.
5853         * config/arc/arc.c: Likewise.
5854         * config/arm/aarch-common.c: Likewise.
5855         * config/arm/arm-builtins.c: Likewise.
5856         * config/arm/arm-c.c: Likewise.
5857         * config/arm/arm.c: Likewise.
5858         * config/avr/avr-c.c: Likewise.
5859         * config/avr/avr-devices.c: Likewise.
5860         * config/avr/avr-log.c: Likewise.
5861         * config/avr/avr.c: Likewise.
5862         * config/bfin/bfin.c: Likewise.
5863         * config/c6x/c6x.c: Likewise.
5864         * config/cr16/cr16.c: Likewise.
5865         * config/cris/cris.c: Likewise.
5866         * config/darwin-c.c: Likewise.
5867         * config/darwin-driver.c: Likewise.
5868         * config/darwin.c: Likewise.
5869         * config/default-c.c: Likewise.
5870         * config/epiphany/epiphany.c: Likewise.
5871         * config/epiphany/mode-switch-use.c: Likewise.
5872         * config/epiphany/resolve-sw-modes.c: Likewise.
5873         * config/fr30/fr30.c: Likewise.
5874         * config/frv/frv.c: Likewise.
5875         * config/ft32/ft32.c: Likewise.
5876         * config/glibc-c.c: Likewise.
5877         * config/h8300/h8300.c: Likewise.
5878         * config/i386/host-cygwin.c: Likewise.
5879         * config/i386/host-mingw32.c: Likewise.
5880         * config/i386/i386-c.c: Likewise.
5881         * config/i386/i386.c: Likewise.
5882         * config/i386/msformat-c.c: Likewise.
5883         * config/i386/winnt-cxx.c: Likewise.
5884         * config/i386/winnt-stubs.c: Likewise.
5885         * config/i386/winnt.c: Likewise.
5886         * config/ia64/ia64-c.c: Likewise.
5887         * config/ia64/ia64.c: Likewise.
5888         * config/iq2000/iq2000.c: Likewise.
5889         * config/lm32/lm32.c: Likewise.
5890         * config/m32c/m32c-pragma.c: Likewise.
5891         * config/m32c/m32c.c: Likewise.
5892         * config/m32r/m32r.c: Likewise.
5893         * config/mcore/mcore.c: Likewise.
5894         * config/mep/mep-pragma.c: Likewise.
5895         * config/mep/mep.c: Likewise.
5896         * config/microblaze/microblaze-c.c: Likewise.
5897         * config/microblaze/microblaze.c: Likewise.
5898         * config/mips/mips-tables.opt
5899         * config/mips/mips.c: Likewise.
5900         * config/mmix/mmix.c: Likewise.
5901         * config/mn10300/mn10300.c: Likewise.
5902         * config/moxie/moxie.c: Likewise.
5903         * config/msp430/msp430-c.c: Likewise.
5904         * config/msp430/msp430.c: Likewise.
5905         * config/nds32/nds32-cost.c: Likewise.
5906         * config/nds32/nds32-fp-as-gp.c: Likewise.
5907         * config/nds32/nds32-intrinsic.c: Likewise.
5908         * config/nds32/nds32-isr.c: Likewise.
5909         * config/nds32/nds32-md-auxiliary.c: Likewise.
5910         * config/nds32/nds32-memory-manipulation.c: Likewise.
5911         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5912         * config/nds32/nds32-predicates.c: Likewise.
5913         * config/nds32/nds32.c: Likewise.
5914         * config/nios2/nios2.c: Likewise.
5915         * config/nvptx/mkoffload.c: Likewise.
5916         * config/nvptx/nvptx.c: Likewise.
5917         * config/pa/pa.c: Likewise.
5918         * config/pdp11/pdp11.c: Likewise.
5919         * config/rl78/rl78-c.c: Likewise.
5920         * config/rl78/rl78.c: Likewise.
5921         * config/rs6000/host-darwin.c: Likewise.
5922         * config/rs6000/rs6000-c.c: Likewise.
5923         * config/rs6000/rs6000-linux.c: Likewise.
5924         * config/rs6000/rs6000.c: Likewise.
5925         * config/rx/rx.c: Likewise.
5926         * config/s390/s390-c.c: Likewise.
5927         * config/s390/s390.c: Likewise.
5928         * config/sh/sh-c.c: Likewise.
5929         * config/sh/sh-mem.cc: Likewise.
5930         * config/sh/sh.c: Likewise.
5931         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5932         * config/sh/sh_treg_combine.cc: Likewise.
5933         * config/sol2-c.c: Likewise.
5934         * config/sol2-cxx.c: Likewise.
5935         * config/sol2-stubs.c: Likewise.
5936         * config/sol2.c: Likewise.
5937         * config/sparc/sparc-c.c: Likewise.
5938         * config/sparc/sparc.c: Likewise.
5939         * config/spu/spu-c.c: Likewise.
5940         * config/spu/spu.c: Likewise.
5941         * config/stormy16/stormy16.c: Likewise.
5942         * config/v850/v850-c.c: Likewise.
5943         * config/v850/v850.c: Likewise.
5944         * config/vax/vax.c: Likewise.
5945         * config/visium/visium.c: Likewise.
5946         * config/vms/vms-c.c: Likewise.
5947         * config/vms/vms.c: Likewise.
5948         * config/vxworks.c: Likewise.
5949         * config/winnt-c.c: Likewise.
5950         * config/xtensa/xtensa.c: Likewise.
5952 2015-10-16  Christian Bruel  <christian.bruel@st.com>
5954         PR target/67745
5955         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
5956         (FUNCTION_BOUNDARY_P): New macro:
5957         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
5958         New hook.
5959         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
5960         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
5961         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
5962         * function.c (allocate_struct_function): Call
5963         relayout_function hook.
5964         * passes.c (rest_of_decl_compilation): Likewise.
5966 2015-10-16  Christian Bruel  <christian.bruel@st.com>
5968         PR target/67745
5969         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
5970         * config/arm/arm.c (arm_option_override_internal): Call
5971         arm_override_options_after_change_1.
5972         (arm_override_options_after_change): New function.
5973         (arm_override_options_after_change_1): Likewise.
5974         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
5976 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5978         Revert:
5979         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5980         empty constructors.
5982 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5984         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
5985         argument is an ADDR_EXPR.
5987 2015-10-16  Richard Biener  <rguenther@suse.de>
5989         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
5990         and get rid of force_gimple_operand_gsi.
5991         (gimple_fold_builtin_memory_chk): Likewise.
5992         (gimple_fold_builtin_stxcpy_chk): Likewise.
5993         (rewrite_to_defined_overflow): Likewise.
5994         (gimple_convert_to_ptrofftype): New function.
5995         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
5997 2015-10-16  Richard Biener  <rguenther@suse.de>
5999         * tree-nested.h (build_addr): Adjust prototype.
6000         * tree-nested.c (build_addr): Remove context argument and use
6001         mark_addressable.
6002         (get_static_chain): Adjust calls to build_addr.
6003         (convert_nl_goto_reference): Likewise.
6004         (convert_tramp_reference_op): Likewise.
6005         (finalize_nesting_tree_1): Likewise.
6006         * value-prof.c (gimple_ic): Likewise.
6007         * gimple-low.c (lower_builtin_setjmp): Likewise.
6008         * tree-parloops.c (take_address_of): Likewise.
6009         (create_call_for_reduction_1): Likewise.
6010         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
6011         (gimple_gen_ic_func_profiler): Likewise.
6013 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6015         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
6016         empty constructors.
6018 2015-10-16  Michael Collison  <michael.collison@linaro.org>
6019             Andrew Pinski <andrew.pinski@caviumnetworks.com>
6021         * match.pd ((x < y) && (x < z) -> x < min (y,z),
6022         (x > y) and (x > z) -> x > max (y,z))
6024 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
6025             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6027         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
6028         (DYNAMIC_LINKER): Renamed to ...
6029         (GLIBC_DYNAMIC_LINKER): This.
6030         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
6032 2015-10-15  Marek Polacek  <polacek@redhat.com>
6034         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
6035         gimple_call_builtin instead of is_gimple_call.
6037 2015-10-15  Richard Biener  <rguenther@suse.de>
6039         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
6041 2015-10-15  Richard Biener  <rguenther@suse.de>
6043         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
6044         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
6045         * tree-vect-loop.c (get_initial_def_for_induction): Drop
6046         use of force_gimple_operand in favor of gimple_build.
6047         Use vect_get_new_ssa_name.
6048         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
6049         (vectorizable_mask_load_store): Likewise.
6050         (vectorizable_call): Likewise.
6051         (vectorizable_store): Likewise.
6052         (vectorizable_load): Likewise.
6053         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
6055 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
6057         PR tree-optimization/67945
6058         * tree-pass.h (PROP_gimple_opt_math): New property flag.
6059         * generic-match-head.c (canonicalize_math_p): New function.
6060         * gimple-match-head.c: Include tree-pass.h.
6061         (canonicalize_math_p): New function.
6062         * match.pd: Group math built-in rules into simplifications
6063         and canonicalizations.  Guard the latter with canonicalize_math_p.
6064         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
6065         PROP_gimple_opt_math property.
6067 2015-10-15  Marek Polacek  <polacek@redhat.com>
6069         PR tree-optimization/67953
6070         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
6072 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
6074         * config.gcc: Recognize "." in architecture base name for AArch64.
6076 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
6078         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
6079         ROUND_UP macro.
6080         * config/mips/mips.c (mips_setup_incoming_varargs): Use
6081         ROUND_DOWN to calculate off.
6082         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
6083         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
6084         rounded_size.
6086 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
6088         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
6090 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
6091             Torvald Riegel  <triegel@redhat.com>
6093         PR target/67281
6094         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
6095         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6096         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
6097         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
6098         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
6099         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6100         trechkpt, treclaim, tsr, ttest): New define_expands.
6101         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6102         __TM_FENCE__ for htm.
6103         * doc/extend.texi: Update documentation for htm builtins.
6105 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
6107         PR target/67967
6108         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
6109         REG_CFA_EXPRESSION to aligned SSE stores.
6111 2015-10-14  Jeff Law  <law@redhat.com>
6113         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
6114         num_threaded_edges for successful FSM threads too.
6116 2015-10-14  Richard Biener  <rguenther@suse.de>
6118         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
6119         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
6120         (vect_get_vec_def_for_operand): Remove unused parameter.
6121         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
6122         (vect_create_epilog_for_reduction): Likewise.
6123         (vectorizable_reduction): Likewise.
6124         (vectorizable_live_operation): Likewise.
6125         * tree-vect-patterns.c (type_conversion_p): Likewise.
6126         (vect_recog_vector_vector_shift_pattern): Likewise.
6127         (check_bool_pattern): Likewise.
6128         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6129         (vect_analyze_slp_cost_1): Likewise.
6130         * tree-vect-stmts.c (process_use): Likewise.
6131         (vect_get_vec_def_for_operand): Do not handle reductions.
6132         (vect_get_vec_defs): Adjust.
6133         (vectorizable_mask_load_store): Likewise.
6134         (vectorizable_call): Likewise.
6135         (vectorizable_simd_clone_call): Likewise.
6136         (vect_get_loop_based_defs): Likewise.
6137         (vectorizable_conversion): Likewise.
6138         (vectorizable_assignment): Likewise.
6139         (vectorizable_shift): Likewise.
6140         (vectorizable_operation): Likewise.
6141         (vectorizable_store): Likewise.
6142         (vectorizable_load): Likewise.
6143         (vect_is_simple_cond): Likewise.
6144         (vectorizable_condition): Likewise.
6145         (vect_is_simple_use): Remove unused parameters.
6146         (vect_is_simple_use_1): Adjust and rename.
6148 2015-10-14  Richard Biener  <rguenther@suse.de>
6150         PR tree-optimization/67915
6151         * match.pd: Handle comparisons of addresses of STRING_CSTs.
6152         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
6153         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
6154         stmt folding in favor of GIMPLE one.
6156 2015-10-14  Marek Polacek  <polacek@redhat.com>
6158         PR tree-optimization/67815
6159         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
6160         (reassociate_bb): Call it.
6162 2015-10-14  Richard Biener  <rguenther@suse.de>
6164         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6165         Reset info at start.
6166         (vect_analyze_group_access_1): Add debug print.
6167         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
6168         (vect_compute_single_scalar_iteration_cost): ... to this.
6169         (vect_analyze_loop_2): Adjust.
6170         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
6171         * tree-vectorizer.h: ... here.
6172         (add_stmt_info_to_vec): Remove.
6173         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
6175 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6177         * targhooks.c (default_target_option_pragma_parse): Do not warn if
6178         called on behalf of "#pragma GCC pop_options".
6180 2015-10-14  Tom de Vries  <tom@codesourcery.com>
6182         * cfganal.c (verify_no_unreachable_blocks): New function.
6183         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
6184         verify_no_unreachable_blocks.
6185         cfganal.h (verify_no_unreachable_blocks): Declare.
6187 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
6189         * common.opt: Add flag_checking.
6190         * system.h (CHECKING_P): Define.
6192 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
6193             Aldy Hernandez  <aldyh@redhat.com>
6194             Ilya Verbin  <ilya.verbin@intel.com>
6196         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
6197         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
6198         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
6199         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
6200         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
6201         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
6202         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
6203         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
6204         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
6205         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
6206         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
6207         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
6208         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
6209         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6210         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
6211         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6212         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6213         (struct cgraph_simd_clone_arg): Adjust comment.
6214         * coretypes.h (struct gomp_ordered): New forward decl.
6215         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
6216         set critical clauses to it.
6217         (gimple_build_omp_ordered): Return gomp_ordered * instead of
6218         gimple *.  Add CLAUSES argument, set ordered clauses to it.
6219         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
6220         GIMPLE_OMP_ORDERED.
6221         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
6222         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
6223         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
6224         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
6225         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
6226         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
6227         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
6228         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
6229         renumber
6230         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
6231         (gomp_critical): Add clauses field.
6232         (gomp_ordered): New struct.
6233         (is_a_helper <gomp_ordered *>::test): New inline.
6234         (gimple_build_omp_critical): Add CLAUSES argument.
6235         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
6236         instead of gimple *.
6237         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
6238         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
6239         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
6240         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
6241         inline functions.
6242         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
6243         (dump_gimple_omp_target): Handle enter data and exit data.
6244         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
6245         (dump_gimple_omp_critical): Print clauses.
6246         (dump_gimple_omp_ordered): New function.
6247         (dump_gimple_omp_task): Handle taskloop.
6248         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
6249         GIMPLE_OMP_ORDERED.
6250         * gimple-walk.c (walk_gimple_op): Walk clauses on
6251         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
6252         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
6253         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
6254         (struct gimplify_omp_ctx): Add loop_iter_var,
6255         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
6256         and target_firstprivatize_array_bases fields.
6257         (delete_omp_context): Release loop_iter_var.
6258         (gimplify_bind_expr): Handle ORT_NONE.
6259         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
6260         ORT_COMBINED_TARGET.
6261         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
6262         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
6263         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
6264         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
6265         ctx->target_map_scalars_firstprivate.
6266         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
6267         data sharing clauses.  For data sharing clause with VLA decl
6268         on omp target/target data don't add firstprivate for the pointer.
6269         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
6270         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
6271         the addition of ORT_COMBINED_TARGET.
6272         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
6273         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
6274         pointers as zero length array sections and
6275         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
6276         data sharing.
6277         (omp_check_private): Handle omp_member_access_dummy_var vars.
6278         (find_decl_expr): New function.
6279         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
6280         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
6281         Handle OMP_CLAUSE_GANG separately.  Handle
6282         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6283         clauses.  Diagnose linear clause on combined
6284         distribute {, parallel for} simd construct, unless it is the loop
6285         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
6286         Handle map clauses with COMPONENT_REF.  Initialize
6287         ctx->target_map_scalars_firstprivate,
6288         ctx->target_firstprivatize_array_bases and
6289         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
6290         linear clause even to target region if combined.  Remove
6291         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
6292         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
6293         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
6294         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
6295         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
6296         For linear clause on worksharing loop combined with parallel add
6297         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
6298         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
6299         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
6300         taskloop if needed.
6301         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
6302         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
6303         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
6304         GOMP_MAP_POINTER.
6305         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
6306         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
6307         in target body.  Handle removal of struct mapping if struct is not
6308         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
6309         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
6310         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
6311         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
6312         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
6313         clause appear together.  Handle
6314         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
6315         clause if it has map-type-modifier always.  Handle
6316         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6317         clauses.
6318         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
6319         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
6320         callers.
6321         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
6322         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
6323         iterators in doacross loops.
6324         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
6325         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
6326         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
6327         for the addition of ORT_COMBINED_TARGET.
6328         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
6329         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
6330         and OMP_TARGET_EXIT_DATA.
6331         (gimplify_omp_ordered): New function.
6332         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
6333         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
6334         Gimplify clauses on OMP_CRITICAL.
6335         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
6336         expand_GOMP_SIMD_ORDERED_END): New functions.
6337         * internal-fn.def (GOMP_SIMD_ORDERED_START,
6338         GOMP_SIMD_ORDERED_END): New internal functions.
6339         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
6340         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
6341         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
6342         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
6343         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
6344         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
6345         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
6346         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
6347         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
6348         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
6349         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
6350         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
6351         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
6352         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
6353         adjust type.
6354         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
6355         GOMP_target_data_41, adjust type.
6356         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
6357         GOMP_target_update_41, adjust type.
6358         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
6359         field.
6360         (struct omp_for_data): Add ordered and simd_schedule fields.
6361         (omp_member_access_dummy_var, unshare_and_remap_1,
6362         unshare_and_remap, is_taskloop_ctx): New functions.
6363         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
6364         (extract_omp_for_data): Handle taskloops and doacross loops
6365         and simd schedule modifier.
6366         (omp_adjust_chunk_size): New function.
6367         (get_ws_args_for): Use it.
6368         (lookup_sfield): Change first argument to splay_tree_key,
6369         add overload with first argument tree.
6370         (maybe_lookup_field): Likewise.
6371         (use_pointer_for_field): Handle omp_member_access_dummy_var.
6372         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
6373         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
6374         (build_outer_var_ref): Add LASTPRIVATE argument, handle
6375         taskloops and omp_member_access_dummy_var vars.
6376         (build_sender_ref): Change first argument to splay_tree_key,
6377         add overload with first argument tree.
6378         (install_var_field): For mask & 8 use &DECL_UID as key instead
6379         of the tree itself.
6380         (fixup_child_record_type): Const qualify *.omp_data_i.
6381         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
6382         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
6383         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
6384         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
6385         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
6386         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
6387         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
6388         kinds.
6389         (add_taskreg_looptemp_clauses): New function.
6390         (scan_omp_parallel): Use it.
6391         (scan_omp_task): Likewise.
6392         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6393         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
6394         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6395         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
6396         sandwiched taskloop constructs.  Type check
6397         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
6398         region.  Diagnose depend(source) or depend(sink:...) on
6399         target constructs or task/taskloop.
6400         (handle_simd_reference): Use get_name.
6401         (lower_rec_input_clauses): Likewise.  Ignore all
6402         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
6403         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
6404         before passing it to omp_clause_{default,copy}_ctor.  Handle
6405         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
6406         lastprivate_firstprivate flag for linear that needs copyin and
6407         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
6408         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
6409         on taskloop lookup decl in outer context.  Pass true to
6410         build_outer_var_ref lastprivate argument.  Handle
6411         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
6412         outside of outer taskloop for.
6413         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
6414         OMP_CLAUSE_DECL.
6415         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
6416         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
6417         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
6418         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
6419         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
6420         abstract origin.  Handle omp_member_access_dummy_var vars.
6421         (expand_parallel_call): Use expand_omp_build_assign.
6422         (expand_task_call): Handle taskloop construct expansion.  Add
6423         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
6424         integers.  Add priority argument to GOMP_task* calls.  Or in
6425         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
6426         GOMP_task call.
6427         (expand_omp_build_assign): Add prototype.  Add AFTER
6428         argument, if true emit statements after *GSI_P and continue linking.
6429         (expand_omp_taskreg): Adjust expand_task_call caller.
6430         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
6431         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
6432         zero_iter2_bb and first_zero_iter2 arguments, handle computation
6433         of counts even for ordered loops.
6434         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
6435         (expand_omp_ordered_source, expand_omp_ordered_sink,
6436         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
6437         functions.
6438         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
6439         clauses on worksharing loop.  Handle DOACROSS loop expansion.
6440         (expand_omp_for_static_nochunk): Handle linear clauses on
6441         worksharing loop.  Adjust expand_omp_for_init_counts
6442         callers.
6443         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
6444         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
6445         expand_omp_for_init_counts callers.
6446         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
6447         functions.
6448         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
6449         Handle doacross loops.
6450         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6451         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
6452         GOMP_target_{41,update_41,enter_exit_data} libcalls.
6453         (expand_omp): Don't expand ordered depend constructs here, record
6454         ord_stmt instead for later expand_omp_for_generic.
6455         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6456         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
6457         clause as stand-alone directive.
6458         (lower_omp_ordered_clauses): New function.
6459         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
6460         don't lower anything.
6461         (lower_omp_for_lastprivate): Use last _looptemp_ clause
6462         on taskloop for comparison.
6463         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
6464         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
6465         expansion for linear adjustments.
6466         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6467         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
6468         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
6469         to tree * pointing to the stmt's clauses.
6470         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
6471         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6472         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
6473         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
6474         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
6475         clauses.  Always use short kind and 8-bit align shift.
6476         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
6477         (struct lower_omp_regimplify_operands_data): New type.
6478         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
6479         New functions.
6480         (lower_omp_1): Use lower_omp_regimplify_operands instead of
6481         gimple_regimplify_operands.
6482         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6483         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
6484         clause as stand-alone directive.
6485         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
6486         (simd_clone_mangle): Mangle the various linear kinds
6487         per the new ABI.
6488         (simd_clone_adjust_argument_types): Handle
6489         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
6490         (simd_clone_init_simd_arrays): Don't do anything for uval.
6491         (simd_clone_adjust): Handle
6492         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6493         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
6494         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
6495         * omp-low.h (omp_member_access_dummy_var): New prototype.
6496         * passes.def (pass_simduid_cleanup): Schedule another copy of the
6497         pass after all optimizations.
6498         * tree.c (omp_clause_code_name): Add entries for
6499         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6500         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6501         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
6502         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
6503         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
6504         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
6505         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6506         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
6507         clauses.
6508         * tree-core.h (enum omp_clause_linear_kind): New.
6509         (struct tree_omp_clause): Change type of map_kind
6510         from unsigned char to unsigned int.  Add subcode.if_modifier
6511         and subcode.linear_kind fields.
6512         (enum omp_clause_code): Add
6513         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6514         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6515         (OMP_CLAUSE_REDUCTION): Document
6516         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6517         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
6518         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
6519         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
6520         operand.
6521         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
6522         operand.
6523         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
6524         codes.
6525         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
6526         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
6527         char.
6528         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
6529         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
6530         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
6531         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
6532         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
6533         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
6534         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
6535         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
6536         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
6537         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
6538         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
6539         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
6540         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
6541         * tree-inline.c (remap_gimple_stmt): Handle clauses on
6542         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
6543         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
6544         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
6545         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6546         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6547         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6548         (convert_local_omp_clauses): Likewise.
6549         * tree-pretty-print.c (dump_omp_clause): Handle
6550         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6551         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6552         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
6553         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
6554         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
6555         GOMP_MAP_FORCE_DEALLOC.  Handle
6556         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
6557         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
6558         and clauses on OMP_ORDERED and OMP_CRITICAL.
6559         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
6560         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
6561         (vectorize_loops): Adjust comments.
6562         (pass_simduid_cleanup::execute): Likewise.
6563         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6564         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
6565         * wide-int.h (wi::gcd): New.
6567 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
6569         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
6570         (ix86_function_arg_advance): Ditto.
6571         (ix86_function_arg): Ditto.
6572         (ix86_gimplify_va_arg): Ditto.
6573         (ix86_class_max_nregs): Ditto.
6574         (inline_memory_move_cost): Ditto.
6575         (ix86_set_reg_reg_cost): Ditto.
6576         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
6578 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
6580         PR middle-end/67912
6581         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
6583 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
6585         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
6586         ROUND_UP macro and UNITS_PER_WORD * 2.
6587         * config/sparc/sparc.c (sparc_compute_frame_size):
6588         Use ROUND_UP and ROUND_DOWN macros where applicable.
6589         (function_arg_record_value, function_arg_record_value_1)
6590         (function_arg_record_value_1): Ditto.
6591         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
6592         alignment to double-word.
6593         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
6594         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
6595         rounded_size.
6597 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
6599         * rtl.h (print_insn): Fix prototype.
6601 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6603         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
6604         -1.  Add assert that returned entry matches phi argument.
6605         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
6606         free_stmt_vec_info_vec ...
6607         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
6608         with -1.
6610 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
6612         PR tree-optimization/67909, 67947
6613         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
6614         really skip the inner loop.
6616 2015-10-13  Jeff Law  <law@redhat.com>
6618         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6619         Allow single block jump threading paths.
6621 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6623         PR tree-optimization/67476
6624         * doc/invoke.texi (@item parloops-schedule): New item.
6625         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
6626         * tree-parloops.c: Include params-enum.h.
6627         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
6629 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6631         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
6632         * params-enum.h: New file.
6633         * opts.c (handle_param): Handle case that param arg is a string.
6634         * params-list.h: Handle DEFPARAMENUM5 in params.def.
6635         * params.c (find_param): New function, factored out of ...
6636         (set_param_value): ... here.
6637         (param_string_value_p): New function.
6638         * params.h (struct param_info): Add value_names field.
6639         (find_param, param_string_value_p): Declare.
6641 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6643         PR tree-optimization/67476
6644         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
6646 2015-10-13  Richard Biener  <rguenther@suse.de>
6648         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
6649         the data dependence vector.
6650         (vect_peeling_hash_insert): Get the peeling hash table as argument.
6651         (vect_peeling_hash_get_lowest_cost): Likewise.
6652         (vect_enhance_data_refs_alignment): Adjust.
6653         (struct _vect_peel_info, struct _vect_peel_extended_info,
6654         struct peel_info_hasher): Move from ...
6655         * tree-vectorizer.h: ... here.
6656         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
6657         (LOOP_VINFO_PEELING_HTAB): Likewise.
6658         (struct _loop_vec_info): Remove min_profitable_iters and
6659         peeling_htab members.
6660         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
6661         here.
6662         (destroy_loop_vec_info): Adjust.
6663         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
6664         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
6665         to estimate alias versioning cost.
6666         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
6668 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
6670         * real.h (real_isinteger): Declare.
6671         * real.c (real_isinteger): New function.
6672         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
6673         if y is an even integer.
6675 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6677         revert:
6678         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6679         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6680         counts when these are more informative.
6682 2015-10-12  Jeff Law  <law@redhat.com>
6684         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
6685         (fsm_find_control_stmt_paths): Change name of first argument to
6686         more accurately relfect what it really is.  Handle simplification
6687         of GIMPLE_COND after finding a thread path for NAME.
6688         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
6689         nontrivial conditions to be handled by FSM threader.
6690         (thread_through_normal_block): Extract the name to looup via
6691         FSM threader from COND_EXPR.
6693         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
6694         restriction that traced SSA_NAME is a user variable.
6696 2015-10-12  Tom de Vries  <tom@codesourcery.com>
6698         PR tree-optimization/67476
6699         * omp-low.c (expand_omp_for_generic): Add missing phis.
6701 2015-10-12  Tom de Vries  <tom@codesourcery.com>
6703         PR tree-optimization/67476
6704         * omp-low.c (expand_omp_for_generic): Handle simple latch.
6706 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
6708         * config/aarch64/aarch64-simd-builtins.def: Update builtins
6709         tables: add tbl3 and tbx4.
6710         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
6711         (aarch64_tbx4v8qi): New.
6712         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
6713         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
6714         Rewrite using builtin functions.
6715         * config/aarch64/iterators.md (UNSPEC_TBX): New.
6717 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
6719         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
6720         ROUND_UP macro.
6721         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6722         Use ROUND_UP and ROUND_DOWN macros where applicable.
6723         (rs6000_darwin64_record_arg_flush): Ditto.
6724         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
6725         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
6726         rounded_size.
6728 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
6730         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
6731         (AARCH64_ROUND_DOWN): Ditto.
6732         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
6734 2015-10-12  Richard Biener  <rguenther@suse.de>
6736         PR ipa/67783
6737         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
6738         code that analyzes IVs on each stmt but in a cheaper way avoiding
6739         quadratic behavior.
6741 2015-10-12  Nick Clifton  <nickc@redhat.com>
6743         * config/msp430/msp430.c (msp430_mcu_names): Rename to
6744         msp430_mcu_data, add fields for ISA and hardware multiply
6745         support.  Import latest data from the devices.csv file.
6746         (msp430_override_option): Use the data from the new array.
6747         (msp430_use_f5_series_hwmult): Likewise.
6748         (use_32bit_hwmult): Likewise.
6749         (msp430_no_hwmult): Likewise.
6750         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
6751         MCU names.
6752         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
6753         not recognised then no hardware multiply support is assumed and
6754         that only the MSP430 ISA is allowed.
6756 2015-10-12  Richard Biener  <rguenther@suse.de>
6758         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
6759         related code ...
6760         (vect_analyze_loop_2): ... here.
6762 2015-10-11  Jason Merrill  <jason@redhat.com>
6764         PR c++/67557
6765         * expr.c (store_field): Call store_constructor directly when
6766         storing a CONSTRUCTOR into a target smaller than its type.
6767         Guard against unsafe bitwise copy.
6769 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6771         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6772         counts when these are more informative.
6774 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6776         * tree-profile.c (tree_profiling): Do not clear
6777         pure/const when not instrumenting.
6778         (pass tree_profile): Add dump of symtab.
6780 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6782         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
6783         addresses.
6784         (fold_addr_of_array_ref_difference): Likewise.
6786 2015-10-11  Jeff Law  <law@redhat.com>
6788         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
6789         tree-ssa-threadbackward.c.
6790         (fsm_find_control_statement_thread_paths): Likewise.
6791         (thread_through_normal_block): Break out FSM bits and move them
6792         into a new function in tree-ssa-threadbackward.c.  Call new function
6793         instead.
6794         Minimize header file usage.
6795         * tree-ssa-threadbackward.h: New file.
6796         * tree-ssa-threadbackward.c: Likewise.
6797         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
6799 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
6801         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
6803 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
6805         PR rtl-optimization/67864
6806         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
6807         fallthrough edges for conditional jumps.  Don't sort candidate
6808         edges if not optimizing for speed.
6810 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6812         * defaults.h (REVERSE_CONDITION): New default definition.
6813         * jump.c (reversed_comparison_code_parts): Adjust.
6815 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6817         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
6818         check HARD_FRAME_POINTER_IS_ARG_POINTER.
6820 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6822         * defaults.h (FRAME_ADDR_RTX): New default definition.
6823         * builtins.c (expand_builtin_return_addr): Adjust.
6825 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6827         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
6828         * builtins.c (expand_builtin_return_addr): Adjust.
6830 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6832         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
6833         * builtins.c (expand_builtin_return_addr): Adjust.
6834         * doc/tm.texi: Likewise.
6835         * doc/tm.texi.in: Likewise.
6836         * except.c (expand_builtin_unwind_init): Likewise.
6838 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6840         * builtins.c (expand_builtin_return_addr): Adjust.
6841         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
6843 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
6845         * tree.c (type_with_interoperable_signedness): New.
6846         (gimple_canonical_types_compatible_p): Use it.
6847         * tree.h (type_with_interoperable_signedness): Declare
6849 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
6851         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
6852         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
6853         when OEP_ADDRESS_OF is se.
6855 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
6856             Sebastian Pop  <s.pop@samsung.com>
6858         * graphite-dependences.c (scop_get_dependences): Add dump of the
6859         data dependence graph.
6860         * graphite-poly.c (print_isl_union_map): New.
6861         (debug_isl_union_map): New.
6862         * graphite-poly.h (print_isl_union_map): Declare.
6863         (debug_isl_union_map): Declare.
6865 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
6866             Sebastian Pop  <s.pop@samsung.com>
6868         * graphite-poly.c (print_iteration_domain): Remove verbosity.
6869         Remove OpenScop formatting.
6870         (print_iteration_domains): Same.
6871         (debug_iteration_domain): Same.
6872         (debug_iteration_domains): Same.
6873         (print_pdr): Same.
6874         (debug_pdr): Same.
6875         (dump_gbb_cases): Same.
6876         (dump_gbb_conditions): Same.
6877         (print_pdrs): Same.
6878         (debug_pdrs): Same.
6879         (print_pbb_body): Same.
6880         (print_pbb): Same.
6881         (print_scop_params): Same.
6882         (print_scop_context): Same.
6883         (print_scop): Same.
6884         (debug_pbb_domain): Same.
6885         (debug_pbb): Same.
6886         (debug_scop_context): Same.
6887         (debug_scop): Same.
6888         (debug_scop_params): Same.
6889         * graphite-poly.h: Same.
6890         * graphite.c (graphite_transform_loops): Same.
6892 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6894         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
6895         call that isn't needed.
6897 2015-10-09  Jeff Law  <law@redhat.com>
6899         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
6900         rather than moving each name to the freelist individually.
6902 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
6904         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
6905         * frame-header-opt.c: New file.
6906         * config/mips/mips-proto.h (mips_register_frame_header_opt):
6907         Add prototype.
6908         * config/mips/mips.c (mips_compute_frame_info): Check
6909         optimize_call_stack flag.
6910         (mips_option_override): Register new frame_header_opt pass.
6911         (mips_frame_info, mips_int_mask, mips_shadow_set,
6912         machine_function): Move these types to...
6913         * config/mips/mips.h: here.
6914         (machine_function): Add does_not_use_frame_header and
6915         optimize_call_stack fields.
6916         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
6917         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
6918         Document new flags.
6919         * config/mips/mips.opt (mframe-header-opt): Add new option.
6921 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
6923         * config/i386/i386.c
6924         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
6925         ROUND_DOWN where applicable.
6927 2015-10-09  Jeff Law  <law@redhat.com>
6929         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
6930         correct statement.
6932 2015-10-09  Renlin Li  <renlin.li@arm.com>
6934         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
6935         operands[0] and operands[2].
6936         (neon_vtrn<mode>_insn): Likewise.
6937         (neon_vzip<mode>_insn): Likewise.
6939 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6941         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
6942         ((X & C2) << C1): Expand to...
6943         (X {&,^,|} C2 << C1): ...This.
6944         ((X & C2) >> C1): Expand to...
6945         (X {&,^,|} C2 >> C1): ...This.
6947 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
6949         PR target/67895
6950         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
6951         Adjust embedded rounding/SAE specifier position.
6952         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
6953         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
6954         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
6955         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
6956         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6957         Likewise.
6958         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
6960 2015-10-09  Martin Jambor  <mjambor@suse.cz>
6962         tree-optimization/67794
6963         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
6964         between types of state,ents but accept original definitions as a
6965         parameter.
6966         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
6967         iterate over definitions.
6969 2015-10-09  James Norris  <jnorris@codesourcery.com>
6971         * config/rs6000/rs6000.c (rs6000_offload_options): New.
6972         (TARGET_OFFLOAD_OPTIONS): New.
6974 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
6976         PR middle-end/67891
6977         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
6979         PR middle-end/67766
6980         * function.c (expand_function_end): Move return value
6981         promotion past the handling of PARALLELs and CONCATs.
6983         PR rtl-optimization/67828
6984         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
6985         (tree_may_unswitch_on): Don't unswitch on expressions
6986         involving undefined values.
6988 2015-10-09  Richard Biener  <rguenther@suse.de>
6990         * genmatch.c (print_operand): Fix formatting.
6991         (dt_node::append_simplify): Warn for multiple simplifiers
6992         that match the same pattern.
6993         * match.pd (log (exp @0)): Remove duplicates.
6995 2015-10-09  Richard Biener  <rguenth@suse.de>
6997         PR target/67366
6998         * gimple-fold.c (optabs-query.h): Include
6999         (gimple_fold_builtin_memory_op): Allow unaligned stores
7000         when movmisalign_optabs are available.
7002 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7004         PR target/67366
7005         * config/arm/arm.md (movmisalign<mode>): New.
7006         * config/arm/iterators.md (HSI): New.
7008 2015-10-09  Richard Biener  <rguenther@suse.de>
7010         PR tree-optimization/67891
7011         * gimple-match.h (gimple_simplified_result_is_gimple_val):
7012         New helper.
7013         (gimple_resimplify1): Declare.
7014         (gimple_resimplify2): Likewise.
7015         (gimple_resimplify3): Likewise.
7016         * gimple-match-head.c (gimple_resimplify1): Export.
7017         (gimple_resimplify2): Likewise.
7018         (gimple_resimplify3): Likewise.
7019         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
7020         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7021         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
7022         to avoid creating stmts without VN info.
7024 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
7026         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
7027         of availability.
7029 2015-10-08  Jeff Law  <law@redhat.com>
7031         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
7032         and release_ssa_name in two places.
7033         (gimple_stringop_fixed_value): Similarly.
7035         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
7036         release_defs.
7038         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
7039         unlink_stmt_vdef and release_ssa_name_fn.
7041         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
7042         release_defs.
7044 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
7046         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
7047         SSE register save area to 16 bytes only if the incoming stack
7048         boundary is no less than 16 bytes.
7050 2015-10-08  Jeff Law  <law@redhat.com>
7052         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
7053         release_ssa_name.  Fix typo in comment.
7055 2015-10-08  Nathan Sidwell  <nathan@acm.org>
7057         * config/nvptx/nvptx.h (struct machine_function): Add comment.
7058         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
7059         may return pointer as well as in memory.
7060         (nvptx_output_return): Likewise.
7062 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
7064         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
7065         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
7066         * match.pd: Add rules previously handled by fold_builtin_sqrt
7067         and fold_builtin_cbrt.
7069 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
7071         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
7072         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
7073         * fold-const.h (tree_unary_nonnegative_warnv_p)
7074         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7075         (tree_expr_nonnegative_warnv_p): Add depth parameters.
7076         * fold-const.c: Include gimple-fold.h and params.h.
7077         (tree_ssa_name_nonnegative_warnv_p): New function.
7078         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
7079         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7080         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
7081         Add a depth parameter and increment it for recursive calls to
7082         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
7083         to handle SSA names.
7084         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
7085         (gimple_stmt_nonnegative_warnv_p): Declare.
7086         * tree-vrp.c (remove_range_assertions): Remove assert that condition
7087         cannot be proven false.
7088         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
7089         (gimple_stmt_nonnegative_warnv_p): Move to...
7090         * gimple-fold.c: ...here.  Add depth parameters and pass them
7091         down to the tree routines.  Accept statements that aren't
7092         assignments or calls but just return false for them.
7093         (gimple_val_nonnegative_real_p): Delete.
7094         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
7095         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
7096         Check HONOR_NANs first.
7098 2015-10-08  Martin Jambor  <mjambor@suse.cz>
7100         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
7101         unnecessary MIN.
7103 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
7105         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
7106         in the tail of outer-loop.
7108 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
7110         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
7111         return UI_NONE.
7113 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
7115         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
7116         "cfghooks.h", add prototypes for introduced new functions.
7117         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
7118         checks on ability of loop unswitching to tree_unswitch_single_loop;
7119         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
7120         on innermost loop check.
7121         (tree_unswitch_single_loop): Add all required checks on ability of
7122         loop unswitching under zero recursive level guard.
7123         (tree_unswitch_outer_loop): New function.
7124         (find_loop_guard): Likewise.
7125         (empty_bb_without_guard_p): Likewise.
7126         (used_outside_loop_p): Likewise.
7127         (get_vop_from_header): Likewise.
7128         (hoist_guard): Likewise.
7129         (check_exit_phi): Likewise.
7131 2015-10-08  Marek Polacek  <polacek@redhat.com>
7133         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
7134         ops element.
7136 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7138         PR c/65345
7139         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
7140         create_tmp_var_raw instead of create_tmp_var.
7142 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
7144         * expr.c (store_expr_with_bounds): Handle aggregate moves from
7145         BLKmode.
7146         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
7147         to define gimple type system; compare aggregates only by size.
7149 2015-10-07  Jeff Law  <law@redhat.com>
7151         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
7152         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
7153         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
7154         unnecessarily.
7156 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
7157             Sebastian Pop  <s.pop@samsung.com>
7159         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
7160         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
7161         (generate_isl_schedule): Same.
7162         * graphite-optimize-isl.c (scop_get_domains): Same.
7163         (apply_schedule_map_to_scop): Same.
7164         * graphite-poly.c (print_iteration_domains): Same.
7165         (remove_gbbs_in_scop): Same.
7166         (new_scop): Same.
7167         (free_scop): Same.
7168         (print_scop): Same.
7169         * graphite-poly.h (struct scop): Rename bbs to pbbs.
7170         (SCOP_BBS): Remove.
7171         * graphite-scop-detection.c (compare_bb_depths): Remove.
7172         (graphite_sort_dominated_info): Remove.
7173         (try_generate_gimple_bb): Move out of scop_detection.
7174         (all_non_dominated_preds_marked_p): Remove.
7175         (build_scop_bbs_1): Remove.
7176         (build_scop_bbs): Remove.
7177         (nb_pbbs_in_loops): Do not use SCOP_BBS.
7178         (find_scop_parameters): Same.
7179         (sese_dom_walker): Rename gather_bbs.
7180         (before_dom_children): Call try_generate_gimple_bb and collect gbb
7181         and pbb.
7182         (build_scops): Call gather_bbs.
7183         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
7184         (add_conditions_to_constraints): Same.
7185         (build_scop_iteration_domain): Same.
7186         (build_scop_drs): Same.
7187         (new_pbb_from_pbb): Same.
7188         * sese.c (new_sese_info): Create bbs.
7189         * sese.h (struct sese_info_t): Add bbs.
7191 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
7193         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
7194         encoding in 64-bit mode.
7196 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
7198         PR target/66697
7199         * config/i386/i386.c (ix86_option_override_internal): Always use
7200         8-byte minimum stack boundary in 64-bit mode.
7201         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
7202         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
7203         Add a REG_CFA_EXPRESSION note if needed.
7204         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
7205         (ix86_handle_force_align_arg_pointer_attribute): New.
7206         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
7207         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
7208         with ix86_handle_force_align_arg_pointer_attribute.
7209         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
7211 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
7212             Sebastian Pop  <s.pop@samsung.com>
7214         * graphite-scop-detection.c (parameter_index_in_region): Remove
7215         use of SESE_ADD_PARAMS.
7216         (find_scop_parameters): Same.
7217         * sese.c (new_sese_info): Same.
7218         * sese.h (struct sese_info_t): Remove add_params.
7219         (SESE_ADD_PARAMS): Remove.
7221 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
7222             Sebastian Pop  <s.pop@samsung.com>
7224         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
7225         an sese_info_p.
7226         (copy_def): Same.
7227         (copy_internal_parameters): Same.
7228         (translate_isl_ast_to_gimple): Use an sese_l.
7229         (build_iv_mapping): Same.
7230         * graphite-poly.c (new_sese): Rename new_sese_info.
7231         (free_sese): Rename free_sese_info.
7232         * graphite-poly.h (struct scop): Use an sese_info_p.
7233         (scop_set_region): Same.
7234         * graphite-scop-detection.c (struct sese_l): Moved...
7235         (get_entry_bb): Moved...
7236         (get_exit_bb): Moved...
7237         (parameter_index_in_region_1): Use an sese_info_p.
7238         (parameter_index_in_region): Same.
7239         (scan_tree_for_params): Same.
7240         (find_params_in_bb): Same.
7241         (sese_dom_walker): Use an sese_l.
7242         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
7243         (reduction_phi_p): Same.
7244         (parameter_index_in_region_1): Use an sese_info_p.
7245         (propagate_expr_outside_region): Use an sese_l.
7246         * graphite.c: Replace uses of SCOP_REGION.
7247         * sese.c (sese_record_loop): Use an sese_info_p.
7248         (build_sese_loop_nests): Same.
7249         (sese_build_liveouts_use): Same.
7250         (sese_build_liveouts_bb): Same.
7251         (sese_build_liveouts_bb): Same.
7252         (sese_bad_liveouts_use): Same.
7253         (sese_reset_debug_liveouts_bb): Same.
7254         (sese_build_liveouts): Same.
7255         (new_sese): Renamed new_sese_info.
7256         (free_sese): Renamed free_sese_info.
7257         (set_rename): Use an sese_info_p.
7258         (graphite_copy_stmts_from_block): Same.
7259         (copy_bb_and_scalar_dependences): Same.
7260         (outermost_loop_in_sese_1): Use an sese_l.
7261         (outermost_loop_in_sese): Same.
7262         (if_region_set_false_region): Use an sese_info_p.
7263         (move_sese_in_condition): Same.
7264         (scalar_evolution_in_region): Use an sese_l.
7265         * sese.h (struct sese_l): ... here.
7266         (SESE_ENTRY): Remove.
7267         (SESE_ENTRY_BB): Remove.
7268         (SESE_EXIT): Remove.
7269         (SESE_EXIT_BB): Remove.
7270         (sese_contains_loop): Use an sese_info_p.
7271         (sese_nb_params): Same.
7272         (bb_in_sese_p): Use an sese_l.
7273         (stmt_in_sese_p): Same.
7274         (defined_in_sese_p): Same.
7275         (loop_in_sese_p): Same.
7276         (sese_loop_depth): Same.
7277         (struct ifsese_s): Use an sese_info_p.
7278         (gbb_loop_at_index): Use an sese_l.
7279         (nb_common_loops): Same.
7280         (scev_analyzable_p): Same.
7282 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
7284         * config/i386/i386.c (ix86_conditional_register_usage): Use
7285         CALL_USED_REGISTERS_MASK.
7286         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
7288 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
7290         PR bootstrap/67385
7291         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
7292         * configure: Regenerated.
7294 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
7296         PR target/67850
7297         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
7298         (ix86_set_current_function): This.
7299         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
7301 2015-10-07  Richard Biener  <rguenther@suse.de>
7303         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
7304         (vinfo_for_stmt): Adjust.
7305         (set_vinfo_for_stmt): Likewise.
7306         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
7307         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
7308         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
7309         of inner loop.
7310         (vect_analyze_loop_1): Remove.
7311         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
7312         inner loop when vectorizing an outer loop by splitting out from ...
7313         (vect_analyze_loop_form): ... here.
7315 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7317         PR c/65345
7318         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
7319         Use create_tmp_var_raw instead of create_tmp_var.
7321 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
7323         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
7324         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
7325         * real.c (CACHED_FRACTION): New helper macro.
7326         (dconst_third_ptr): Use it.
7327         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
7328         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
7329         dconst_sixth.
7330         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
7332 2015-10-06  Jeff Law  <law@redhat.com>
7334         PR tree-optimization/67816
7335         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
7336         from remove_jump_threads_starting_at.  Accept an edge rather than
7337         a basic block.
7338         * tree-ssa-threadupdate.c (removed_edges): New hash table.
7339         (remove_jump_threads_including): Note edges that get removed from
7340         the CFG for later pruning of jump threading paths including them.
7341         (thread_through_all_blocks): Remove paths which include edges that
7342         have been removed.
7343         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
7344         on each outgoing edges when optimizing away a control statement.
7346 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7348         * reorg.c (emit_delay_sequence): Store list of delay slot insns
7349         in a vector instead of rtx_insn_list.
7350         (add_to_delay_list): Likewise.
7351         (delete_from_delay_slot): Likewise.
7352         (optimize_skip): Likewise.
7353         (redirect_with_delay_list_safe_p): Likewise.
7354         (check_annul_list_true_false): Likewise.
7355         (steal_delay_list_from_target): Likewise.
7356         (steal_delay_list_from_fallthrough): Likewise.
7357         (redundant_insn): Likewise.
7358         (fill_simple_delay_slots): Likewise.
7359         (fill_slots_from_thread): Likewise.
7360         (fill_eager_delay_slots): Likewise.
7361         (relax_delay_slots): Likewise.
7363 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
7365         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
7366         For -mgpopt=local, also exclude unintialized common symbols.
7367         * doc/invoke.texi (Nios II Options): Document the change.
7369 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7371         * config/aarch64/iterators.md (vwcore): Add missing cases for
7372          V4HF/V8HF modes.
7374 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
7375             Sebastian Pop  <s.pop@samsung.com>
7377         * graphite-poly.c (new_scop): Initialize drs.
7378         * graphite-poly.h (struct dr_info): New.
7379         (struct scop): Add drs.
7380         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
7381         (pdr_add_memory_accesses): Same.
7382         (build_poly_dr): Same.
7383         (build_alias_set): Same.
7384         (build_scop_drs): Same.
7385         (build_pbb_drs): Remove.
7386         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
7387         * tree-data-ref.h (data_reference): Remove alias_set.
7389 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
7390             Sebastian Pop  <s.pop@samsung.com>
7392         * graphite-poly.c (free_data_refs_aux): Remove.
7393         (free_gimple_poly_bb): Do not call free_data_refs_aux.
7394         * graphite-poly.h (struct base_alias_pair): Remove.
7395         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
7396         base_alias_pair and dr->aux.
7397         (build_alias_set): Same.
7398         * tree-data-ref.c (create_data_ref): Initialize alias_set.
7399         * tree-data-ref.h (data_reference): Add alias_set.
7401 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
7402             Sebastian Pop  <s.pop@samsung.com>
7404         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
7405         Do not set PDR_BASE_OBJECT_SET.
7406         * graphite-poly.h (poly_dr): Same.
7407         (PDR_BASE_OBJECT_SET): Remove.
7408         (new_poly_dr): Update decl.
7409         * graphite-sese-to-poly.c (build_poly_dr): Update call to
7410         new_poly_dr.
7411         (write_alias_graph_to_ascii_dimacs): Remove.
7412         (write_alias_graph_to_ascii_dot): Remove.
7413         (write_alias_graph_to_ascii_ecc): Remove.
7414         (dr_same_base_object_p): Remove.
7415         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
7416         code.
7417         (build_base_obj_set_for_drs): Remove.
7418         (dump_alias_graphs): Remove.
7419         (build_scop_drs): Remove dead code.
7421 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7422             Peter Bergner  <bergner@vnet.ibm.com>
7424         PR target/67808
7425         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
7426         allow registers, but provide insns for the combiner to create for
7427         loads from memory. Separate VSX code from non-VSX code. For
7428         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
7429         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
7430         so that registers come before memory operations. Drop support from
7431         converting DFmode to TFmode, if the DFmode value is in a GPR
7432         register.
7433         (extenddftf2_fprs): Likewise.
7434         (extenddftf2_internal): Likewise.
7435         (extenddftf2_vsx): Likewise.
7436         (extendsftf2): In the expander, only allow registers, but provide
7437         insns for the combiner to create for stores and loads.
7439 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7441         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
7442         from the decl parameter.
7444 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
7446         PR 67861
7447         * gimple-fold.c (gimple_fold_builtin): Add break after
7448         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
7450 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
7452         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
7453         to scop->isl_context.
7455 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
7457         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
7458         (output_probe_stack_range): Rotate the loop and simplify.
7459         (thumb1_expand_prologue): Tweak sorry message.
7460         * config/arm/arm.md (probe_stack): Use bare string.
7462 2015-10-06  Nick Clifton  <nickc@redhat.com>
7464         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
7466 2015-10-06  Nick Clifton  <nickc@redhat.com>
7468         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
7469         (ATTR_PERSIST): New constant.
7470         (msp430_data_attr): New function - verifies an attribute that only
7471         applies to variables.
7472         (msp430_attributes): Add noinit and persistent attributes.
7473         (noinit_section): New variable.
7474         (presis_section): New variable.
7475         (TARGET_ASM_INIT_SECTIONS): Define.
7476         (msp430_init_sections): New function - initialises the noinit and
7477         persist section variables.
7478         (msp430_select_section): Add support for noinit and persist
7479         attributes.
7480         (msp430_section_type_flags): Likewise.
7481         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
7482         and persistent attributes.
7484 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7485             Sebastian Pop  <s.pop@samsung.com>
7487         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
7488         (no_violations): Remove.
7489         (subtract_commutative_associative_deps): Remove.
7490         (compute_deps): Do not call subtract_commutative_associative_deps.
7491         (transform_is_safe): Remove.
7492         (graphite_legal_transform): Remove.
7493         * graphite-poly.h (graphite_legal_transform): Remove.
7495 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
7497         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
7498         which are in this region are passed so gcc_assert and remove redundant
7499         computation.
7500         * sese.c (sese_build_liveouts): Pass only those bbs which are not
7501         in region.
7502         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
7503         gcc_assert on that and remove unnecessary computation.
7504         (sese_build_liveouts_use): Same.
7506 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7508         * graphite-dependences.c (scop_get_reads): Renamed scop->context
7509         to scop->param_context.
7510         (scop_get_must_writes): Same.
7511         (scop_get_may_writes): Same.
7512         (scop_get_original_schedule): Same.
7513         (scop_get_transformed_schedule): Same.
7514         (subtract_commutative_associative_deps): Same.
7515         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
7516         (generate_isl_context): Same.
7517         (generate_isl_schedule): Same.
7518         (scop_to_isl_ast): Same.
7519         (graphite_regenerate_ast_isl): Same.
7520         * graphite-optimize-isl.c (scop_get_domains): Same.
7521         (optimize_isl): Renamed scop->context to scop->param_context.
7522         * graphite-poly.c (new_poly_bb): Change the type of argument to
7523         gimple_poly_bb_p.
7524         (new_scop): Renamed scop->context to scop->param_context.
7525         (free_scop): Same.
7526         (print_scop_context): Same.
7527         * graphite-poly.h (new_poly_dr): Change the type of argument from
7528         void* to data_reference_p.
7529         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
7530         (new_poly_bb): Change the type of argument from void* to
7531         gimple_poly_bb_p.
7532         (pbb_set_black_box): Same.
7533         (struct scop): Rename context to param_context, ctx to isl_context.
7534         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
7535         Move declarations closer to assignment.
7536         (find_params_in_bb): Same.
7537         (find_scop_parameters): Same.
7538         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
7539         Global to be used for statement IDs.
7540         (isl_id_for_pbb): Use ssa_name_version_typesize.
7541         (simple_copy_phi_p): Move declarations closer to assignment.
7542         (build_pbb_scattering_polyhedrons): Same.
7543         (build_scop_scattering): Same.
7544         (isl_id_for_ssa_name): Same.
7545         (extract_affine_name): Same.
7546         (extract_affine_int): Same.
7547         (extract_affine): Same.
7548         (set_scop_parameter_dim): Use renamed member.
7549         (build_loop_iteration_domains): Same.
7550         (add_param_constraints): Same.
7551         (build_scop_iteration_domain): Same.
7552         (pdr_add_data_dimensions): Same.
7553         (build_poly_dr): Same.
7554         (build_scop_drs): Move declarations closer to assignment.
7555         (analyze_drs_in_stmts): Same.
7556         (insert_out_of_ssa_copy): Same.
7557         (insert_out_of_ssa_copy_on_edge): Same.
7558         (propagate_expr_outside_region): Same.
7559         (rewrite_phi_out_of_ssa): Same.
7560         (rewrite_degenerate_phi): Same.
7561         (rewrite_reductions_out_of_ssa): Same.
7562         (rewrite_cross_bb_scalar_dependence): Same.
7563         (handle_scalar_deps_crossing_scop_limits): Same.
7564         (rewrite_cross_bb_scalar_deps): Same.
7565         * graphite.c (graphite_transform_loops): Use renamed member.
7567 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
7569         PR c/65345
7570         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
7571         create_tmp_var_raw instead of create_tmp_var.
7573 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7575         PR c/65345
7576         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
7577         Use create_tmp_var_raw instead of create_tmp_var.
7579 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
7581         PR target/67849
7582         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
7583         split for upper-bank registers when target does not support
7584         AVX512VL.
7585         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
7586         split when target does not support AVX512VL.
7588 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
7590         PR c/65345
7591         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
7592         Adjust to use create_tmp_var_raw instead of create_tmp_var.
7594 2015-10-06  Nick Clifton  <nickc@redhat.com>
7596         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
7597         multiplication.
7599 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
7601         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
7602         (case ${target}): Add znver1.
7603         * config/i386/cpuid.h(bit_CLZERO):  Define.
7604         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7605         -march=native recognize znver1 processors.
7606         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7607         znver1, clzero def_and_undef.
7608         * config/i386/i386.c (struct processor_costs znver1_cost): New.
7609         (m_znver1): New definition.
7610         (m_AMD_MULTIPLE): Includes m_znver1.
7611         (processor_target_table): Add znver1 entry.
7612         (ix86_target_string) : Add clzero entry.
7613         (static const char *const cpu_names): Add znver1 entry.
7614         (ix86_option_override_internal): Add znver1 instruction sets.
7615         (PTA_CLZERO) :  New definition.
7616         (ix86_option_override_internal): Handle new clzerooption.
7617         (ix86_issue_rate): Add znver1.
7618         (ix86_adjust_cost): Add znver1.
7619         (ia32_multipass_dfa_lookahead): Add znver1.
7620         (has_dispatch): Add znver1.
7621         * config/i386/i386.h (TARGET_znver1): New definition.
7622         (TARGET_CLZERO): Define.
7623         (TARGET_CLZERO_P): Define.
7624         (struct ix86_size_cost): Add TARGET_ZNVER1.
7625         (enum processor_type): Add PROCESSOR_znver1.
7626         * config/i386/i386.md (define_attr "cpu"): Add znver1.
7627         (set_attr znver1_decode): New definitions for znver1.
7628         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
7629         (mclzero): New.
7630         * config/i386/mmx.md (set_attr znver1_decode): New definitions
7631         for znver1.
7632         * config/i386/sse.md (set_attr znver1_decode): Likewise.
7633         * config/i386/x86-tune.def:  Add znver1 tunings.
7634         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
7635         * doc/invoke.texi: Add details about znver1
7637 2015-10-06  Richard Biener  <rguenther@suse.de>
7639         PR tree-optimization/67859
7640         * tree-ssa-pre.c (create_expression_by_pieces): Properly
7641         discard not inserted stmts.
7643 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
7645         * doc/extend.texi (Template Instantiation): Reorder options and
7646         de-emphasize -frepo.
7647         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
7648         example instead of -frepo.
7650 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
7652         PR c/65345
7653         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
7654         use create_tmp_var_raw rather than create_tmp_var.
7656 2015-10-06  Richard Biener  <rguenther@suse.de>
7658         * tree-vectorizer.h (vec_info): New base class for...
7659         (_loop_vec_info): ... this and ...
7660         (_bb_vec_info): ... this.
7661         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
7662         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7663         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7664         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
7665         vect_destroy_datarefs): Adjust interface to take a vec_info *
7666         rather than both a loop_vec_info and a bb_vec_info argument.
7667         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
7668         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
7669         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
7670         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
7671         accordingly.
7672         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
7673         (destroy_loop_vec_info, vect_analyze_loop_2,
7674         vect_is_simple_reduction_1, get_initial_def_for_induction,
7675         vect_create_epilog_for_reduction, vectorizable_reduction,
7676         vectorizable_live_operation, vect_transform_loop): Adjust.
7677         * tree-vect-patterns.c (type_conversion_p,
7678         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
7679         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
7680         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
7681         check_bool_pattern, vect_recog_bool_pattern,
7682         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
7683         * tree-vect-slp.c (vect_get_and_check_slp_defs,
7684         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
7685         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
7686         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
7687         (new_bb_vec_info): Initialize base classs.
7688         * tree-vect-stmts.c (record_stmt_cost, process_use,
7689         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
7690         vectorizable_mask_load_store, vectorizable_call,
7691         vectorizable_simd_clone_call, vectorizable_conversion,
7692         vectorizable_assignment, vectorizable_shift,
7693         vectorizable_operation, vectorizable_store,
7694         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
7695         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
7696         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
7698 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7700         PR c/65345
7701         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
7702         create_tmp_var_raw rather than create_tmp_var.
7704 2015-10-05  Marek Polacek  <polacek@redhat.com>
7706         * tree-ssa-loop-im.c
7707         (move_computations_dom_walker::before_dom_children): Don't set
7708         SSA_NAME_ANTI_RANGE_P.
7709         * tree-ssa-phiopt.c (value_replacement): Likewise.
7711 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7712             Sebastian Pop  <s.pop@samsung.com>
7714         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
7716 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7717             Sebastian Pop  <s.pop@samsung.com>
7719         * graphite-poly.c (new_gimple_poly_bb): ... here.
7720         (free_data_refs_aux): ... here.
7721         (free_gimple_poly_bb): ... here.
7722         (remove_gbbs_in_scop): ... here.
7723         (new_scop): Call new_sese.
7724         (free_scop): Call remove_gbbs_in_scop and free_sese.
7725         * graphite-poly.h (base_alias_pair): ... here.
7726         (new_gimple_poly_bb): Declare.
7727         (free_gimple_poly_bb): Declare.
7728         * graphite-scop-detection.c (parameter_index_in_region_1):
7729         (parameter_index_in_region): ... here.
7730         (scan_tree_for_params): ... here.
7731         (find_params_in_bb): ... here.
7732         (find_scop_parameters): ... here.
7733         (build_scops): Call find_scop_parameters.
7734         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
7735         (free_scops): Move...
7736         (single_pred_cond_non_loop_exit): Move...
7737         (sese_dom_walker::before_dom_children): Move...
7738         (sese_dom_walker::after_dom_children): Move...
7739         (build_poly_scop): Move...
7740         * graphite-sese-to-poly.h (base_alias_pair): Move...
7741         * graphite.c (free_scops): ... here.
7743 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7744             Sebastian Pop  <s.pop@samsung.com>
7746         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
7747         (trivially_empty_bb_p): Move...
7748         (same_close_phi_node): Move...
7749         (new_gimple_poly_bb): Move...
7750         (compare_bb_depths): Move...
7751         (graphite_sort_dominated_info): Move...
7752         (remove_duplicate_close_phi): Move...
7753         (make_close_phi_nodes_unique): Move...
7754         (canonicalize_loop_closed_ssa): Move...
7755         (canonicalize_loop_closed_ssa_form): Move...
7756         (loop_ivs_can_be_represented): Move...
7757         (single_pred_cond_non_loop_exit): Move...
7758         (graphite_can_represent_init): Move...
7759         (graphite_can_represent_scev): Move...
7760         (stmt_has_simple_data_refs_p): Move...
7761         (stmt_has_side_effects):  Move...
7762         (graphite_can_represent_stmt): Move...
7763         (scop_detection): ... here.
7764         (sese_dom_walker): ... and here.
7765         (build_scops): Call all moved functions.
7766         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
7767         (all_non_dominated_preds_marked_p): Move...
7768         (build_scop_bbs_1): Move...
7769         (build_scop_bbs): Move...
7770         (set_scop_parameter_dim): Move...
7771         (nb_pbbs_in_loops): Move...
7772         (build_poly_scop): Do not call all the moved functions.
7774 2015-10-05  Martin Jambor  <mjambor@suse.cz>
7775             Jan Hubicka  <hubicka@ucw.cz>
7777         * ipa-cp.c (ipcp_alignment_lattice): New type.
7778         (ipcp_param_lattices): Use the above to represent alignment.
7779         (ipcp_alignment_lattice::print): New function.
7780         (print_all_lattices): Use it to print alignment information.
7781         (ipcp_alignment_lattice::top_p): New function.
7782         (ipcp_alignment_lattice::bottom_p): Likewise.
7783         (ipcp_alignment_lattice::set_to_bottom): Likewise.
7784         (ipcp_alignment_lattice::meet_with_1): Likewise.
7785         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
7786         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
7787         (initialize_node_lattices): Likewise.
7788         (propagate_alignment_accross_jump_function): Work with the new class
7789         for alignment lattices.
7790         (propagate_constants_accross_call): Pass only the alignment lattice to
7791         propagate_alignment_accross_jump_function.
7792         (ipcp_store_alignment_results): Work with the new class for alignment
7793         lattices.
7795 2015-10-05  Marek Polacek  <polacek@redhat.com>
7797         PR tree-optimization/67821
7798         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
7800 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
7802         PR other/65021
7803         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
7804         function to...
7805         (mkoffload_cleanup): ... this.  Adjust all users.
7806         (maybe_unlink): Look at save_temps and verbose flags instead of
7807         debug flag.
7808         (main): Parse "-save-temps" flag.
7809         (generate_target_descr_file, generate_target_offloadend_file)
7810         (generate_host_descr_file, prepare_target_image): Pass it on.
7811         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
7812         (mkoffload_cleanup): New function.
7813         (maybe_unlink): Look at save_temps and verbose flags instead of
7814         debug flag.
7815         (main): Instead of calling utils_cleanup, register atexit handler
7816         for mkoffload_cleanup.
7817         (main): Parse "-save-temps" flag.
7818         (compile_native, main): Pass it on.
7819         * lto-wrapper.c (compile_offload_image): Likewise.
7821 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7823         * gimple.h (gimple_op_ptr): Require a non const gimple *.
7824         (gimple_assign_lhs_ptr): Likewise.
7825         (gimple_assign_rhs1_ptr): Likewise.
7826         (gimple_assign_rhs2_ptr): Likewise.
7827         (gimple_assign_rhs3_ptr): Likewise.
7828         (gimple_call_lhs_ptr): Likewise.
7829         (gimple_call_fn_ptr): Likewise.
7830         (gimple_call_chain_ptr): Likewise.
7831                 (gimple_call_arg_ptr): Likewise.
7832                 (gimple_cond_lhs_ptr): Likewise.
7833         (gimple_cond_rhs_ptr): Likewise.
7834         (gimple_switch_index_ptr): Likewise.
7835         (gimple_return_retval_ptr): Likewise.
7837 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7839         * gimple.h (gimple_asm_input_op_ptr): Remove.
7840         (gimple_asm_output_op_ptr): Likewise.
7842 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7844         * gimple.h (gimple_location_ptr): Remove.
7845         * tree-vrp.c (check_all_array_refs): Adjust.
7847 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7849         * tree-ssa-operands.c (build_uses): store tree * instead of
7850         tree.
7851         (finalize_ssa_uses): Adjust.
7852         (append_use): Likewise.
7853         (verify_ssa_operands): Likewise.
7855 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7857         * real.h (build_real_truncate): Declare.
7858         * tree.c (build_real_truncate): New function.
7859         (strip_float_extensions): Use it.
7860         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
7861         (fold_builtin_hypot, fold_builtin_pow): Likewise.
7862         * match.pd: Likewise.
7864 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
7865            Jiong Wang  <jiong.wang@arm.com>
7867         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
7869 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7871         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
7872         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
7873         (aarch64_print_operand, aarch64_float_const_representable_p)
7874         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
7875         instead of REAL_VALUE_FROM_CONST_DOUBLE.
7876         * config/arc/arc.c (arc_print_operand): Likewise.
7877         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
7878         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
7879         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
7880         Likewise.
7881         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
7882         (consttable_16): Likewise.
7883         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
7884         * config/avr/avr.c (avr_print_operand): Likewise.
7885         * config/bfin/bfin.md: Likewise (in a define_split).
7886         * config/c6x/c6x.md: Likewise (in a define_split).
7887         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
7888         (cr16_print_operand): Likewise.
7889         * config/cris/cris.c (cris_print_operand): Likewise.
7890         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
7891         * config/fr30/fr30.c (fr30_print_operand): Likewise.
7892         (fr30_const_double_is_zero): Likewise.
7893         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
7894         * config/frv/frv.md: Likewise (in a define_split).
7895         * config/frv/predicates.md (int_2word_operand): Likewise.
7896         * config/h8300/h8300.c (h8300_print_operand): Likewise.
7897         * config/i386/i386.c (standard_80387_constant_p): Likewise.
7898         (ix86_print_operand, ix86_split_to_parts): Likewise.
7899         * config/i386/i386.md: Likewise (in a define_split).
7900         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
7901         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
7902         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
7903         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
7904         (print_operand): Likewise.
7905         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
7906         * config/mep/mep.md: Likewise (in define_split).
7907         * config/microblaze/microblaze.c (microblaze_const_double_ok)
7908         (print_operand): Likewise.
7909         * config/mips/mips.md (consttable_float): Likewise.
7910         * config/mmix/mmix.c (mmix_intval): Likewise.
7911         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
7912         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
7913         * config/pa/pa.c (pa_singlemove_string): Likewise.
7914         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
7915         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
7916         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
7917         (output_toc): Likewise.
7918         * config/rs6000/rs6000.md: Likewise (in define_splits).
7919         * config/rx/rx.c (rx_print_operand): Likewise.
7920         * config/s390/s390.c (s390_output_pool_entry): Likewise.
7921         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7922         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
7923         (and also in define_splits).
7924         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
7925         (fp_high_losum_p): Likewise.
7926         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
7927         (*movsf_high): Likewise.
7928         * config/spu/spu.c (const_double_to_hwint): Likewise.
7929         * config/v850/v850.c (const_double_split): Likewise.
7930         * config/vax/vax.c (vax_float_literal): Likewise.
7931         * config/visium/visium.c (visium_expand_copysign): Likewise.
7932         * config/visium/visium.md: Likewise (in define_split).
7933         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7934         * config/xtensa/xtensa.c (print_operand): Likewise.
7935         (xtensa_output_literal): Likewise.
7936         * cprop.c (implicit_set_cond_p): Likewise.
7937         * dwarf2out.c (insert_float): Likewise.
7938         * expmed.c (expand_mult, make_tree): Likewise.
7939         * expr.c (compress_float_constant): Likewise.
7940         * rtlanal.c (split_double): Likewise.
7941         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7942         (simplify_const_unary_operation, simplify_binary_operation_1)
7943         (simplify_const_binary_operation): Likewise.
7944         (simplify_const_relational_operation): Likewise.
7945         * varasm.c (output_constant_pool_2): Likewise.
7947 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7949         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
7950         instead of CONST_DOUBLE_FROM_REAL_VALUE.
7951         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
7952         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
7953         instead of CONST_DOUBLE_FROM_REAL_VALUE.
7954         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
7955         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
7956         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
7957         (ix86_emit_swsqrtsf): Likewise.
7958         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
7959         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
7960         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
7961         * config/pa/pa.c (pa_expand_builtin): Likewise.
7962         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
7963         (rs6000_scale_v2df): Likewise.
7964         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
7965         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
7966         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
7967         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
7968         (vec_ctul): Likewise.
7969         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
7970         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
7971         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
7972         * cse.c (fold_rtx): Likewise.
7973         * emit-rtl.c (immed_double_const): Likewise (in comments).
7974         (init_emit_once): Likewise.
7975         * expr.c (compress_float_constant, expand_expr_real_1)
7976         (const_vector_from_tree): Likewise.
7977         * optabs.c (expand_float, expand_fix): Likewise.
7978         * reg-stack.c (reg_to_stack): Likewise.
7979         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7980         (simplify_const_unary_operation, simplify_binary_operation_1)
7981         (simplify_const_binary_operation, simplify_relational_operation)
7982         (simplify_immed_subreg): Likewise.
7984 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7986         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
7987         * doc/tm.texi: Regenerate.
7988         * real.h (REAL_ARITHMETIC): Delete.
7989         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
7990         (ix86_expand_round_sse4): Use real_arithmetic instead of
7991         REAL_ARITHMETIC.
7992         * config/i386/sse.md (round<mode>2): Likewise.
7993         * rtl.h (rtx_to_tree_code): Likewise (in comment).
7994         * explow.c (rtx_to_tree_code): Likewise (in comment).
7995         * match.pd: Likewise.
7996         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7997         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7998         (expand_pow_as_sqrts): Likewise.
7999         * tree-pretty-print.c (dump_generic_node): Remove code that
8000         was conditional on REAL_ARITHMETIC being undefined.
8002 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8004         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
8005         * doc/tm.texi: Regenerate.
8006         * real.h (real_less): Declare.
8007         (REAL_VALUES_LESS): Delete.
8008         * real.c (real_less): New function.
8009         (real_compare): Use it.
8010         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
8011         of REAL_VALUES_LESS.
8012         * config/microblaze/microblaze.c (microblaze_const_double_ok):
8013         Likewise.
8014         * fold-const.c (fold_convert_const_int_from_real): Likewise.
8015         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8016         (simplify_const_relational_operation): Likewise.
8017         * tree-call-cdce.c (check_pow): Likewise.
8018         (gen_conditions_for_pow_cst_base): Likewise.
8020 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8022         * real.h (REAL_VALUES_IDENTICAL): Delete.
8023         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
8024         instead of REAL_VALUES_IDENTICAL.
8025         * fold-const.c (operand_equal_p): Likewise.
8026         * ipa-icf.c (sem_variable::equals): Likewise.
8027         * tree-complex.c (some_nonzerop): Likewise.
8028         (expand_complex_multiplication): Likewise.
8029         * tree.c (simple_cst_equal): Likewise.
8030         * varasm.c (compare_constant): Likewise.
8032 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8034         * real.h (real_equal): Declare.
8035         (REAL_VALUES_EQUAL): Delete.
8036         * real.c (real_equal): New function.
8037         (real_compare): Use it.
8038         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
8039         * doc/tm.texi: Regenerate.
8040         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
8041         real_equal instead of REAL_VALUES_EQUAL.
8042         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
8043         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
8044         (fp_const_from_val): Likewise.
8045         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
8046         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
8047         (floating_exact_log2): Likewise.
8048         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
8049         * config/vax/vax.c (vax_float_literal): Likewise.
8050         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
8051         * cprop.c (implicit_set_cond_p): Likewise.
8052         * expmed.c (expand_mult): Likewise.
8053         * fold-const.c (const_binop): Likewise.
8054         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8055         (simplify_const_binary_operation): Likewise.
8056         (simplify_const_relational_operation): Likewise.
8057         * tree-call-cdce.c (check_pow): Likewise.
8058         (gen_conditions_for_pow_cst_base): Likewise.
8059         * tree-inline.c (estimate_num_insns): Likewise.
8060         * tree-ssa-dom.c (record_equality): Likewise.
8061         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
8062         (gimple_expand_builtin_pow): Likewise.
8063         (pass_optimize_widening_mul::execute): Likewise.
8064         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
8065         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
8066         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
8068 2015-10-05  Richard Biener  <rguenther@suse.de>
8070         PR ipa/67783
8071         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
8072         consider loop header PHI defs as IVs.
8074 2015-10-05  Richard Biener  <rguenther@suse.de>
8076         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
8077         call handling ...
8078         (create_expression_by_pieces): ... here and build GIMPLE
8079         calls directly.  Use gimple_build API and avoid force_gimple_operand.
8080         (insert_into_preds_of_block): Simplify.
8081         (do_regular_insertion): Add comment.
8083 2015-10-04  Jason Merrill  <jason@redhat.com>
8085         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
8087 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
8089         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
8090         check for general register.
8091         (ix86_emit_save_regs): Ditto.
8092         (ix86_emit_save_regs_using_mov): Ditto.
8093         (ix86_emit_restore_regs_using_pop): Ditto.
8094         (ix86_emit_restore_regs_using_mov): Ditto.
8096 2015-10-03  Marek Polacek  <polacek@redhat.com>
8098         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
8099         (insn-dfatab.o): Likewise.
8101 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
8103         * config.gcc (xtensa*-*-uclinux*): New configuration.
8104         * config/xtensa/uclinux.h: New file.
8105         * config/xtensa/uclinux.opt: New file.
8107 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
8109         * doc/cpp.texi (Standard Predefined Macros): Document value of
8110         __cplusplus for C++14.
8112 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
8114         * gcc.c (process_command): Use spec_machine rather than
8115         spec_host_machine to build tooldir_prefix2.
8117 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
8118             Bernd Schmidt  <bernds@codesourcery.com>
8120         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
8121         (Token, Stmt): Remove structs.
8122         (decls, vars, fns): Remove variables.
8123         (alloc_comment, append_stmt, is_keyword): Remove macros.
8124         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
8125         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
8126         (parse_init, parse_file): Remove functions.
8127         (read_file): Accept a pointer to a length and store into it.
8128         (process): Don't try to parse the input file, just write it out as
8129         a string, but looking for maps.  Also write out the length.
8130         (main): Don't use "-S" to compile PTX code.
8132 2015-10-02  Jeff Law  <law@redhat.com>
8134         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
8135         fixups.
8137 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
8139         PR target/67822
8140         * config/nvptx/mkoffload.c (main): Scan the argument vector for
8141         -fopenmp, and skip generating an offloading image if specified.
8143 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
8145         * system.h (ROUND_UP): New macro definition.
8146         (ROUND_DOWN): Ditto.
8147         * ggc-page.c (ROUND_UP): Remove local macro definition.
8148         (PAGE_ALIGN): Implement using ROUND_UP macro.
8150         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
8151         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
8152         to align values.
8153         (ix86_compute_frame_layout): Ditto.
8154         (ix86_expand_prologue): Ditto.
8155         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
8156         to round down values.
8157         (expand_set_or_movmem_via_rep): Ditto.
8159 2015-10-02  Marek Polacek  <polacek@redhat.com>
8161         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
8163 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
8165         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
8166         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
8167         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
8168         (free_gimple_bb): Renamed free_gimple_poly_bb.
8169         (try_generate_gimple_bb): Hoist loop invariant code.
8170         (analyze_drs_in_stmts): Same.
8171         (build_scop_drs): Call renamed functions.
8172         (new_pbb_from_pbb): Same.
8173         (scop_ivs_can_be_represented): Delete as functionality now moved to
8174         graphite-scop-detection.c
8175         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
8177 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
8179         * graphite-scop-detection.c (stmt_has_side_effects): New function
8180           outlined from stmt_simple_for_scop_p.
8181         (graphite_can_represent_stmt): Same.
8182         (stmt_simple_for_scop_p): Moved code out of this function for better
8183         readability.
8185 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
8187         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
8188         F_AVX512IFMA.
8189         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
8191 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8193         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
8195 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
8197         PR rtl-optimization/67756
8198         * lra-constraints.c (match_reload): Add a new parameter.  Use it
8199         for creating a pseudo with the same value.
8200         (curr_insn_transform): Pass a new argument to match_reload.
8202 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
8204         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
8205         (expand_vec_perm_even_odd_1): Handle V64QImode.
8206         (ix86_expand_vec_perm_const_1): Try expansion with
8207         expand_vec_perm_even_odd_trunc as well.
8208         * config/i386/sse.md (VI124_AVX512F): Rename to ...
8209         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
8210         to V54QI.
8211         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
8212         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
8213         to V32HI and V16SI.
8214         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
8215         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
8216         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
8217         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
8218         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
8219         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
8221 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
8223         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
8224         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
8226 2015-10-02  Jason Merrill  <jason@redhat.com>
8228         PR c/59218
8229         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
8230         (diagnose_tm_1_op): Also diagnose volatile accesses in
8231         transaction_safe function.
8233 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
8235         * system.h (malloc.h): Don't include obsolete header.
8237 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8239         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
8240         (TLS_SECTION_ASM_FLAG): Delete.
8242 2015-10-02  Marek Polacek  <polacek@redhat.com>
8244         PR c/64249
8245         * doc/invoke.texi: Document -Wduplicated-cond.
8246         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
8247         (insn-dfatab.o): Likewise.
8248         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
8249         warning.
8251 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
8253         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
8254         sequences.
8256 2015-10-02  Renlin Li  <renlin.li@arm.com>
8258         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
8260 2015-10-02  Renlin Li  <renlin.li@arm.com>
8262         PR target/66776
8263         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
8265 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8267         PR rtl-optimization/67786
8268         PR rtl-optimization/67787
8269         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
8270         it modifies a reg used in the condition calculation.
8272 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
8274         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
8275         alternatives for reads from memory and moves from general-purpose
8276         registers.
8277         (*aarch64_combinez_be<mode>): Likewise.
8279 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
8281         PR target/51726
8282         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
8283         selectany within this function without need to keep attribute.
8284         (i386_pe_encode_section_info): Remove selectany-code.
8286 2015-10-02  Richard Biener  <rguenther@suse.de>
8288         * tree-ssa-sccvn.c (has_VN_INFO): New function.
8289         (free_scc_vn): Use it.
8290         (visit_use): Remove dead code and refactor to use gassign
8291         and use less indentation.
8293 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8295         PR target/67788
8296         PR target/67789
8297         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
8298         (rs6000_cannot_copy_insn_p): New function.
8299         * config/rs6000/rs6000.md (cannot_copy): New attribute.
8300         (load_toc_v4_PIC_1_normal): Set cannot_copy.
8301         (load_toc_v4_PIC_1_476): Ditto.
8303 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
8305         * graphite-scop-detection.c (struct sese_l): New conversion constructor
8306         so that this type can be pushed into a vec.
8307         (class scop_builder): use sese_l to collect scops.
8308         (get_scops): New getter function.
8309         (remove_intersecting_scops): Use sese_l instead of scops_p.
8310         (intersects): Same.
8311         (add_scop): Same.
8312         (subsumes): Same.
8313         (remove_subscops): Same.
8314         (build_scops): Add scops to vec<scops_p> once all the scops have been
8315         detected.
8317 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
8319         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8320         Renamed type from gimple_bb_p to gimple_poly_bb_p.
8321         (translate_isl_ast_node_user): Same.
8322         * graphite-poly.c (new_poly_bb): Same.
8323         * graphite-poly.h (gbb_from_bb): Same.
8324         * sese.h: Same.
8325         * graphite-sese-to-poly.c (new_gimple_bb):
8326         gimple_bb_p -> gimple_poly_bb_p
8327         (build_scop_scattering): Same.
8328         (find_params_in_bb): Same.
8329         (add_conditions_to_domain): Same.
8330         (sese_dom_walker::before_dom_children): Same.
8331         (analyze_drs_in_stmts): Same.
8332         (new_pbb_from_pbb): Same.
8333         (free_data_refs_aux): New pointer to type base_alias_pair.
8334         * graphite-sese-to-poly.h: Same.
8335         * sese.c (if_region_set_false_region): Fixed Indentation.
8336         (move_sese_in_condition): Same.
8338 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
8339             Aditya Kumar  <aditya.k7@samsung.com>
8341         PR tree-optimization/66980
8342         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
8343         when data reference analysis has failed.
8345 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
8346             Aditya Kumar  <aditya.k7@samsung.com>
8348         PR tree-optimization/67754
8349         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
8350         scev analysis on the same loop nest as analyze_drs_in_stmts.
8351         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
8352         renamed...
8353         (try_generate_gimple_bb): Call outermost_loop_in_sese.
8354         (analyze_drs_in_stmts): Same.
8355         * sese.c (outermost_loop_in_sese): ...here.
8357 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
8358             Aditya Kumar  <aditya.k7@samsung.com>
8360         PR tree-optimization/67754
8361         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
8362         recursion on the inner loops.
8364 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8366         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
8367         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
8368         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
8369         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
8370         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
8372 2015-10-01  Marek Polacek  <polacek@redhat.com>
8374         PR c/65345
8375         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
8376         create_tmp_var_raw rather than create_tmp_var.
8378 2015-10-01  Marek Polacek  <polacek@redhat.com>
8380         PR tree-optimization/67769
8381         * tree-ssa-phiopt.c (conditional_replacement): Call
8382         reset_flow_sensitive_info_in_bb.
8383         (minmax_replacement): Likewise.
8384         (abs_replacement): Likewise.
8386 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
8388         * builtins.c: Don't include gomp-constants.h.
8389         (fold_builtin_1): Don't fold acc_on_device here.
8390         * gimple-fold.c: Include gomp-constants.h.
8391         (gimple_fold_builtin_acc_on_device): New.
8392         (gimple_fold_builtin): Call it.
8394 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8396         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
8397         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
8399 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
8401         * config/arm/aarch-common-protos.h
8402         (aarch_accumulator_forwarding): New.
8403         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8404         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
8405         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8406         * config/arm/cortex-a53.md: Rewrite.
8408 2015-10-01  Richard Biener  <rguenther@suse.de>
8410         * gimple-match.h (mprts_hook): Declare.
8411         * gimple-match.head.c (mprts_hook): Define.
8412         (maybe_push_res_to_seq): Use new hook.
8413         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8414         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
8415         (vn_ssa_aux::has_constants): Remove.
8416         * tree-ssa-sccvn.c: Include gimple-match.h.
8417         (VN_INFO_GET): Assert we don't re-use SSA names.
8418         (vn_get_expr_for): Remove.
8419         (expr_has_constants): Likewise.
8420         (stmt_has_constants): Likewise.
8421         (simplify_binary_expression): Likewise.
8422         (simplify_unary_expression): Likewise.
8423         (vn_lookup_simplify_result): New hook.
8424         (visit_copy): Adjust.
8425         (visit_reference_op_call): Likewise.
8426         (visit_phi): Likewise.
8427         (visit_use): Likewise.
8428         (process_scc): Likewise.
8429         (init_scc_vn): Likewise.
8430         (visit_reference_op_load): Likewise.  Use match-and-simplify and
8431         a gimple seq for inserted expressions.
8432         (try_to_simplify): Remove GENERIC stmt combining code.
8433         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
8434         * tree-ssa-pre.c (eliminate_insert): Adjust.
8435         (eliminate_dom_walker::before_dom_children): Likewise.
8437 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8439         * doc/invoke.texi (Optimization Options): Add
8440         -freorder-blocks-algorithm=.
8441         (Optimize Options) <-O>: Add -freorder-blocks.
8442         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
8443         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
8444         <-freorder-blocks>: Also enabled at levels -O and -Os.
8445         <-freorder-blocks-algorithm=>: Document new option.
8447 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8449         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
8450         with flag_reorder_blocks_algorithm.
8451         * common.opt (freorder-blocks-algorithm=): New flag.
8452         (reorder_blocks_algorithm): New enum.
8453         * flag-types.h (reorder_blocks_algorithm): New enum.
8454         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
8455         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
8457 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8459         * bb-reorder.c: Add intro comment.
8460         (reorder_basic_blocks_software_trace_cache): Print a header to
8461         the dump file.
8462         (edge_order): New function.
8463         (reorder_basic_blocks_simple): New function.
8464         (reorder_basic_blocks): Choose between the STC and the simple
8465         algorithms (always choose the former).
8467 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8469         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
8470         function, factored out from ...
8471         (reorder_basic_blocks): ... here.
8473 2015-10-01  Tom de Vries  <tom@codesourcery.com>
8475         * tree-cfg.c (dump_function_to_file): Dump function attributes using
8476         __attribute__(()) string.  Move dumping of function attributes to before
8477         function name.
8479 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
8481         PR target/66870
8482         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8483         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
8484         based on gold linker version.
8485         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
8486         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
8487         * configure, config.in: Regenerate.
8489 2015-10-01  Alan Modra  <amodra@gmail.com>
8491         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
8492         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
8493         (rs6000_output_mi_thunk): Likewise.
8495 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
8497         * config/nvptx/mkoffload.c (process): Change offload data format.
8499 2015-09-30  Jeff Law  <law@redhat.com>
8501         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
8502         with constant conditions.
8503         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
8504         (remove_ctrl_stmt_and_useless_edges): No longer static.
8505         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
8506         (remove_ctrl_stmt_and_useless_edges): Likewise.
8508 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
8509             Cesar Philippidis  <cesar@codesourcery.com>
8511         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
8512         (TARGET_GOACC_VALIDATE_DIMS): Override.
8513         * target.def (TARGET_GOACC): New target hook prefix.
8514         (validate_dims): New hook.
8515         * targhooks.h (default_goacc_validate_dims): New.
8516         * omp-low.c (oacc_validate_dims): New.
8517         (execute_oacc_device_lower): New.
8518         (default_goacc_validate_dims): New.
8519         (pass_data_oacc_device_lower): New.
8520         (pass_oacc_device_lower): New pass.
8521         (make_pass_oacc_device_lower): New.
8522         * tree-pass.h (make_pass_oacc_device_lower): Declare.
8523         * passes.def (pass_oacc_device_lower): Add it.
8524         * doc/tm.texi: Rebuilt.
8525         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
8526         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
8528 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8530         PR rtl-optimization/67037
8531         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
8533 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
8535         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
8536         * passes.c: Include tree-ssanames.h.
8537         (execute_function_todo): Flush the pending free SSA_NAMEs after
8538         eliminating unreachable basic blocks.
8539         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
8540         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
8541         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
8542         (flush_ssanames_freelist): New function.
8543         (release_ssaname_fn): Put released names on the queue.
8544         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
8545         * tree-ssanames.h (flush_ssanames_freelist): Declare.
8547 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8549         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
8550         (generate_target_descr_file, generate_target_offloadend_file)
8551         (generate_host_descr_file, prepare_target_image): Pass it on.
8552         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
8553         (compile_native, main): Pass it on.
8554         * lto-wrapper.c (compile_offload_image): Likewise.
8556 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8557             Ilya Verbin  <ilya.verbin@intel.com>
8558             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8560         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
8561         (prepare_target_image, main): Refactor argv building to use
8562         obstacks.
8564 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8566         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
8567         * config/spu/spu.c (spu_expand_atomic_op): New function.
8568         * config/spu/spu.md (AINT): New mode iterator.
8569         (ATOMIC): New code iterator.
8570         (atomic_name, atomic_pred): New code predicates.
8571         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
8572         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
8573         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
8574         "atomic_<atomic_name>_fetch<mode>"): Likewise.
8576 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
8578         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
8579         debug insns.
8580         (scalar_chain::convert_reg): Likewise.
8582 2015-09-30  Richard Biener  <rguenther@suse.de>
8584         * builtins.c: Add comment that no new simplifications should
8585         be added here.
8587 2015-09-30  Marek Polacek  <polacek@redhat.com>
8589         PR tree-optimization/67690
8590         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
8591         reset_flow_sensitive_info_in_bb.
8592         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8593         * tree-ssanames.c: Include "gimple-iterator.h".
8594         (reset_flow_sensitive_info_in_bb): New function.
8595         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
8597 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8599         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
8600         variable, replacing it with...
8601         (offload_abi): ... this new variable.  Adjust all users.
8602         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
8604 2015-09-30  Matthias Klose  <doko@ubuntu.com>
8606         * configure.ac: Remove extraneous ;;.
8607         * configure: Regenerate.
8609 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
8611         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
8612         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
8613         predicate, disallow register for operand 2.
8615 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
8617         * graphite-dependences.c (scop_get_dependences): Moved in down
8618         in order to be visible to its caller.
8619         * graphite-poly.h: Removed compute_deps, and extend_schedule.
8621 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
8622             Aditya Kumar  <aditya.k7@samsung.com>
8624         PR tree-optimization/67754
8625         * graphite-optimize-isl.c (optimize_isl): Call
8626         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
8628 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
8630         * builtins.c (expand_builtin_acc_on_device): Delete.
8631         (expand_builtin): Don't call it.
8632         (fold_builtin_1): Fold acc_on_device.
8634 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
8636         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
8637         (ix86_nsaved_sseregs): Likewise.
8639 2015-09-29  Jeff Law  <law@redhat.com>
8641         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
8642         computation of unused value.
8644         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
8645         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
8646         inline macro expansion.
8648         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
8650         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
8651         (gen_shl_sext): Likewise.
8652         * config/sh/sh.md (divsi3): Likewise.
8653         (imm->ext_dest_operand splitter): Likewise.
8655 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
8656             Aditya Kumar  <aditya.k7@samsung.com>
8658         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
8659         (nb_data_writes_in_bb): Remove.
8660         (split_pbb): Remove.
8661         (split_reduction_stmt): Remove.
8662         (is_reduction_operation_p): Remove.
8663         (phi_contains_arg): Remove.
8664         (follow_ssa_with_commutative_ops): Remove.
8665         (detect_commutative_reduction_arg): Remove.
8666         (detect_commutative_reduction_assign): Remove.
8667         (follow_inital_value_to_phi): Remove.
8668         (edge_initial_value_for_loop_phi): Remove.
8669         (initial_value_for_loop_phi): Remove.
8670         (used_outside_reduction): Remove.
8671         (detect_commutative_reduction): Remove.
8672         (translate_scalar_reduction_to_array_for_stmt): Remove.
8673         (remove_phi): Remove.
8674         (dr_indices_valid_in_loop): Remove.
8675         (close_phi_written_to_memory): Remove.
8676         (translate_scalar_reduction_to_array): Remove.
8677         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
8678         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
8679         (rewrite_commutative_reductions_out_of_ssa): Remove.
8680         (build_poly_scop): Remove call to
8681         rewrite_commutative_reductions_out_of_ssa.
8683 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
8685         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
8686         Add new insn types for vector load and store pairs.
8687         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
8688         types "neon_ldp{,_q}".
8689         * config/arm/cortex-a57.md (neon_load_c): Add insn types
8690         "neon_ldp{,_q}".
8691         (neon_store_complex): Add insn types "neon_stp{,_q}".
8692         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
8693         "neon_{ldp,stp}_q".
8695 2015-09-29  Jeff Law  <law@redhat.com>
8697         * config/rx/constraints.md (Int08): Fix undefined left shift
8698         behaviour.
8699         (Sint08, Sint16, Sint24): Likewise.
8700         * config/rx/rx.c (rx_get_stack_layout): Likewise.
8702         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
8703         behaviour.
8705         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
8706         left shift behaviour.
8707         * config/msp430/constraints.md ('L' constraint): Similarly.
8708         ('Ys' constraint): Similarly.
8710 2015-09-29  Richard Biener  <rguenther@suse.de>
8712         PR tree-optimization/67170
8713         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
8714         the translate function pointer parameter to get the
8715         bool whether to disambiguate only by reference.
8716         (walk_non_aliased_vuses): Likewise.
8717         * tree-ssa-alias.c (maybe_skip_until): Adjust.
8718         (get_continuation_for_phi_1): Likewise.
8719         (get_continuation_for_phi): Likewise.
8720         (walk_non_aliased_vuses): Likewise.
8721         * tree-ssa-sccvn.c (const_parms): New bitmap.
8722         (vn_reference_lookup_3): Adjust for interface change.
8723         Disambiguate parameters pointing to readonly memory.
8724         (free_scc_vn): Free const_parms.
8725         (run_scc_vn): Initialize const_parms from a fn spec attribute.
8727 2015-09-29  Richard Biener  <rguenther@suse.de>
8729         PR tree-optimization/67741
8730         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
8731         builtin calls with correct signature.
8733 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
8735         PR target/65105
8736         * config/i386/i386.c: Include dbgcnt.h.
8737         (has_non_address_hard_reg): New.
8738         (convertible_comparison_p): New.
8739         (scalar_to_vector_candidate_p): New.
8740         (remove_non_convertible_regs): New.
8741         (scalar_chain): New.
8742         (scalar_chain::scalar_chain): New.
8743         (scalar_chain::~scalar_chain): New.
8744         (scalar_chain::add_to_queue): New.
8745         (scalar_chain::mark_dual_mode_def): New.
8746         (scalar_chain::analyze_register_chain): New.
8747         (scalar_chain::add_insn): New.
8748         (scalar_chain::build): New.
8749         (scalar_chain::compute_convert_gain): New.
8750         (scalar_chain::replace_with_subreg): New.
8751         (scalar_chain::replace_with_subreg_in_insn): New.
8752         (scalar_chain::emit_conversion_insns): New.
8753         (scalar_chain::make_vector_copies): New.
8754         (scalar_chain::convert_reg): New.
8755         (scalar_chain::convert_op): New.
8756         (scalar_chain::convert_insn): New.
8757         (scalar_chain::convert): New.
8758         (convert_scalars_to_vector): New.
8759         (pass_data_stv): New.
8760         (pass_stv): New.
8761         (make_pass_stv): New.
8762         (ix86_option_override): Created and register stv pass.
8763         (flag_opts): Add -mstv.
8764         (ix86_option_override_internal): Likewise.
8765         * config/i386/i386.md (SWIM1248x): New.
8766         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
8767         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
8768         (*anddi3_doubleword): New.
8769         (*zext<mode>_doubleword): New.
8770         (*zextsi_doubleword): New.
8771         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
8772         (*<code>di3_doubleword): New.
8773         * config/i386/i386.opt (mstv): New.
8774         * dbgcnt.def (stv_conversion): New.
8776 2015-09-29  Tom de Vries  <tom@codesourcery.com>
8778         * tree-cfg.c (dump_function_to_file): Dump function attributes.
8780 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8782         PR target/67716
8783         * config/sh/sh.c (sh_override_options_after_change): New.
8784         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8785         (sh_option_override): Move align_loops, align_jumps and
8786         align_functions handling into sh_override_options_after_change.
8788 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
8790         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
8791         (nvptx_record_offload_symbol): Record function execution geometry.
8792         * config/nvptx/mkoffload.c (process): Include launch geometry in
8793         function data.
8794         * omp-low.c (oacc_launch_pack): New.
8795         (replace_oacc_fn_attrib): New.
8796         (set_oacc_fn_attrib): New.
8797         (get_oacc_fn_attrib): New.
8798         (expand_omp_target): Create keyed varargs for GOACC_parallel call
8799         generation.
8800         * omp-low.h (get_oacc_fn_attrib): Declare.
8801         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
8802         (DEF_FUNCTION_TYPE_VAR_11): Delete.
8803         * tree.h (OMP_CLAUSE_EXPR): New.
8804         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
8806 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
8807             Sebastian Pop  <s.pop@samsung.com>
8809         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
8811 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
8812             Sebastian Pop  <s.pop@samsung.com>
8814         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
8815         * graphite-scop-detection.c (struct sese_l): New type.
8816         (get_entry_bb): API for getting entry bb of SESE.
8817         (get_exit_bb): API for getting exit bb of SESE.
8818         (class debug_printer): New type.  Simple printer in debug mode.
8819         (trivially_empty_bb_p): New.  Return true when BB is empty or
8820         contains only debug instructions.
8821         (graphite_can_represent_expr): Call scalar_evoution_in_region
8822         instead of analyze_scalar_evolution.  Pass in scop instead of only
8823         the scop entry.
8824         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
8825         scop entry.
8826         (stmt_simple_for_scop_p): Same.
8827         (harmful_stmt_in_bb): Same.
8828         (graphite_can_represent_loop): Deleted.
8829         (struct scopdet_info): Deleted.
8830         (scopdet_basic_block_info): Deleted.
8831         (build_scops_1): Deleted.
8832         (bb_in_sd_region): Deleted.
8833         (find_single_entry_edge): Deleted.
8834         (find_single_exit_edge): Deleted.
8835         (create_single_entry_edge): Deleted.
8836         (sd_region_without_exit): Deleted.
8837         (create_single_exit_edge): Deleted.
8838         (unmark_exit_edges): Deleted.
8839         (mark_exit_edges): Deleted.
8840         (create_sese_edges): Deleted.
8841         (build_graphite_scops): Deleted.
8842         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
8843         (build_scops): Use the new scop_builder to build scops.
8844         (dot_all_scops_1): Use the new pretty printer.  Print loop father
8845         as well.
8846         (loop_body_is_valid_scop): New.  Return true if loop body is a
8847         valid scop.
8848         (class scop_builder): New.  Builds SCoPs for polyhedral
8849         optimizations.
8850         (scop_builder): New constructor.
8851         (static sese_l invalid_sese): sese_l with invalid edges.
8852         (get_sese): Get an sese (from a loop) if possible, invalid_sese
8853         otherwise.
8854         (get_nearest_dom_with_single_entry): Get nearest dominator of a
8855         basic_block with single entry.  Return NULL if we get to the
8856         beginning of a function.
8857         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
8858         a basic_block with single exit.  Return NULL if we get to the
8859         beginning of a function.
8860         (print_sese): Pretty-print SESE.
8861         (merge_sese): Merge two SESEs if possible and return the new SESE.
8862         (build_scop_depth): Start building the SCoP within a loop nest.
8863         (build_scop_breadth): Start building the SCoP at a single loop
8864         depth.  Merge adjacent SESEs if valid.
8865         (can_represent_loop_1): Returns true if Graphite can represent
8866         loop inside SCoP.  Helper for can_represent_loop.
8867         (can_represent_loop): Returns true if Graphite can represent LOOP
8868         and all its nested loops in SCoP.
8869         (loop_is_valid_scop): Returns true if LOOP and all its nests
8870         constitute a valid SCoP.
8871         (region_has_one_loop): Returns true of a region has only one loop.
8872         (add_scop): Add SCoP to the list of valid scops.  Removes an
8873         already existing scop if it intersects with or subsumed by this one.
8874         (harmful_stmt_in_region): Returns true if SCoP has any statment
8875         which cannot be represented by Graphite.
8876         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
8877         (remove_subscops): Remove any SCoP from the list of already found
8878         SCoPs, if subsumed by S1.
8879         (intersects): Return true if region bounded by SCoPs S1 and S2
8880         intersect.
8881         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
8882         * graphite.c (print_graphite_scop_statistics):
8883         (print_graphite_statistics): Print SCoP info while debugging.
8884         (graphite_initialize): Early exit in case number of loops in a
8885         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
8886         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8887         (graphite_finalize):
8888         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
8889         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
8890         (recompute_all_dominators): Recalculate POST_DOMINATORS.
8891         * tree-cfg.c (print_loops): Print the function name while printing
8892         loops.
8894 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
8895             Sebastian Pop  <s.pop@samsung.com>
8897         PR tree-optimization/67700
8898         * graphite-sese-to-poly.c (parameter_index_in_region): Call
8899         invariant_in_sese_p_rec.
8900         (extract_affine): Same.
8901         (rewrite_cross_bb_scalar_deps): Call update_ssa.
8902         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
8903         * sese.h (invariant_in_sese_p_rec): Declare.
8905 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
8907         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
8909 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
8911         Revert:
8912         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8913                     Jiong Wang  <jiong.wang@arm.com>
8915         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8916         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8917         (REG_CLASS_NAMES): Likewise.
8918         (REG_CLASS_CONTENTS): Likewise.
8919         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8920         (aarch64_register_move_cost): Likewise.
8921         (aarch64_load_symref_appropriately): Invoke the new added pattern if
8922         possible.
8923         * config/aarch64/constraints.md (Uc0): New constraint.
8925 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
8927         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
8929 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
8931         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
8932         SECTION_EXCLUDE in XO mapping class.
8934 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
8936         PR target/54236
8937         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
8938         and handle ne and eq codes.
8939         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
8940         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
8941         CONST_INT_P.  Use reverse_condition.
8942         (sh_split_treg_set_expr): Likewise.
8944 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
8946         * config/arm/types.md (type): Add rotate_imm.
8947         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
8948         ROR immediate case.
8949         (*rorsi3_insn_uxtw): Likewise.
8950         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
8951         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
8952         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
8954 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8956         PR rtl-optimization/67481
8957         * ifcvt.c (contains_ccmode_rtx_p): New function.
8958         (insn_valid_noce_process_p): Use it.
8960 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8962         PR rtl-optimization/67456
8963         PR rtl-optimization/67464
8964         PR rtl-optimization/67465
8965         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
8966         move in the mode of x.  Handle combination of complex and simple
8967         block pairs as well as the case when one is empty.
8969 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8971         * doc/gimple.texi: Update references to gimple_statement_base.
8972         * gdbhooks.py: Likewise.
8973         * gimple.h: Likewise.
8975 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8977         * config/sparc/driver-sparc.c: map LEON to leon3
8979 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8981         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
8982           and make it inverse to change default
8983         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
8984           supervisor mode
8985         * doc/invoke.texi: Document change of default
8987 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8989         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
8990         true on %f0 for a target without FPU.
8991         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
8992         without FPU.
8993         (untyped_return): Do not load %f0 for a target without FPU.
8995 2015-09-28  Andrew Pinski  <apinski@cavium.com>
8997         * config/aarch64/aarch64.md (prefetch):
8998         Change the predicate of operand 0 to register_operand.
9000 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
9002         * config/i386/predicates.md (register_sse4nonimm_operand): New
9003         predicate.
9004         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
9005         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
9006         Use register_sse4nonimm_operand as operand 0 predicate.
9007         (*vec_extractv8hi_sse2): Remove insn pattern.
9008         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
9009         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
9011 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
9012             Kaz Kojima  <kkojima@gcc.gnu.org>
9014         PR target/67391
9015         * config/sh/sh-protos.h (sh_lra_p): Declare.
9016         * config/sh/sh.c (sh_lra_p): Make non-static.
9017         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
9018         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
9019         Expand into addsi3_scr if operands[2] if needed.
9020         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
9021         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
9022         (addsi3_scr, *addsi3): New insn_and_split patterns.
9024 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
9026         PR rtl-optimization/64164
9027         PR tree-optimization/67312
9028         PR middle-end/67340
9029         PR middle-end/67490
9030         PR bootstrap/67597
9031         * cfgexpand.c (parm_in_stack_slot_p): Remove.
9032         (ssa_default_def_partition): Remove.
9033         (get_rtl_for_parm_ssa_default_def): Remove.
9034         (set_rtl): Check that RTL assignments match expectations.
9035         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
9036         default def location for params and results.  Record SSA names
9037         or types in REG and MEM attrs, respectively.
9038         (set_parm_rtl): New.
9039         (expand_one_ssa_partition): Drop logic that assigned MEMs with
9040         unassigned addresses.
9041         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
9042         deferred stack alloc vars.
9043         (expand_used_vars): Skip partitions holding parm default defs.
9044         Move adjust_one_expanded_partition_var loop...
9045         (pass_expand::execute): ... here.  Drop redundant assert.
9046         Adjust comments before the final loop over all ssa names.
9047         Require assigned rtl of parms and results to match exactly.
9048         Reset its attributes to match them, not any other variables in
9049         the same partition.
9050         (expand_debug_expr): Use entry value for PARM's default defs
9051         only iff they have zero nondebug uses.
9052         * cfgexpand.h (parm_in_stack_slot_p): Remove.
9053         (get_rtl_for_parm_ssa_default_def): Remove.
9054         (set_parm_rtl): Declare.
9055         * doc/invoke.texi: Improve wording.
9056         * explow.c (promote_decl_mode): Fix promote_function_mode for
9057         result decls not by reference.
9058         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
9059         bypass TYPE_MODE to get the actual vector mode.
9060         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
9061         2015-08-19's changes as follows.  Drop include of
9062         basic-block.h and df.h.
9063         (rtl_for_parm): Remove.
9064         (maybe_reset_rtl_for_parm): Remove.
9065         (parm_in_unassigned_mem_p): Remove.
9066         (use_register_for_decl): Add logic for RESULT_DECLs matching
9067         assign_parms' behavior.
9068         (split_complex_args): Revert.
9069         (assign_parms_augmented_arg_list): Revert.  Add comment
9070         referencing the logic above.
9071         (assign_parm_adjust_stack_rtl): Revert.
9072         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
9073         of SET_DECL_RTL.  Set up a REG if the parm demands so.
9074         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
9075         calls into a single set_parm_rtl.  Set up a temporary RTL
9076         temporarily for expand_assignment.
9077         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
9078         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
9079         (assign_bounds): Revert.
9080         (assign_parms): Revert.  Use set_parm_rtl.
9081         (allocate_struct_function): Relayout result and parms of
9082         non-abstruct functions.
9083         (expand_function_start): Revert.  Use set_parm_rtl.  If the
9084         result is not a hard reg, create a pseudo from the promoted
9085         mode of the default def.  Promote static chain mode.
9086         * tree-outof-ssa.c (remove_ssa_form): Drop unused
9087         partition_has_default_def.  Set up
9088         partitions_for_parm_default_defs.
9089         (finish_out_of_ssa): Remove partition_has_default_def.
9090         Release partitions_for_parm_default_defs.
9091         * tree-outof-ssa.h (struct ssaexpand): Remove
9092         partition_has_default_def.  Add
9093         partitions_for_parm_default_defs.
9094         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
9095         stor-layout.h.
9096         (build_ssa_conflict_graph): Fix conflict-detection of default
9097         defs of even unused default defs of params and results.
9098         (for_all_parms): New.
9099         (create_default_def): New.
9100         (register_default_def): New.
9101         (coalesce_with_default): New.
9102         (create_outofssa_var_map): Create default defs for all parms
9103         and results, and register their partitions.  Add GIMPLE_RETURN
9104         operands as coalesce candidates with results.  Add default
9105         defs of each parm or result as coalesce candidates with its
9106         other defs.  Mark each result def, and each default def of
9107         parms, as used_in_copy.
9108         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
9109         with the ssa names, even anonymous ones.  Drop
9110         parm_in_stack_slot_p calls.  Require same signedness and
9111         alignment.
9112         (coalesce_ssa_name): Add coalesce candidates for all defs of
9113         each parm and result, even unused ones.
9114         (parm_default_def_partition_arg): New type.
9115         (set_parm_default_def_partition): New.
9116         (get_parm_default_def_partitions): New.
9117         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
9118         * tree-ssa-live.c (partition_view_init): Regard unused defs of
9119         parms and results as used.
9120         (verify_live_on_entry): Don't error out just because they're
9121         not live.
9123 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
9125         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9126         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
9127         (output_fde): Don't output length for debug_frame on AIX.
9128         (output_call_frame_info): Don't output length for debug_frame on AIX.
9129         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
9130         HAVE_XCOFF_DWARF_EXTRAS.
9131         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
9132         HAVE_XCOFF_DWARF_EXTRAS.
9133         (output_compilation_unit_header): Don't output length on AIX.
9134         (output_pubnames): Don't output length on AIX.
9135         (output_aranges): Delete argument. Compute length locally. Don't
9136         output length on AIX.
9137         (output_line_info): Don't output length on AIX.
9138         (dwarf2out_finish): Don't compute aranges_length.
9139         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9140         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
9141         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
9142         symbol decoration for AIX.
9143         (rs6000_xcoff_debug_unwind_info): New.
9144         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
9145         for SECTION_DEBUG.
9146         (rs6000_xcoff_declare_function_name): Emit different
9147         .function pseudo-op when DWARF2_DEBUG. Don't call
9148         xcoffout_declare_function for DWARF2_DEBUG.
9149         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
9150         Redefine.
9151         * config/rs6000/aix71.h: New.
9152         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
9153         locations support.
9154         * configure: Regenerate.
9155         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
9156         DWARF support.
9158 2015-09-26  Jeff Law  <law@redhat.com>
9160         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
9161         behaviour.
9162         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
9163         behaviour.
9165         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
9166         behaviour
9168         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
9169         undefined behaviour.
9171         * config/cris/cris.md (asrandb): Fix left shift undefined
9172         behaviour.
9173         (asrandw): Likewise.
9175 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
9177         PR target/61578
9178         * lra-constarints.c (match_reload): Check presence of the input pseudo
9179         in the output operand.
9181 2015-09-25  Tobias Burnus  <burnus@net-b.de>
9183         * doc/invoke.texi (-fsanitize): Minor wording tweak.
9185 2015-09-25  Tobias Burnus  <burnus@net-b.de>
9187         * doc/invoke.texi (-fsanitize): Update URLs.
9189 2015-09-25  Teresa Johnson  <tejohnson@google.com>
9191         * opts.c (finish_options): Unset -freorder-blocks-and-partition
9192         if not using profile.
9194 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9196         PR pretty-print/67567
9197         * pretty-print.c (pp_string): Add gcc_checking_assert.
9198         * pretty-print.h (output_buffer_append_r): Likewise.
9200 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
9202         PR target/67675
9203         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
9204         addr2 individually.  Don't emit logical or insn if one is known to
9205         be aligned approriately.
9206         (sh_expand_cmpnstr): Likewise.
9208 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
9210         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
9211         __builtin_aarch64_fp[sc]r arguments into a register.
9213 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
9215         * config.gcc (x86_archs): Replace lakemount with lakemont.
9216         (with_cpu): Likewise.
9217         (with_arch): Likewise.
9218         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9219         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
9220         __tune_lakemount__ with __tune_lakemont__.
9221         * config/i386/i386.c (lakemount_cost): Renamed to ...
9222         (lakemont_cost): This.
9223         (m_LAKEMOUNT): Renamed to ...
9224         (m_LAKEMONT): This.
9225         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
9226         (processor_target_table): Replace "lakemount" with "lakemont".
9227         (processor_alias_table): Likewise.
9228         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
9229         PROCESSOR_LAKEMONT.
9230         (ix86_adjust_cost): Likewise.
9231         (ia32_multipass_dfa_lookahead): Likewise.
9232         * config/i386/i386.h (processor_type): Likewise.
9233         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
9234         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
9235         Lakemount with Lakemont.
9237 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
9239         * config.gcc (x86_archs): Replace iamcu with lakemount.
9240         (with_cpu): Likewise.
9241         (with_arch): Likewise.
9242         * doc/invoke.texi: Likewise.
9243         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9244         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
9245         __tune_iamcu__ with __tune_lakemount__.
9246         * config/i386/i386.c (iamcu_cost): Renamed to ...
9247         (lakemount_cost): This.
9248         (m_IAMCU): Renamed to ...
9249         (m_LAKEMOUNT): This.
9250         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
9251         (processor_target_table): Replace "iamcu" with "lakemount".
9252         (processor_alias_table): Likewise.
9253         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
9254         PROCESSOR_LAKEMOUNT.
9255         (ix86_adjust_cost): Likewise.
9256         (ia32_multipass_dfa_lookahead): Likewise.
9257         * config/i386/i386.h (processor_type): Likewise.
9258         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
9260 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
9262         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
9263         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
9264         Declare.
9265         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
9266         (pa_expand_compare_and_swap_loop): New.
9267         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
9268         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
9269         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
9270         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
9271         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
9272         Revise.
9274 2015-09-24  Michael Collison  <michael.collison@linaro.org>
9276         PR other/57195
9277         * read-md.c (read_name): Allow mode iterators inside angle
9278         brackets in rtl expressions.
9280 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
9282         PR target/61578
9283         * ira-color.c (update_allocno_cost): Add parameter.
9284         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
9285         parameter.
9287 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9289         PR driver/67640
9290         * opts-common.c (prune_options): Discard all -fdiagnostics-color
9291         but the last one, which is moved to the front to be processed
9292         first.
9293         * opts.c (enable_warning_as_error): Reject options that do not
9294         control warnings.
9296 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
9298         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
9300 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
9302         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
9303         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
9304         (aarch64_cannot_force_const_mem): Likewise.
9305         (aarch64_classify_address): Likewise.
9306         (aarch64_classify_symbolic_expression): Likewise.
9307         (aarch64_print_operand): Likewise.
9308         (aarch64_classify_symbol): Likewise.
9309         (aarch64_mov_operand_p): Likewise.
9310         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
9311         (aarch64_mov_operand): Likewise.
9313 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
9315         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
9316         for info->spe_gp_size.
9318 2015-09-24  Richard Biener  <rguenther@suse.de>
9320         PR lto/67699
9321         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
9322         abstract origins.
9324 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
9326         * tree-object-size.c (plus_stmt_object_size)
9327         (cond_expr_object_size): Change the formal parameters from gimple
9328         to gimple *.
9329         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
9330         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
9331         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
9333 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9335         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
9336         Check for ld -type pie on Solaris 11.x and 12.
9337         * configure: Regenerate.
9338         * config.in: Regenerate.
9340         * gcc.c (LD_PIE_SPEC): Allow redefinition.
9342         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
9343         (STARTFILE_SPEC): Use it.
9344         (ENDFILE_CRTEND_SPEC): Define.
9345         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
9346         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
9347         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
9348         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
9349         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
9350         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
9351         (ENDFILE_ARCH_SPEC): Define.
9352         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
9354 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9356         * configure.ac (gcc_cv_solaris_crts): New test.
9357         * configure. Regenerate.
9358         * config.in: Regenerate.
9359         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
9360         HAVE_SOLARIS_CRTS variant.
9362 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9364         * tree-inline.h (count_insns_seq): Delete prototype.
9365         (estimate_num_insns_seq): Define prototype.
9366         * tree-inline.c (count_insns_seq): Delete.
9367         (estimate_num_insns_seq): Remove static qualifier.
9368         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
9369         with estimate_num_insns_seq.
9371 2015-09-24  Richard Biener  <rguenther@suse.de>
9373         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
9374         members.
9375         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
9376         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
9377         offset.
9378         (ao_ref_init_from_vn_reference): Record clique and base in the
9379         built base.
9380         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
9382 2015-09-24  Richard Biener  <rguenther@suse.de>
9384         PR tree-optimization/48885
9385         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
9386         as not including any restrict tags from other pointers.
9388 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
9390         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
9391         character when appending to offload_targets.
9393         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
9394         offload targets by commas, not colons.
9395         * config.in: Regenerate.
9396         * configure: Likewise.
9397         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
9398         instead of setting up the default offload targets here...
9399         (process_command): ..., do it here.
9400         libgomp/
9401         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
9402         targets are separated by commas.
9403         * config.h.in: Regenerate.
9405 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
9406             Nathan Sidwell  <nathan@codesourcery.com>
9408         * omp-low.h (omp_reduction_init_op): Declare.
9409         * omp-low.c (omp_reduction_init_op): New, broken out of ...
9410         (omp_reduction_init): ... here.  Call it.
9411         * tree-parloops.c (initialize_reductions): Use
9412         omp_reduction_init_op.
9414 2015-09-23   Richard Biener  <rguenther@suse.de>
9416         PR middle-end/67662
9417         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
9418         undefined overflow unless they will cancel out.
9420 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
9422         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
9423         insn emit.
9425 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9427         PR c/49655
9428         * opts.h (write_langs): Declare.
9429         * opts-global.c (write_langs): Make it extern.
9431 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
9433         PR target/67391
9434         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
9435         overlapping regs when matching the pattern.
9437 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
9439         * config/aarch64/aarch64-simd.md
9440         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
9441         (aarch64_float_truncate_hi_v4sf_le): New.
9442         (aarch64_float_truncate_hi_v4sf_be): Likewise.
9444 2015-09-23  Richard Biener  <rguenther@suse.de>
9446         * tree-ssa-structalias.c (intra_create_variable_infos): Build
9447         representatives for all restrict qualified pointer destinations.
9449 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
9451         * config/i386/i386.md (define_code_attr mshift): New.
9452         (define_mode_iterator SWI1248_AVX512BW): Rename ...
9453         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
9454         only.
9455         (define_insn "*k<logic><mode>"): Use new iterator name.
9456         (define_insn "*<mshift><mode>3"): New.
9458 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
9460         PR middle-end/67649
9461         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
9462         mark the block as accessible.
9464 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
9466         * function.c (thread_prologue_and_epilogue_insns): Delete
9467         orig_entry_edge argument to try_shrink_wrapping.
9468         * shrink-wrap.c (can_get_prologue): New function.
9469         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
9470         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
9471         can_get_prologue where needed.  Remove code that finds a single
9472         edge for the prologue.  Remove code that tests if any reg clobbered
9473         by the prologue is live on the prologue edge.  Remove code that finds
9474         the new prologue edge after duplicating blocks.  Make a new prologue
9475         block and edge.
9476         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
9478 2015-09-22  Jeff Law  <law@redhat.com>
9480         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
9481         behavior.
9483 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
9485         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
9486         -Wtemplates, -Wnamespaces): Document.
9488 2015-09-22  Tom de Vries  <tom@codesourcery.com>
9490         PR tree-optimization/67671
9491         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
9492         pointer references as restrict.
9494 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
9496         * config/nios2/nios2.c (nios2_legitimize_address): When handling
9497         'reg + reloc' cases, allow first operand to be non-REG, and use
9498         force_reg() to enforce address pattern.
9500 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
9502         PR target/67480
9503         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
9504         (define_mode_iterator VI12_AVX_AVX512F): New.
9505         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
9506         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
9507         (define_insn "*<code><mode>3"): ... Into new pattern using
9508         VI12_AVX_AVX512F iterators without masking.
9510 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9512         * config.gcc: Support "skylake-avx512".
9513         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9514         PROCESSOR_SKYLAKE_AVX512.
9515         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
9516         (processor_target_table): Add "skylake-avx512".
9517         (PTA_SKYLAKE_AVX512): Define.
9518         (ix86_option_override_internal): Add "skylake_avx512".
9519         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
9520         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
9521         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
9522         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
9523         * doc/invoke.texi (skylake-avx512): New.
9525 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9527         * config/i386/i386.md (define_insn "kunpckhi"): Fix
9528         operand in pattern.
9529         (define_insn "kunpcksi"): Ditto.
9530         (define_insn "kunpckdi"): Ditto.
9532 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9534         * config/i386/i386.md (define_split not/xor SWI1248x): Use
9535         iterator instead of fixed modes.
9537 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9539         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9540         Adjust declaration.
9541         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
9542         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
9543         out_result.  Update to support update-fetch operations.
9544         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
9545         Adjust for change to aarch64_gen_atomic_ldop.
9546         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
9547         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
9548         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
9549         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
9550         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
9552 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9554         * config/aarch64/aarch64-protos.h
9555         (aarch64_atomic_ldop_supported_p): Declare.
9556         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
9557         (enum aarch64_atomic_load_op_code): New.
9558         (aarch64_emit_atomic_load_op): New.
9559         (aarch64_gen_atomic_ldop): Update to support load-operate
9560         patterns.
9561         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
9562         to an expander.
9563         (aarch64_atomic_<atomic_optab><mode>): New.
9564         (aarch64_atomic_<atomic_optab><mode>_lse): New.
9565         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
9566         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
9567         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
9569 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9571         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
9572         (UNSPECV_ATOMIC_LDOP_OR): New.
9573         (UNSPECV_ATOMIC_LDOP_BIC): New.
9574         (UNSPECV_ATOMIC_LDOP_XOR): New.
9575         (UNSPECV_ATOMIC_LDOP_PLUS): New.
9576         (ATOMIC_LDOP): New.
9577         (atomic_ldop): New.
9578         (aarch64_atomic_load<atomic_ldop><mode>): New.
9580 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9582         * config/aarch64/aarch64.md
9583         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
9584         pattern.
9586 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9588         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9589         Declare.
9590         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
9591         (aarch64_gen_atomic_ldop): New.
9592         (aarch64_split_atomic_op): Fix whitespace and add a comment.
9593         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
9594         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
9595         (atomic_exchange<mode>): Replace with an expander.
9596         (aarch64_atomic_exchange<mode>): New.
9597         (aarch64_atomic_exchange<mode>_lse): New.
9598         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
9599         (aarch64_atomic_swp<mode>): New.
9601 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9603         * tree-inline.c (expand_call_inline): Use inform for extra note.
9604         Do not give a note with UNKNOWN_LOCATION.
9605         Replace input_location with gimple_location (stmt).
9606         Use true/false instead of TRUE/FALSE.
9608 2015-09-22  Tom de Vries  <tom@codesourcery.com>
9610         PR tree-optimization/67666
9611         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
9612         with single field non-conservative.
9614 2015-09-21  David S. Miller  <davem@davemloft.net>
9616         PR/67622
9617         Revert:
9618         2015-09-11  David S. Miller  <davem@davemloft.net>
9620         * config/sparc/constraints.md: Make "U" constraint a real register
9621         constraint.
9622         * config/sparc/sparc.c (TARGET_LRA_P): Define.
9623         (D_MODES, DF_MODES): Add missing cast.
9624         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9625         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9626         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9627         cost to 8.
9628         * config/sparc/sparc.h (PROMOTE_MODE): Define.
9629         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9630         provide these insn when flag_pic.
9632         2015-09-17  David S. Miller  <davem@davemloft.net>
9634         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
9635         Declare.
9636         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
9637         function.
9638         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9639         (HARD_REGNO_CALLER_SAVE_MODE): Define.
9640         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9641         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9642         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9643         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9644         provide when flag_pic.
9646 2015-09-21  Jeff Law  <law@redhat.com>
9648         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
9649         behavior.
9651 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9653         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
9655 2015-09-21  Richard Biener  <rguenther@suse.de>
9657         * passes.c (rest_of_decl_compilation): Do not call
9658         dwarf2out_early_global_decl for aliases.
9660 2015-09-21  Richard Biener  <rguenther@suse.de>
9662         PR debug/67664
9663         * dwarf2out.c (add_location_or_const_value_attribute): Remove
9664         attribute parameter.  Early exit if either DW_AT_const_value
9665         or DW_AT_location are present already.
9666         (gen_variable_die): Adjust caller.
9667         (dwarf2out_late_global_decl): Likewise.
9669 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
9671         PR target/67657
9672         * config/sh/sh.c (sh_remove_overlapping_post_inc,
9673         sh_peephole_emit_move_insn): Add new functions.
9674         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
9675         sh_peephole_emit_move_insn): Declere them.
9676         * config/sh/sh.md: Use them in various peephole2 patterns.
9678 2015-09-21  Richard Biener  <rguenther@suse.de>
9680         PR middle-end/67651
9681         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
9682         address with -fno-delete-null-pointer-checks.
9684 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
9686         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
9687         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
9688         (reduc_uplus_v16qi): Remove.
9690         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
9691         (reduc_<VEC_reduc_name>_v2df): Remove.
9692         (reduc_<VEC_reduc_name>_v4sf): Remove.
9693         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
9695         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
9696         gen_ function by removing * prefix.
9697         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
9699 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9701         PR middle-end/60832
9702         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
9703         Print i_bound without converting it to a tree.
9705 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
9707         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
9708         operands[4] operands[5] swap with std::swap, removed tmp variable.
9709         (arm_evpc_neon_vzip): Replaced in0/in1 and
9710         out0/out1 swaps with std::swap, removed x variable.
9711         (arm_evpc_neon_vtrn): Replaced in0/int1 and
9712         out0/out1 swaos with std::swap, removed x variable.
9713         (arm_expand_vec_perm_const_1): Replaced
9714         d->op0/d->op1 swap with std::swap, removed x variable.
9715         (arm_evpc_neon_vuzp): Replaced in0/in1 and
9716         out0/out1 swaps with std::swap, removed x variable.
9718 2015-09-21  Jonathan Yong  <10walls@gmail.com>
9720         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9721         sysroot/usr/lib/32api for additional win32 libraries,
9722         fixes failing Cygwin bootstrapping.
9724 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
9726         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
9728 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
9730         PR target/67126
9731         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
9732         (*mov_t_msb_neg): Rewrite negc pattern.
9734 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9736         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
9737         immediate generation code.
9739 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9741         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
9742         redundant immediate generation code.
9744 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9746         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
9747         (AARCH64_NUM_BITMASKS): Remove.
9748         (aarch64_bitmasks_cmp): Remove.
9749         (aarch64_build_bitmask_table): Remove.
9751 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9753         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
9754         slow immediate matching loops with a faster algorithm.
9756 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9758         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
9759         faster algorithm.
9761 2015-09-20  Jeff Law  <law@redhat.com>
9763         PR tree-optimization/47679
9764         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
9765         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
9766         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
9767         (thread_through_normal_block): Use record_temporary_equivalences.
9769 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
9771         * coretypes.h (gimple): Change typedef to be a forward declaration.
9772         * gimple.h (gimple_statement_base): rename to gimple.
9773         * (all functions and types using gimple): Adjust.
9774         * *.[ch]: Likewise.
9776 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
9777             David Edelsohn  <dje.gcc@gmail.com>
9779         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
9780         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9781         (EH_FRAME_THROUGH_COLLECT2): Define.
9782         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9783         (ASM_OUTPUT_DWARF_PCREL): Define.
9784         (ASM_OUTPUT_DWARF_DATAREL): Define.
9786 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
9788         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
9789         of TARGET_ELF32.
9791 2015-09-18  Jeff Law  <law@redhat.com>
9793         PR tree-optimization/47679
9794         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
9795         it here ...
9796         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
9797         object.  Update constructor.
9798         (pass_dominator::execute):  Corresponding chagnes to declaration
9799         and initialization of avail_exprs_stack.  Update constructor call
9800         for dom_opt_dom_walker object.
9801         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
9802         it down to children as needed.
9803         (record_equivalences_from_incoming_edge): Likewise.
9804         (eliminate_redundant_computations): Likewise.
9805         (record_equivalences_from_stmt): Likewise.
9806         (simplify_stmt_for_jump_threading): Likewise.
9807         (record_temporary_equivalences): Likewise.
9808         (optimize_stmt): Likewise.
9809         (dom_opt_dom_walker::thread_across_edge): Update access to
9810         avail_exprs_stack object and pass it to children as needed.
9811         (dom_opt_dom_walker::before_dom_children): Similarly.
9812         (dom_opt_dom_walker::after_dom_children): Similarly.
9813         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
9814         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
9815         Add avail_expr_stack argument.  Pass it to children as needed.
9816         (dummy_simplify): Likewise.
9817         (simplify_control_stmt_condition): Likewise.
9818         (thread_around_empty_blocks): Likewise.
9819         (thread_through_normal_block): Likewise.
9820         (thread_across_edge): Likewise.
9821         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9822         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
9824         PR tree-optimization/47679
9825         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
9826         it here ...
9827         (dom_opt_dom_walker): New private member holding the const_and_copies
9828         object.  Update constructor.
9829         (pass_dominator::execute): Corresponding changes to declaration
9830         and initialization of const_and_copies.  Update constructor call
9831         for the dom_opt_dom_walker object.
9832         (record_temporary_equivalences): Accept const_and_copies argument
9833         pass it down to children as needed.
9834         (record_equality): Likewise.
9835         (record_equivalences_from_incoming_edge): Likewise.
9836         (cprop_into_successor_phis, optimize_stmt): Likewise.
9837         (eliminate_redundant_computations): Likewise.
9838         (dom_opt_dom_walker::thread_across_edge): Update access to
9839         const_and_copies object and pass it to children as needed.
9840         (dom_opt_dom_walker::before_dom_children): Similarly.
9841         (dom_opt_dom_walker::after_dom_children): Similarly.
9843         PR tree-optimization/47679
9844         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
9845         it into the avail_exprs_stack class.
9846         (pass_dominator::execute): Corresponding changes to declaration
9847         and initialization of avail_exprs.  Pass avail_exprs to
9848         dump_dominator_optimization_stats.
9849         (record_cond): Extract avail_exprs from avail_exprs_stack.
9850         (lookup_avail_expr): Similarly.
9851         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
9852         position in file.
9853         (dump_dominator_optimization_stats): Make static and prototype.
9854         Add argument for the hash table to dump.
9855         (debug_dominator_optimization_stats): Remove.
9856         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
9857         prototype.
9858         (debug_dominator_optimization_stats): Similarly.
9859         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
9860         "void" in prototype for pop_to_marker method.  Add accessor method
9861         for the underlying avail_exprs table.
9863         * tree-ssa-threadedge.c: Remove trailing whitespace.
9865 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
9867         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
9868         unsigned.
9869         (pa_ldil_cint_p): Likewise.
9870         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
9871         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
9872         Update callers.
9873         * config/pa/pa.md: Likewise.
9875 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
9877         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
9878         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
9879         (diagnostic_show_locus): Likewise.
9880         (diagnostic_print_caret_line): Likewise.
9881         * diagnostic-show-locus.c: New file.
9883 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
9885         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
9886         "back" parameter. Declare label in #if block.
9888 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
9890         PR middle-end/67619
9891         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
9892         the address to a register.
9894 2015-09-18  Jeff Law  <law@redhat.com>
9896         PR tree-optimization/47679
9897         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
9898         * tree-ssa-dom.c: Remove unnecessary header includes.
9899         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
9900         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
9901         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
9902         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
9903         (pass_phi_only_cprop::execute): Likewise.
9904         (make_pass_phi_only_cprop): Likewise.
9905         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
9906         uses of file scoped statics by passing the required objects
9907         as parameters wherever needed.
9909 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
9910             David Edelsohn  <dje.gcc@gmail.com>
9912         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
9913         EH_FRAME_THROUGH_COLLECT2.
9914         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
9915         DW_EH_PE_datarel.
9916         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
9917         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
9918         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
9919         * except.c (switch_to_exception_section): Use a read-only section
9920         even if EH_FRAME_SECTION_NAME is undefined.
9921         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
9922         * collect2.c (write_c_file_stat): Provide dbase on AIX.
9923         (scan_prog_file): Don't export __dso_handle nor
9924         __gcc_unwind_dbase.
9925         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9926         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9927         (ASM_OUTPUT_DWARF_PCREL): Define.
9928         (ASM_OUTPUT_DWARF_DATAREL): Define.
9929         (EH_FRAME_THROUGH_COLLECT2): Define.
9930         (EH_FRAME_IN_DATA_SECTION): Delete.
9931         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
9932         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
9933         Declare.
9934         (rs6000_asm_output_dwarf_datarel): Declare.
9935         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
9936         (rs6000_aix_asm_output_dwarf_datarel): New.
9937         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
9938         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
9939         (EH_FRAME_THROUGH_COLLECT2): Define.
9940         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
9941         (EH_FRAME_THROUGH_COLLECT2): Define.
9942         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9943         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
9944         (EH_FRAME_THROUGH_COLLECT2): New.
9945         (ASM_OUTPUT_DWARF_DATAREL): New.
9946         * doc/tm.texi: Regenerate.
9948 2015-09-18  Richard Biener  <rguenther@suse.de>
9950         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
9951         we're in early phase.
9952         (schedule_generic_params_dies_gen): Likewise.
9953         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
9954         work as possible, retaining unhandled cases.
9955         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
9956         clear out generic_type_instances at the end.
9957         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
9958         (dwarf2out_early_finish): ... here.  Do most of
9959         gen_remaining_tmpl_value_param_die_attribute here.
9961 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
9963         PR tree-optimization/67283
9964         * tree-sra.c (type_consists_of_records_p): Rename to...
9965         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9966         (completely_scalarize_record): Rename to...
9967         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9968         (scalarize_elem): New.
9969         (analyze_all_variable_accesses): Follow renamings.
9971 2015-09-18  Richard Biener  <rguenther@suse.de>
9973         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
9974         in early-dwarf.
9976 2015-09-18  Richard Biener  <rguenther@suse.de>
9978         PR tree-optimization/66142
9979         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
9980         treat MEM[&x] and x the same.
9981         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
9982         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
9983         when we simplified sth.
9984         (vn_reference_maybe_forwprop_address): Likewise.
9985         (valueize_refs_1): When we simplified through
9986         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
9987         set valueized_anything to true.
9988         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
9989         one ref kills the other instead of just a offset-based test.
9990         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
9991         for the operand_equal_p test to compare bases and also compare
9992         sizes.
9994 2015-09-17  Christian Bruel  <christian.bruel@st.com>
9996         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
9998 2015-09-17  Richard Henderson  <rth@redhat.com>
10000         PR libstdc++/65913
10001         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
10002         pointers that encode the alignment of the object.
10004 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
10006         PR rtl-optimization/66790
10007         * df-problems.c (LIVE): Amend documentation.
10009 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
10011         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
10012         and optabs-tree.o.
10013         (GTFILES): Replace optabs.c with optabs-libfunc.c.
10014         * genopinit.c (main): Add an include guard to insn-opinit.h.
10015         Protect the rtx_code parts with NUM_RTX_CODE.
10016         * optabs.h: Split parts out to...
10017         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
10018         * optabs.c: Split parts out to...
10019         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
10020         * cilk-common.c: Include optabs-query.h rather than optabs.h.
10021         * fold-const.c: Likewise.
10022         * target-globals.c: Likewise.
10023         * tree-if-conv.c: Likewise.
10024         * tree-ssa-forwprop.c: Likewise.
10025         * tree-ssa-loop-prefetch.c: Likewise.
10026         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
10027         Remove unncessary include files.
10028         * tree-ssa-phiopt.c: Likewise.
10029         * tree-ssa-reassoc.c: Likewise.
10030         * tree-switch-conversion.c: Likewise.
10031         * tree-vect-data-refs.c: Likewise.
10032         * tree-vect-generic.c: Likewise.
10033         * tree-vect-loop.c: Likewise.
10034         * tree-vect-patterns.c: Likewise.
10035         * tree-vect-slp.c: Likewise.
10036         * tree-vect-stmts.c: Likewise.
10037         * tree-vrp.c: Likewise.
10038         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
10039         rather than optabs.h.
10040         * expr.c: Include optabs-tree.h.
10041         * function.c: Likewise.
10043 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
10045         PR middle-end/65958
10046         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
10047         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
10048         * config/arm/arm.c: Include common/common-target.h.
10049         (use_return_insn): Return 0 if the static chain register was saved
10050         above a non-APCS frame.
10051         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
10052         (struct scratch_reg): New.
10053         (get_scratch_register_on_entry): New function.
10054         (release_scratch_register_on_entry): Likewise.
10055         (arm_emit_probe_stack_range): Likewise.
10056         (output_probe_stack_range): Likewise.
10057         (arm_expand_prologue): Factor out code dealing with the IP register
10058         for nested function and adjust it for stack checking.
10059         Invoke arm_emit_probe_stack_range if static builtin stack checking
10060         is enabled.
10061         (thumb1_expand_prologue): Sorry out if static builtin stack checking
10062         is enabled.
10063         (arm_expand_epilogue): Add the saved static chain register, if any, to
10064         the amount of pre-pushed registers to pop.
10065         (arm_frame_pointer_required): Return true if static stack checking is
10066         enabled and we want to catch the exception with the EABI unwinder.
10067         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
10068         (UNSPEC_PROBE_STACK_RANGE): Likewise.
10069         * config/arm/arm.md (probe_stack): New insn.
10070         (probe_stack_range): Likewise.
10072 2015-09-17  Richard Biener  <rguenther@suse.de>
10074         * genmatch.c (parser::parse_expr): Improve error message
10075         for mis-placed flags.
10077 2015-09-17  Richard Biener  <rguenther@suse.de>
10079         * passes.c (rest_of_decl_compilation): Always call early_global_decl
10080         debug hook when we created a varpool node.
10081         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
10082         dwarf2out_early_global_decl, when not just add location or
10083         value attributes to existing DIEs.
10085 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
10087         * config/aarch64/aarch64.md (copysigndf3): New.
10088         (copysignsf3): Likewise.
10090 2015-09-17  David S. Miller  <davem@davemloft.net>
10092         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
10093         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
10094         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
10095         (HARD_REGNO_CALLER_SAVE_MODE): Define.
10096         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
10097         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
10098         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
10099         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
10100         provide when flag_pic.
10102 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
10104         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
10105         object_allocator change.
10107 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
10109         PR tree-optimization/66388
10110         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
10111         (dump_iv): Dump no_overflow information.
10112         (alloc_iv): Initialize new field for struct iv.
10113         (mark_bivs): Count number of no_overflow bivs.
10114         (find_deriving_biv_for_expr, record_biv_for_address_use): New
10115         functions.
10116         (idx_find_step): Call new functions above.
10117         (add_candidate_1, add_candidate): New paramter.
10118         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
10119         (get_computation_aff): Simplify convertion of cand for BIV.
10120         (get_computation_cost_at): Step cand's base if necessary.
10122 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
10124         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
10125         parameter.
10126         (tree_simplify_using_condition): Ditto.
10127         (simplify_using_initial_conditions): Ditto.
10128         (loop_exits_before_overflow): Pass new argument to function
10129         simplify_using_initial_conditions.  Remove case for type conversions
10130         simplification.
10131         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
10132         parameter.
10133         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
10134         in iv base using loop initial conditions.
10136 2015-09-16  Jeff Law  <law@redhat.com>
10138         PR tree-optimization/47679
10139         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
10140         (free_all_edge_infos): Use it.
10141         (allocate_edge_info): Free preexisting edge info data.
10142         (pass_dominator::execute): Set up initial edge info structures.
10143         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
10144         thread_across_edge.
10145         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
10146         If non-null, then push/pop markers appropriately.
10147         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10148         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
10149         thread-across_edge.
10151 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
10153         * config/ft32/ft32.c: Fix the memory address space predicate.
10155 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
10157         PR target/67573
10158         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
10159         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
10161 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10163         * toplev.h (check_global_declaration): Remove declaration.
10164         * toplev.c (check_global_declaration): Move to ...
10165         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
10166         (analyze_functions): Update call.
10168 2015-09-16  David S. Miller  <davem@davemloft.net>
10170         * lra-constraints.c (simplify_operand_subreg): Do not assume that
10171         lowpart of a SUBREG has offset zero.
10173 2015-09-16  Jeff Law  <law@redhat.com>
10175         PR tree-optimization/47679
10176         * tree-ssa-dom.c (enum expr_kind): Moved from here to
10177         tree-ssa-scopedtables.h.
10178         (struct hashable_expr, class expr_hash_elt): Likewise.
10179         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
10180         Move associated methods into tree-ssa-scopedtables.c.
10181         (avail_expr_hash, initialize_expr_from_cond): Similarly.
10182         (hashable_expr_equal_p, add_expr_commutative): Likewise.
10183         (add_hashable_expr): Likewise.
10184         (record_cond): Delete element directly.
10185         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
10186         private copy ctor and assignment operator methods.
10187         (expr_elt_hasher): Inline trivial methods.
10188         (initialize_expr_from_cond): Prototype.
10189         * tree-ssa-scopedtables.c: Add necessary includes, functions and
10190         methods that were previously in tree-ssa-dom.c.  Improve various
10191         comments.
10193 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
10195         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
10197 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
10199         PR bootstrap/67587
10200         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
10201         fixup_partitions.
10203 2015-09-16  Richard Biener  <rguenther@suse.de>
10205         PR middle-end/67253
10206         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
10207         location of possibly shared trees.
10209 2015-09-16  Richard Biener  <rguenther@suse.de>
10211         PR middle-end/67271
10212         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
10214 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
10216         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
10217         offset and size computations instead of HOST_WIDE_INT.
10219 2015-09-16  Richard Biener  <rguenther@suse.de>
10221         PR middle-end/67442
10222         * fold-const.c (extract_muldiv_1): Properly extend multiplication
10223         result before builting a tree via wide_int_to_tree.
10225 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
10227         * Makefile.in: Add memory-block.cc
10228         (pool_allocator::initialize): Use fixed block size.
10229         (pool_allocator::release): Use memory_block_pool.
10230         (pool_allocator::allocate): Likewise.
10231         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
10232         object pools.
10233         * cfg.c (initialize_original_copy_tables): Likewise.
10234         * cselib.c (elt_list_pool, elt_loc_list_pool,
10235         cselib_val_pool): Likewise.
10236         * df-problems.c (df_chain_alloc): Likewise.
10237         * df-scan.c (df_scan_alloc): Likewise.
10238         * dse.c (cse_store_info_pool, rtx_store_info_pool,
10239         read_info_type_pool, insn_info_type_pool, bb_info_pool,
10240         group_info_pool, deferred_change_pool): Likewise.
10241         * et-forest.c (et_nodes, et_occurrences): Likewise.
10242         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
10243         ipcp_agg_lattice_pool): Likewise.
10244         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
10245         * ipa-profile.c (histogram_pool): Likewise.
10246         * ipa-prop.c (ipa_refdesc_pool): Likewise.
10247         * ira-build.c (live_range_pool, allocno_pool, object_pool,
10248         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
10249         * ira-color.c (update_cost_record_pool): Likewise.
10250         * lra-lives.c (lra_live_range_pool): Likewise.
10251         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
10252         * memory-block.cc: New file.
10253         * memory-block.h: New file.
10254         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
10255         * sched-deps.c (sched_deps_init): Likewise.
10256         * sel-sched-ir.c (sched_lists_pool): Likewise.
10257         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
10258         * tree-sra.c (access_pool): Likewise.
10259         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10260         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
10261         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
10262         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10263         * tree-ssa-strlen.c (strinfo_pool): Likewise.
10264         * tree-ssa-structalias.c (variable_info_pool): Likewise.
10265         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
10266         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
10268 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
10270         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
10271         definition.
10272         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
10273         call0 ABI.
10275 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
10277         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
10278         to pass TLS call argument, according to current ABI.
10279         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
10280         callx0 for TLS call, according to current ABI.
10282 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
10284         * tree-eh.c (lower_try_finally_dup_block): Clear location information
10285         on stack restore statements.
10286         (decide_copy_try_finally): Do not consider a stack restore statement as
10287         coming from sources.
10289 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
10291         * config/alpha/alpha.c (alpha_expand_block_clear): Use
10292         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
10294 2015-09-15  Jeff Law  <law@redhat.com>
10296         PR tree-optimization/47679
10297         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
10298         methods and private members.
10299         (avail_exprs_stack): Similarly.  Change type of global
10300         from a pair of expr_hash_elt_t to the new class.
10301         (expr_elt_hasher::hash): Corresponding changes.
10302         (expr_elt_hasher::equal): Similarly.
10303         (avail_expr_hash): Similarly.
10304         (pass_dominator::execute): Similarly.
10305         (dom_opt_dom_walker::thread_across_edge): Similarly.
10306         (record_cond): Similarly.
10307         (dom_opt_dom_walker::before_dom_children): Similarly.
10308         (dom_opt_dom_walker::after_dom_children): Similarly.
10309         (lookup_avail_expr): Likewise.
10310         (initialize_hash_element): Now a expr_hash_elt constructor.
10311         (initialize_hash_element_from_expr): Similarly.
10312         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
10313         (free_expr_hash_elt): Call dtor for the element.
10314         (remove_local_expressions_from_table): Now the "pop_to_marker"
10315         method in the available_exprs_stack class.
10316         (avail_expr_stack::record_expr): Method factored out.
10317         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
10318         Fix formatting.
10319         (hashable_expr_equal_p): Fix formatting.
10321 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
10323         * input.h (location_get_source_line): Drop "expanded_location"
10324         param in favor of a file and line number.
10325         * input.c (location_get_source_line): Likewise.
10326         (dump_location_info): Update for change in signature of
10327         location_get_source_line.
10328         * diagnostic.c (diagnostic_print_caret_line): Likewise.
10330 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
10332         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
10333         Bump to 4KB for SJLJ exceptions.
10334         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
10335         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
10336         * doc/tm.texi: Regenerate.
10338 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10340         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
10341         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
10342         Update prototype.
10344 2015-09-15  Richard Biener  <rguenther@suse.de>
10346         PR tree-optimization/67470
10347         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
10348         structure for PHI hoisting by inserting a forwarder block
10349         if appropriate.
10351 2015-09-15  Christian Bruel  <christian.bruel@st.com>
10353         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
10354         (arm_option_print): New function.
10356 2015-09-15  Christian Bruel  <christian.bruel@st.com>
10358         PR target/52144
10359         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
10360         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
10361         Remove flags parameter.
10362         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
10363         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
10364         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
10365         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
10366         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
10367         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
10368         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
10369         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
10371 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10373         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
10375         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
10376         AARCH64_VALID_SIMD_DREG_MODE.
10378 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10380         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
10381         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
10382         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
10383         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
10384         aarch64_ld4_lane<mode>): Combine together, making...
10385         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10386         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10387         aarch64_st4_lane<mode>): Combine together, making...
10388         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10389         * config/aarch64/iterators.md (nregs): Add comment.
10391 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10393         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
10394         Change operand mode from <V_TWO_ELEM> to BLK.
10395         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
10396         (aarch64_vec_store_lanesoi_lane<mode): Likewise
10397         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10398         (aarch64_ld2_lane<mode>): Likewise.
10399         (aarch64_st2_lane<VQ:mode>): Likewise.
10400         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
10402 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10404         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
10405         Change operand mode from <V_FOUR_ELEM> to BLK.
10406         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10407         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
10408         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10409         (aarch64_ld4_lane<mode>): Likewise.
10410         (aarch64_st4_lane<mode>): Likewise.
10411         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
10413 2015-09-15  Richard Biener  <rguenther@suse.de>
10415         PR middle-end/67563
10416         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
10417         transfer EH info from old to new stmt.
10418         (replace_call_with_value): Likewise.
10419         (replace_call_with_call_and_fold): Likewise.
10420         (gimple_fold_builtin_memory_op): Likewise.
10421         (gimple_fold_builtin_memset): Likewise.
10422         (gimple_fold_builtin_stpcpy): Likewise.
10423         (gimple_fold_call): Likewise.
10425 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10427         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
10428         comment.
10429         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
10430         (aarch64_simd_intEI_type_node): Likewise.
10431         (aarch64_simd_builtin_std_type): Remove EImode case.
10432         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
10433         * config/aarch64/aarch64-modes.def: Remove EImode.
10435 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10437         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
10438         Change operand mode from <V_THREE_ELEM> to BLK.
10439         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10440         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
10441         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10442         (aarch64_ld3_lane<mode>): Likewise.
10443         (aarch64_st3_lane<mode>): Likewise.
10444         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
10446 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10448         * config/aarch64/aarch64-simd.md
10449         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
10450         Change all TImode operands to BLKmode.
10451         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
10452         Change all EImode operands to BLKmode.
10453         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
10454         Change all OImode operands to BLKmode.
10456         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
10457         and call set_mem_size.
10458         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
10460         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
10462 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10464         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
10465         to...
10466         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
10468         (vec_store_lanesci_lane<mode>): Rename to...
10469         (aarch64_vec_store_lanesci_lane<mode>): ...this.
10471         (vec_store_lanesxi_lane<mode>): Rename to...
10472         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
10474         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10475         aarch64_st4_lane<mode>): Follow renaming.
10477 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10479         * config/s390/s390.c (s390_const_operand_ok): Add missing
10480         brackets.
10482 2015-09-15  Richard Biener  <rguenther@suse.de>
10484         PR lto/67568
10485         * lto-streamer.h (lto_location_cache::current_sysp): Properly
10486         initialize.
10487         * lto-streamer-out.c (clear_line_info): Likewise.
10489 2015-09-15  Richard Biener  <rguenther@suse.de>
10491         * doc/match-and-simplify.texi: Fix wording.
10493 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
10495         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
10496         unnecessary type conversion in op1.
10498 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
10500         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
10501         (dup_block_and_redirect): Delete function.
10502         (can_dup_for_shrink_wrapping): New function.
10503         (fix_fake_fallthrough_edge): New function.
10504         (try_shrink_wrapping): Rewrite function.
10505         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
10507 2015-09-14  Rich Felker  <dalias@libc.org>
10509         * configure.ac: Change target pattern for sh TLS support
10510         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
10511         * configure: Regenerate.
10513 2015-09-14  Jeff Law  <law@redhat.com>
10515         PR tree-optimization/47679
10516         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
10517         type rather than void *.
10519 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10521         PR fortran/67460
10522         * diagnostic.c (diagnostic_initialize): Do not set
10523         some_warnings_are_errors.
10524         (diagnostic_finish): Use DK_WERROR count instead.
10525         (diagnostic_report_diagnostic): Do not set
10526         some_warnings_are_errors.
10527         * diagnostic.h (struct diagnostic_context): Remove
10528         some_warnings_are_errors.
10530 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
10532         * config/sparc/predicates.md (const_all_ones_operand): Use
10533         CONSTM1_RTX to simplify definition.
10535 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
10537         PR target/67061
10538         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
10539         Handle call insns.
10541 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
10543         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
10544         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
10545         OPT_fshow_column to handled saved option cases.
10546         (append_compiler_options): Do not skip the above added options.
10548 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10550         PR target/63304
10551         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
10552         nopcrelative_literal_loads.
10553         (aarch64_classify_address): Likewise.
10554         (aarch64_constant_pool_reload_icode): Define.
10555         (aarch64_secondary_reload): Handle secondary reloads for
10556         literal pools.
10557         (aarch64_override_options): Handle nopcrelative_literal_loads.
10558         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
10559         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10560         Define.
10561         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10562         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
10563         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
10564         predicate.
10565         * doc/invoke.texi (mpc-relative-literal-loads): Document.
10567 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
10569         PR middle-end/67401
10570         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
10571         sync_compare_and_swap_optab libcall to target_oval.
10573 2015-09-14  Marek Polacek  <polacek@redhat.com>
10575         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
10576         value.
10577         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
10579 2015-09-11  Mark Wielaard  <mjw@redhat.com>
10581         PR c/28901
10582         * toplev.c (check_global_declaration): Check and use
10583         warn_unused_const_variable.
10584         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
10585         (-Wunused-variable): Remove non-constant. For C implies
10586         -Wunused-const-variable.
10587         (-Wunused-const-variable): New.
10589 2015-09-14  Richard Biener  <rguenther@suse.de>
10591         * doc/match-and-simplify.texi: Update for changed syntax
10592         of inner ifs and the new switch expression.
10594 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
10596         * config/i386/haswell.md: New file describing Haswell pipeline.
10597         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
10598         haswell-like processors.
10599         (ix86_reassociation_width): Increase reassociation width for 64-bit
10600         Haswell processor family.
10601         * config/i386/i386.md: Introduce haswell cpu and include new md file.
10603 2015-09-14  Richard Biener  <rguenther@suse.de>
10605         * doc/match-and-simplify.texi: Fixup some formatting issues
10606         and document the 's' flag.
10608 2015-09-13  Olivier Hainque  <hainque@adacore.com>
10609             Eric Botcazou  <ebotcazou@adacore.com>
10611         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
10612         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
10613         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
10614         (TARGET_CPU_gr5): Likewise.
10615         (TARGET_CPU_gr6): Likewise.
10616         (MULTILIB_DEFAULTS): Likewise.
10617         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
10618         for mcpu=gr5 and mcpu=gr6.
10619         (MULTILIB_DIRNAMES): Adjust accordingly.
10621 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10623         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
10624         (mem_ref_p): Likewise.
10625         (outermost_indep_loop): Adjust.
10626         (mem_ref_in_stmt): Likewise.
10627         (determine_max_movement): Likewise.
10628         (mem_ref_alloc): Likewise.
10629         (record_mem_ref_loc): Likewise.
10630         (set_ref_stored_in_loop): Likewise.
10631         (mark_ref_stored): Likewise.
10632         (gather_mem_refs_stmt): Likewise.
10633         (mem_refs_may_alias_p): Likewise.
10634         (for_all_locs_in_loop): Likewise.
10635         (struct rewrite_mem_ref_loc): Likewise.
10636         (rewrite_mem_refs): Likewise.
10637         (struct first_mem_ref_loc_1): Likewise.
10638         (first_mem_ref_loc): Likewise.
10639         (struct sm_set_flag_if_changed): Likewise.
10640         (execute_sm_if_changed_flag_set): Likewise.
10641         (execute_sm): Likewise.
10642         (hoist_memory_references):
10643         (struct ref_always_accessed): Likewise.
10644         (ref_always_accessed_p): Likewise.
10645         (refs_independent_p): Likewise.
10646         (record_dep_loop): Likewise.
10647         (ref_indep_loop_p_1): Likewise.
10648         (ref_indep_loop_p_2): Likewise.
10649         (ref_indep_loop_p): Likewise.
10650         (can_sm_ref_p): Likewise.
10651         (find_refs_for_sm): Likewise.
10652         (tree_ssa_lim_finalize): Likewise.
10654 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10656         * dwarf2out.c (dw_attr_ref): Remove typedef.
10657         (dw_line_info_ref): Likewise.
10658         (pubname_ref): Likewise.
10659         (dw_ranges_ref): Likewise.
10660         (dw_ranges_by_label_ref): Likewise.
10661         (comdat_type_node_ref): Likewise.
10662         (get_AT): Adjust.
10663         (get_AT_low_pc): Likewise.
10664         (get_AT_hi_pc): Likewise.
10665         (get_AT_string): Likewise.
10666         (get_AT_flag): Likewise.
10667         (get_AT_unsigned): Likewise.
10668         (get_AT_ref): Likewise.
10669         (get_AT_file): Likewise.
10670         (remove_AT): Likewise.
10671         (print_die): Likewise.
10672         (check_die): Likewise.
10673         (die_checksum): Likewise.
10674         (attr_checksum_ordered): Likewise.
10675         (struct checksum_attributes): Likewise.
10676         (collect_checksum_attributes): Likewise.
10677         (die_checksum_ordered): Likewise.
10678         (same_die_p): Likewise.
10679         (is_declaration_die): Likewise.
10680         (clone_die): Likewise.
10681         (clone_as_declaration): Likewise.
10682         (copy_declaration_context): Likewise.
10683         (break_out_comdat_types): Likewise.
10684         (copy_decls_walk): Likewise.
10685         (output_location_lists): Likewise.
10686         (external_ref_hasher::hash): Likewise.
10687         (optimize_external_refs_1): Likewise.
10688         (build_abbrev_table): Likewise.
10689         (size_of_die): Likewise.
10690         (unmark_all_dies): Likewise.
10691         (size_of_pubnames): Likewise.
10692         (output_die_abbrevs): Likewise.
10693         (output_die): Likewise.
10694         (output_pubnames): Likewise.
10695         (add_ranges_num): Likewise.
10696         (add_ranges_by_labels): Likewise.
10697         (add_high_low_attributes): Likewise.
10698         (gen_producer_string): Likewise.
10699         (dwarf2out_set_name): Likewise.
10700         (new_line_info_table): Likewise.
10701         (prune_unused_types_walk_attribs): Likewise.
10702         (prune_unused_types_update_strings): Likewise.
10703         (prune_unused_types): Likewise.
10704         (resolve_addr): Likewise.
10705         (optimize_location_lists_1): Likewise.
10706         (index_location_lists): Likewise.
10707         (dwarf2out_finish): Likewise.
10709 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10711         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
10713 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10715         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
10716         (dump_asserts_for): Adjust.
10717         (register_new_assert_for): Likewise.
10718         (process_assert_insertions): Likewise.
10719         (insert_range_assertions): Likewise.
10721 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10723         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
10724         and remove typedef.
10725         (new_temp_expr_table): Adjust.
10726         (free_temp_expr_table): Likewise.
10727         (version_to_be_replaced_p): Likewise.
10728         (make_dependent_on_partition): Likewise.
10729         (add_to_partition_kill_list): Likewise.
10730         (remove_from_partition_kill_list): Likewise.
10731         (add_dependence): Likewise.
10732         (finished_with_expr): Likewise.
10733         (process_replaceable): Likewise.
10734         (kill_expr): Likewise.
10735         (kill_virtual_exprs): Likewise.
10736         (mark_replaceable): Likewise.
10737         (find_replaceable_in_bb): Likewise.
10738         (find_replaceable_exprs): Likewise.
10739         (debug_ter): Likewise.
10741 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10743         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
10744         (struct btr_user): Rename from btr_user_s.
10745         (struct btr_def): Rename from btr_def_s.
10746         (find_btr_def_group): Adjust.
10747         (add_btr_def): Likewise.
10748         (new_btr_user): Likewise.
10749         (note_other_use_this_block): Likewise.
10750         (compute_defs_uses_and_gen): Likewise.
10751         (link_btr_uses): Likewise.
10752         (build_btr_def_use_webs): Likewise.
10753         (block_at_edge_of_live_range_p): Likewise.
10754         (btr_def_live_range): Likewise.
10755         (combine_btr_defs): Likewise.
10756         (move_btr_def): Likewise.
10757         (migrate_btr_def): Likewise.
10758         (migrate_btr_defs): Likewise.
10760 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10762         * var-tracking.c (shared_hash_def): Rename to shared_hash.
10763         (shared_hash): Remove typedef.
10764         (struct dataflow_set): Adjust.
10765         (shared_hash_unshare): Likewise.
10766         (dataflow_set_merge): Likewise.
10767         (vt_initialize): Likewise.
10768         (vt_finalize): Likewise.
10770 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10772         * var-tracking.c (struct location_chain): Rename from
10773         location_chain_def.
10774         (struct variable_part): Adjust.
10775         (variable_htab_free): Likewise.
10776         (unshare_variable): Likewise.
10777         (get_init_value): Likewise.
10778         (get_addr_from_local_cache): Likewise.
10779         (drop_overlapping_mem_locs): Likewise.
10780         (val_reset): Likewise.
10781         (struct variable_union_info): Likewise.
10782         (variable_union): Likewise.
10783         (find_loc_in_1pdv): Likewise.
10784         (insert_into_intersection): Likewise.
10785         (intersect_loc_chains): Likewise.
10786         (canonicalize_loc_order_check): Likewise.
10787         (canonicalize_values_mark): Likewise.
10788         (canonicalize_values_star): Likewise.
10789         (canonicalize_vars_star): Likewise.
10790         (variable_merge_over_cur): Likewise.
10791         (remove_duplicate_values): Likewise.
10792         (variable_post_merge_new_vals): Likewise.
10793         (variable_post_merge_perm_vals): Likewise.
10794         (find_mem_expr_in_1pdv): Likewise.
10795         (dataflow_set_preserve_mem_locs): Likewise.
10796         (dataflow_set_remove_mem_locs): Likewise.
10797         (variable_part_different_p): Likewise.
10798         (onepart_variable_different_p): Likewise.
10799         (find_src_set_src): Likewise.
10800         (dump_var): Likewise.
10801         (set_slot_part): Likewise.
10802         (clobber_slot_part): Likewise.
10803         (delete_slot_part): Likewise.
10804         (vt_expand_var_loc_chain): Likewise.
10805         (emit_note_insn_var_location): Likewise.
10806         (vt_finalize): Likewise.
10808 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10810         * dse.c (store_info_t): Remove typedef.
10811         (group_info_t): Likewise.
10812         (const_group_info_t): Likewise.
10813         (deferred_change_t): Likewise.
10814         (get_group_info): Adjust.
10815         (free_store_info): Likewise.
10816         (canon_address): Likewise.
10817         (clear_rhs_from_active_local_stores): Likewise.
10818         (record_store): Likewise.
10819         (replace_read): Likewise.
10820         (check_mem_read_rtx): Likewise.
10821         (scan_insn): Likewise.
10822         (remove_useless_values): Likewise.
10823         (dse_step1): Likewise.
10824         (dse_step2_init): Likewise.
10825         (dse_step2_nospill): Likewise.
10826         (scan_stores_nospill): Likewise.
10827         (scan_reads_nospill): Likewise.
10828         (dse_step3_exit_block_scan): Likewise.
10829         (dse_step3): Likewise.
10830         (dse_step5_nospill): Likewise.
10831         (dse_step6): Likewise.
10833 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10835         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
10836         (alias_set_entry): Remove typedef.
10837         (alias_set_subset_of): Adjust.
10838         (alias_sets_conflict_p): Likewise.
10839         (init_alias_set_entry): Likewise.
10840         (get_alias_set): Likewise.
10841         (new_alias_set): Likewise.
10842         (record_alias_subset): Likewise.
10844 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
10846         * doc/install.texi (Downloading the source): Mark up
10847         contrib/download_prerequisites properly and drop leading "./".
10849 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10851         * config/arc/arc.h: Remove define of STRUCT_VALUE.
10852         * config/lm32/lm32.h: Likewise.
10853         * config/mep/mep.h: Likewise.
10854         * config/visium/visium.h: Likewise.
10855         * system.h: Poison STRUCT_VALUE macro.
10857 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
10859         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
10860         CONSTANT_P operands.
10862 2015-09-11  David S. Miller  <davem@davemloft.net>
10864         * config/sparc/constraints.md: Make "U" constraint a real register
10865         constraint.
10866         * config/sparc/sparc.c (TARGET_LRA_P): Define.
10867         (D_MODES, DF_MODES): Add missing cast.
10868         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10869         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10870         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10871         cost to 8.
10872         * config/sparc/sparc.h (PROMOTE_MODE): Define.
10873         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10874         provide these insn when flag_pic.
10876 2015-09-11  Jeff Law  <law@redhat.com>
10878         PR tree-optimization/47679
10879         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
10880         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
10881         member with m_.  Update inline member functions as necessary.  Add
10882         toplevel comment.
10883         * tree-ssa-scopedtables.c: Update const_and_copies's member
10884         functions to use m_ prefix to access the stack.
10886 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
10888         * graphite-optimize-isl.c (disable_tiling): Remove.
10889         (get_schedule_for_band): Do not use disable_tiling.
10890         (get_prevector_map): Delete function.
10891         (enable_polly_vector): Remove.
10892         (get_schedule_for_band_list): Remove dead code.
10894 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
10896         * graphite-optimize-isl.c (get_tile_map): Refactor.
10897         (get_schedule_for_band): Same.
10898         (getScheduleForBand): Same.
10899         (get_prevector_map): Same.
10900         (get_schedule_for_band_list): Same.
10901         (get_schedule_map): Same.
10902         (get_single_map): Same.
10903         (apply_schedule_map_to_scop): Same.
10904         (optimize_isl): Same.
10906 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10908         PR target/63304
10909         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
10910         (movtf): Delete.
10911         * config/aarch64/iterators.md (GPF_TF_F16): New.
10912         (GPF_F16): Delete.
10914 2015-09-10  Nathan Sidwell  <nathan@acm.org>
10916         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
10917         (nvptx_reorg): Adjust comments.
10919 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
10921         PR bootstrap/67363
10922         * configure.ac: Check if setenv and unsetenv are declared.
10923         * configure: Rebuild.
10924         * config.in: Rebuild.
10925         * system.h: Declare setenv and unsetenv if not declared.
10927 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10929         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
10930         commentary to simplify permute mask adjustment equation.
10931         (special_handling_values): Add SH_VPERM.
10932         (const_load_sequence_p): New function.
10933         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
10934         the mask loaded from the constant pool.
10935         (adjust_vperm): New function.
10936         (handle_special_swappables): Call adjust_vperm.
10937         (dump_swap_insn_table): Handle SH_VPERM.
10939 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
10941         * shrink-wrap.c (requires_stack_frame_p): Remove static.
10942         * shrink-wrap.h (requires_stack_frame_p): Put back.
10944 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
10946         * reload1.c (elimination_costs_in_insn): Locally turn
10947         -Wmaybe-uninitialized into a warning.
10949 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
10951         * shrink-wrap.c (requires_stack_frame_p): Make static.
10952         (prepare_shrink_wrap): Likewise.
10953         (dup_block_and_redirect): Likewise.
10954         * shrink-wrap.h: Remove declarations of those functions.
10956 2015-09-10  Mark Wielaard  <mjw@redhat.com>
10958         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
10960 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
10962         PR target/67506
10963         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
10964         missing simplify_gen_subreg.
10966 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10968         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
10969         the vector element is bigger than 64 bit.
10971 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10973         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
10974         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
10976 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10978         * config/s390/s390.c: Add V1TImode to constant pool modes.
10980 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10982         PR target/67439
10983         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
10984         predicate.  Set predicable_short_it attr to "no".
10986 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
10988         PR rtl-optimization/67421
10989         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
10990         left wide shift tranformation.
10992 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
10994         * common/config/arc/arc-common.c: Remove references to A5.
10995         * config/arc/arc-opts.h: Likewise.
10996         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
10997         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
10998         * config/arc/t-arc-newlib: Likewise.
11000 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
11002         * config/arc/arc.md (length): Fix attribute length for conditional
11003         executed instructions with long immediate.
11005 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11007         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
11008         type for second alternative.
11010 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
11012         * doc/invoke.texi (Downloading GCC): Mention
11013         contrib/download_prerequisites script.
11015 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
11017         PR c++/67523
11018         * gimplify.c (gimplify_omp_for): If inner stmt is not found
11019         for combined loop, assert seen_error () and return GS_ERROR.
11021         PR middle-end/67521
11022         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
11023         if decl is already in outer->variables.
11025         PR middle-end/67517
11026         * gimplify.c (gimplify_scan_omp_clauses): Instead of
11027         asserting that decl is not specified in octx->variables,
11028         break out of the loop if it is.
11030         PR c++/67514
11031         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
11032         iterator is not explicitly determined, but is defined inside
11033         of the combined workshare region, handle it like if it has
11034         DECL_EXPR in OMP_FOR_PRE_BODY.
11036 2015-09-09  Nathan Sidwell  <nathan@acm.org>
11038         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
11039         (*cmp<mode>): Add assembler spacing.
11040         (setcc_int<mode>, set_cc_float<mode>): Likewise.
11041         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
11042         level.
11043         (write_func_decl_from_insn): Refactor argument loops & comma emission.
11044         (nvptx_expand_call): Likewise.
11045         (nvptx_output_call_insn): Likewise.
11046         (nvptx_reorg_subreg): Add spacing.
11048 2015-09-09  Marek Polacek  <polacek@redhat.com>
11050         PR middle-end/67512
11051         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
11052         for comparisons.
11054 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
11056         PR c++/53184
11057         * doc/invoke.texi ([Wsubobject-linkage]): Document.
11059 2015-09-09  Tom de Vries  <tom@codesourcery.com>
11061         * params-list.h: Add missing copyright notice.
11063 2015-09-09  Nathan Sidwell  <nathan@acm.org>
11065         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
11066         sel_truesi, not andsi.
11068 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11070         * config/arm/arm.md (*subsi3_compare0): Rename to...
11071         (subsi3_compare0): ... This.
11072         (modsi3): New define_expand.
11073         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
11074         when operand is power of 2.
11076 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11078         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
11079         (*neg<mode>2_compare0): Rename to...
11080         (neg<mode>2_compare0): ... This.
11081         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
11082         Move check for speed inside the if-then-elses.  Reflect
11083         CSNEG sequence in MOD by power of 2 case.
11085 2015-09-09  Alan Modra  <amodra@gmail.com>
11087         PR target/67378
11088         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
11089         reload replacement for PRE_MODIFY address reg.
11091 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
11093         PR tree-optimization/53852
11094         * config.in: Regenerate.
11095         * configure: Regenerate.
11096         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
11097         * graphite-optimize-isl.c (optimize_isl): Stop computation when
11098         PARAM_MAX_ISL_OPERATIONS is reached.
11099         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
11100         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
11101         result equal to isl_stat_ok as the status now can be isl_error_quota.
11102         (subtract_commutative_associative_deps): Same.
11103         (compute_deps): Same.
11105 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
11106             Sebastian Pop  <s.pop@samsung.com>
11108         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
11109         Return the parameter if it was saved in corresponding
11110         parameter_rename_map of the region.
11111         (copy_def): Copy def from sese region to the newly created region.
11112         (copy_internal_parameters): Copy all the internal parameters defined
11113         within a region to the newly created region.
11114         (graphite_regenerate_ast_isl): Copy parameters to the new region before
11115         translating isl to gimple.
11116         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
11117         the loop-nest does not have any data-references.
11118         (build_graphite_scops): Create a scop only when there is at least one
11119         loop inside it.
11120         (contains_only_close_phi_nodes): Deleted.
11121         (print_graphite_scop_statistics): Deleted
11122         (print_graphite_statistics): Deleted
11123         (limit_scops): Deleted.
11124         (build_scops): Removed call to limit_scops.
11125         * sese.c (new_sese): Construct.
11126         (free_sese): Destruct.
11127         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
11128         added.
11129         (set_rename): Pass sese region so that parameters inside the region can
11130         be added to its parameter_rename_map.
11131         (rename_uses): Pass sese region.
11132         (graphite_copy_stmts_from_block): Do not copy parameters that have been
11133         generated in the header of the scop. For each SSA_NAME in the
11134         parameter_rename_map rename its usage.
11135         (invariant_in_sese_p_rec): Return false if tree t is defined outside
11136         sese region.
11137         (scalar_evolution_in_region): If the tree t is invariant just return t.
11138         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
11139         struct sese to keep track of all the parameters which need renaming.
11140         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
11141         any data-refs.
11142         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
11144 2015-09-08  Tom de Vries  <tom@codesourcery.com>
11146         * Makefile.in (generated_files): Add params.list.
11147         (params.list, s-params.list): Add rule.
11148         * params.h (enum compiler_param): Include params-list.h.  Move define
11149         DEFPARAM, include params.def and undef DEFPARAM ...
11150         * params-list.h: ... here.  New file.
11152 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
11154         * pretty-print.h (printer_fn): Fix typo in comment.
11156 2015-09-07  Jeff Law  <law@redhat.com>
11158         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
11160 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11162         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
11163         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
11164         (arm_neon_fp16_hw): New.
11166 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11168         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
11169         UNITS_PER_WORD >= 4.
11171 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11173         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
11174         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
11175         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
11176         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
11177         (aarch64_float_extend_lo_v2df): Rename to...
11178         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
11180         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
11181         (float_extend_lo): Add v4sf.
11183         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
11184         * config/aarch64/iterators.md (VQ_HSF): New iterator.
11185         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
11186         (Vwide): New mode_attr.
11188 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11190         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
11191         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
11192         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
11193         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
11194         V4HF and V8HF variants to iterator.
11196         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
11198         * config/aarch64/iterators.md (VDQF_F16): New.
11199         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
11201 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11203         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
11204         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11205         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
11206         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
11207         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
11208         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11209         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
11210         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
11211         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
11212         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
11213         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
11214         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11215         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
11216         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
11217         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
11218         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
11219         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
11220         vld1q_dup_f16): New.
11222 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11224         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
11225         Reparameterize to...
11226         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
11227         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
11228         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
11230         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
11231         v8hf variant.
11232         (float_truncate_lo_): Use BUILTIN_VDF iterator.
11234         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
11236         * config/aarch64/iterators.md (VDF, Vdtype): New.
11237         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
11239 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11241         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
11242         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
11243         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
11244         Add __builtin_aarch64_simd_hf.
11245         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
11246         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
11247         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
11248         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
11249         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
11250         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
11251         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
11252         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
11253         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
11255         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
11256         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
11257         (VDC, Vdbl): Add V4HF.
11259 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11261         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
11262         V4HFmode and V8HFmode.
11263         (aarch64_split_simd_move): Add case for V8HFmode.
11264         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
11265         (aarch64_simd_builtin_std_type): Handle HFmode.
11266         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
11268         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
11269         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
11270         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
11272         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
11273         Float16x8_t.
11275         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
11276         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
11277         New typedefs.
11278         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
11279         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
11280         vst1q_lane_f16): New.
11281         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
11282         (VALLDI_F16, VALL_F16): New.
11283         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
11284         Add cases for V4HF and V8HF.
11285         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
11287 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11289         * config/arm/arm-builtins.c (VAR11, VAR12): New.
11290         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
11291         vld4_dup): Add v4hf variant.
11292         (vget_high, vget_low): Add v8hf variant.
11293         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
11294         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
11295         v4hf and v8hf variants.
11297         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
11298         (VDX): Add V4HF.
11299         (V_DOUBLE): Add case for V4HF.
11300         (VQX): Add V8HF.
11301         (V_HALF): Add case for V8HF.
11302         (VDQX): Add V4HF, V8HF.
11303         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
11304         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
11306         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
11307         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
11308         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
11309         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
11310         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
11311         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
11312         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
11313         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
11314         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
11316         (neon_vcreate, neon_vreinterpretv8qi<mode>,
11317         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11318         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
11319         Change VDX to VD_RE.
11321         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
11322         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
11323         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
11325         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
11326         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
11327         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
11328         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
11329         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
11330         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
11331         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
11332         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
11333         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
11335 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11337         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
11338         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
11339         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
11340         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
11341         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11342         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
11343         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
11344         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
11345         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
11346         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
11347         New.
11349 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11351         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
11353         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
11355         * config/arm/arm-builtins.c (v8hf_UP): New.
11356         (arm_init_simd_builtin_types): Initialise Float16x8_t.
11358         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
11360         * config/arm/arm_neon.h (float16x8_t): New typedef.
11362 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11364         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
11365         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
11366         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
11367         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
11368         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11369         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
11370         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
11371         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
11372         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11373         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
11375 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
11377         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
11378         non-alphanumeric characters in the symbol name.
11380 2015-09-07  Marek Polacek  <polacek@redhat.com>
11382         PR inline-asm/67448
11383         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
11384         a memory input.
11386 2015-09-07  Marek Polacek  <polacek@redhat.com>
11388         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
11390 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
11392         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
11393         not warn.
11395 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
11397         PR middle-end/67452
11398         * tree-ssa-live.c: Include cfgloop.h.
11399         (remove_unused_locals): Clear loop->simduid if simduid is about
11400         to be removed from cfun->local_decls.
11402 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11404         PR target/65210
11405         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
11406         attribute as well.
11408 2015-09-04  Tom de Vries  <tom@codesourcery.com>
11410         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
11412 2015-09-04  Jeff Law  <law@redhat.com>
11414         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
11415         unnecessary constructor.  It's now trivial and implemented inside...
11416         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
11417         constructor.  Add comments to various methods.  Remove unused
11418         private fields.
11419         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
11420         * tree-vrp.c (identify_jump_threads): Likewise.
11421         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
11422         indentation issues.
11423         (thread_across_edge): Similarly.
11424         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
11425         arguments in constructor call.
11427 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
11429         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
11430         temp path contains a '-'.
11432 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11433             Petr Murzin  <petr.murzin@intel.com>
11434             Kirill Yukhin  <kirill.yukhin@intel.com>
11436         * config/i386/i386-builtin-types.def
11437         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
11438         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
11439         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
11440         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
11441         * config/i386/i386.c
11442         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
11443         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11444         IX86_BUILTIN_SCATTERALTDIV16SI.
11445         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
11446         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
11447         __builtin_ia32_scatteraltdiv8si.
11448         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
11449         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11450         IX86_BUILTIN_SCATTERALTDIV16SI.
11451         (ix86_vectorize_builtin_scatter): New.
11452         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
11453         ix86_vectorize_builtin_scatter.
11455 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11456             Petr Murzin  <petr.murzin@intel.com>
11457             Kirill Yukhin  <kirill.yukhin@intel.com>
11459         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
11460         * doc/tm.texi: Regenerate.
11461         * target.def: Add scatter builtin.
11462         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
11463         for loads/stores in case of gather/scatter accordingly.
11464         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11465         STMT_VINFO_GATHER_P(S).
11466         (vect_check_gather): Rename to ...
11467         (vect_check_gather_scatter): this.
11468         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
11469         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
11470         (vect_check_gather_scatter): Use it instead of vect_check_gather.
11471         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
11472         variable and new checkings for it accordingly.
11473         * tree-vect-stmts.c
11474         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11475         STMT_VINFO_GATHER_P(S).
11476         (vect_check_gather_scatter): Use it instead of vect_check_gather.
11477         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
11479 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
11481         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
11482         define_insn.
11483         (mulv16qi3): New define_expand.
11485 2015-09-03  Martin Sebor  <msebor@redhat.com>
11487         PR c/66516
11488         * doc/extend.texi (Other Builtins): Document when the address
11489         of a built-in function can be taken.
11491 2015-09-03  Richard Biener  <rguenther@suse.de>
11493         * dwarf2out.c (flush_limbo_die_list): Split out from ...
11494         (dwarf2out_early_finish): ... here.
11495         (dwarf2out_finish): Do not call dwarf2out_early_finish but
11496         flush_limbo_die_list.  Assert we have no deferred asm names.
11498 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11500         * optabs.c (expand_binop): Don't create a broadcast vector with a
11501         source element wider than the inner mode.
11503 2015-09-03  Richard Biener  <rguenther@suse.de>
11505         * varasm.c (output_constant): Use fold_convert instead of
11506         wide_int_to_tree.
11508 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11510         PR tree-optimization/65637
11511         * omp-low.c (expand_omp_for_static_chunk): Handle case that
11512         fin_bb has 2 predecessors.
11514 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11516         PR tree-optimization/65637
11517         * omp-low.c (find_phi_with_arg_on_edge): New function.
11518         (expand_omp_for_static_chunk): Fix inner loop phi.
11520 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11522         PR tree-optimization/65637
11523         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
11524         that head is NULL.
11526 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11528         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
11530 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11532         * doc/invoke.texi (parloops-chunk-size): Add item.
11533         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
11534         * tree-parloops.c: Include params.h.
11535         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
11536         param parloops-chunk-size is used.
11538 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11540         PR middle-end/67351
11541         * fold-const.c (fold_binary_loc) : Move
11542         Transform (x >> c) << c into x & (-1<<c) or
11543         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
11544         types using simplify and match.
11545         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
11546         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
11548 2015-09-03  Richard Biener  <rguenther@suse.de>
11550         PR ipa/66705
11551         * tree-ssa-structalias.c (ctor_for_analysis): New function.
11552         (create_variable_info_for_1): Use ctor_for_analysis instead
11553         of get_constructor.
11554         (create_variable_info_for): Likewise.
11556 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
11558         PR ipa/67280
11559         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
11560         in new callgraph edge.
11562 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
11564         PR target/59810
11565         PR target/63652
11566         PR target/63653
11567         * config/aarch64/aarch64-simd.md
11568         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
11569         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
11570         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
11571         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
11573 2015-09-02  Alan Modra  <amodra@gmail.com>
11575         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
11576         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
11577         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
11579 2015-09-02  Alan Modra  <amodra@gmail.com>
11581         PR target/67417
11582         * config/rs6000/predicates.md (current_file_function_operand): Don't
11583         return true for weak symbols.
11584         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
11586 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
11587             Andrew Bennett  <andrew.bennett@imgtec.com>
11589         * config/mips/mips-opts.h (mips_cb_setting): New enum.
11590         * config/mips/mips-protos.h: Add definitions for
11591         mips_output_jump and mips_output_equal_conditional_branch
11592         * config/mips/mips.c (MIPS_JR): Change to support the
11593         JIC instruction.
11594         (mips_emit_compare): Add support for the MIPS R6 conditional
11595         compact branches.
11596         (mips_process_sync_loop): Likewise.
11597         (mips_output_order_conditional_branch): Likewise.
11598         (mips16_build_call_stub): Change MIPS_CALL to
11599         mips_output_jump.
11600         (mips_print_operand_punctuation): Update 's' case to only
11601         apply to micromips r2.
11602         (mips_adjust_insn_length): Add support for forbidden slot
11603         hazards.
11604         (mips_avoid_hazard): Likewise.
11605         (mips_reorg_process_insns): Likewise.
11606         (mips_output_jump): New function.
11607         (mips_output_equal_conditional_branch): Likewise.
11608         (mips_output_conditional_branch): Use jrc/bc if compact
11609         branch support is enabled.  Ensure the forbidden slots
11610         between the two branch instructions is filled with a nop.
11611         (mips_option_override): Add support to process the compact
11612         branch option and set the correct defaults.  Prevent
11613         non-explict relocs being using for MIPS R6.
11614         (mips_trampoline_init): Add compact branch support.
11615         (mips_mult_zero_zero_cost): Allow zero initialisation of
11616         accumulators with TARGET_DSP.
11617         * config/mips/mips.h (TARGET_CB_NEVER): New define.
11618         (TARGET_CB_MAYBE): New define.
11619         (TARGET_CB_ALWAYS): New define.
11620         (ISA_HAS_DELAY_SLOTS): New define.
11621         (ISA_HAS_COMPACT_BRANCHES): New define.
11622         (ISA_HAS_JRC): New define.
11623         (MIPS_BRANCH_C): New define.
11624         (MIPS_CALL): Removed.
11625         (MICROMIPS_J): Removed.
11626         * config/mips/mips.md (compact_form): New attr.
11627         (hazard): Add support for forbidden slots.
11628         (define_delay): Add support for compact branches.
11629         (*branch_order<mode>): Likewise.
11630         (*branch_order<mode>_inverted): Likewise.
11631         (*branch_equality<mode>): Likewise.
11632         (*branch_equality<mode>_inverted): Likewise.
11633         (*jump_absolute): Likewise.
11634         (*jump_pic): Likewise.
11635         (indirect_jump): Use mips_output_jump to produce assembly output.
11636         (tablejump_<mode>"): Likewise.
11637         (*<optab>"): Likewise.
11638         (<optab>_internal): Likewise.
11639         (sibcall_internal): Likewise.
11640         (sibcall_value_internal): Likewise.
11641         (sibcall_value_multiple_internal): Likewise.
11642         (call_internal): Likewise.
11643         (call_split): Likewise.
11644         (call_internal_direct): Likewise.
11645         (call_direct_split): Likewise.
11646         (call_value_internal): Likewise.
11647         (call_value_split): Likewise.
11648         (call_value_internal_direct): Likewise.
11649         (call_value_direct_split): Likewise.
11650         (call_value_multiple_internal): Likewise.
11651         (call_value_multiple_split): Likewise.
11652         (mips_get_fcsr_mips16_<mode>): Likewise.
11653         (mips_set_fcsr_mips16_<mode>): Likewise.
11654         (tls_get_tp_mips16_<mode>): Likewise.
11655         * config/mips/mips.opt: Add -mcompact-branches option.
11656         * config/mips/predicates.md (order_operator): Ensure the
11657         conditional compact branches are only used if the ISA them.
11658         * doc/invoke.texi: Document -mcompact-branches option.
11660 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
11662         PR target/61578
11663         * lra-lives.c (process_bb_lives): Process move pseudos with the
11664         same value for copies and preferences
11665         * lra-constraints.c (match_reload): Create match reload pseudo
11666         with the same value from single dying input pseudo.
11668 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
11670         PR target/67405
11671         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
11673 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
11675         * trans-mem.c: Add contributed-by.
11676         * trans-mem.h: Same.
11678 2015-09-01  Richard Biener  <rguenther@suse.de>
11680         * expr.c (expand_expr_real_1): For expanding TERed defs
11681         set the current location to that of the def if not UNKNOWN.
11683 2015-09-01  David Sherwood  <david.sherwood@arm.com>
11685         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
11687 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11689         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
11690         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
11691         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
11692         Include rtl-iter.h.
11693         (noce_simple_bbs): New function.
11694         (noce_try_move): Bail if basic blocks are not simple.
11695         (noce_try_store_flag): Likewise.
11696         (noce_try_store_flag_constants): Likewise.
11697         (noce_try_addcc): Likewise.
11698         (noce_try_store_flag_mask): Likewise.
11699         (noce_try_cmove): Likewise.
11700         (noce_try_minmax): Likewise.
11701         (noce_try_abs): Likewise.
11702         (noce_try_sign_mask): Likewise.
11703         (noce_try_bitop): Likewise.
11704         (bbs_ok_for_cmove_arith): New function.
11705         (noce_emit_all_but_last): Likewise.
11706         (noce_emit_insn): Likewise.
11707         (noce_emit_bb): Likewise.
11708         (noce_try_cmove_arith): Handle non-simple basic blocks.
11709         (insn_valid_noce_process_p): New function.
11710         (contains_mem_rtx_p): Likewise.
11711         (bb_valid_for_noce_process_p): Likewise.
11712         (noce_process_if_block): Allow non-simple basic blocks
11713         where appropriate.
11715 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
11717         * tree-ssa-dom.c (record_equivalences_from_phis,
11718         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
11719         (lookup_avail_expr): Likewise, and remove comment and unused temp.
11721 2015-09-01  Nick Clifton  <nickc@redhat.com>
11723         * config/msp430/msp430.opt (mcpu): Fix typo.
11725 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11727         * config/aarch64/aarch64.c (aarch64_set_current_function):
11728         Re-layout any vector parameters have non-simd layout.
11729         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
11730         Delete.
11731         (aarch64_simd_expand_args): Delete call to the above.
11733 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
11735         * doc/invoke.texi (asan-stack): Add space before option.
11737 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
11739         * tree.h (zerop): New function.
11740         * tree.c (zerop): Likewise.
11741         (element_precision): Handle expressions.
11742         * match.pd (define_predicates): Add zerop.
11743         (x <= +Inf): Fix comment.
11744         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
11745         * fold-const.c (fold_binary_loc): ... here. Remove.
11747 2015-08-31  Richard Biener  <rguenther@suse.de>
11749         PR middle-end/67381
11750         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
11752 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
11754         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
11755         (CEXPI): New operator list.
11756         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
11757         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
11758         Converted from ...
11759         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
11761 2015-08-31  Tom de Vries  <tom@codesourcery.com>
11763         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
11764         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
11765         parameter.
11766         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
11767         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
11768         (rewrite_into_loop_closed_ssa): ... here.
11769         (replace_uses_in_dominated_bbs): Remove function.
11770         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
11771         rewrite_into_loop_closed_ssa_1.
11773 2015-08-31  Michael Matz  <matz@suse.de>
11775         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
11776         enter entry and exit blocks for reverse post order.
11778 2015-08-31  Richard Biener  <rguenther@suse.de>
11780         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
11781         (lto_location_cache::current_sysp): Likewise.
11782         (output_block::current_sysp): Likewise.
11783         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
11784         (lto_location_cache::apply_location_cache): Properly record
11785         system header locations.
11786         (lto_location_cache::input_location): Input whether a file
11787         is a system header.
11788         * lto-streamer-out.c (lto_output_location): Stream whether a file
11789         is a system header.
11791 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11793         PR bootstrap/67363
11794         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
11796 2015-08-31  Tom de Vries  <tom@codesourcery.com>
11798         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
11799         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
11800         Improve function header comments.
11802 2015-08-30  Michael Collison  <michael.collison@linaro.org>
11804         PR other/67320
11805         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
11806         standard names
11808 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11810         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
11811         special_handling bitfield.
11812         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
11813         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
11814         that represents a general xxpermdi.
11815         (insn_is_swappable_p): Add handling for vec_concat of two
11816         doublewords, which maps to a specific xxpermdi.
11817         (adjust_xxpermdi): New function.
11818         (adjust_concat): Likewise.
11819         (handle_special_swappables): Call adjust_xxpermdi and
11820         adjust_concat.
11821         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
11823 2015-08-30  Rich Felker <dalias@libc.org>
11825         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
11826         case instead of sh[123456ble]-*-*.
11828 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
11830         * ira.c (print_unform_and_important_classes,
11831         print_translated_classes): Remove reg_class_names static array.
11832         (print_unform_and_important_classes): Rename to ...
11833         (print_uniform_and_important_classes): ... this.
11834         (ira_debug_allocno_classes): Update accordingly.
11836 2015-08-29  Tom de Vries  <tom@codesourcery.com>
11838         PR tree-optimization/46193
11839         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
11840         clause.
11842 2015-08-28  Jeff Law  <law@redhat.com>
11844         PR lto/66752
11845         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11846         unable to find X NE 0 in the tables, return X as the simplified
11847         condition.
11848         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11849         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
11850         to VISISTED_BBS.
11851         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11852         after removing the control flow statement and unnecessary edges.
11854 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
11856         Revert:
11857         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
11859         PR tree-optimization/67283
11860         * tree-sra.c (type_consists_of_records_p): Rename to...
11861         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11863         (completely_scalarize_record): Rename to...
11864         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
11865         code to:
11866         (scalarize_elem): New.
11868 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
11870         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
11871         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
11872         (aarch64_symbol_type): Likewise.
11873         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11874         Likewise.
11875         (aarch64_expand_mov_immediate): Likewise.
11876         (aarch64_print_operand): Likewise.
11877         (aarch64_classify_tls_symbol): Likewise.
11879 2015-08-28  Richard Biener  <rguenther@suse.de>
11881         * cgraphunit.c (symbol_table::compile): Move early debug generation
11882         and finish...
11883         (symbol_table::finalize_compilation_unit): ... back here and
11884         add a !seen_error () guard.
11886 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11888         * toplev.c (process_options): Do not use flag_loop_block,
11889         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
11890         flag_loop_optimize_isl.
11892 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11894         * Makefile.in (OBJS): Remove graphite-blocking.o and
11895         graphite-interchange.o.
11896         * common.opt (floop-strip-mine, floop-interchange, floop-block):
11897         Alias of floop-nest-optimize.
11898         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
11899         Document as alias of -floop-nest-optimize.
11900         * graphite-blocking.c: Remove.
11901         * graphite-interchange.c: Remove.
11902         * graphite-optimize-isl.c: Include dumpfile.h.
11903         (getScheduleForBand): Add dump for tiled loops.  Use
11904         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
11905         * graphite-poly.c (scop_max_loop_depth): Remove.
11906         (print_scattering_function_1): Remove.
11907         (print_scattering_function): Remove.
11908         (print_scattering_functions): Remove.
11909         (debug_scattering_function): Remove.
11910         (debug_scattering_functions): Remove.
11911         (apply_poly_transforms): Remove use of flag_loop_block,
11912         flag_loop_strip_mine, and flag_loop_interchange.
11913         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
11914         PBB_ORIGINAL.
11915         (print_pdr_access_layout): Remove.
11916         (print_pdr): Print ISL representation.
11917         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
11918         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
11919         (free_scop): Same.
11920         (openscop_print_pbb_domain): Remove.
11921         (print_pbb): Remove call to print_scattering_function.
11922         (openscop_print_scop_context): Remove.
11923         (print_scop_context): Do not print matrices anymore.
11924         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
11925         SCOP_TRANSFORMED_SCHEDULE.
11926         (print_isl_set): Add printing of a new line.
11927         (print_isl_map): Same.
11928         (print_isl_aff): Same.
11929         (print_isl_constraint): Same.
11930         (loop_to_lst): Remove.
11931         (scop_to_lst): Remove.
11932         (lst_indent_to): Remove.
11933         (print_lst): Remove.
11934         (debug_lst): Remove.
11935         (dot_lst_1): Remove.
11936         (dot_lst): Remove.
11937         (reverse_loop_at_level): Remove.
11938         (reverse_loop_for_pbbs): Remove.
11939         * graphite-poly.h (pdr_dim_iter_domain): Remove.
11940         (pdr_nb_params): Remove.
11941         (pdr_alias_set_dim): Remove.
11942         (pdr_subscript_dim): Remove.
11943         (pdr_iterator_dim): Remove.
11944         (pdr_parameter_dim): Remove.
11945         (same_pdr_p): Remove.
11946         (struct poly_scattering): Remove.
11947         (struct poly_bb): Remove _original, _transformed, _saved.
11948         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
11949         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
11950         (PBB_NB_LOCAL_VARIABLES): Remove.
11951         (PBB_NB_SCATTERING_TRANSFORM): Remove.
11952         (schedule_to_scattering): Remove.
11953         (number_of_write_pdrs): Remove.
11954         (pbb_dim_iter_domain): Remove.
11955         (pbb_nb_params): Remove.
11956         (pbb_nb_scattering_orig): Remove.
11957         (pbb_nb_scattering_transform): Remove.
11958         (pbb_nb_dynamic_scattering_transform): Remove.
11959         (pbb_nb_local_vars): Remove.
11960         (pbb_iterator_dim): Remove.
11961         (pbb_parameter_dim): Remove.
11962         (psco_scattering_dim): Remove.
11963         (psct_scattering_dim): Remove.
11964         (psct_local_var_dim): Remove.
11965         (psco_iterator_dim): Remove.
11966         (psct_iterator_dim): Remove.
11967         (psco_parameter_dim): Remove.
11968         (psct_parameter_dim): Remove.
11969         (psct_dynamic_dim): Remove.
11970         (psct_static_dim): Remove.
11971         (psct_add_local_variable): Remove.
11972         (new_lst_loop): Remove.
11973         (new_lst_stmt): Remove.
11974         (free_lst): Remove.
11975         (copy_lst): Remove.
11976         (lst_add_loop_under_loop): Remove.
11977         (lst_depth): Remove.
11978         (lst_dewey_number): Remove.
11979         (lst_dewey_number_at_depth): Remove.
11980         (lst_pred): Remove.
11981         (lst_succ): Remove.
11982         (lst_find_pbb): Remove.
11983         (find_lst_loop): Remove.
11984         (lst_find_first_pbb): Remove.
11985         (lst_empty_p): Remove.
11986         (lst_find_last_pbb): Remove.
11987         (lst_contains_p): Remove.
11988         (lst_contains_pbb): Remove.
11989         (lst_create_nest): Remove.
11990         (lst_remove_from_sequence): Remove.
11991         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
11992         (lst_niter_for_loop): Remove.
11993         (pbb_update_scattering): Remove.
11994         (lst_update_scattering_under): Remove.
11995         (lst_update_scattering): Remove.
11996         (lst_insert_in_sequence): Remove.
11997         (lst_replace): Remove.
11998         (lst_substitute_3): Remove.
11999         (lst_distribute_lst): Remove.
12000         (lst_remove_all_before_including_pbb): Remove.
12001         (lst_remove_all_before_excluding_pbb): Remove.
12002         (struct scop): Remove original_schedule, transformed_schedule, and
12003         saved_schedule.
12004         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
12005         (SCOP_SAVED_SCHEDULE): Remove.
12006         (poly_scattering_new): Remove.
12007         (poly_scattering_free): Remove.
12008         (poly_scattering_copy): Remove.
12009         (store_scattering_pbb): Remove.
12010         (store_lst_schedule): Remove.
12011         (restore_lst_schedule): Remove.
12012         (store_scattering): Remove.
12013         (restore_scattering_pbb): Remove.
12014         (restore_scattering): Remove.
12015         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
12016         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
12017         compute the scattering polyhedron dimension from the dimension of
12018         pbb->domain.
12019         (build_scop_scattering): Update call to
12020         build_pbb_scattering_polyhedrons.
12021         (build_poly_scop): Remove call to scop_to_lst.
12022         * graphite.c (graphite_transform_loops): Add call to print_scop.
12023         (gate_graphite_transforms): Remove use of flag_loop_block,
12024         flag_loop_interchange, and flag_loop_strip_mine.
12026 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
12028         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
12029         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
12030         -floop-nest-optimize.
12031         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
12032         (generate_luj_sepclass): Remove.
12033         (generate_luj_options): Remove.
12034         (set_options): Remove opt_luj.
12035         (scop_to_isl_ast): Remove opt_luj.
12036         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
12037         flag_loop_unroll_jam.
12038         (getPrevectorMap_full): Remove.
12039         (getScheduleForBandList): Remove map_sepcl.
12040         (getScheduleMap): Same.
12041         (apply_schedule_map_to_scop): Remove sepcl.
12042         (optimize_isl): Same.
12043         * graphite-poly.c (apply_poly_transforms): Remove check for
12044         flag_loop_unroll_jam.
12045         (new_poly_bb): Remove map_sepclass.
12046         * graphite-poly.h (struct poly_bb): Same.
12047         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
12048         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
12049         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
12050         * toplev.c (process_options): Remove flag_loop_unroll_jam.
12052 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
12054         PR target/67317
12055         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
12056         (addqi3_cc): Ditto.
12057         (UNSPEC_ADD_CARRY): Remove.
12058         (addqi3_cconly_overflow): New expander.
12059         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
12060         Adjust for changed add<mode>3_carry.
12061         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
12062         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
12063         (<plusminus_insn><mode>3_carry): Remove expander.
12064         (*<plusminus_insn><mode>3_carry): Split insn pattern to
12065         add<mode>3_carry and sub<mode>3_carry.
12066         (plusminus_carry_mnemonic): Remove code attribute.
12067         (add<mode>3_carry): Canonicalize insn pattern.
12068         (*addsi3_carry_zext): Ditto.
12069         (sub<mode>3_carry): Ditto.
12070         (*subsi3_carry_zext): Ditto.
12071         (adcx<mode>3): Remove insn pattern.
12072         (addcarry<mode>): New insn pattern.
12073         (subborrow<mode>): Ditto.
12074         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
12075         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
12076         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
12077         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
12078         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
12079         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
12080         Rewrite expander to not clobber carry flag chains.
12082 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
12084         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
12085         instead of a rotate.
12087 2015-08-27  Marek Polacek  <polacek@redhat.com>
12089         PR middle-end/67005
12090         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
12091         an entry into an irreducible region.
12093 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12095         * configure: Regenerate.
12097 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
12099         PR tree-optimization/67283
12100         * tree-sra.c (type_consists_of_records_p): Rename to...
12101         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12103         (completely_scalarize_record): Rename to...
12104         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12105         (scalarize_elem): New.
12107 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
12109         * tree-sra.c (completely_scalarize_var): Rename to...
12110         (create_total_scalarization_access): ... Here. Drop call to
12111         completely_scalarize_record.
12113         (analyze_all_variable_accesses): Replace completely_scalarize_var
12114         with create_total_scalarization_access and completely_scalarize_record.
12116 2015-08-27  Alan Modra  <amodra@gmail.com>
12118         PR target/67356
12119         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
12120         for operand 1.
12122 2015-08-27  Richard Biener  <rguenther@suse.de>
12124         * passes.c (rest_of_decl_compilation): Guard early_global_decl
12125         call with !seen_error ().
12126         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
12127         early debug generation and finish...
12128         (symbol_table::compile): ... here to put it after a !seen_error ()
12129         guard.
12131 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12133         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
12134         Solaris 12+.
12136 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12137             Andre Vieira  <andre.simoesdiasvieira@arm.com>
12139         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
12140         (*cb<optab><mode>1): Likewise.
12141         (*tb<optab><mode>1): Likewise.
12142         (*cb<optab><mode>1): Likewise.
12143         * config/aarch64/iterators.md (inv_cb): New code attribute.
12144         (inv_tb): Likewise.
12145         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
12146         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
12148 2015-08-27  Richard Biener  <rguenther@suse.de>
12150         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
12152 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12154         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
12155         trap to fix ICE.
12157 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
12159         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
12160         Add declaration.
12162         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
12163         comment.
12164         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
12165         floating point in VSX registers.
12166         (rs6000_output_move_128bit): Always print out the set insn if we
12167         can't generate an appropriate 128-bit move.
12168         (rs6000_generate_compare): Add support for IEEE 128-bit floating
12169         point in VSX registers comparisons.
12170         (rs6000_expand_float128_convert): Likewise.
12172         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
12173         predicate for only GPR hard registers.
12175         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
12176         modes to iterators. Add new iterators for moving 128-bit values in
12177         scalar FPR registers and VSX registers.
12178         (FMOVE128): Likewise.
12179         (FMOVE128_FPR): Likewise.
12180         (FMOVE128_GPR): Likewise.
12181         (FMOVE128_VSX): Likewise.
12182         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
12183         in VSX registers.
12184         (IFKF): Likewise.
12185         (IBM128): Likewise.
12186         (TFIFKF): Likewise.
12187         (RELOAD): Add IEEE 128-bit floating point modes.
12188         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
12189         floating point in VSX registers modes.
12190         (signbit<mode>2, IBM128 iterator): Likewise.
12191         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
12192         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12193         (negtf2): Likewise.
12194         (neg<mode>2, TFIFKF iterator): Likewise.
12195         (negtf2_internal): Likewise.
12196         (abstf2): Likewise.
12197         (abs<mode>2, TFIFKF iterator): Likewise.
12198         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
12199         VSX insn support for negate, absolute value, and negative absolute
12200         value.
12201         (ieee_128bit_vsx_neg<mode>2): Likewise.
12202         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
12203         (ieee_128bit_vsx_abs<mode>2): Likewise.
12204         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12205         (ieee_128bit_vsx_nabs<mode>2): Likewise.
12206         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12207         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
12208         floating point in VSX registers.
12209         (unpack<mode>_dm): Likewise.
12210         (unpack<mode>_nodm): Likewise.
12211         (pack<mode>): Likewise.
12212         (unpackv1ti): Likewise.
12213         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
12214         (packv1ti): Likewise.
12215         (pack<mode>, FMOVE128_VSX iterator): Likewise.
12216         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
12217         registers.
12218         (extenddftf2_internal): Likewise.
12219         (trunctfdf2): Likewise.
12220         (trunctfdf2_internal2): Likewise.
12221         (fix_trunc_helper): Likewise.
12222         (fix_trunctfdi2"): Likewise.
12223         (floatditf2): Likewise.
12224         (floatuns<mode>tf2): Likewise.
12225         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
12226         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
12227         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
12228         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
12229         (float<SDI:mode><IFKF:mode>2): Likewise.
12230         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
12232 2015-08-26  Renlin Li  <renlin.li@arm.com>
12234         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
12236 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12237             Jiong Wang  <jiong.wang@arm.com>
12239         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
12240         (tlsie_tiny_<mode>): New define_insn.
12241         (tlsie_tiny_sidi): Likewise.
12242         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
12243         SYMBOL_TINY_TLSIE.
12244         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
12245         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
12246         SYMBOL_TINY_TLSIE.
12247         (aarch64_expand_mov_immediate): Likewise.
12248         (aarch64_print_operand): Likewise.
12249         (arch64_classify_tls_symbol): Likewise.
12251 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12253         * config/arm/arm-arches.def: Replace single value flags with
12254         an initializer built from ARM_FSET_MAKE_CPU1.
12255         * config/arm/arm-cores.def: Likewise.
12256         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
12257         derivation from the ARM_CORE macro definition, use the given value
12258         instead.
12259         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
12260         ARM_ARCH macro definition, use the given value instead.
12262 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12264         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
12265         feature set.
12266         (struct builtin_description): Replace field mask with field
12267         features.
12268         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
12269         (IWMMXT2_BUILTIN): Likewise.
12270         (IWMMXT2_BUILTIN2): Likewise.
12271         (FP_BUILTIN): Likewise.
12272         (CRC32_BUILTIN): Likewise.
12273         (CRYPTO_BUILTIN): Likewise.
12274         (iwmmx_mbuiltin): Likewise.
12275         (iwmmx2_mbuiltin): Likewise.
12276         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
12277         struct builtin_description.
12279 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12281         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
12282         (struct builtin_description): Change type of mask to unsigned
12283         long.
12284         * config/arm/arm-protos.h (insn_flags): Declare as type
12285         arm_feature_set.
12286         (tune_flags): Likewise.
12287         * config/arm/arm.c (feature_count): New.
12288         (insn_flags): Define as type arm_feature_set.
12289         (tune_flags): Likewise.
12290         (struct processors): Define field flags as type arm_feature_set.
12291         (all_cores): Update for change to struct processors.
12292         (all_architectures): Likewise.
12293         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
12294         macros.
12295         (arm_option_override_internal): Likewise.
12296         (arm_option_override): Likewise.
12298 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12299             Jiong Wang  <jiong.wang@arm.com>
12301         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
12302         tls size for tiny, small, large memory model.
12303         (aarch64_load_symref_appropriately): Support new symbol types.
12304         (aarch64_expand_mov_immediate): Likewise.
12305         (aarch64_print_operand): Likewise.
12306         (aarch64_classify_tls_symbol): Likewise.
12307         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
12308         (aarch64_symbol_type): Likewise.
12309         * config/aarch64/aarch64.md (tlsle): Deleted.
12310         (tlsle12_<mode>): New define_insn.
12311         (tlsle24_<mode>): Likewise.
12312         (tlsle32_<mode>): Likewise.
12313         (tlsle48_<mode>): Likewise.
12314         * doc/sourcebuild.texi (AArch64-specific attributes): Document
12315         "aarch64_tlsle32".
12317 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12319         * config/arm/arm-protos.h (FL_NONE): New.
12320         (FL_ANY): New.
12321         (arm_feature_set): New.
12322         (ARM_FSET_MAKE): New.
12323         (ARM_FSET_MAKE_CPU1): New.
12324         (ARM_FSET_MAKE_CPU2): New.
12325         (ARM_FSET_CPU1): New.
12326         (ARM_FSET_CPU2): New.
12327         (ARM_FSET_EMPTY): New.
12328         (ARM_FSET_ANY): New.
12329         (ARM_FSET_HAS_CPU1): New.
12330         (ARM_FSET_HAS_CPU2): New.
12331         (ARM_FSET_HAS_CPU): New.
12332         (ARM_FSET_ADD_CPU1): New.
12333         (ARM_FSET_ADD_CPU2): New.
12334         (ARM_FSET_DEL_CPU1): New.
12335         (ARM_FSET_DEL_CPU2): New.
12336         (ARM_FSET_UNION): New.
12337         (ARM_FSET_INTER): New.
12338         (ARM_FSET_XOR): New.
12339         (ARM_FSET_EXCLUDE): New.
12340         (AFM_FSET_IS_EMPTY): New.
12341         (ARM_FSET_CPU_SUBSET): New.
12343 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
12345         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
12346         SYMBOL_TLSLE to SYMBOL_TLSLE24.
12347         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12348         Likewise.
12349         (aarch64_expand_mov_immediate): Likewise.
12350         (aarch64_print_operand): Likewise.
12351         (aarch64_classify_symbol): Likewise.
12353 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
12355         * config/aarch64/aarch64.opt (mtls-size): New entry.
12356         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
12357         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
12358         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
12360 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12362         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
12363         ARM_CORE entry.  Fix some white-space.
12364         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
12365         ARM_CORE definition.
12367 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12369         * fold-const.c (fold_binary_loc) : Move Optimize
12370         root(x)*root(y) as root(x*y) to match.pd.
12371         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
12372         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
12373         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
12374         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
12375         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
12376         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
12377         (mult (exps:s @0) (exps:s @1)) : New simplifier.
12378         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
12379         (rdiv @0 (exps:s @1)) : New simplifier.
12381 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
12383         * gcc.c (driver::finalize): Only assign to extra_specs if
12384         [EXTRA_SPECS].
12386 2015-08-25  Marek Polacek  <polacek@redhat.com>
12388         PR middle-end/67330
12389         * varasm.c (declare_weak): Return after giving an error.
12391 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
12393         * gcc-main.c (main): Add params to driver ctor.
12394         * gcc.c (class env_manager): New.
12395         (env): New global.
12396         (env_manager::init): New.
12397         (env_manager::get): New.
12398         (env_manager::xput): New.
12399         (env_manager::restore): New.
12400         Poison getenv and putenv.
12401         (DEFAULT_TARGET_SYSTEM_ROOT): New.
12402         (target_system_root): Update initialization to use
12403         DEFAULT_TARGET_SYSTEM_ROOT.
12404         (struct spec_list): Add field "default_ptr".
12405         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
12406         (init_spec): Likewise.
12407         (set_spec): Clear field "default_ptr".
12408         (read_specs): Free "spec" and "buffer".
12409         (xputenv): Reimplement in terms of env_manager.
12410         (process_command): Replace ::getenv calls with calls to the
12411         env_manager singleton.
12412         (process_brace_body): Free string in three places.
12413         (driver::driver): New.
12414         (driver::~driver): New.
12415         (used_arg): Convert from a function to...
12416         (class used_arg_t): ...this class, and...
12417         (used_arg): ...this new global instance.
12418         (used_arg_t::finalize): New function.
12419         (getenv_spec_function): Add "const" to local "value".  Replace
12420         ::getenv call with call to the env_manager singleton.
12421         (path_prefix_reset): New function.
12422         (driver::finalize): New function.
12423         * gcc.h (driver::driver): New.
12424         (driver::~driver): New.
12425         (driver::finalize): New.
12427 2015-08-25  Nathan Sidwell  <nathan@acm.org>
12429         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
12430         target doesn't have one.
12432 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
12434         PR target/67346
12435         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
12437 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
12439         PR target/67344
12440         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
12441         a define_insn, remove second alternative.
12443 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
12444             Joseph Myers  <joseph@codesourcery.com>
12446         * gcc.c (struct switchstr): Expand comment.
12448 2015-08-25  Nathan Sidwell  <nathan@acm.org>
12450         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
12451         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
12453 2015-08-25  Richard Biener  <rguenther@suse.de>
12455         PR middle-end/67306
12456         * genmatch.c (expr::gen_transform): Verify the result of
12457         builtin_decl_implicit.
12458         (dt_simplify::gen_1): Likewise.
12460 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12462         * config/arm/constraints.md: Also list Cs and US ARM-specific
12463         constraints as used.
12465 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
12467         PR target/66609
12468         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
12469         UNSPEC_PCREL.
12470         (nonpic_symbol_mentioned_p): Likewise.
12471         (sh_delegitimize_address): Likewise.
12472         (sh_function_ok_for_sibcall): Take into account weak symbols.
12473         (sh_expand_sym_label2reg): New.
12474         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
12475         * config/sh/sh.md (UNSPEC_PCREL): New enum.
12476         (call_pcrel): Use sh_expand_sym_label2reg.
12477         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12478         (symPCREL_label2reg) New expand.
12480 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
12482         * graphite-poly.c: Change type of region from void* to sese.
12483         * graphite-poly.h (struct scop): Changing the type of scop::region
12484         from void* to sese. Change accessor macro accordingly.
12485         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
12487 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
12489         * graphite-scop-detection.c (stmt_simple_for_scop_p):
12490         Constrain only on INTEGER_TYPE.
12492 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12494         PR target/67211
12495         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
12496         -mefficient-unaligned-vsx on ISA 2.7.
12498         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
12499         option to a masked option.
12501         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
12502         logic for -mefficient-unaligned-vsx so that it is set via an arch
12503         ISA option, instead of being set if -mtune=power8 is set. Move
12504         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
12505         near other default option handling.
12507 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12509         * genflags.c (gen_macro): Delete.
12510         (gen_proto): Don't create GEN.*CALL.* macros.
12511         * gensupport.h (get_file_location): Declare.
12512         * gensupport.c (rtx_locs): New variable.
12513         (read_md_rtx): Record rtx locations.
12514         (get_file_location): New function.
12515         * target-insns.def (call, call_pop, call_value, call_value_pop)
12516         (sibcall, sibcall_value): New patterns.
12517         * gentarget-def.c (parse_argument): New function.
12518         (def_target_insn): Use it.  Handle optional operands.  Raise an
12519         error if an .md pattern has the wrong number of operands for the
12520         pattern name.  Remove the names of unused operands from the prototype.
12521         * builtins.c (expand_builtin_apply): Use targetm functions
12522         instead of HAVE_call_value and GEN_CALL_VALUE.
12523         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
12524         and sibcall_value_pop.
12525         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
12526         of GEN_CALL.
12527         * config/alpha/alpha.md (untyped_call): Likewise.
12528         * config/iq2000/iq2000.md (untyped_call): Likewise.
12529         * config/m68k/m68k.md (untyped_call): Likewise.
12530         * config/mips/mips.md (untyped_call): Likewise.
12531         * config/pa/pa.md (untyped_call): Likewise.
12532         * config/rs6000/rs6000.md (untyped_call): Likewise.
12533         * config/sparc/sparc.md (untyped_call): Likewise.
12534         * config/tilegx/tilegx.md (untyped_call): Likewise.
12535         * config/tilepro/tilepro.md (untyped_call): Likewise.
12536         * config/visium/visium.md (untyped_call): Likewise.
12537         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
12538         gen_call_value instead of GEN_CALL_VALUE.
12539         * config/arm/arm.md (untyped_call): Likewise.
12540         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
12541         GEN_CALL.
12543 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12545         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
12546         (have_cbranchcc4): New variable.
12547         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
12548         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
12549         (if_convert): Initialize have_cbranchcc4.
12551 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12553         * builtins.c (expand_cmpstrn): Rename to...
12554         (expand_cmpstrn_or_cmpmem): ...this.
12555         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
12556         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
12557         Remove mode argument.
12558         (expand_builtin): Update accordingly.
12560 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12562         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
12563         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
12564         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
12565         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
12566         Add predicates for operands 0 and 3.
12567         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
12568         operand.
12569         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
12570         immediate_operand to nonmemory_operand.
12572 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12574         * df-scan.c (df_insn_info_init_fields): New function, split out
12575         from...
12576         (df_insn_create_insn_record): ...here.
12577         (df_insn_info_free_fields): New function, split out from...
12578         (df_insn_info_delete): ...here.
12579         (df_insn_rescan): Use the new functions instead of freeing and
12580         reallocating the df_insn_info.
12582 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12584         * doc/install.texi (Binaries): Remove links no longer valid.
12586 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
12588         * config/nvptx/mkoffload.c (process): Replace
12589         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
12591 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
12593         PR target/67329
12594         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
12596 2015-08-24  Renlin Li  <renlin.li@arm.com>
12598         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
12599         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
12600         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
12601         * config/arm/constraints.md ("j"): Add check for high code.
12603 2015-08-24  Tom de Vries  <tom@codesourcery.com>
12605         PR tree-optimization/65468
12606         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
12607         chunk_size is one.
12609 2015-08-24  Nathan Sidwell  <nathan@acm.org>
12611         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
12612         change to nvptx_type_from_mode call. Use arg_promotion for both
12613         split and non-split args.
12615 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12617         * target-insns.def (movstr): New pattern.
12618         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
12619         (expand_movstr): Use targetm rather than HAVE_movstr/
12620         CODE_FOR_movstr.
12622 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12624         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
12625         cast syntax.
12627 2015-08-24  Andrew Pinski  <apinski@cavium.com>
12629         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
12630         AARCH64_EXTRA_TUNING_OPTION.
12631         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
12632         New enum.
12633         (aarch64_extra_tuning_flags): Base the shifted value on the index
12634         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
12635         * config/aarch64/aarch64.c: Remove the last argument to
12636         AARCH64_EXTRA_TUNING_OPTION.
12638 2015-08-23  Nathan Sidwell  <nathan@acm.org>
12640         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
12641         decls.
12642         (nvptx_declare_function_name): Insert formatting tabs for
12643         consistency.
12645 2015-08-23  Tom de Vries  <tom@codesourcery.com>
12647         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
12648         parm_decl, rather than generating a dummy default def in cfun.
12649         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
12650         ssa_name from cfun and child_fn do not share a stmt as def stmt.
12651         (move_stmt_op): Handle PARM_DECl.
12652         (gather_ssa_name_hash_map_from): New function.
12653         (move_sese_region_to_fn): Add default defs for function params, and add
12654         them to vars_map.  Release copied ssa names.
12655         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
12657 2015-08-23  Tom de Vries  <tom@codesourcery.com>
12659         * doc/sourcebuild.texi: Rename vect_no_int_max with
12660         vect_no_int_min_max.  Update description.
12662 2015-08-22  Andrew Pinski  <apinski@cavium.com>
12664          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
12665         * config/aarch64/aarch64-protos.h
12666         (aarch64_fusion_pairs_index): New enum.
12667         (aarch64_fusion_pairs): Base the shifted value on the index instead
12668         Rewrite AARCH64_FUSE_ALL to be based on the end index.
12669         of the argument to AARCH64_FUSION_PAIR.
12670         * config/aarch64/aarch64.c: Remove the last argument to
12671         AARCH64_FUSION_PAIR.
12673 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
12675         * dominance.c (new_zero_array): Define.
12676         (dom_info): Redefine as class with proper encapsulation.
12677         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
12678         Add new members.
12679         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
12680         allocations/deallocations.  Pass function as parameter (instead of
12681         using cfun).
12682         (dom_info::get_idom): Define accessor method.
12683         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
12684         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
12685         (calculate_dominance_info): Adjust to use dom_info class.
12686         (verify_dominators): Likewise.
12688 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
12690         * print-rtl.c (print_rtx): Check the correct range for
12691         flag_dump_unnumbered_links to behave as documented.
12693         PR rtl-optimization/67227
12694         PR rtl-optimization/64164
12695         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
12696         (nonoverlapping_memrefs_p): Test offsets and sizes when given
12697         identical gimple_reg exprs.
12699 2015-08-21  Nathan Sidwell  <nathan@acm.org>
12701         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
12702         expansion.
12703         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
12704         crtl->stack_alignment_needed to determine alignment.
12705         (nvptx_get_drap_rtx): New.
12706         (TARGET_GET_DRAP_RTX): Override.
12707         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
12709 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12711         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
12713 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12715         * configure.ac: Remove uwin* cases.
12716         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
12717         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
12718         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
12719         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
12720         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
12721         i[34567]86-*-uwin*, powerpc-*-beos*.
12723 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
12725         * gencodes.c (gencodes): Print the comma for the preceding
12726         enum value rather than the current one.  Use aliased enum values
12727         rather than #defines for compiled-out patterns.
12728         (main): Update accordingly.  Replace LAST_INSN_CODE with
12729         NUM_INSN_CODES.
12730         * lra.c (insn_code_data): Update accordingly.
12731         (finish_insn_code_data_once, get_static_insn_data): Likewise.
12732         * recog.h (target_recog): Likewise.
12733         (preprocess_insn_constraints): Change parameter to unsigned int.
12734         * recog.c (preprocess_insn_constraints): Likewise.
12735         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
12736         * tree-vect-stmts.c (vectorizable_operation): Simplify.
12738 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
12740         PR rtl-optimization/61657
12741         * loop-iv.c (iv_number_of_iterations): Declare up and down as
12742         unsigned.  Remove superflous uint64_t cast.
12744 2014-08-21  Felix Yang  <felix.yang@huawei.com>
12745             Jiji Jiang  <jiangjiji@huawei.com>
12747         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
12748         argument and get builtin function code directly from CALL.
12749         (gimple_stringop_fixed_value): Modified accordingly.
12750         (gimple_stringops_transform, gimple_stringops_values_to_profile):
12751         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
12753 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12755         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
12757 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12759         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
12760         to match.pd.
12761         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
12762         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
12763         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
12764         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
12765         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
12766         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
12767         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
12768         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
12769         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
12770         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
12772         * match.pd (SIN ) : New Operator.
12773         (TAN) : New Operator.
12774         (mult (SQRT@1 @0) @1) : New simplifier.
12775         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
12776         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12777         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12778         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
12779         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
12780         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
12781         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
12782         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
12783         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
12784         (rdiv @0 (POW:s @1 @2)) : New simplifier.
12786 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
12788         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
12789         loop if EXPR is simplified to const value.
12791 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
12793         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
12794         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
12796 2015-08-21  Richard Biener  <rguenther@suse.de>
12798         PR middle-end/67285
12799         * gimple-fold.c (replace_stmt_with_simplification): Assert
12800         seq is empty when replacing a call with itself but different
12801         arguments.
12802         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
12803         a call require that it is const.
12805 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12807         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
12808         * builtins.c (get_object_alignment_2): Adjust.
12809         * varasm.c (align_variable): Likewise.
12810         (get_variable_align): Likewise.
12811         (build_constant_desc): Likewise.
12812         (force_const_mem): Likewise.
12813         * doc/tm.texi.in: Likewise.
12814         * doc/tm.texi: Regenerate.
12816 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12818         * genconfig.c (main): Always define HAVE_cc0.
12819         * recog.c (rest_of_handle_peephole2): Adjust.
12821 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12823         * reorg.c (relax_delay_slots): Don't use #if to check value of
12824         HAVE_cc0.
12826 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12828         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
12829         * targhooks.c (default_have_conditional_execution): Adjust.
12831 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
12833         * rtl.h (rtvec_all_equal_p): Declare.
12834         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
12835         * rtl.c (rtvec_all_equal_p): New function.
12836         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
12837         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
12838         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
12839         * config/arm/arm.c (neon_vdup_constant): Likewise.
12840         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
12841         * config/tilegx/constraints.md (W, Y): Likewise.
12842         * config/tilepro/constraints.md (W, Y): Likewise.
12843         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
12844         (classify_immediate): Use unwrap_const_vec_duplicate.
12845         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
12846         (reg_or_v2s8bit_operand): Likewise.
12847         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
12848         (reg_or_v4s8bit_operand): Likewise.
12850 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12852         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
12853         (vec_shasigma_be): New #define.
12854         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
12855         (VPMSUMH): Likewise.
12856         (VPMSUMW): Likewise.
12857         (VPMSUMD): Likewise.
12858         (VPMSUM): New BU_P8V_OVERLOAD_2.
12859         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
12860         entries for VEC_MADD and VEC_VPMSUM.
12862 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
12864         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
12865         Multiply argument avr_n_flash by 64 to match unit of "KiB".
12866         (avr_pgm_check_var_decl): Same.
12868 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
12870         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
12871         initialization of HFmode scalar type (float16_t) to...
12872         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
12873         code.
12875         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
12877         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
12878         having an -mfp16-format.
12880 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
12882         * config/i386/predicates.md (vector_all_ones_operand): Use
12883         CONSTM1_RTX to simplify definition.
12885 2015-08-20  Richard Biener  <rguenther@suse.de>
12887         * toplev.c (compile_file): Remove loop calling late_global_decl
12888         on all symbols.
12889         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
12890         on decls we assembled.
12892 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
12894         * common/config/aarch64/aarch64-common.c
12895         (AARCH64_CPU_NAME_LENGTH): Delete.
12896         (aarch64_option_extension): New.
12897         (all_extensions): Likewise.
12898         (processor_name_to_arch): Likewise.
12899         (arch_to_arch_name): Likewise.
12900         (all_cores): New.
12901         (all_architectures): Likewise.
12902         (aarch64_get_extension_string_for_isa_flags): Likewise.
12903         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
12904         architecture names.
12905         * config/aarch64/aarch64-protos.h
12906         (aarch64_get_extension_string_for_isa_flags): New.
12907         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
12908         (aarch64_option_print): Get the string to print from
12909         aarch64_get_extension_string_for_isa_flags.
12910         (aarch64_declare_function_name): Likewise.
12911         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
12912         (MCPU_TO_MARCH_SPEC): This.
12913         (ASM_CPU_SPEC): Use it.
12914         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
12915         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
12916         (EXTRA_SPEC_FUNCTIONS): Use it.
12918 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
12920         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
12921         expansion when !ISA_HAS_LWL_LWR.
12922         (mips_block_move_straight): Update the size of elements copied to
12923         account for alignment when !ISA_HAS_LWL_LWR.
12924         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
12926 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
12928         * expr.c (expand_expr_real_2): Check gimple statement during
12929         LSHIFT_EXPR expand.
12931 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
12933         * common.opt (fstack-protector): Initialize to -1.
12934         (fstack-protector-all): Likewise.
12935         (fstack-protector-strong): Likewise.
12936         (fstack-protector-explicit): Likewise.
12937         * configure.ac: Add --enable-default-ssp.
12938         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
12939         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
12940         -1.
12941         * doc/install.texi: Document --enable-default-ssp.
12942         * config.in: Regenerated.
12943         * configure: Likewise.
12945 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
12947         PR rtl-optimization/64164
12948         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
12949         (parm_in_stack_slot_p): ... this.  Disregard mode, what
12950         matters is whether the parm will live in a pseudo or a stack
12951         slot.
12952         (expand_one_ssa_partition): Deal with params without a default
12953         def.  Disregard mode.
12954         * cfgexpand.h: Renamed function declaration.
12955         * tree-ssa-coalesce.c: Adjust.
12956         * function.c (split_complex_args): Allocate stack slot for
12957         unassigned parms before splitting.
12958         (parm_in_unassigned_mem_p): New.  Use it instead of
12959         parm_maybe_byref_p throughout this file.
12960         (assign_parm_setup_block): Use it.  Accept pseudos in the
12961         expand-assigned rtl.
12962         (assign_parm_setup_reg): Drop BLKmode requirement.
12963         (assign_parm_setup_stack): Allocate and fill in the address of
12964         unassigned MEM parms.
12966 2015-08-19  David Sherwood  <david.sherwood@arm.com>
12968         * genmodes.c (emit_mode_unit_size_inline): New function.
12969         (emit_mode_unit_precision_inline): New function.
12970         (emit_insn_modes_h): Emit new #define.  Emit new functions.
12971         (emit_mode_unit_size): New function.
12972         (emit_mode_unit_precision): New function.
12973         (emit_mode_adjustments): Add mode_unit_size adjustments.
12974         (emit_insn_modes_c): Emit new arrays.
12975         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
12976         use new inline methods.
12978 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12980         * config/aarch64/aarch64.c (bit_count): Delete prototype
12981         and definition.
12982         (aarch64_print_operand): Use popcount_hwi instead of the above.
12984 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12986         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
12987         comment.
12989 2015-08-19  Marek Polacek  <polacek@redhat.com>
12991         PR middle-end/67133
12992         * gimple-ssa-isolate-paths.c
12993         (insert_trap_and_remove_trailing_statements): Rename to ...
12994         (insert_trap): ... this.  Don't remove trailing statements; split
12995         block instead.
12996         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
12998 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
13000         PR other/67042
13001         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
13002         conditionalize the whole on __GNUC__.  Add fallback code
13003         depending neither on undefined nor implementation-defined behaviour.
13005 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
13007         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
13008         whitespaces with tab.
13010 2015-08-19  Florian Weimer  <fweimer@redhat.com>
13012         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
13013         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
13014         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
13015         Move Name_Ids instantiation to the Prj.Proc package, to avoid
13016         trampolines.
13018 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13020         * config/arm/arm.c (bounds_check): Use %wd print format
13021         for HOST_WIDE_INT arguments.
13023 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
13025         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
13026         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
13027         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
13028         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
13029         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
13030         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
13031         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
13032         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
13033         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
13034         typedefs.
13036 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
13038         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
13039         function.c, graphite-scop-detection.c, haifa-sched.c,
13040         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
13041         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
13042         varasm.c: Remove typedefs of structs.
13044 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
13046         * config/rs6000/altivec.h (vec_adde): New define.
13047         (vec_addec): Likewise.
13048         (vec_double): Likewise.
13049         (vec_bperm): Likewise.
13050         (vec_gb): Likewise.
13051         * config/rs6000/rs6000-builtin.def (ADDE): New
13052         BU_ALTIVEC_OVERLOAD_3.
13053         (ADDEC): Likewise.
13054         (DOUBLE): New BU_VSX_OVERLOAD_1.
13055         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
13056         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
13057         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
13058         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
13059         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
13060         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
13061         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
13062         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
13063         and P8V_BUILTIN_VEC_VBPERMQ.
13065 2015-08-18  Jason Merrill  <jason@redhat.com>
13067         * print-tree.c (print_node): Handle TREE_BINFO.
13069 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13071         PR middle-end/36757
13072         * builtins.c (expand_builtin_signbit): Add asserts to make sure
13073         we can expand BUILT_IN_SIGNBIT inline.
13074         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
13075         * doc/extend.texi: Document the type-generic __builtin_signbit.
13077 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
13079         PR rtl-optimization/67218
13080         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
13081         (simplify_unary_operation_1): Use it.
13083 2015-08-18  Marek Polacek  <polacek@redhat.com>
13085         PR middle-end/67222
13086         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
13087         if the call isn't valid.
13088         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
13089         gimple_call_builtin_p.
13090         (call_may_clobber_ref_p_1): Likewise.
13091         (stmt_kills_ref_p): Likewise.
13093 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13095         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
13096         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
13097         (mips_hard_regno_scratch_ok): Likewise.
13098         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
13099         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
13101 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
13103         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
13104         (determine_value_range): Call refine_value_range_using_guard for
13105         each loop initial condition to improve value range.
13107 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
13109         * config/i386/i386.c: Remove include of fibheap.h.
13111 2015-08-17  Richard Biener  <rguenther@suse.de>
13113         PR tree-optimization/67221
13114         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
13115         (sccvn_dom_walker::before_dom_children): Mark backedges of
13116         non-executable blocks as not executable.
13118 2015-08-17  David Sherwood  <david.sherwood@arm.com>
13120         * config/arm/arm.c (neon_element_bits): Replace call to
13121         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
13122         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
13123         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
13124         (neon_vdup_lane<mode>): Likewise.
13125         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
13126         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
13127         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
13128         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
13129         * config/spu/spu.c (arith_immediate_p): Likewise.
13130         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
13131         * expr.c (expand_expr_real_2): Likewise.
13132         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
13133         * simplify-rtx.c (simplify_immed_subreg): Likewise.
13134         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
13135         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
13136         New variable.
13137         * fold-const.c (fold_binary_loc): Replace call to
13138         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
13139         GET_MODE_UNIT_PRECISION (m).
13141 2015-08-17  Mike Stump  <mikestump@comcast.net>
13143         * config/arm/arm.c (arm_block_move_unaligned_straight):
13144         Emit normal move instead of unaligned load when source or destination
13145         are appropriately aligned.
13147 2015-08-17  Richard Biener  <rguenther@suse.de>
13148             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13150         PR middle-end/16107
13151         * match.pd (div (coss (op @0) : New simplifier.
13153 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
13155         PR rtl-optimization/64164
13156         PR bootstrap/66978
13157         PR middle-end/66983
13158         PR rtl-optimization/67000
13159         PR middle-end/67034
13160         PR middle-end/67035
13161         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13162         * tree-ssa-copyrename.c: Removed.
13163         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
13164         -ftree-coalesce-vars.
13165         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13166         * common.opt (ftree-copyrename): Ignore.
13167         (ftree-coalesce-inlined-vars): Likewise.
13168         * doc/invoke.texi: Remove the ignored options above.
13169         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13170         * tree-ssa-coalesce.h: ... here.
13171         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13172         headers required by it.
13173         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13174         across variables when flag_tree_coalesce_vars.  Check register
13175         use and promoted modes to allow coalescing.  Do not coalesce
13176         maybe-byref parms with SSA_NAMEs of other variables, or
13177         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
13178         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13179         with its member functions to tree-ssa-coalesce.c.
13180         (var_map_base_init): Likewise.  Renamed to
13181         compute_samebase_partition_bases.
13182         (partition_view_normal): Drop want_bases parameter.
13183         (partition_view_bitmap): Likewise.
13184         * tree-ssa-live.h: Adjust declarations.
13185         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
13186         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13187         default defs at the entry point.
13188         (dump_part_var_map): New.
13189         (compute_optimized_partition_bases): New, called by...
13190         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13191         of compute_samebase_partition_bases.  Adjust.
13192         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13193         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
13194         (ssa_default_def_partition): New.
13195         (get_rtl_for_parm_ssa_default_def): New.
13196         (align_local_variable, add_stack_var): Support anonymous SSA
13197         names.
13198         (defer_stack_allocation): Likewise.  Declare earlier.
13199         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13200         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13201         Do no record deferred-allocation marker in
13202         SA.partition_to_pseudo.
13203         (expand_stack_vars): Adjust check for the marker in it.
13204         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
13205         redundant MEM attr setting.
13206         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
13207         from...
13208         (expand_one_stack_var): ... this.  New wrapper to check and
13209         skip already expanded SSA partitions.
13210         (record_alignment_for_reg_var): New, factored out of...
13211         (expand_one_var): ... this.
13212         (expand_one_ssa_partition): New.
13213         (adjust_one_expanded_partition_var): New.
13214         (expand_one_register_var): Check and skip already expanded SSA
13215         partitions.
13216         (expand_used_vars): Don't create DECLs for anonymous SSA
13217         names.  Expand all SSA partitions, then adjust all SSA names.
13218         (pass::execute): Replace the loops that set
13219         SA.partition_to_pseudo from partition leaders and cleared
13220         DECL_RTL for multi-location variables, and that which used to
13221         rename vars and set attrs, with one that clears DECL_RTL and
13222         checks that PARMs and RESULTs default_defs match DECL_RTL.
13223         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13224         * emit-rtl.c: Include stor-layout.h.
13225         (set_reg_attrs_for_parm): Handle NULL decl.
13226         (set_reg_attrs_for_decl_rtl): Take mode from expression if
13227         it's not a DECL.
13228         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
13229         rather than its possibly-NULL DECL.
13230         * explow.c (promote_ssa_mode): New.
13231         * explow.h (promote_ssa_mode): Declare.
13232         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13233         (read_complex_part): Export.
13234         * expr.h (read_complex_part): Declare.
13235         * cfgexpand.h (parm_maybe_byref_p): Declare.
13236         * function.c: Include cfgexpand.h.
13237         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13238         (use_register_for_parm_decl): Wrapper for the above to
13239         special-case the result_ptr.
13240         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13241         (split_complex_args): Take assign_parm_data_all argument.
13242         Pass it to rtl_for_parm.  Set up rtl and context for split
13243         args.  Reset complex parm before fetching its default decl
13244         rtl.
13245         (assign_parms_unsplit_complex): Use the default-def complex
13246         parm rtl if it matches the components.
13247         (assign_parms_augmented_arg_list): Adjust.
13248         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13249         multiple locations.  Recognize split complex args.
13250         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13251         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
13252         (assign_parm_setup_block): Prefer SSA-assigned location, and
13253         fill in its address if the memory location of a maybe-byref
13254         parm was not assigned by cfgexpand.
13255         (assign_parm_setup_reg): Likewise.  Adjust its mode as
13256         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
13257         sure passed_pointer parms don't need conversion.  Copy address
13258         or value as needed.
13259         (assign_parm_setup_stack): Prefer SSA-assigned location.
13260         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
13261         rtl before testing for pointer bounds.  Special-case result_ptr.
13262         (expand_function_start): Maybe reset DECL_RTL of result.
13263         Prefer SSA-assigned location for result and static chain.
13264         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
13265         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
13266         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13267         anonymous SSA names.  Use promote_ssa_mode.
13268         (get_temp_reg): Likewise.
13269         (remove_ssa_form): Adjust.
13270         * stor-layout.c (layout_decl): Don't set mem attributes of
13271         non-MEMs.
13272         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13273         and get its reg_usage for reg invalidation.
13274         (compute_bb_dataflow): Pass it insn.
13275         (emit_notes_in_bb): Likewise.
13277 2015-08-14  Marek Polacek  <polacek@redhat.com>
13279         * tree-core.h (tree_base): Fix typo.
13281 2015-08-14  Marek Polacek  <polacek@redhat.com>
13283         PR middle-end/67133
13284         * gimple.c (infer_nonnull_range_by_attribute): Check that the
13285         nonnull argument position is not outside function arguments.
13287 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
13289         PR target/67143
13290         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
13291         'lconst_atomic' with 'const_atomic'.
13292         (atomic_fetch_<optab><mode>): Likewise.
13293         (atomic_<optab>_fetch<mode>): Likewise.
13294         * config/aarch64/iterators.md (lconst-atomic): Move below
13295         'const_atomic'.
13296         (const_atomic): New.
13298 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
13299             Bernd Schmidt  <bernds@codesourcery.com>
13301         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
13302         debug options.
13303         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
13304         (DWARF2_DEBUGGING_INFO): Don't define.
13305         * debug.h (dwarf2_lineno_debug_hooks): Declare.
13306         * toplev.c (process_options): Add a case for it.
13307         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
13308         (dwarf2out_init): Skip most initializations if
13309         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
13310         case.
13311         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
13312         DWARF2_LINENO_DEBUGGING_INFO.
13313         * opts.c (set_debug_level): Likewise.
13315 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
13317         * config/arm/types.md (is_neon_type): Add missing types.
13319 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
13321         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
13322         for skylake.
13323         * config/i386/i386.c (PTA_SKYLAKE): New macros.
13324         (processor_alias_table): Add skylake description.
13325         (enum processor_model): Add skylake processor.
13326         (arch_names_table): Add skylake record.
13327         * doc/invoke.texi: Add skylake item.
13329 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
13331         * ira-int.h: Include recog.h.
13332         * ira-build.c: Don't include recog.h.
13333         * ira-color.c: Likewise.
13334         * ira-conflicts.c: Likewise.
13335         * ira-costs.c: Likewise.
13336         * ira-emit.c: Likewise.
13337         * ira-lives.c: Likewise.
13338         * ira.c: Likewise.
13339         * sched-deps.c: Likewise.
13340         * sel-sched.c: Likewise.
13341         * target-globals.c: Likewise.
13343 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
13345         PR bootstrap/55035
13346         * reload1.c (elimination_costs_in_insn): Make it obvious to the
13347         compiler that the n_dups and n_operands loop bounds are invariant.
13349 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13351         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
13352         expressions in A and B.
13354 2015-08-13  Richard Biener  <rguenther@suse.de>
13356         * tree.c (nonnull_arg_p): Move from ...
13357         * tree-vrp.c (nonnull_arg_p): ... here.
13358         * tree.h (nonnull_arg_p): Declare.
13359         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
13360         here, register ptr != 0 for nonnull_arg_p pointer arguments.
13361         Properly initialize static chain and by-reference result pointer.
13362         (run_scc_vn): Adjust.
13364 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
13366         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
13367         TUNE_I6400.
13369 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
13371         * config/aarch64/aarch64-protos.h
13372         (aarch64_gen_atomic_cas): Declare.
13373         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
13374         Choose appropriate instruction pattern for the target.
13375         (aarch64_gen_atomic_cas): New.
13376         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
13377         (atomic_compare_and_swap<mode>_1): Rename to
13378         aarch64_compare_and_swap<mode>.  Fix some indentation.
13379         (aarch64_compare_and_swap<mode>_lse): New.
13380         (aarch64_atomic_cas<mode>): New.
13382 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
13384         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
13385         (TARGET_LSE): New.
13387 2015-08-13  Richard Biener  <rguenther@suse.de>
13389         PR tree-optimization/67191
13390         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
13391         assert we value-numbered last stmts operand because it can validly
13392         trigger for unreachable code.
13394 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13396         PR rtl-optimization/67103
13397         * ifcvt.c (noce_try_store_flag_constants): Move
13398         x = (-(test != 0) & (b - a)) + a transformation to...
13399         (noce_try_cmove): ... Here.  Try it if normal conditional
13400         move fails.
13402 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
13404         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
13405         pseudo-processors.
13406         * config/mips/mips.md (processor): Remove w32 and w64.
13408 2015-08-13  Richard Biener  <rguenther@suse.de>
13410         PR tree-optimization/66502
13411         PR tree-optimization/67167
13412         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
13413         backedge arguments.
13414         (vn_phi_lookup): Adjust.
13415         (vn_phi_insert): Likewise.
13416         (visit_phi): Prefer to value-number to another PHI node
13417         over value-numbering to a PHI argument.
13418         (init_scc_vn): Mark DFS back edges.
13420 2015-08-13  Richard Biener  <rguenther@suse.de>
13422         * gimple.h (gcall::code_): New constant static member.
13423         (gcond::code_): Likewise.
13424         * gimple.c (gcall::code_): Define.
13425         (gcond::code_): Likewise.
13426         (is_a_helper <const gcond *>): Add.
13427         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
13428         and forward to a new gcall overload with less checking and a
13429         cheaper way to access the operand.
13430         (gimple_call_lhs_ptr): Likewise.
13431         (gimple_call_set_lhs): Likewise.
13432         (gimple_call_internal_p): Likewise.
13433         (gimple_call_with_bounds_p): Likewise.
13434         (gimple_call_set_with_bounds): Likewise.
13435         (gimple_call_internal_fn): Likewise.
13436         (gimple_call_set_ctrl_altering): Likewise.
13437         (gimple_call_ctrl_altering_p): Likewise.
13438         (gimple_call_fntype): Likewise.
13439         (gimple_call_fn): Likewise.
13440         (gimple_call_fn_ptr): Likewise.
13441         (gimple_call_set_fndecl): Likewise.
13442         (gimple_call_fndecl): Likewise.
13443         (gimple_call_chain): Likewise.
13444         (gimple_call_num_args): Likewise.
13445         (gimple_call_arg): Likewise.
13446         (gimple_call_arg_ptr): Likewise.
13447         (gimple_call_set_arg): Likewise.
13448         (gimple_call_noreturn_p): Likewise.
13449         (gimple_cond_code): Likewise.
13450         (gimple_cond_lhs): Likewise.
13451         (gimple_cond_rhs): Likewise.
13452         (gimple_has_lhs): Reduce checking.
13454 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13456         PR middle-end/25529
13457         * match.pd (div (mult @0 @1) @1) : New simplifier.
13459 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
13461         PR target/67071
13462         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
13463         predicate to allow construction of vector constants using the
13464         VSLDOI vector shift instruction.
13466         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
13467         declaration.
13469         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
13470         the number of bytes to be shifted left and filled in with either
13471         all zero or all one bits.
13472         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
13473         methods exist.
13474         (output_vec_const_move): On power8, generate XXLORC to generate
13475         a vector constant with all 1's. Do a split if we need to use a
13476         VSLDOI instruction.
13478         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
13479         properly test for the MSB.
13481         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
13482         vector constants that can be created with VSLDOI.
13484 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
13486         revert:
13487         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13488         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13489         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13490         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13491         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13492         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13493         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13494         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13495         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13497 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
13499         * config/xtensa/constraints.md (define_constraint "Y"): New
13500         constraint.
13501         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
13502         * config/xtensa/linux.h (ASM_SPEC): Likewise.
13503         * config/xtensa/predicates.md (move_operand): Match constants
13504         and symbols in the presence of TARGET_AUTO_LITPOOLS.
13505         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
13506         immediate references to TLS data.
13507         (xtensa_emit_move_sequence): Don't force constants to memory in
13508         the presence of TARGET_AUTO_LITPOOLS.
13509         (print_operand): Add 'y' format, same as default, but capable of
13510         printing SF mode constants as well.
13511         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
13512         (movsf_internal): Add movi pattern that loads literal.
13513         (movsf, movdf): Don't force constants to memory in the presence
13514         of TARGET_AUTO_LITPOOLS.
13515         (movdf_internal): Add 'Y' constraint.
13516         * config/xtensa/xtensa.opt (mauto-litpools): New option.
13517         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
13519 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
13521         * config/arm/arm-fpus.def: Replace booleans with feature flags.
13522         Update comment.
13523         * config/arm/arm.c (ARM_FPU): Update macro.
13524         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
13525         (TARGET_FP16): Likewise.
13526         (TARGET_CRYPTO): Likewise.
13527         (TARGET_NEON): Likewise.
13528         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
13529         field features.
13531 2015-08-12  Tom de Vries  <tom@codesourcery.com>
13533         PR other/67092
13534         PR other/67098
13535         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
13536         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
13537         accordingly.  Mention default for --with-stage1-ldflags.
13539 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
13541         * config/arm/arm.h (arm_fpu_feature_set): New.
13542         (ARM_FPU_FSET_HAS): New.
13543         (FPU_FL_NONE): New.
13544         (FPU_FL_NEON): New.
13545         (FPU_FL_FP16): New.
13546         (FPU_FL_CRYPTO): New.
13548 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13550         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
13551         after -mcmodel=large -fPIC sorry.
13553 2015-08-12  Richard Biener  <rguenther@suse.de>
13555         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
13556         comparison operand order and commutative ternary op operand order.
13557         (sccvn_dom_walker::cond_stack): New state to track temporary
13558         expressions.
13559         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
13560         no longer valid.
13561         (sccvn_dom_walker::record_cond): Add a single temporary conditional
13562         expression.
13563         (sccvn_dom_walker::record_conds): Add a temporary conditional
13564         expressions and all related expressions also true/false.
13565         (sccvn_dom_walker::before_dom_children): Record temporary
13566         expressions based on the controlling condition of a single
13567         predecessor.  When trying to simplify a conditional statement
13568         lookup expressions we might have inserted earlier.
13570 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
13572         PR target/67127
13573         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
13574         to ARM core registers.
13576 2015-08-12  Nathan Sidwell  <nathan@acm.org>
13578         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
13579         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
13581 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
13583         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
13584         line with comments.
13585         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
13587 2015-08-12  Richard Biener  <rguenther@suse.de>
13589         * gimple.h (remove_pointer): New trait.
13590         (GIMPLE_CHECK2): New inline template function.
13591         (gassign::code_): New constant static member.
13592         (is_a_helper<const gassign *>): Add.
13593         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
13594         and forward to a new gassign overload with less checking and a
13595         cheaper way to access the operand.
13596         (gimple_assign_lhs_ptr): Likewise.
13597         (gimple_assign_set_lhs): Likewise.
13598         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
13599         Likewise.
13600         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
13601         Likewise.
13602         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
13603         Likewise.
13604         (gimple_assign_rhs_code): Likewise.
13605         * gimple.c (gassign::code_): Define.
13607 2015-08-12  Richard Biener  <rguenther@suse.de>
13609         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13610         Eliminate edges marked as not executable by SCCVN.
13611         * tree-ssa-sccvn.c: Include gimple-iterator.h.
13612         (cond_dom_walker): Rename to sccvn_dom_walker.
13613         (sccvn_dom_walker::before_dom_children): Value-number defs
13614         of all stmts.
13615         (run_scc_vn): Remove loop value-numbering all SSA names.
13616         Drop not visited SSA names to varying.
13618 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
13620         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13621         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13622         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13623         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13624         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13625         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13626         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13627         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13628         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13630 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
13632         PR target/66954
13633         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
13634         to enum feature_priority and feature_list.
13635         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
13636         and isa_names_table.
13638 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
13640         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
13641         vect_induction_def.
13643 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13645         PR c/66098
13646         PR c/66711
13647         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
13648         account when deciding what was the command-line status.
13650 2015-08-11  Nathan Sidwell  <nathan@acm.org>
13652         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
13654         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
13655         we're not the only contributor to target phi.
13657 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
13659         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
13660         FIXED_REG0.
13662 2015-08-11  Tom de Vries  <tom@codesourcery.com>
13664         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
13666 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
13668         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
13669         with CPU_SLM.
13670         * config/i386/i386.md (cpu): Remove knl.
13672 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13674         PR libgomp/65742
13675         PR middle-end/66332
13676         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
13677         open-coded sequence.
13678         * omp-low.c (oacc_process_reduction_data): Remove handline of
13679         GOMP_DEVICE_HOST_NONSHM.
13681         * lto-streamer-in.c (lto_input_mode_table): Adjust to
13682         GET_MODE_INNER changes.
13684 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13685             Ilya Verbin  <ilya.verbin@intel.com>
13687         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
13689 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13691         * doc/options.texi (EnabledBy): Document that the argument must be
13692         a Common option.
13693         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
13694         Not enabled by -Wall.
13695         * optc-gen.awk: Give nicer error messages. Detect if the argument
13696         of EnabledBy is not a Common option.
13697         * common.opt (Wnull-dereference): Not enabled by -Wall.
13698         * opt-functions.awk (lang_enabled_by): Nicer error messages.
13700 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13702         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
13703         model == 0x4f as Broadwell.
13705 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
13707         PR rtl-optimization/67028
13708         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
13709         Add test to see if a const_int fits in the new mode.
13711 2015-08-07  DJ Delorie  <dj@redhat.com>
13713         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
13715 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
13717         PR rtl-optimization/67029
13718         * ira-color.c: Include "recog.h" before including "ira-int.h".
13719         * target-globals.c: Likewise.
13720         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
13721         adds an alternative_mask argument and use it instead of
13722         preferred_alternatives.
13723         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
13724         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
13725         * sched-deps.c: Include "ira-int.h" after including "ira.h".
13726         (sched_analyze_insn): Update call to
13727         ira_implicitly_set_insn_hard_regs.
13728         * sel-sched.c: Include "ira-int.h" after including "ira.h".
13729         (implicit_clobber_conflict_p): Update call to
13730         ira_implicitly_set_insn_hard_regs.
13732 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
13734         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
13736 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13738         PR target/67002
13739         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
13740         currently_expanding_to_rtl is set.
13742 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
13744         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
13745         * configure: Regenerate.
13747 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13748             Jiong Wang  <jiong.wang@arm.com>
13750         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13751         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13752         (REG_CLASS_NAMES): Likewise.
13753         (REG_CLASS_CONTENTS): Likewise.
13754         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13755         (aarch64_register_move_cost): Likewise.
13756         (aarch64_load_symref_appropriately): Invoke the new added pattern if
13757         possible.
13758         * config/aarch64/constraints.md (Uc0): New constraint.
13760 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
13762         * config/aarch64/constraints.md (Usf): Add the test of
13763         aarch64_is_noplt_call_p.
13765 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
13767         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
13768         declaration.
13769         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
13770         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
13771         (call_symbol): Likewise.
13773 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
13775         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
13776         for vectorizing multiplication patterns.
13777         * tree-vectorizer.h: Adjust the number of patterns.
13779 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
13781         * config/i386/sse.md (*vec_concatv2df): Declare added
13782         alternatives as sselog type.
13784 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13786         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
13787         all GPRs.
13789 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13791         * config/s390/s390.c (s390_expand_tbegin): Expand either
13792         tbegin_1_z13 or tbegin_1 depending on VX flag.
13793         * config/s390/s390.md ("tbegin_1_z13"): New expander.
13795 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13797         * config/s390/s390.opt: Clarify description for -mzvector
13798         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
13799         -mzvector.
13801 2015-08-06  Richard Biener  <rguenther@suse.de>
13803         * gimple.h (gimple_call_set_fn): Access op member directly.
13804         (gimple_call_chain_ptr): Likewise.
13805         (gimple_call_set_chain): Likewise.
13806         (gimple_cond_lhs_ptr): Likewise.
13807         (gimple_cond_set_lhs): Likewise.
13808         (gimple_cond_rhs_ptr): Likewise.
13809         (gimple_cond_set_rhs): Likewise.
13810         (gimple_cond_true_label): Likewise.
13811         (gimple_cond_set_true_label): Likewise.
13812         (gimple_cond_set_false_label): Likewise.
13813         (gimple_cond_false_label): Likewise.
13814         (gimple_label_label): Likewise.
13815         (gimple_label_set_label): Likewise.
13816         (gimple_goto_set_dest): Likewise.
13817         (gimple_asm_input_op): Likewise.
13818         (gimple_asm_input_op_ptr): Likewise.
13819         (gimple_asm_set_input_op): Likewise.
13820         (gimple_asm_output_op): Likewise.
13821         (gimple_asm_output_op_ptr): Likewise.
13822         (gimple_asm_set_output_op): Likewise.
13823         (gimple_asm_clobber_op): Likewise.
13824         (gimple_asm_set_clobber_op): Likewise.
13825         (gimple_asm_label_op): Likewise.
13826         (gimple_asm_set_label_op): Likewise.
13827         (gimple_switch_index): Likewise.
13828         (gimple_switch_index_ptr): Likewise.
13829         (gimple_return_retval_ptr): Likewise.
13830         (gimple_return_retval): Likewise.
13831         (gimple_return_set_retval): Likewise.
13832         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
13833         (gimple_switch_label): Likewise.
13834         (gimple_switch_set_label): Likewise.
13836 2015-08-06  Richard Biener  <rguenther@suse.de>
13838         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
13839         bool comparison canonicalization and restrict to integers.
13841 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
13843         * coretypes.h (enum symbol_visibility): Relocate here.
13844         * flag-types.h (enum symbol_visibility): Remove.
13845         * tree-core.h (enum symbol_visibility): Remove.
13847 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
13849         PR target/66870
13850         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
13851         for no_split_stack function attribute along with
13852         flag_split_stack.
13853         (rs6000_expand_split_stack_prologue): Likewise.
13855 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13856             Jeff Law  <law@redhat.com>
13858         PR c/16351
13859         * doc/invoke.texi (Wnull-dereference): New.
13860         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
13861         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
13862         Warn for potential NULL dereferences.
13863         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
13864         * ubsan.c (instrument_nonnull_arg): Call
13865         infer_nonnull_range_by_attribute.
13866         (instrument_nonnull_return): Likewise.
13867         * common.opt (Wnull-dereference); New.
13868         * gimple.c (infer_nonnull_range): Remove bool arguments.
13869         (infer_nonnull_range_by_dereference): New.
13870         (infer_nonnull_range_by_attribute): New.
13871         * gimple.h: Update declarations.
13873 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13875         * gensupport.c (sequence_num): Replace with...
13876         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
13877         ...these new variables.
13878         (init_rtx_reader_args_cb): Update accordingly.
13879         (get_num_code_insns): Likewise.
13880         (read_md_rtx): Rework to use a while loop and get_c_test.
13881         Use the new counters.  Remove redundant DEFINE_SUBST case.
13882         * genoutput.c (gen_split): Delete.
13883         (main): Don't call it.
13885 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13887         * gensupport.h (get_c_test): Declare.
13888         * gensupport.c (get_c_test): New function.
13889         * genconditions.c (main): Use it.
13890         * genrecog.c (validate_pattern): Likewise.
13891         (match_pattern_1): Likewise.  Remove c_test argument.
13892         (match_pattern): Update accordingly and remove c_test argument.
13893         (main): Update accordingly.
13895 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13897         * gensupport.h (get_num_insn_codes): Declare.
13898         * gensupport.c (get_num_insn_codes): New function.
13899         * genattrtab.c (optimize_attrs): Rename max_insn_code to
13900         num_insn_codes.
13901         (main): Likewise.  Use get_num_insn_codes.
13902         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
13904 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13906         PR middle-end/66311
13907         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
13908         is zero- rather than sign-extended.
13910 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13912         * target-insns.def (can_extend): Delete.
13914 2015-08-05  Richard Biener  <rguenther@suse.de>
13916         PR tree-optimization/67121
13917         * tree-if-conv.c (combine_blocks): Clear range-info produced
13918         by stmts no longer executed conditionally.
13920 2015-08-05  Nick Clifton  <nickc@redhat.com>
13922         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
13923         to allow identical far pointers to remain.
13925 2015-08-05  Richard Biener  <rguenther@suse.de>
13927         PR middle-end/67120
13928         * match.pd: Compare address bases with == if they are decls
13929         or SSA names, not operand_equal_p.  Otherwise fail.
13931 2015-08-05  Richard Biener  <rguenther@suse.de>
13933         PR tree-optimization/67055
13934         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
13935         NULL gimple_block.
13937         * g++.dg/torture/pr67055.C: New testcase.
13939 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
13941         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
13942         noavx512vl.
13943         (define_attr "enabled"): Handle avx521vl and noavx512vl.
13944         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
13945         AVX-512 alternative out of SSE.
13946         (define_insn "*vec_concatv2df"): Ditto.
13948 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
13950         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
13951         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
13952         CODE_FOR_avx_ptestv4di.
13953         * config/i386/sse.md (define_mode_iterator V_AVX): New.
13954         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
13955         (define_insn "avx_ptest256"): Merge this ...
13956         (define_insn "sse4_1_ptest"): And this ...
13957         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
13959 2015-08-05  Richard Biener  <rguenther@suse.de>
13961         PR tree-optimization/67109
13962         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
13963         against too big groups.  Print whether this is a load or store
13964         group.  Rename from ...
13965         (vect_analyze_group_access): ... this which is now a wrapper
13966         dissolving an invalid group.
13967         (vect_analyze_data_ref_accesses): Print whether this is a load
13968         or store group.
13970 2015-08-05  Richard Biener  <rguenther@suse.de>
13972         PR middle-end/67107
13973         * match.pd: Guard const_binop result checking against NULL_TREE
13974         result.
13976 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
13978         * cse.c (cse_insn): Restoring old behaviour for src_eqv
13979          when dest and value in the REG_EQUAL are same and dest
13980          is STRICT_LOW_PART.
13982 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
13984         * config/moxie/moxie.h (PRINT_OPERAND,
13985           PRINT_OPERAND_ADDRESS): Remove macros.
13986         * config/moxie/moxie-protos.h (moxie_print_operand,
13987           moxie_print_operand_address): Remove declaration.
13988         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
13989           TARGET_PRINT_OPERAND_ADDRESS): Define.
13990           (moxie_print_operand, moxie_print_operand_address): Make static.
13992 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13994         PR target/66731
13995         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
13996         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
13998 2015-08-04  Richard Biener  <rguenther@suse.de>
14000         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
14001         generated code.
14002         (dt_operand::gen_gimple_expr): Adjust.
14004 2015-08-04  Richard Biener  <rguenther@suse.de>
14006         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
14007         bool compares on RHS.
14008         * match.pd: Add X ==/!= !X is false/true pattern.
14010 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
14012         * config/aarch64/aarch64.c: Change inner loop statement cost
14013         to be consistent with other targets.
14015 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
14017         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
14018         targets.
14020 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
14022         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
14023         (machine_function): Remove pseudos field.
14025 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14027         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
14028         Exit early and use target_option_current_node if processing current
14029         pragma.
14031 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14033         * doc/extend.texi (AArch64 Function Attributes): New node.
14034         (AArch64 Pragmas): Likewise.
14036 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14038         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
14039         Initialize simd builtins if TARGET_SIMD.
14040         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
14041         Make sure that the builtins are initialized only once no matter how
14042         many times the function is called.
14043         (aarch64_init_builtins): Unconditionally initialize crc builtins.
14044         (aarch64_relayout_simd_param): New function.
14045         (aarch64_simd_expand_args): Use above during argument expansion.
14046         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
14047         simd builtins if TARGET_SIMD.
14048         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
14049         prototype.
14050         (aarch64_relayout_simd_types): Likewise.
14052 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14054         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
14055         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
14056         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
14057         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
14058         static keyword.
14059         (aarch64_reset_previous_fndecl): New function.
14060         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
14061         the string.
14062         * config/aarch64/aarch64-c.c: New file.
14063         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
14064         Push and pop options at beginning and end.  Remove ifdef
14065         __ARM_FEATURE_CRC32.
14066         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
14067         Add pragma +nothing+simd and +nothing+crypto where appropriate.
14068         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
14069         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
14070         Define prototype.
14071         (aarch64_register_pragmas): Likewise.
14072         (aarch64_reset_previous_fndecl): Likewise.
14073         (aarch64_process_target_attr): Likewise.
14074         (aarch64_override_options_internal): Likewise.
14076 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14078         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
14079         New function.
14080         (aarch64_can_inline_p): Likewise.
14081         (TARGET_CAN_INLINE_P): Define.
14083 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14085         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
14086         Remove static.  Handle OPT_mgeneral_regs_only,
14087         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
14088         OPT_momit_leaf_frame_pointer.
14089         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
14090         (aarch64_attr_opt_type): New enum.
14091         (aarch64_attribute_info): New struct.
14092         (aarch64_handle_attr_arch): New function.
14093         (aarch64_handle_attr_cpu): Likewise.
14094         (aarch64_handle_attr_tune): Likewise.
14095         (aarch64_handle_attr_isa_flags): Likewise.
14096         (aarch64_attributes): New table.
14097         (aarch64_process_one_target_attr): New function.
14098         (num_occurences_in_str): Likewise.
14099         (aarch64_process_target_attr): Likewise.
14100         (aarch64_option_valid_attribute_p): Likewise.
14101         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
14102         * config/aarch64/aarch64-protos.h: Include input.h
14103         (aarch64_handle_option): Declare prototype.
14105 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14107         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
14108         * config/aarch64/aarch64.c: Include target-globals.h
14109         (aarch64_previous_fndecl): New variable.
14110         (aarch64_set_current_function): New function.
14111         (TARGET_SET_CURRENT_FUNCTION): Define.
14113 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14115         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
14116         (explicit_arch): Likewise.
14117         (x_aarch64_isa_flags): Likewise.
14118         (mgeneral-regs-only): Mark as Save.
14119         (mfix-cortex-a53-835769): Likewise.
14120         (mcmodel=): Likewise.
14121         (mstrict-align): Likewise.
14122         (momit-leaf-frame-pointer): Likewise.
14123         (mtls-dialect): Likewise.
14124         (master=): Likewise.
14125         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
14126         (aarch64_isa_flags): Remove extern declaration.
14127         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
14128         to indicate success or failure.
14129         (aarch64_validate_march): Likewise.
14130         (aarch64_validate_mtune): Likewise.
14131         (aarch64_isa_flags): Delete.
14132         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
14133         instead of aarch64_isa_flags.
14134         (aarch64_get_tune_cpu): New function.
14135         (aarch64_get_arch): Likewise.
14136         (aarch64_override_options): Use above and set up explicit_tune_core
14137         and explicit_arch.
14138         (aarch64_print_extension): Move earlier in file.  Add isa_flags
14139         argument and use that instead of the global aarch64_isa_flags.
14140         (aarch64_option_save): New function.
14141         (aarch64_option_restore): Likewise.
14142         (aarch64_option_print): Likewise.
14143         (aarch64_declare_function_name): Likewise.
14144         (aarch64_start_file): Delete.
14145         (TARGET_ASM_FILE_START): Do not define.
14146         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
14147         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
14148         Declare prototype.
14150 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14152         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
14153         flag_omit_leaf_frame_pointer to 2.
14155 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14157         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
14158         define to 0 or 1.
14159         (TARGET_FIX_ERR_A53_835769): New macro.
14160         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
14161         handling of opts->x_aarch64_fix_a53_err835769.
14162         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
14163         than aarch64_fix_a53_err835769.
14164         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
14165         * config/aarch64/aarch64-linux.h: Likewise.
14167 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
14169         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
14170         ix86_expand_int_movcc as boolean.
14172 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14174         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
14175         (aarch64_cpu_string): Likewise.
14176         (aarch64_tune_string): Likewise.
14177         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
14178         (aarch64_parse_extension): Return aarch64_parse_opt_result.
14179         Add extra argument to put result into.
14180         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
14181         (aarch64_parse_cpu): Add arguments to put results into. Return
14182         aarch64_parse_opt_result.
14183         (aarch64_parse_tune): Likewise.
14184         (aarch64_override_options_after_change_1): New function.
14185         (aarch64_override_options_internal): New function.
14186         (aarch64_validate_mcpu): Likewise.
14187         (aarch64_validate_march): Likewise.
14188         (aarch64_validate_mtune): Likewise.
14189         (aarch64_override_options): Update to reflect above changes.
14190         Move some logic into aarch64_override_options_internal.
14191         Initialize target_option_default_node and target_option_current_node.
14192         (aarch64_override_options_after_change): Move logic into
14193         aarch64_override_options_after_change_1 and call it with global_options.
14194         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
14195         flag values from that.
14197 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14199         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14200         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
14201         * config/aarch64/aarch64.c (struct processor): Add arch field.
14202         (all_architectures): Handle above, move above all_cores.
14203         (all_cores): Handle above.
14204         (aarch64_parse_arch): Handle above changes.
14205         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
14206         above.  Update comments.
14207         (armv8.1-a): Likewise.
14208         * config/aarch64/aarch64-cores.def: Update according to above.
14209         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
14210         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
14211         aarch64_arch_driver_info.
14213 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14215         * config/aarch64/aarch64.c (struct processor): Add ident field.
14216         Rename core sched_core.
14217         (all_cores): Handle above changes.
14218         (all_architectures): Likewise.
14219         (aarch64_parse_arch): Likewise.
14220         (aarch64_override_options): Likewise.
14222 2015-08-04  Richard Biener  <rguenther@suse.de>
14224         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
14225         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
14226         comparisons embedded in [VEC_]COND_EXPRs.
14228 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
14230         * tree-if-conv.c: Fix various typos in comments.
14231         * tree-vect-stmts.c: Likewise.
14233 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14235         PR tree-optimization/67043
14236         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
14237         preheader after hoisting invariant in it.
14238         (find_defs): Force recomputation of all luids.
14240 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
14242         * config/rs6000/htm.md (tabort.): Restrict the source operand to
14243         using a base register.
14245 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
14247         * main.c (main): Pass in NULL for toplev's external_timer.
14248         * timevar.c: Include coretypes.h.
14249         (class timer::named_items): New.
14250         (timer::named_items::named_items): New.
14251         (timer::named_items::~named_items): New.
14252         (timer::named_items::push): New.
14253         (timer::named_items::pop): New.
14254         (timer::named_items::print): New.
14255         (timer::timer): Initialize field "m_jit_client_items".
14256         (timer::~timer): New.
14257         (timer::push): Move bulk of implementation to...
14258         (timer::push_internal): ...here.  New function.
14259         (timer::pop): Move bulk of implementation to...
14260         (timer::pop_internal): ...here.  New function.
14261         (timer::push_client_item): New.
14262         (timer::pop_client_item): New.
14263         (timer::print_row): New function, taken from timer::print.
14264         (timer::print): Print "GCC items" header if we also have client
14265         items.  Move row-printing to timer::print_row.  Print any client
14266         items.
14267         (timer::get_topmost_item_name): New method.
14268         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
14269         (TV_JIT_CLIENT_CODE): New.
14270         * timevar.h (timer::push_client_item): New declaration.
14271         (timer::pop_client_item): New declaration.
14272         (timer::get_topmost_item_name): New method.
14273         (timer::push_internal): New declaration.
14274         (timer::pop_internal): New declaration.
14275         (timer::print_row): New declaration.
14276         (timer::named_items): New declaration.
14277         (timer::m_jit_client_items): New field.
14278         (timer): Add friend class named_items.
14279         (auto_timevar::auto_timevar): Add timer param.
14280         (auto_timevar::~auto_timevar): Use field "m_timer".
14281         (auto_timevar::m_timer): New field.
14282         * toplev.c (initialize_rtl): Add g_timer as param when
14283         constructing auto_timevar instance.
14284         (toplev::toplev): Add "external_timer" param, and use it to
14285         initialize the "g_timer" global if non-NULL.
14286         (toplev::~toplev): If this created "g_timer", delete it.
14287         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
14288         with "external_timer" timer *.
14290 2015-08-03  Alexander Basov <coohpt@gmail.com>
14292         PR middle-end/64744
14293         PR middle-end/48470
14294         PR middle-end/43404
14295         * cfgexpand.c (expand_one_var): Add check if stack is going to
14296         be used in naked function.
14297         * expr.c (expand_expr_addr_expr_1): Remove excess checking
14298         whether expression should not reside in MEM.
14299         * function.c (use_register_for_decl): Do not use registers for
14300         non-register things (volatile, float, BLKMode) in naked functions.
14302 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
14304         PR target/67060
14305         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
14306         Adjust splits to match new pattern.
14308 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14310         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
14311         (VEC_M): Likewise.
14312         (VEC_N): Likewise.
14313         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
14314         point in VSX registers.
14316         * config/rs6000/constraints.md (wb constraint): Document unused
14317         w<x> constraint.
14318         (we constraint): Likewise.
14319         (wo constraint): Likewise.
14320         (wp constraint): New constraint for IEEE 128-bit floating point in
14321         VSX registers.
14322         (wq constraint): Likewise.
14324         * config/rs6000/predicates.md (easy_fp_constant): Add support for
14325         IEEE 128-bit floating point in VSX registers.
14326         (easy_scalar_constant): Likewise.
14328         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
14329         constraints (wp, wq) for IEEE 128-bit floating point in VSX
14330         registers.
14331         (rs6000_init_hard_regno_mode_ok): Likewise.
14333         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
14334         floating point in VSX registers.
14335         (VSX_L): Likewise.
14336         (VSX_M): Likewise.
14337         (VSX_M2): Likewise.
14338         (VSm): Likewise.
14339         (VSs): Likewise.
14340         (VSr): Likewise.
14341         (VSa): Likewise.
14342         (VSv): Likewise.
14343         (vsx_le_permute_<mode>): Add support to properly swap bytes for
14344         IEEE 128-bit floating point in VSX registers on little endian.
14345         (vsx_le_undo_permute_<mode>): Likewise.
14346         (vsx_le_perm_load_<mode>): Likewise.
14347         (vsx_le_perm_store_<mode>): Likewise.
14348         (splitters for IEEE 128-bit fp moves): Likewise.
14350         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
14351         wq constraints.
14353         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
14354         floating point in VSX registers.
14355         (VM2): Likewise.
14357         * doc/md.text (Machine Constraints): Document wp and wq
14358         constraints on PowerPC.
14360 2015-08-03  Jeff Law  <law@redhat.com>
14362         PR middle-end/66314
14363         PR gcov-profile/66899
14364         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
14365         iterate over the jump threading paths when an element in the
14366         jump threading paths array is eliminated.
14368 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
14370         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
14372 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
14374         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
14375         is_use_properly_guarded the variable def_preds.  Free its
14376         contents before returning.
14377         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
14378         (is_use_properly_guarded): Replace local variable def_preds with
14379         a parameter.  Adjust accordingly.  Only update *def_preds if it's
14380         the empty vector.
14382 2015-08-03  Richard Biener  <rguenther@suse.de>
14384         * genmatch.c (simplify::for_subst_vec): New member.
14385         (binary_ok): New helper for for lowering.
14386         (lower_for): Delay substituting operators into result expressions
14387         if we can merge the results eventually again.
14388         (capture_info::walk_result): Adjust for user_id appearing as
14389         result expression operator.
14390         (expr::gen_transform): Likewise.
14391         (dt_simplify::gen_1): Likewise.
14392         (dt_simplify::gen): Pass not substituted operators to tail
14393         functions or initialize local variable with it.
14394         (decision_tree::gen): Adjust function signature.
14395         * match.pd: Fix tests against global code and add default
14396         cases to switch stmts.
14398 2015-08-03  Richard Biener  <rguenther@suse.de>
14400         * genmatch.c (dt_simplify::gen): Create captures array
14401         with an initializer.
14403 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14405         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
14406         the host compiler is affected by placement new aliasing bug.
14407         * configure: Regenerate.
14408         * Makefile.in (ALIASING_FLAGS): New variable.
14409         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
14411 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14413         PR target/66731
14414         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
14415         (negmulsf3_vfp): Likewise.
14416         (muldf3negdf_vfp): Disable for -frounding-math.
14417         (mulsf3negsf_vfp): Likewise.
14418         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
14419         fix MULT cost with -frounding-math.
14421 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14423         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
14424         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
14425         explicit.  Prefer to add the flag whenever possible.
14426         (noce_process_if_block): Try noce_try_store_flag_constants before
14427         noce_try_cmove.
14429 2015-08-03  Richard Biener  <rguenther@suse.de>
14431         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
14432         New hash-map to record equivalent transforms.
14433         (dt_node::analyze): Populate the equivalent transforms hash-map.
14434         (dt_simplify::info): Add reference to hash-map entry.
14435         (dt_simplify::gen): If we have split out a function for the
14436         transform, generate a call to it.
14437         (sinfo_hashmap_traits::hash): New function.
14438         (compare_op): New helper function for ...
14439         (sinfo_hashmap_traits::equal_keys): ... this new function.
14440         (decision_tree::gen): Split out common equivalent transforms
14441         into functions.
14443 2015-08-03  Richard Biener  <rguenther@suse.de>
14445         * gimple-fold.c (fold_gimple_assign): Remove folding of
14446         the comparison in COND_EXPRs.
14448 2015-08-03  Richard Biener  <rguenther@suse.de>
14450         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
14451         on the rhs of assignments first simplify the embedded
14452         GENERIC condition.
14454 2015-08-03  Richard Biener  <rguenther@suse.de>
14456         PR tree-optimization/66917
14457         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
14458         field.
14459         (DR_VECT_AUX): New macro.
14460         (set_dr_misalignment): Adjust.
14461         (dr_misalignment): Likewise.
14462         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14463         Compute whether the base is at least element aligned.
14464         * tree-vect-stmts.c (ensure_base_align): Adjust.
14465         (vectorizable_store): If the base is not element aligned
14466         preserve alignment of the original access if misalignment is unknown.
14467         (vectorizable_load): Likewise.
14469 2015-08-02  Martin Sebor  <msebor@redhat.com>
14471         * c-family/c.opt (-Wframe-address): New warning option.
14472         * doc/invoke.texi (Wframe-address): Document it.
14473         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
14474         Clarify possible effects of calling the functions with non-zero
14475         arguments and mention -Wframe-address.
14476         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
14478 2015-08-01  Michael Collison  <michael.collison@linaro.org
14479             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14481         * config/arm/arm.md (*arm_smin_cmp): New pattern.
14482         (*arm_umin_cmp): Likewise.
14484 2015-08-01  Caroline Tice  <cmtice@google.com>
14486         PR 66521
14487         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
14488         global variables.
14489         (vtbl_find_mangled_name):  New function.
14490         (vtbl_register_mangled_name):  New function.
14491         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
14492         mangled name in mangled name vectors.
14493         (find_or_create_vtbl_map_node):  Ditto.
14494         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
14495         update recursion_depth on function entry; pass it to every recursive
14496         call; automatically exit if depth > 25 (give up looking at that point).
14497         (verify_bb_vtables):  Initialize recursion_depth and pass it to
14498         var_is_used_for_virtual_call_p.
14499         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
14500         global variable decls.
14501         (vtbl_register_mangled_name): New extern function decl.
14503 2015-08-01  Tom de Vries  <tom@codesourcery.com>
14505         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
14506         function.
14507         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
14508         Declare.
14509         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
14510         operation_no_trapping_overflow.  Allow non-overflow operations.
14511         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
14512         operations.
14514 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14516         PR target/67049
14517         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
14519 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14521         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
14522         Enable for TARGET_32BIT.
14523         (*if_move_neg): Likewise.
14525 2015-07-31  Nick Clifton  <nickc@redhat.com>
14527         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
14528         Returns true for __model__.
14529         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14531 2015-07-31  Alan Modra  <amodra@gmail.com>
14533         PR target/66870
14534         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
14535         (rs6000_emit_prologue): Set it.
14536         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
14538 2015-07-31  Richard Biener  <rguenther@suse.de>
14540         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
14541         -> X == (C1 ^ C2) which is already implemented in match.pd.
14542         Remove redundant dispatching to fold_relational_const.
14543         Move unordered self and NaN compares ...
14544         * match.pd: ... as patterns here.  Remove some stray captures
14545         and add a comment.
14547 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
14549         * config/i386/i386.c
14550         (bdesc_special_args): Convert mask type from signed to unsigned for
14551         masked builtins.
14552         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
14553         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
14554         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
14555         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
14556         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
14557         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
14558         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
14559         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
14560         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
14561         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
14562         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
14563         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
14564         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
14565         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
14566         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
14567         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
14568         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
14569         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
14570         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
14571         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
14572         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
14573         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
14574         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
14575         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
14576         * config/i386/i386-builtin-types.def
14577         (V16QI_FTYPE_V16SI): Remove.
14578         (V8DF_FTYPE_V8SI): Ditto.
14579         (V8HI_FTYPE_V8DI): Ditto.
14580         (V8SI_FTYPE_V8DI): Ditto.
14581         (V8SF_FTYPE_V8DF): Ditto.
14582         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
14583         (V16HI_FTYPE_V16SI): Ditto.
14584         (V16SF_FTYPE_V16HI): Ditto.
14585         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
14586         (V16SF_FTYPE_V16SI): Ditto.
14587         (V4DI_FTYPE_V4DI): Ditto.
14588         (V16SI_FTYPE_V16SF): Ditto.
14589         (V16SF_FTYPE_FLOAT): Ditto.
14590         (V8DF_FTYPE_DOUBLE): Ditto.
14591         (V8DI_FTYPE_INT64): Ditto.
14592         (V8DI_FTYPE_V4DI): Ditto.
14593         (V16QI_FTYPE_V8DI): Ditto.
14594         (UINT_FTYPE_V4SF): Ditto.
14595         (UINT64_FTYPE_V4SF): Ditto.
14596         (UINT_FTYPE_V2DF): Ditto.
14597         (UINT64_FTYPE_V2DF): Ditto.
14598         (V16SI_FTYPE_V16SI): Ditto.
14599         (V8DI_FTYPE_V8DI): Ditto.
14600         (V16SI_FTYPE_PV4SI): Ditto.
14601         (V16SF_FTYPE_PV4SF): Ditto.
14602         (V8DI_FTYPE_PV2DI): Ditto.
14603         (V8DF_FTYPE_PV2DF): Ditto.
14604         (V4DI_FTYPE_PV2DI): Ditto.
14605         (V4DF_FTYPE_PV2DF): Ditto.
14606         (V16SI_FTYPE_PV2SI): Ditto.
14607         (V16SF_FTYPE_PV2SF): Ditto.
14608         (V8DI_FTYPE_PV4DI): Ditto.
14609         (V8DF_FTYPE_PV4DF): Ditto.
14610         (V8SF_FTYPE_FLOAT): Ditto.
14611         (V4SF_FTYPE_FLOAT): Ditto.
14612         (V4DF_FTYPE_DOUBLE): Ditto.
14613         (V8SF_FTYPE_PV4SF): Ditto.
14614         (V8SI_FTYPE_PV4SI): Ditto.
14615         (V4SI_FTYPE_PV2SI): Ditto.
14616         (V8SF_FTYPE_PV2SF): Ditto.
14617         (V8SI_FTYPE_PV2SI): Ditto.
14618         (V16SF_FTYPE_PV8SF): Ditto.
14619         (V16SI_FTYPE_PV8SI): Ditto.
14620         (V8DI_FTYPE_V8SF): Ditto.
14621         (V4DI_FTYPE_V4SF): Ditto.
14622         (V2DI_FTYPE_V4SF): Ditto.
14623         (V64QI_FTYPE_QI): Ditto.
14624         (V32HI_FTYPE_HI): Ditto.
14625         (V8UHI_FTYPE_V8UHI): Ditto.
14626         (V16UHI_FTYPE_V16UHI): Ditto.
14627         (V32UHI_FTYPE_V32UHI): Ditto.
14628         (V2UDI_FTYPE_V2UDI): Ditto.
14629         (V4UDI_FTYPE_V4UDI): Ditto.
14630         (V8UDI_FTYPE_V8UDI): Ditto.
14631         (V4USI_FTYPE_V4USI): Ditto.
14632         (V8USI_FTYPE_V8USI): Ditto.
14633         (V16USI_FTYPE_V16USI): Ditto.
14634         (V2DF_FTYPE_V2DF_UINT64): Ditto.
14635         (V2DI_FTYPE_V2DF_V2DF): Ditto.
14636         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
14637         (V8DF_FTYPE_V8DF_V8DI): Ditto.
14638         (V4SF_FTYPE_V4SF_UINT64): Ditto.
14639         (V4SI_FTYPE_V4SF_V4SF): Ditto.
14640         (V16SF_FTYPE_V16SF_V16SI): Ditto.
14641         (V64QI_FTYPE_V32HI_V32HI): Ditto.
14642         (V32HI_FTYPE_V16SI_V16SI): Ditto.
14643         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
14644         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
14645         (V32HI_FTYPE_V64QI_V64QI): Ditto.
14646         (V32HI_FTYPE_V32HI_V32HI): Ditto.
14647         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
14648         (V16SI_FTYPE_V16SI_V4SI): Ditto.
14649         (V16SI_FTYPE_V16SI_V16SI): Ditto.
14650         (V16SI_FTYPE_V32HI_V32HI): Ditto.
14651         (V16SI_FTYPE_V16SI_SI): Ditto.
14652         (V8DI_FTYPE_V8DI_V8DI): Ditto.
14653         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
14654         (V8DI_FTYPE_V16SI_V16SI): Ditto.
14655         (V8DI_FTYPE_V8DI_V2DI): Ditto.
14656         (QI_FTYPE_QI): Ditto.
14657         (SI_FTYPE_SI): Ditto.
14658         (DI_FTYPE_DI): Ditto.
14659         (QI_FTYPE_QI_QI): Ditto.
14660         (QI_FTYPE_QI_INT): Ditto.
14661         (HI_FTYPE_HI_INT): Ditto.
14662         (SI_FTYPE_SI_INT): Ditto.
14663         (DI_FTYPE_DI_INT): Ditto.
14664         (HI_FTYPE_V16QI_V16QI): Ditto.
14665         (SI_FTYPE_V32QI_V32QI): Ditto.
14666         (DI_FTYPE_V64QI_V64QI): Ditto.
14667         (QI_FTYPE_V8HI_V8HI): Ditto.
14668         (HI_FTYPE_V16HI_V16HI): Ditto.
14669         (SI_FTYPE_V32HI_V32HI): Ditto.
14670         (QI_FTYPE_V4SI_V4SI): Ditto.
14671         (QI_FTYPE_V8SI_V8SI): Ditto.
14672         (QI_FTYPE_V2DI_V2DI): Ditto.
14673         (QI_FTYPE_V4DI_V4DI): Ditto.
14674         (QI_FTYPE_V8DI_V8DI): Ditto.
14675         (HI_FTYPE_V16SI_V16SI): Ditto.
14676         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
14677         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
14678         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
14679         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
14680         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
14681         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
14682         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
14683         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
14684         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
14685         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
14686         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
14687         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
14688         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
14689         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
14690         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
14691         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
14692         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
14693         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
14694         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
14695         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
14696         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
14697         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
14698         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
14699         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
14700         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
14701         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
14702         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
14703         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
14704         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
14705         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
14706         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
14707         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
14708         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
14709         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
14710         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
14711         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
14712         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
14713         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
14714         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
14715         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
14716         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
14717         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
14718         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
14719         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
14720         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
14721         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
14722         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
14723         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
14724         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
14725         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
14726         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
14727         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
14728         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
14729         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
14730         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
14731         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
14732         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
14733         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
14734         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
14735         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
14736         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
14737         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
14738         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
14739         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
14740         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
14741         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
14742         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
14743         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
14744         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
14745         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
14746         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
14747         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
14748         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
14749         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
14750         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
14751         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
14752         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
14753         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
14754         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
14755         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
14756         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
14757         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
14758         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
14759         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
14760         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
14761         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
14762         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
14763         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
14764         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
14765         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
14766         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
14767         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
14768         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
14769         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
14770         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
14771         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
14772         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
14773         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
14774         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
14775         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
14776         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
14777         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
14778         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
14779         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
14780         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
14781         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
14782         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
14783         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
14784         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
14785         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
14786         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
14787         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
14788         (HI_FTYPE_HI): Ditto.
14789         (HI_FTYPE_V16QI): Ditto.
14790         (SI_FTYPE_V32QI): Ditto.
14791         (DI_FTYPE_V64QI): Ditto.
14792         (QI_FTYPE_V8HI): Ditto.
14793         (HI_FTYPE_V16HI): Ditto.
14794         (SI_FTYPE_V32HI): Ditto.
14795         (QI_FTYPE_V4SI): Ditto.
14796         (QI_FTYPE_V8SI): Ditto.
14797         (HI_FTYPE_V16SI): Ditto.
14798         (QI_FTYPE_V2DI): Ditto.
14799         (QI_FTYPE_V4DI): Ditto.
14800         (QI_FTYPE_V8DI): Ditto.
14801         (V16QI_FTYPE_HI): Ditto.
14802         (V32QI_FTYPE_SI): Ditto.
14803         (V64QI_FTYPE_DI): Ditto.
14804         (V8HI_FTYPE_QI): Ditto.
14805         (V16HI_FTYPE_HI): Ditto.
14806         (V32HI_FTYPE_SI): Ditto.
14807         (V4SI_FTYPE_QI): Ditto.
14808         (V4SI_FTYPE_HI): Ditto.
14809         (V8SI_FTYPE_QI): Ditto.
14810         (V8SI_FTYPE_HI): Ditto.
14811         (V2DI_FTYPE_QI): Ditto.
14812         (V4DI_FTYPE_QI): Ditto.
14813         (HI_FTYPE_HI_HI): Ditto.
14814         (SI_FTYPE_SI_SI): Ditto.
14815         (DI_FTYPE_DI_DI): Ditto.
14816         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
14817         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
14818         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
14819         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
14820         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
14821         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
14822         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
14823         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
14824         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
14825         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
14826         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
14827         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
14828         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
14829         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
14830         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
14831         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
14832         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
14833         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
14834         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
14835         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
14836         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
14837         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
14838         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
14839         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
14840         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
14841         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
14842         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
14843         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
14844         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
14845         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
14846         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
14847         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
14848         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
14849         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
14850         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
14851         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
14852         (V16SI_FTYPE_HI): Ditto.
14853         (V8DI_FTYPE_QI): Ditto.
14854         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
14855         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
14856         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
14857         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
14858         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
14859         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
14860         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
14861         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
14862         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
14863         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
14864         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
14865         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
14866         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
14867         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
14868         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
14869         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
14870         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
14871         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
14872         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
14873         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
14874         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
14875         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
14876         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
14877         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
14878         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
14879         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
14880         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
14881         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
14882         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
14883         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
14884         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
14885         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
14886         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
14887         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
14888         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
14889         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
14890         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
14891         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
14892         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
14893         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
14894         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
14895         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
14896         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
14897         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
14898         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
14899         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
14900         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
14901         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
14902         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
14903         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
14904         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
14905         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
14906         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
14907         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
14908         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
14909         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
14910         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
14911         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
14912         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
14913         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
14914         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
14915         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
14916         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
14917         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
14918         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
14919         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
14920         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
14921         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
14922         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
14923         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
14924         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
14925         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
14926         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
14927         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
14928         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
14929         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
14930         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
14931         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
14932         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
14933         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
14934         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
14935         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
14936         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
14937         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
14938         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
14939         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
14940         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
14941         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
14942         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
14943         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
14944         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
14945         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
14946         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
14947         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
14948         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
14949         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
14950         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
14951         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
14952         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
14953         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
14954         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
14955         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
14956         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
14957         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
14958         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
14959         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
14960         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
14961         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
14962         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
14963         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
14964         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
14965         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
14966         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
14967         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
14968         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
14969         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
14970         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
14971         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
14972         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
14973         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
14974         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
14975         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
14976         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
14977         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
14978         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
14979         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
14980         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
14981         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
14982         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
14983         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
14984         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
14985         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
14986         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
14987         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
14988         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
14989         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
14990         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
14991         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
14992         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
14993         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
14994         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
14995         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
14996         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
14997         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
14998         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
14999         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
15000         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
15001         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
15002         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
15003         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
15004         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
15005         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
15006         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
15007         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
15008         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
15009         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
15010         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
15011         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
15012         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
15013         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
15014         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
15015         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
15016         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
15017         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
15018         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
15019         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
15020         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
15021         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
15022         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
15023         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
15024         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
15025         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
15026         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
15027         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
15028         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
15029         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
15030         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
15031         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
15032         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
15033         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
15034         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
15035         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
15036         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
15037         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
15038         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
15039         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
15040         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
15041         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
15042         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
15043         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
15044         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
15045         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
15046         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
15047         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
15048         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
15049         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
15050         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
15051         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
15052         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
15053         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
15054         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
15055         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
15056         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
15057         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
15058         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
15059         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
15060         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
15061         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
15062         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
15063         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
15064         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
15065         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
15066         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
15067         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
15068         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
15069         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
15070         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
15071         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
15072         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
15073         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
15074         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
15075         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
15076         (QI_FTYPE_V8DF_INT_QI): Ditto.
15077         (QI_FTYPE_V4DF_INT_QI): Ditto.
15078         (QI_FTYPE_V2DF_INT_QI): Ditto.
15079         (HI_FTYPE_V16SF_INT_HI): Ditto.
15080         (QI_FTYPE_V8SF_INT_QI): Ditto.
15081         (QI_FTYPE_V4SF_INT_QI): Ditto.
15082         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
15084 2015-07-31  Richard Biener  <rguenther@suse.de>
15086         * gimple-fold.c (fold_gimple_assign): Remove folding of
15087         GIMPLE_BINARY_RHS.
15089 2015-07-31  Tom de Vries  <tom@codesourcery.com>
15091         PR tree-optimization/66846
15092         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
15093         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
15094         (expand_omp_target) [ENABLE_CHECKING]: Same.
15095         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
15096         cfun if !LOOPS_NEED_FIXUP.
15097         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
15098         that omp_for already has its own loop struct.
15099         * tree-parloops.c (create_phi_for_local_result)
15100         (create_call_for_reduction): Handle simple latch bb.
15101         (create_parallel_loop): Add simple latch bb to preserve
15102         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
15103         (gen_parallel_loop): Remove call to cancel_loop_tree.
15104         (parallelize_loops): Skip loops that are inner loops of parallelized
15105         loops.
15106         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
15107         verify_loop_structure.
15109 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
15111         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
15112         * config/v850/v850.md (RV_REGNUM): New constants.
15113         * config/v850/v850.c (v850_libcall_value): New functions.
15114         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
15115         (TARGET_LIBCALL_VALUE): Define.
15117 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
15119         * rtl.h (lowpart_subreg): Move in file.
15120         * loop-iv.c (lowpart_subreg): Move to...
15121         * simplify-rtx.c (lowpart_subreg): ...here.
15122           (simplify_binary_operation_1): Use lowpart_subreg instead of
15123           simplify_gen_subreg.
15124         * expr.c (expand_expr_real_2): Ditto.
15125         * emit-rtl.c (gen_lowpart_common): Ditto.
15126         * combine.c (gen_lowpart_for_combine): Ditto.
15127         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
15128           expand_debug_source_expr): Ditto.
15130 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
15132         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
15133         (expand_builtin_atomic_clear): Remove support for atomic_clear
15134         pattern.
15136 2015-07-30  Richard Biener  <rguenther@suse.de>
15138         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
15139         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
15140         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
15141         redundant operand canonicalization.
15143 2015-07-30  David Sherwood  <david.sherwood@arm.com>
15145         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
15146         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
15147         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
15148         * config/arm/arm.c (neon_valid_immediate): Likewise.
15149         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
15150         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
15151         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
15152         (expand_vec_perm_vpshufb2_vpermq): Likewise.
15153         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
15154         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
15155         * config/i386/sse.md
15156         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
15157         (*ssse3_palignr<mode>_perm): Likewise.
15158         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
15159         * config/spu/spu.c (arith_immediate_p): Likewise.
15160         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
15161         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
15163 2015-07-30  Richard Biener  <rguenther@suse.de>
15165         * genmatch.c (decision_tree::gen_gimple): Merge with ...
15166         (decision_tree::gen_generic): ... this into ...
15167         (decision_tree::gen): ... this.
15168         (main): Adjust callers.
15170 2015-07-30  Richard Biener  <rguenther@suse.de>
15172         * genmatch.c (verbose): New global.
15173         (warning_at): Add overload with source_location.
15174         (capture_info::capture_info): Add bool whether generating gimple
15175         or generic.  Add gimple member.
15176         (capture_info::cinfo): Add capture member.
15177         (capture_info::walk_match): Record capture.  Warn on
15178         non-captured leafs.
15179         (capture_info::walk_c_expr): Add more fragments captures cannot
15180         escape through.  Warn on escaped captures.
15181         (dt_simplify::gen_1): Warn on operands we force to have no
15182         side-effects.
15183         (main): Initialize verbose.
15184         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
15186 2015-07-30  Richard Biener  <rguenther@suse.de>
15188         PR middle-end/67053
15189         * match.pd: Allow both operands to independently have conversion
15190         when simplifying compares of addresses.
15192 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
15194         PR target/66217
15195         PR target/67045
15196         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
15197         around those cases that need one.
15199 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
15201         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
15203 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
15205         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
15206         New.  Copied from config/i386/gnu-user.h.
15207         (ASM_COMMENT_START): Likewise.
15208         (DBX_REGISTER_NUMBER): Likewise.
15210 2015-07-29  Richard Biener  <rguenther@suse.de>
15212         * gimple-fold.c (fold_gimple_cond): Remove.
15213         (fold_stmt_1): Do not call it.
15215 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
15217         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
15218         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
15220         * config/aarch64/aarch64-modes.def: Add HFmode.
15222         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15223         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
15225         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
15226         aarch64_promoted_type): New.
15228         (aarch64_float_const_representable_p): Disable HFmode.
15229         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
15230         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
15231         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
15233         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
15234         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
15236         * config/aarch64/iterators.md (GPF_F16): New.
15238 2015-07-29  Richard Biener  <rguenther@suse.de>
15240         * match.pd: Merge address comparison patterns and make them
15241         handle some more cases.
15243 2015-07-29  Richard Biener  <rguenther@suse.de>
15245         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
15246         (parser::parse_capture): Add bool argument on whether to reject
15247         unknown captures.
15248         (parser::parse_expr): Adjust.
15249         (parser::parse_op): Likewise.
15250         (parser::parse_pattern): Likewise.
15252 2015-07-29  Richard Biener  <rguenther@suse.de>
15254         * gimple-fold.c (has_use_on_stmt): New function.
15255         (replace_stmt_with_simplification): Use it to allow
15256         abnormals originally referenced in the stmt.
15257         (fold_stmt_1): Canonicalize operand order.
15259 2015-07-28  David Sherwood  <david.sherwood@arm.com>
15261         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
15262         GET_MODE_INNER unconditionally.
15263         * config/spu/spu.c (arith_immediate_p): Likewise.
15264         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
15265         * expmed.c (synth_mult): Remove check for VOIDmode result from
15266         GET_MODE_INNER.
15267         (expand_mult_const): Likewise.
15268         * fold-const.c (fold_binary_loc): Replace call to element_precision
15269         with call to GET_MODE_PRECISION.
15270         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
15271         m->name.
15272         (emit_mode_inner): Likewise.
15273         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
15274         result check.
15275         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
15276         (GET_MODE_UNIT_PRECISION): Likewise.
15277         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
15278         * simplify-rtx.c (simplify_immed_subreg): Likewise.
15279         * stor-layout.c (bitwise_type_for_mode): Update assert.
15280         (element_precision): Remove.
15282 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15284         * target-insns.def (reload_load_address): New targetm instruction
15285         pattern.
15286         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
15288 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15290         * target-insns.def (atomic_test_and_set): New targetm instruction
15291         pattern.
15292         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
15293         HAVE_*/gen_* interface.
15295 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15297         * target-insns.def (can_extend, ptr_extend): New targetm instruction
15298         patterns.
15299         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
15300         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15301         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
15302         * rtlanal.c (nonzero_bits1): Likewise.
15303         (num_sign_bit_copies1): Likewise.
15305 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15307         * target-insns.def (eh_return): New targetm instruction pattern.
15308         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
15309         interface.
15310         * function.c (thread_prologue_and_epilogue_insns): Remove
15311         preprocessor condition.
15313 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15315         * target-insns.def (indirect_jump): New targetm instruction pattern.
15316         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
15317         interface.
15319 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15321         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
15322         instead of nonimmediate_operand.  Remove C condiition.
15324 2015-07-28  Richard Biener  <rguenther@suse.de>
15326         * match.pd: Add more simplification of address comparisons.
15328 2015-07-28  Richard Biener  <rguenther@suse.de>
15330         * match.pd: Re-order two cases in comparison with max/min
15331         value simplification to make it apply for bools.
15333 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15335         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
15336         Handle simple SIGN_EXTEND or ZERO_EXTEND.
15337         (aarch64_rtx_costs): Properly strip extend or extract before
15338         passing down to rtx costs again.
15340 2015-07-28  Nick Clifton  <nickc@redhat.com>
15342         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
15343         Optimizes the case where -mes0 is active and a constant symbolic
15344         address is used.
15345         * config/rl78/rl78-protos.h: Prototype the new function.
15346         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
15348 2015-07-28  Tom de Vries  <tom@codesourcery.com>
15350         * tree-parloops.c (reduc_stmt_res): New function.
15351         (initialize_reductions, add_field_for_reduction)
15352         (create_phi_for_local_result, create_loads_for_reductions)
15353         (create_stores_for_reduction, build_new_reduction): Handle case that
15354         reduc_stmt is a phi.
15355         (gather_scalar_reductions): Allow double_reduc reductions.
15357 2015-07-28  Richard Biener  <rguenther@suse.de>
15359         * fold-const.c (fold_comparison): Remove equality folding
15360         of decl addresses ...
15361         * match.pd: ... here and merge with existing pattern.
15363 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15365         PR tree-optimization/66828
15366         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
15367         from int64_t to uint64_t.
15369 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15371         * opts-common.c (read_cmdline_option): List DriverOnly enum values
15372         as valid only in the error message of the driver, not in the
15373         messages of the language compilers.
15375 2015-07-27  Tom de Vries  <tom@codesourcery.com>
15377         * tree-parloops.c (gather_scalar_reductions): Simplify function
15378         structure.
15380 2015-07-27  Marek Polacek  <polacek@redhat.com>
15382         * ipa-devirt.c (types_same_for_odr): Fix typo.
15384 2015-07-27  Jason Merrill  <jason@redhat.com>
15386         PR debug/66468
15387         * dwarf2out.c (gen_inlined_subroutine_die): Check
15388         cgraph_function_possibly_inlined_p.
15390 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
15392         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
15393         Place integer variant first.
15394         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15396 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
15398         PR/63870
15399         * config/arm/arm-builtins.c (enum arm_builtins):
15400         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
15401         (ARM_BUILTIN_NEON_BASE): Rename macro to....
15402         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
15403         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
15404         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
15406 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
15408         PR/63870
15409         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
15410         Add qualifier_lane_index.
15411         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
15412         (arm_getlane_qualifiers): Use qualifier_lane_index.
15413         (arm_lanemac_qualifiers): Rename to...
15414         (arm_mac_n_qualifiers): ...this.
15415         (LANEMAC_QUALIFIERS): Rename to...
15416         (MAC_N_QUALIFIERS): ...this.
15417         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
15418         (arm_setlane_qualifiers): Use qualifier_lane_index.
15419         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
15420         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
15421         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
15422         (arm_expand_neon_builtin): Handle qualifier_lane_index.
15424         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
15425         * config/arm/arm.c (bounds_check): Likewise, improve error message.
15426         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
15427         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
15428         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
15429         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
15430         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
15431         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
15432         qualifiers to TERNOP_IMM.
15433         (vdup_lane): Change qualifiers to GETLANE.
15434         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
15435         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
15436         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
15437         vqdmlsl_n): Change qualifiers to MAC_N.
15439         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
15440         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
15441         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
15442         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
15443         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
15444         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
15445         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
15446         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
15447         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
15448         Remove call to neon_lane_bounds.
15450 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
15452         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15453         Place integer variant first.
15455 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
15457         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
15458         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
15459         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
15460         for armv6kz targets.
15461         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
15462         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
15463         (FL_FOR_ARCH6ZK): Remove.
15464         (FL_FOR_ARCH6KZ): New.
15465         (arm_arch6zk): New declaration.
15466         * config/arm/arm-tables.opt: Regenerate.
15467         * config/arm/arm.c (arm_arch6kz): New.
15468         (arm_option_override): Set arm_arch6kz.
15469         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
15470         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
15471         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
15473 2015-07-27  Marek Polacek  <polacek@redhat.com>
15475         PR c++/66555
15476         PR c/54979
15477         * doc/invoke.texi: Document -Wtautological-compare.
15479 2015-07-27  Richard Biener  <rguenther@suse.de>
15481         * genmatch.c (decision_tree::gen_gimple): Split out large
15482         subtrees into separate functions.
15483         (decision_tree::gen_generic): Likewise.
15485 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
15487         * config/alpha/alpha.c: Use SUBREG_P predicate.
15488         * config/alpha/predicates.md: Ditto.
15490 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15492         * config.host (s390*-*-*): Include driver-native.c only when
15493         building with s390* as host *and* target.
15495 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
15497         PR target/66930
15498         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
15499         T bit register modified_between_p check.
15501 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15503         * config/i386/i386.c: Use SUBREG_P predicate.
15504         * config/i386/i386.md: Ditto.
15505         * config/i386/sse.md: Ditto.
15506         * config/i386/predicates.md: Ditto.
15508 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15510         PR target/67004
15511         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
15512         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
15514 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
15516         * Makefile.in: Remove use of TREEBROWSER.
15517         * config.in: Regenerated.
15518         * configure: Regenerated.
15519         * configure.ac: Remove definition of TREEBROWSER.
15520         * tree-browser.c: Removed.
15521         * tree-browser.def: Removed.
15523 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
15525         * graphite-scop-detection.c: Include gimple-pretty-print.h.
15526         (stmt_simple_for_scop_p): Print when a stmt is not handled in
15527         Graphite.
15528         (scopdet_basic_block_info): Print when a loop or bb cannot be
15529         represented in Graphite.
15531 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15533         PR target/66648
15534         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
15535         execution guard when min_size is less than size_needed.
15537 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
15539         * doc/install.texi: Document supported versions of ISL.
15541 2015-07-25  Jeff Law  <law@redhat.com>
15543         Revert:
15544         PR lto/66752
15545         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15546         unable to find X NE 0 in the tables, return X as the simplified
15547         condition.
15548         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15549         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15550         to VISISTED_BBS.  */
15551         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15552         after removing the control flow statement and unnecessary edges.
15554 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
15556         Revert:
15557         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
15559         PR rtl-optimization/64164
15560         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15561         * tree-ssa-copyrename.c: Removed.
15562         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15563         -ftree-coalesce-vars.
15564         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15565         * common.opt (ftree-copyrename): Ignore.
15566         (ftree-coalesce-inlined-vars): Likewise.
15567         * doc/invoke.texi: Remove the ignored options above.
15568         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15569         * tree-ssa-coalesce.h: ... here.
15570         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15571         headers required by it.
15572         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15573         across variables when flag_tree_coalesce_vars.  Check register
15574         use and promoted modes to allow coalescing.  Moved to
15575         tree-ssa-coalesce.c.
15576         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15577         with its member functions to tree-ssa-coalesce.c.
15578         (var_map_base_init): Likewise.  Renamed to
15579         compute_samebase_partition_bases.
15580         (partition_view_normal): Drop want_bases parameter.
15581         (partition_view_bitmap): Likewise.
15582         * tree-ssa-live.h: Adjust declarations.
15583         * tree-ssa-coalesce.c: Include explow.h.
15584         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15585         default defs at the entry point.
15586         (dump_part_var_map): New.
15587         (compute_optimized_partition_bases): New, called by...
15588         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15589         of compute_samebase_partition_bases.  Adjust.
15590         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15591         * cfgexpand.c (leader_merge): New.
15592         (get_rtl_for_parm_ssa_default_def): New.
15593         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15594         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15595         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15596         redundant MEM attr setting.
15597         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15598         from...
15599         (expand_one_stack_var): ... this.  New wrapper to check and
15600         skip already expanded SSA partitions.
15601         (record_alignment_for_reg_var): New, factored out of...
15602         (expand_one_var): ... this.
15603         (expand_one_ssa_partition): New.
15604         (adjust_one_expanded_partition_var): New.
15605         (expand_one_register_var): Check and skip already expanded SSA
15606         partitions.
15607         (expand_used_vars): Don't create DECLs for anonymous SSA
15608         names.  Expand all SSA partitions, then adjust all SSA names.
15609         (pass::execute): Replace the loops that set
15610         SA.partition_to_pseudo from partition leaders and cleared
15611         DECL_RTL for multi-location variables, and that which used to
15612         rename vars and set attrs, with one that clears DECL_RTL and
15613         checks that PARMs and RESULTs default_defs match DECL_RTL.
15614         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15615         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15616         * explow.c (promote_ssa_mode): New.
15617         * explow.h (promote_ssa_mode): Declare.
15618         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15619         * function.c: Include cfgexpand.h.
15620         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15621         (use_register_for_parm_decl): Wrapper for the above to
15622         special-case the result_ptr.
15623         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15624         (split_complex_args): Take assign_parm_data_all argument.
15625         Pass it to rtl_for_parm.  Set up rtl and context for split
15626         args.
15627         (assign_parms_augmented_arg_list): Adjust.
15628         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15629         multiple locations.  Recognize split complex args.
15630         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15631         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15632         (assign_parm_setup_block): Prefer SSA-assigned location.
15633         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15634         if stack_parm is NULL.
15635         (assign_parm_setup_stack): Prefer SSA-assigned location.
15636         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15637         rtl before testing for pointer bounds.  Special-case result_ptr.
15638         (expand_function_start): Maybe reset DECL_RTL of result.
15639         Prefer SSA-assigned location for result and static chain.
15640         Factor out DECL_RESULT and SET_DECL_RTL.
15641         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15642         anonymous SSA names.  Use promote_ssa_mode.
15643         (get_temp_reg): Likewise.
15644         (remove_ssa_form): Adjust.
15645         * stor-layout.c (layout_decl): Don't set mem attributes of
15646         non-MEMs.
15647         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15648         and get its reg_usage for reg invalidation.
15649         (compute_bb_dataflow): Pass it insn.
15650         (emit_notes_in_bb): Likewise.
15652 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15654         * config/i386/i386.c (ix86_va_start): Remove
15655         unneeded !TARGET_64BIT check.
15656         (ix86_gimplify_va_arg): Ditto.
15658 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15660         * graphite-sese-to-poly.c (build_poly_scop): Always call
15661         rewrite_commutative_reductions_out_of_ssa.
15663 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15665         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
15666         flag_associative_math to FLOAT_TYPE_P.  Honour
15667         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
15669 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15671         PR c++/64079
15672         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
15673         and "%qD" in warning_at instead of "%q+D" in warning.
15675 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
15677         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
15678         (ix86_function_abi): Cleanup.
15680 2015-07-24  Michael Darling  <darlingm@gmail.com>
15682         PR other/66259
15683         * acinclude.m4: Reflects renaming of configure.in to configure.ac
15684         * configure: Likewise
15685         * configure.ac: Likewise
15686         * doc/install.texi: Likewise
15687         * doc/tm.texi: Likewise
15688         * doc/tm.texi.in: Likewise
15690 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15692         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
15693         manually swapping values.
15694         * cse.c (fold_rtx): Likewise.
15695         * lra-eliminations.c (form_sum): Likewise.
15697 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
15699         PR target/64003
15700         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
15701         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
15702         (*jcc_1, *jcc_2, jump, simple_return_internal)
15703         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
15704         Set length_nobnd attribute instead of length attribute.
15705         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
15706         (length_nobnd): Remove attribute.
15707         (length): Remove length_nobnd processing.
15709 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
15711         * gimplify.c (omp_default_clause): New function.  Reorganize flow
15712         for clarity. Broken out of ...
15713         (omp_notice_variable): ... here.
15715 2015-07-24  Gary Funck  <gary@intrepid.com>
15717         PR middle-end/66984
15718         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
15719         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
15721 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15723         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
15724         exit-first loop transform.
15726 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
15728         PR 66714
15729         * tree-cfg.c (struct replace_decls_d): New struct.
15730         (replace_block_vars_by_duplicates_1): New function.
15731         (replace_block_vars_by_duplicates): Use it to replace the decls
15732         in the value exprs by duplicates.
15734 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15736         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
15737         -shared, -symbolic, -rdynamic.
15739 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15741         PR target/65711
15742         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
15743         -dynamic-linker within %{!static %{!shared, and -rdynamic within
15744         %{!static.
15746 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
15748         PR ipa/66566
15749         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
15750         edge summary is available.
15752 2015-07-24  Richard Biener  <rguenther@suse.de>
15754         * genmatch.c (struct dt_node): Add statistic fields.
15755         (dt_node::analyze): New method.
15756         (decision_tree::gen_gimple): Call analyze on the root node
15757         and print statistics to stderr.
15758         (decision_tree::gen_generic): Likewise.
15760 2015-07-24  Richard Biener  <rguenther@suse.de>
15762         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
15763         against the highest or lowest possible integer ...
15764         * match.pd: ... as patterns here.
15766 2015-07-24  Richard Biener  <rguenther@suse.de>
15768         * genmatch.c (struct capture_info): Add same_as field.
15769         (capture_info::capture_info): Initialize same_as.
15770         (capture_info::walk_match): Compute same_as.
15771         (capture_info::walk_result): Compute stuff for the leader.
15772         (capture_info::walk_c_expr): Likewise.
15773         (dt_simplify::gen_1): Only look at leaders when deciding
15774         to force no side-effects or emit side-effects of omitted operands.
15776 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15778         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
15779         reg note to the GPR -> FPR save instructions.
15781 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15783         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
15784         cheaper.
15785         (s390_expand_insv): Don't generate risbg pattern for constant zero
15786         sources.
15787         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
15788         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
15789         splitters.
15791 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15793         * config/s390/s390.c (s390_reorg): Clean up handling of processors
15794         with
15795         -mtune=
15796         (s390_issue_rate): Likewise.
15797         (s390_sched_reorder): Likewise.
15798         (s390_sched_variable_issue): Likewise.
15799         (s390_loop_unroll_adjust): Likewise.
15800         (s390_option_override):  Likewise.
15802 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15804         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
15805         processor capabilities with -march=native.
15806         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
15807         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
15808         (S390_TARGET_BITS_STRING): Macro to simplify specs.
15810 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15812         * config/s390/s390.c (s390_issue_rate): Handle
15813         PROCESSOR_2094_Z9_EC.
15814         (s390_option_override): Likewise.
15815         (s390_adjust_priority): Likewise.
15817 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15819         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
15820         when cross compiling.
15822 2015-07-24  Richard Biener  <rguenther@suse.de>
15824         * fold-const.c (maybe_canonicalize_comparison_1): Move
15825         A code CST canonicalization ...
15826         * match.pd: ... to a pattern here.
15828 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
15830         Revert:
15831         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
15832         PR target/63521
15833         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15834         (HONOR_REG_ALLOC_ORDER): Define.
15836 2015-07-24  Richard Biener  <rguenther@suse.de>
15838         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
15839         * fold-const.c (fold_comparison): Move parameter does not
15840         alias &local simplification ...
15841         * match.pd: ... as a pattern here.
15843 2015-07-24  Richard Biener  <rguenther@suse.de>
15845         * gimple-fold.c (replace_stmt_with_simplification): Special-case
15846         valueizing call operands.
15847         * gimple-match-head.c (maybe_push_res_to_seq): Take
15848         number of call arguments from ops array.
15849         (do_valueize): New function.
15850         (gimple_simplify): Return true if valueization changed
15851         any operand even if the result didn't simplify further.
15853 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15855         PR middle-end/25530
15856         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
15858 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15860         PR middle-end/25529
15861         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
15863 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15865         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
15866         instruction.
15868 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15870         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
15871         clean up.
15873 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
15875         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
15876         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
15877         targets here.
15878         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
15879         ms_va_list_type_node initialization.
15881 2015-07-23  Jeff Law  <law@redhat.com>
15883         PR lto/66752
15884         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15885         unable to find X NE 0 in the tables, return X as the simplified
15886         condition.
15887         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15888         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15889         to VISISTED_BBS.  */
15890         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15891         after removing the control flow statement and unnecessary edges.
15893 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15895         * tree-pass.h (get_current_pass_name): Removed.
15897 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
15899         PR rtl-optimization/64164
15900         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15901         * tree-ssa-copyrename.c: Removed.
15902         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15903         -ftree-coalesce-vars.
15904         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15905         * common.opt (ftree-copyrename): Ignore.
15906         (ftree-coalesce-inlined-vars): Likewise.
15907         * doc/invoke.texi: Remove the ignored options above.
15908         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15909         * tree-ssa-coalesce.h: ... here.
15910         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15911         headers required by it.
15912         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15913         across variables when flag_tree_coalesce_vars.  Check register
15914         use and promoted modes to allow coalescing.  Moved to
15915         tree-ssa-coalesce.c.
15916         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15917         with its member functions to tree-ssa-coalesce.c.
15918         (var_map_base_init): Likewise.  Renamed to
15919         compute_samebase_partition_bases.
15920         (partition_view_normal): Drop want_bases parameter.
15921         (partition_view_bitmap): Likewise.
15922         * tree-ssa-live.h: Adjust declarations.
15923         * tree-ssa-coalesce.c: Include explow.h.
15924         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15925         default defs at the entry point.
15926         (dump_part_var_map): New.
15927         (compute_optimized_partition_bases): New, called by...
15928         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15929         of compute_samebase_partition_bases.  Adjust.
15930         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15931         * cfgexpand.c (leader_merge): New.
15932         (get_rtl_for_parm_ssa_default_def): New.
15933         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15934         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15935         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15936         redundant MEM attr setting.
15937         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15938         from...
15939         (expand_one_stack_var): ... this.  New wrapper to check and
15940         skip already expanded SSA partitions.
15941         (record_alignment_for_reg_var): New, factored out of...
15942         (expand_one_var): ... this.
15943         (expand_one_ssa_partition): New.
15944         (adjust_one_expanded_partition_var): New.
15945         (expand_one_register_var): Check and skip already expanded SSA
15946         partitions.
15947         (expand_used_vars): Don't create DECLs for anonymous SSA
15948         names.  Expand all SSA partitions, then adjust all SSA names.
15949         (pass::execute): Replace the loops that set
15950         SA.partition_to_pseudo from partition leaders and cleared
15951         DECL_RTL for multi-location variables, and that which used to
15952         rename vars and set attrs, with one that clears DECL_RTL and
15953         checks that PARMs and RESULTs default_defs match DECL_RTL.
15954         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15955         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15956         * explow.c (promote_ssa_mode): New.
15957         * explow.h (promote_ssa_mode): Declare.
15958         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15959         * function.c: Include cfgexpand.h.
15960         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15961         (use_register_for_parm_decl): Wrapper for the above to
15962         special-case the result_ptr.
15963         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15964         (split_complex_args): Take assign_parm_data_all argument.
15965         Pass it to rtl_for_parm.  Set up rtl and context for split
15966         args.
15967         (assign_parms_augmented_arg_list): Adjust.
15968         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15969         multiple locations.  Recognize split complex args.
15970         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15971         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15972         (assign_parm_setup_block): Prefer SSA-assigned location.
15973         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15974         if stack_parm is NULL.
15975         (assign_parm_setup_stack): Prefer SSA-assigned location.
15976         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15977         rtl before testing for pointer bounds.  Special-case result_ptr.
15978         (expand_function_start): Maybe reset DECL_RTL of result.
15979         Prefer SSA-assigned location for result and static chain.
15980         Factor out DECL_RESULT and SET_DECL_RTL.
15981         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15982         anonymous SSA names.  Use promote_ssa_mode.
15983         (get_temp_reg): Likewise.
15984         (remove_ssa_form): Adjust.
15985         * stor-layout.c (layout_decl): Don't set mem attributes of
15986         non-MEMs.
15987         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15988         and get its reg_usage for reg invalidation.
15989         (compute_bb_dataflow): Pass it insn.
15990         (emit_notes_in_bb): Likewise.
15992 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
15994         PR target/66217
15995         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
15996         prototype.
15997         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
15998         (rs6000_emit_2insn_and): Handle dot forms.
15999         * config/rs6000/rs6000.md (and<mode>3): Adjust.
16000         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
16001         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
16003 2015-07-23  Richard Biener  <rguenther@suse.de>
16005         * generic-match-head.c: Include cgraph.h.
16006         * gimple-match-head.c: Likewise.
16007         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
16008         SSA names.
16009         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
16010         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
16011         pattern.
16013 2015-07-23  Richard Biener  <rguenther@suse.de>
16015         * gimple-fold.c (fold_gimple_cond): Do not require folding
16016         results to pass valid_gimple_rhs_p.
16017         * tree-cfg.h (fold_cond_expr_cond): Remove.
16018         * tree-cfg.c (fold_cond_expr_cond): Likewise.
16019         (make_edges): Do not call it.
16020         * tree-inline.c (tree_function_versioning): Likewise.
16022 2015-07-23  Tom de Vries  <tom@codesourcery.com>
16024         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
16025         vect_force_simple_reduction.
16026         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
16027         (vect_is_simple_reduction_1): Add and handle
16028         need_wrapping_integral_overflow parameter.
16029         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
16030         need_wrapping_integral_overflow parameter.
16031         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
16032         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
16033         decl.
16035 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
16037         PR tree-optimization/66926,66951
16038         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
16039         INNER_LOOP and fix up condition for renaming virtual operands.
16041 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16043         * combine.c (try_combine): Use std::swap instead of manually
16044         swapping.
16046 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
16048         * config/mips/i6400.md: New file.
16049         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
16050         (mips64r6): Likewise.
16051         (i6400): Define.
16052         * config/mips/mips-tables.opt: Regenerate.
16053         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
16054         (mips_issue_rate): Add support for i6400.
16055         (mips_multipass_dfa_lookahead): Likewise.
16056         * config/mips/mips.h (TUNE_I6400): Define.
16057         * config/mips/mips.md: Include i6400.md.
16058         (processor): Add i6400.
16059         * doc/invoke.texi (-march=@var{arch}): Add i6400.
16061 2015-07-23  Richard Biener  <rguenther@suse.de>
16063         PR middle-end/66916
16064         * match.pd: Guard widen and sign-change comparison simplification
16065         with single_use.
16067 2015-07-23  Richard Biener  <rguenther@suse.de>
16069         PR tree-optimization/66945
16070         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
16071         ::before_dom_children): Force the propagators idea of
16072         non-executable edges to materialize, not what the folder
16073         chooses.
16075 2015-07-23  Richard Biener  <rguenther@suse.de>
16077         * gimple.h (gimple_cond_make_false): Use 0 != 0.
16078         (gimple_cond_make_true): Use 1 != 0.
16080 2015-07-22  DJ Delorie  <dj@redhat.com>
16082         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
16083         slashes.
16085         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
16086         (ashrhi3): Likewise.
16087         (lshrhi3): Likewise.
16088         (movhi): Take advantage of zero-extend to load small constants.
16089         (movpsi): Likewise.
16090         (and<mode>3): Likewise.
16091         (zero_extendqihi2): Likewise.
16092         (zero_extendqisi2): New.
16093         * config/msp430/constraints.md (N,O): New.
16094         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
16096 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
16098         PR target/66954
16099         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
16100         to enum feature_priority and feature_list.
16101         (fold_builtin_cpu): Add F_AES to enum processor_features
16102         and isa_names_table.
16104 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
16106         PR driver/66737
16107         * config/i386/linux-common.h (MPX_SPEC): Use linker option
16108         for 64bit target only.
16110 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
16112         * config/nvptx/nvptx.c: Expand some comments.
16114 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
16116         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
16117         (cortex_a53_advsimd): ...This.
16119 2015-07-22  Richard Biener  <rguenther@suse.de>
16121         * genmatch.c (expr::gen_transform): Clarify error message
16122         and display location.
16124 2015-07-22  Richard Biener  <rguenther@suse.de>
16126         * genmatch.c (struct operand): Add location member.
16127         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
16128         constructors.
16129         (struct simplify): Remove match_location and result_location
16130         members.
16131         (elsehwere): Adjust.
16133 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
16135         * config/mips/m5100.md: New file.
16136         * config/mips/mips-cpus.def (m5100, m5101): Define.
16137         * config/mips/mips-tables.opt: Regenerate.
16138         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
16139         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
16140         -march=m5101 to -mips32r5.
16141         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
16142         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
16143         !-msoft-float.
16144         * config/mips/mips.md: Include m5100.md.
16145         (processor): Add m5100.
16146         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
16148 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
16150         * config/mips/mips-cpus.def (interaptiv): Define.
16151         * config/mips/mips-tables.opt: Regenerate.
16152         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
16153         -mips32r2.
16154         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
16155         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
16157 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
16159         PR target/63521
16160         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
16161         (HONOR_REG_ALLOC_ORDER): Define.
16163 2015-07-22  Richard Biener  <rguenther@suse.de>
16165         PR tree-optimization/66952
16166         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
16167         blocks we end up executing unconditionally reset all SSA
16168         info such as range and alignment.
16169         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
16170         * tree-ssanames.c (reset_flow_sensitive_info): New function.
16172 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
16174         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
16175         typo in attribute.
16177 2015-07-22  Richard Biener  <rguenther@suse.de>
16179         * genmatch.c (parser::parse_result): Properly handle
16180         match with result operands and conditions.
16182 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
16184         PR target/63870
16185         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16186         Add qualifier_struct_load_store_lane_index.
16187         (aarch64_types_loadstruct_lane_qualifiers): Use
16188         qualifier_struct_load_store_lane_index for lane index argument for
16189         last argument.
16190         (aarch64_types_storestruct_lane_qualifiers): Ditto.
16191         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16192         (aarch64_simd_expand_args): Add new argument describing mode of
16193         builtin. Check lane bounds for arguments with
16194         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16195         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
16196         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16197         (aarch64_simd_expand_builtin): Handle arguments with
16198         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
16199         aarch64_simd_expand_args.
16200         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
16201         vst[234]_lane with BUILTIN_VALLDIF.
16202         * config/aarch64/aarch64-simd.md:
16203         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
16204         endianness reversal on lane index.
16205         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
16206         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
16207         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
16208         (vec_store_lanesci_lane<mode>): Ditto.
16209         (vec_store_lanesxi_lane<mode>): Ditto.
16210         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
16211         reversal of lane index.
16212         (aarch64_ld3_lane<mode>): Ditto.
16213         (aarch64_ld4_lane<mode>): Ditto.
16214         (aarch64_st2_lane<mode>): Ditto.
16215         (aarch64_st3_lane<mode>): Ditto.
16216         (aarch64_st4_lane<mode>): Ditto.
16217         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
16218         to qmode. Add new mode parameter. Update uses.
16219         (__LD3_LANE_FUNC): Ditto.
16220         (__LD4_LANE_FUNC): Ditto.
16221         (__ST2_LANE_FUNC): Ditto.
16222         (__ST3_LANE_FUNC): Ditto.
16223         (__ST4_LANE_FUNC): Ditto.
16225 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
16227         * doc/invoke.texi (Language Independent Options): Rename node to
16228         Diagnostic Message Formatting Options.
16230 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
16232         PR ipa/66424.
16233         * lra-remat.c (operand_to_remat): Prevent using insns with input
16234         subregs processed separately by IRA.
16236 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
16238         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
16239         straight loops.
16240         (single_imm_use): Check for iterator node.
16241         (num_imm_uses): Likewise.
16242         * tree-ssa-operands.c (has_zero_uses_1): Delete.
16243         (single_imm_use_1): Check for iterator node.
16245 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
16246             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16248         * configure.ac: Add check for new options in isl-0.15.
16249         * config.in, configure: Rebuilt.
16250         * graphite-blocking.c: Include <isl/constraint.h>
16251         * graphite-interchange.c,  graphite-poly.c: Likewise.
16252         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
16253         * graphite.c: Likewise.
16254         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
16255         <isl/union_set.h>.
16256         * graphite-dependences.c: Include <isl/constraint.h>.
16257         (max_number_of_out_dimensions): Returns isl_stat.
16258         (extend_schedule_1): Likewise
16259         (extend_schedule): Corresponding changes.
16260         * graphite-optimize-isl.c: Include <isl/constraint.h> and
16261         <isl/union_set.h>.
16262         (getSingleMap): Change return type of isl_stat.
16263         (optimize_isl): Conditionally use
16264         isl_options_set_schedule_serialize_sccs.
16265         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
16266         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
16268 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
16270         PR target/66956
16271         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
16272         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
16274 2015-07-21  Richard Biener  <rguenther@suse.de>
16276         PR tree-optimization/66948
16277         * genmatch.c (capture_info::walk_match): Also recurse to
16278         captures.  Properly compute expr state from captures of
16279         captures.
16280         * match.pd: Add single-use guards to
16281         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
16283 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
16285         * config/nvptx/mkoffload.c (process): Add static destructor call.
16287 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16289         PR middle-end/66915
16290         * match.pd (A - B -> A + (-B)): Don't allow folding
16291         when type if a fixed-point type.
16293 2015-07-20  DJ Delorie  <dj@redhat.com>
16295         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
16296         (iorqi3_real): Likewise for set1.
16298 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
16300         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
16301         for !TARGET_64BIT.
16303 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
16305         * graphite-isl-ast-to-gimple.c:
16306         Refactor so that each function can access 'region'. This will help
16307         maintain a parameter rename_map within a region.
16309 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
16311         * config/rs6000/rs6000.md (*lt0_disi): New.
16313 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
16315         PR target/66217
16316         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
16317         "available letters" comment.
16318         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
16319         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
16320         and_2rld_operand):  Delete.
16321         (and_operand): Adjust.
16322         (rotate_mask_operator): New.
16323         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
16324         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
16325         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
16326         extract_ME): Delete.
16327         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16328         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
16329         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
16330         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16331         rs6000_emit_2insn_and): New.
16332         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
16333         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
16334         includes_rldic_lshift_p, includes_rldicr_lshift_p,
16335         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
16336         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16337         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
16338         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
16339         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16340         rs6000_emit_2insn_and): New.
16341         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
16342         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
16343         handling.
16344         <NOT>: Don't fall through to next case.
16345         <AND>: Handle the various rotate-and-mask cases directly.
16346         <IOR>: Always cost as one insn.
16347         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
16348         (and<mode>3): Adjust expander for the new patterns.
16349         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
16350         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
16351         (*and<mode>3_imm_dot_shifted): New.
16352         (*and<mode>3_mask): Delete, rewrite as ...
16353         (and<mode>3_mask): ... New.
16354         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
16355         (andsi3_internal0_nomc): Delete.
16356         (*andsi3_internal6): Delete.
16357         (*and<mode>3_2insn): New.
16358         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16359         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16360         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
16361         *insvdi_internal3): Delete.
16362         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
16363         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
16364         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
16365         *ior<mode>_mask): New.
16366         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
16367         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
16368         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
16369         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
16370         Delete.
16371         (ashr<mode>3): Delete expander.
16372         (*ashr<mode>3): Rename to ...
16373         (ashr<mode>3): ... This.
16374         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
16375         (*rotldi3_internal4, *rotldi3_internal5 and split,
16376         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
16377         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
16378         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
16379         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
16380         (splitter for loading a mask): Adjust.
16381         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
16383 2015-07-20  Marek Polacek  <polacek@redhat.com>
16385         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
16386         output_add_clobbers, output_added_clobbers_hard_reg_p,
16387         gen_rtx_scratch): Remove declarations.
16389 2015-07-20  Marek Polacek  <polacek@redhat.com>
16391         PR c++/55095
16392         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
16394 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16396         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
16397         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
16399 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16401         * combine.c (combine_simplify_rtx): Move simplification step
16402         before various transformations/substitutions.
16404 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
16406         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
16407         (struct int_traits): Likewise.
16409 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16411         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
16412         function to vmsdbgout_function_decl.
16414 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
16416         PR target/66922
16417         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
16418         from misaligned positions.
16419         (ix86_expand_pinsr): Reject insertions to misaligned positions.
16421 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
16423         PR middle-end/46851
16424         PR middle-end/60340
16425         * Makefile.in: Removed omega.o.
16426         * common.opt: Document flag fcheck-data-deps as deprecated.
16427         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
16428         its associated params: omega-max-vars, omega-max-geqs,
16429         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
16430         omega-max-keys, omega-eliminate-redundant-constraints.
16431         * doc/loop.texi: Remove all the section on Omega.
16432         * graphite-blocking.c: Include missing params.h: it used to be
16433         included through tree-data-ref.h and omega.h.
16434         * graphite-isl-ast-to-gimple.c: Same.
16435         * graphite-optimize-isl.c: Same.
16436         * graphite-sese-to-poly.c: Same.
16437         * graphite.c: Same.
16438         * omega.c: Remove.
16439         * omega.h: Remove.
16440         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
16441         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
16442         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
16443         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
16444         * passes.def: Remove pass_check_data_deps.
16445         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
16446         (dump_conflict_function): Same.
16447         (dump_subscript): Same.
16448         (print_direction_vector): Same.
16449         (print_dir_vectors): Same.
16450         (print_lambda_vector): Same.
16451         (print_dist_vectors): Same.
16452         (dump_data_dependence_relation): Same.
16453         (dump_data_dependence_relations): Same.
16454         (dump_dist_dir_vectors): Same.
16455         (dump_ddrs): Same.
16456         (init_omega_eq_with_af): Removed.
16457         (omega_extract_distance_vectors): Removed.
16458         (omega_setup_subscript): Removed.
16459         (init_omega_for_ddr_1): Removed.
16460         (init_omega_for_ddr): Removed.
16461         (ddr_consistent_p): Removed.
16462         (compute_affine_dependence): Do not use omega to check data
16463         dependences.
16464         (compute_data_dependences_for_bb): Removed.
16465         (analyze_all_data_dependences): Removed.
16466         (tree_check_data_deps): Removed.
16467         * tree-data-ref.h: Do not include omega.h.
16468         (compute_data_dependences_for_bb): Removed.
16469         (tree_check_data_deps): Removed.
16470         * tree-ssa-loop.c (pass_check_data_deps): Removed.
16471         (make_pass_check_data_deps): Removed.
16472         * tree-ssa-phiopt.c: Include params.h.
16473         * tree-vect-data-refs.c: Same.
16474         * tree-vect-slp.c: Same.
16476 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
16478         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
16479         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
16480         (mem->fpreg splitters): Ditto.
16481         (general_operand->nonimmediate_operand splitter): Use explicit modes.
16482         Disable DFmode for TARGET_64BIT.
16484 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
16486         PR target/66906
16487         * config/i386/i386.c (ix86_expand_prologue): Replicate static
16488         chain on the stack.
16490 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
16492         * config/nvptx/mkoffload.c (process): Constify host data.
16493         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16494         Constify host data.
16495         (generate_host_descr_file): Likewise.
16497 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
16498             Sebastian Pop  <s.pop@samsung.com>
16500         PR middle-end/61929
16501         * graphite-dependences.c (add_pdr_constraints): Renamed
16502         pdr->extent to pdr->subscript_sizes.
16503         * graphite-interchange.c (build_linearized_memory_access): Add
16504         back all gcc_assert's that the "isl_int to isl_val conversion"
16505         patch has removed.  Refactored.
16506         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
16507         * graphite-poly.c (new_poly_dr): Same.
16508         (free_poly_dr): Same.
16509         * graphite-poly.h (struct poly_dr): Same.
16510         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
16511         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
16512         * graphite-scop-detection.h: Fix space.
16513         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
16514         back all gcc_assert's removed by a previous patch.
16515         (wrap): Remove the_isl_ctx global variable that the same patch has
16516         added.
16517         (build_loop_iteration_domains): Same.
16518         (add_param_constraints): Same.
16519         (pdr_add_data_dimensions): Same.  Refactored.
16520         (build_poly_dr): Renamed extent to subscript_sizes.
16522 2015-07-17  Marek Polacek  <polacek@redhat.com>
16524         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
16525         * match.pd: ... here.
16527 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
16529         * config/nvptx/mkoffload.c (process): Constify target data.
16530         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16531         Constify target data.
16532         (generate_target_offloadend_file): Likewise.
16534 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
16536         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
16537         to allow renaming of PHI arguments on edges incoming from outer
16538         loop header, add corresponding check before start PHI iterator.
16539         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
16540         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
16541         with true force_vectorize.  Set-up dominator for outer loop too.
16542         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
16543         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
16544         was marked with force_vectorize and has restricted cfg.
16545         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
16546         inner loop.
16547         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
16548         do peeling for outer loops.
16550 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
16551             Matthias Klose  <doko@ubuntu.com>
16553         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
16554         build-sysroot, sysroot from the `Miscenalleous configure options' to
16555         the `Directories' section and strip trailing `/' from with_sysroot.
16556         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
16557         * configure: Regenerated.
16559 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
16561         PR target/66824
16562         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
16563         (TARGET_HARD_DF_REGS): Ditto.
16564         (TARGET_HARD_XF_REGS): Ditto.
16565         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
16566         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
16567         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
16568         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
16569         (*movsf_internal): Add alternatives 16 and 17. Enable
16570         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
16572 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
16574         PR rtl-optimization/66891
16575         * calls.c (expand_call): Wrap precompute_register_parameters with
16576         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
16578 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
16580         * config/nvptx/mkoffload.c (process): Constify mapping variables.
16581         Define target data struct and initialize it.
16583 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
16585         PR rtl-optimization/66626
16586         * ira.h (emit-rtl.h): Include.
16587         (non_spilled_static_chain_regno_p): New.
16588         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
16589         unless it is non spilled static chain pseudo.
16590         (assign_hard_rego): Spill memory profitable allocno unless it is
16591         non spilled static chain pseudo.
16592         (allocno_spill_priority_compare): Put non spilled static chain
16593         pseudo at the end of sorted array.
16594         (improve_allocation): Do nothing if we have static chain and
16595         non-local goto.
16596         (allocno__priority_compare_func): Put non spilled static chain
16597         pseudo at the beginning of sorted array.
16598         (move_spill_restore): Ignore non spilled static chain pseudo.
16599         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
16600         to non spilled static chain pseudo.
16601         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
16602         pseudo at the beginning of sorted array.
16603         (spill_for): Spill non spilled static chain pseudo last.
16604         * lra-constraints.c (lra_constraints): Remove static chain pseudo
16605         check for equivalence.
16607 2015-07-16  Martin Liska  <mliska@suse.cz>
16609         PR ipa/66896.
16610         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
16611         dst_ctx if it does not exist.
16613 2015-07-16  Martin Liska  <mliska@suse.cz>
16615         * hash-set.h (remove): New function.
16616         (iterator): New iteration class for hash_set.
16618 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16620         * genattrtab.c (make_canonical): Add a file_location parameter.
16621         Use fatal_at rather than fatal.
16622         (get_attr_value): Likewise.  Update call to make_canonical.
16623         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
16624         (make_internal_attr): Update calls accordingly.
16626 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16628         * read-md.h (message_with_line, error_with_line): Delete.
16629         * read-md.c (message_with_line, error_with_line): Delete.
16630         * gensupport.h: Include read-md.h.
16631         (md_rtx_info): New structure.
16632         (read_md_rtx): Use it.  Return a bool success value.
16633         * gensupport.c (read_md_rtx): Likewise.
16634         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
16635         (main): Update after interface changes.
16636         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
16637         (main): Update after interface changes.
16638         * genattrtab.c (insn_code_number): Delete.
16639         (optimize_attrs): Add a max_insn_code parameter and use it instead
16640         of insn_code_number.
16641         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
16642         Use *_at rather than *_with_line functions.
16643         (gen_insn): Likewise.
16644         (gen_delay): Likewise.
16645         (gen_insn_reserv): Likewise.
16646         (gen_bypass): Take an md_rtx_info rather than an rtx.
16647         (main): Update after interface changes.  Use a local max_insn_code
16648         variable instead of insn_code_number.
16649         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
16650         an rtx.  Use fatal_at rather than fatal.
16651         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
16652         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
16653         (gen_absence_set, gen_final_absence_set, gen_automaton)
16654         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
16655         (main): Update after interface changes.
16656         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
16657         and code number.
16658         (main): Update after interface changes.
16659         * genconditions.c (main): Use new read_md_rtx interface.
16660         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
16661         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
16662         (main): Update after interface changes.
16663         * genemit.c (insn_code_number, insn_index_number): Delete.
16664         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16665         Use fatal_at rather than fatal.
16666         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
16667         rather than fatal.
16668         (gen_split): Likewise.
16669         (main): Update after interface changes.
16670         * genextract.c (line_no): Delete.
16671         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16672         Update call to walk_rtx.
16673         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
16674         rather than message_with_line.
16675         (walk_rtx): Add an md_rtx_info argument.  Update call to
16676         VEC_safe_set_locstr.
16677         (main): Update after interface changes.
16678         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
16679         and lineno.  Use error_at rather than separate message_with_line
16680         calls and have_error assignments.
16681         (main): Update after interface changes.
16682         * genmddump.c (main): Use new read_md_rtx interface.
16683         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
16684         (main): Update after interface changes.
16685         * genoutput.c (next_code_number): Delete.
16686         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16687         (gen_peephole, gen_expand, gen_split): Likewise.
16688         (note_constraint): Likewise.  Use *_at rather than *_with_line
16689         functions.
16690         (main): Update after interface changes.
16691         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
16692         rtx and lineno.
16693         (main): Update after interface changes.
16694         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
16695         than an rtx and lineno.
16696         (process_define_constraint): Likewise.
16697         (process_define_register_constraint): Likewise.
16698         (main): Update after interface changes.
16699         * genrecog.c (next_insn_code, pattern_lineno): Delete.
16700         (validate_pattern): Replace top-level rtx with an md_rtx_info.
16701         Use *_at rather than *_with_line functions.
16702         (match_pattern_2): Likewise.
16703         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
16704         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
16705         Use *_at rather than *_with_line functions.
16706         * gentarget-def.c (add_insn): New function.
16707         (main): Use it.  Use new read_md_rtx interface.
16709 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16711         * gensupport.h (compute_test_codes): Take a file_location rather
16712         than a line number.
16713         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
16714         rather than *_with_line functions.
16715         (process_define_predicate): Update call to compute_test_codes.
16716         * genpreds.c (validate_exp): Take a file_location rather than a
16717         line number.  Use *_at functions rather than *_with_line functions.
16718         (process_define_predicate): Update call to validate_exp.
16719         (constraint_data): Replace lineno field with a file_location.
16720         (add_constraint): Take a file_location rather than a line number.
16721         Use *_at functions rather than *_with_line functions.  Fix error
16722         message for address constraints.  Update after changes to
16723         validate_exp, constraint_data and compute_test_codes.
16724         (process_define_constraint): Update accordingly.
16725         (process_define_register_constraint): Likewise.
16727 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16729         * genoutput.c (data): Use a file_location to record the source
16730         position.
16731         (nothing): Delete.
16732         (idata, idata_end): Remove initialization.
16733         (constraint_data): Replace lineno with a file_location.
16734         (output_insn_data): Update after changes to data.
16735         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
16736         (scan_operands): Likewise, using *_at rather than *_with_line
16737         functions.
16738         (process_template): Likewise.
16739         (validate_insn_alternatives): Likewise.
16740         (validate_insn_operands): Likewise.
16741         (validate_optab_operands): Likewise.
16742         (init_insn_for_nothing): Initialize idata and idata_end.
16743         (note_constraint): Update after changes to constraint_data,
16744         using at rather than with_line functions.
16745         (mdep_constraint_len): Take a file_location rather than a
16746         line number.  Use at rather than with_line functions.
16748 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16750         * read-md.h (fatal_at): Declare.
16751         * read-md.c (fatal_at): New function.
16752         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
16753         to record the source position.
16754         (check_attr_test): Take a file_location instead of a line number.
16755         Use fatal_at instead of fatal.
16756         (check_attr_value): Update after above changes, using "at"
16757         rather than "with_line" reporting functions.
16758         (convert_set_attr_alternative): Likewise.
16759         (gen_attr): Likewise.
16760         (check_defs): Likewise.  Don't assign to read_md_filename.
16761         (gen_insn): Update initialization after above changes.
16762         (gen_delay): Likewise.
16763         (write_insn_cases): Print the filename for a define_peephole.
16764         (gen_insn_reserv): Take a line number as argument and update
16765         the call to check_attr_test.
16766         (main): Pass a line number to gen_insn_reserv.
16768 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16770         * read-md.h (file_location): New structure.
16771         (directive_handler_t): Take a file_location rather than a line number.
16772         (message_at, error_at): Declare.
16773         (read_skip_construct): Delete.
16774         * read-md.c (message_with_line_1): Replace with...
16775         (message_at_1): ...this new function.
16776         (message_at, error_at): New functions.
16777         (message_with_line, error_with_line): Update to use message_at_1.
16778         (handle_enum): Take a file_location rather than a line number
16779         and use error_at for error reporting.
16780         (handle_include): Likewise.
16781         (read_skip_construct): Likewise.  Make static.
16782         (handle_file): Update after above changes.  Pass a file_location
16783         rather than a line number to handle_directive.
16784         * gensupport.c (queue_elem): Replace separate filename and lineno
16785         with a file_location.
16786         (queue_pattern): Replace filename and lineno arguments with a
16787         file_location.  Update after change to queue_elem.
16788         (process_define_predicate): Replace lineno argument with a
16789         file_location and use error_at for error reporting.  Update
16790         after above changes.
16791         (process_rtx): Likewise.
16792         (subst_pattern_match): Likewise.
16793         (get_alternatives_number): Likewise.
16794         (alter_predicate_for_insn): Likewise.
16795         (rtx_handle_directive): Likewise.
16796         (is_predicable): Update after above changes, using error_at rather
16797         than error_with_line.
16798         (has_subst_attribute): Likewise.
16799         (identify_predicable_attribute): Likewise.
16800         (alter_attrs_for_subst_insn): Likewise.
16801         (process_one_cond_exec): Likewise.
16802         (process_substs_on_one_elem): Likewise.
16803         (process_define_subst): Likewise.
16804         (check_define_attr_duplicates): Likewise.
16805         (read_md_rtx): Update after change to queue_elem.
16807 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16809         * genoutput.c (next_index_number): Delete.
16810         (data): Remove index_number.
16811         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
16812         (main): Remove manipulation of next_index_number.
16814 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16816         * genattrtab.c (check_attr_value): Remove handling of null attrs.
16817         (make_canonical): Likewise.
16819 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
16821         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
16822         instead of adjust_address_nv.
16823         (restore_stack_nonlocal): Likewise.
16824         (nonlocal_goto): Likewise.
16826 2015-07-16  Tom de Vries  <tom@codesourcery.com>
16828         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
16829         not have a corresponding loop header phi.
16831 2015-07-16  Tom de Vries  <tom@codesourcery.com>
16833         * tree-parloops.c (create_loads_for_reductions): Handle case that
16834         reduction is unused.
16836 2015-07-16  Richard Biener  <rguenther@suse.de>
16838         PR tree-optimization/66894
16839         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
16840         about deriving NE_EXPR from truncated values.
16842 2015-07-16  Martin Liska  <mliska@suse.cz>
16844         * alloc-pool.h
16845         (object_allocator): Add new class.
16846         (pool_allocator::initialize): Use the underlying class.
16847         (pool_allocator::allocate): Likewise.
16848         (pool_allocator::remove): Likewise.
16849         (operator new): A new generic allocator.
16850         * asan.c (struct asan_mem_ref): Remove unused members.
16851         (asan_mem_ref_new): Replace new operator with
16852         object_allocator::allocate.
16853         (free_mem_ref_resources): Change deallocation.
16854         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
16855         with object_allocator.
16856         * config/sh/sh.c (add_constant): Replace new operator with
16857         object_allocator::allocate.
16858         (sh_reorg): Change call to a release method.
16859         * cselib.c (struct elt_list): Remove unused members.
16860         (new_elt_list): Replace new operator with
16861         object_allocator::allocate.
16862         (new_elt_loc_list): Likewise.
16863         (new_cselib_val): Likewise.
16864         (unchain_one_elt_list): Change delete operator with remove method.
16865         (unchain_one_elt_loc_list): Likewise.
16866         (unchain_one_value): Likewise.
16867         (cselib_finish): Release newly added static allocators.
16868         * cselib.h (struct cselib_val): Remove unused members.
16869         (struct elt_loc_list): Likewise.
16870         * df-problems.c (df_chain_alloc): Replace pool_allocator with
16871         object_allocator.
16872         * df-scan.c (struct df_scan_problem_data): Likewise.
16873         (df_scan_alloc): Likewise.
16874         * df.h (struct dataflow): Likewise.
16875         * dse.c (struct read_info_type): Likewise.
16876         (struct insn_info_type): Likewise.
16877         (struct dse_bb_info_type): Likewise.
16878         (struct group_info): Likewise.
16879         (struct deferred_change): Likewise.
16880         (get_group_info): Likewise.
16881         (delete_dead_store_insn): Likewise.
16882         (free_read_records): Likewise.
16883         (replace_read): Likewise.
16884         (check_mem_read_rtx): Likewise.
16885         (scan_insn): Likewise.
16886         (dse_step1): Likewise.
16887         (dse_step7): Likewise.
16888         * et-forest.c (struct et_occ): Remove unused members.
16889         (et_new_occ): Use allocate instead of new operator.
16890         (et_new_tree): Likewise.
16891         (et_free_tree): Call release method explicitly.
16892         (et_free_tree_force): Likewise.
16893         (et_free_pools): Likewise.
16894         (et_split): Use remove instead of delete operator.
16895         * et-forest.h (struct et_node): Remove unused members.
16896         * ipa-cp.c: Change pool_allocator to object_allocator.
16897         * ipa-inline-analysis.c: Likewise.
16898         * ipa-profile.c: Likewise.
16899         * ipa-prop.c: Likewise.
16900         * ipa-prop.h: Likewise.
16901         * ira-build.c (initiate_cost_vectors): Cast return value.
16902         (ira_allocate_cost_vector): Likewise.
16903         * ira-color.c (struct update_cost_record): Remove unused members.
16904         * lra-int.h (struct lra_live_range): Likewise.
16905         (struct lra_copy): Likewise.
16906         (struct lra_insn_reg): Likewise.
16907         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
16908         * lra.c (new_insn_reg): Replace new operator with allocate method.
16909         (free_insn_regs): Same for operator delete.
16910         (finish_insn_regs): Release new static allocator.
16911         (finish_insn_recog_data): Likewise.
16912         (lra_free_copies): Replace delete operator with remove method.
16913         (lra_create_copy): Replace operator new with allocate method.
16914         (invalidate_insn_data_regno_info): Same for remove method.
16915         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
16916         (free_debug_insn_changes): Replace delete operator with remove method.
16917         (replace_oldest_value_reg): Replace operator new with allocate method.
16918         (pass_cprop_hardreg::execute): Release new static variable.
16919         * sched-deps.c (sched_deps_init): Change pool_allocator to
16920         object_allocator.
16921         * sel-sched-ir.c: Likewise.
16922         * sel-sched-ir.h: Likewise.
16923         * stmt.c (expand_case): Likewise.
16924         (expand_sjlj_dispatch_table): Likewise.
16925         * tree-sra.c (struct access): Remove unused members.
16926         (struct assign_link): Likewise.
16927         (sra_deinitialize): Release newly added static pools.
16928         (create_access_1):Replace operator new with allocate method.
16929         (build_accesses_from_assign): Likewise.
16930         (create_artificial_child_access): Likewise.
16931         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
16932         pool_allocator to object_allocator.
16933         * tree-ssa-pre.c: Likewise.
16934         * tree-ssa-reassoc.c: Likewise.
16935         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16936         * tree-ssa-strlen.c: Likewise.
16937         * tree-ssa-structalias.c: Likewise.
16938         * var-tracking.c (onepart_pool_allocate): New function.
16939         (unshare_variable): Use the newly added function.
16940         (variable_merge_over_cur): Likewise.
16941         (variable_from_dropped): Likewise.
16942         (variable_was_changed): Likewise.
16943         (set_slot_part): Likewise.
16944         (emit_notes_for_differences_1): Likewise.
16945         (vt_finalize): Release newly added static pools.
16947 2015-07-16  Martin Jambor  <mjambor@suse.cz>
16949         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
16950         all uses.  Fix two typos in its general comment.
16951         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
16953 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
16955         * config/i386/linux-common.h (LINK_MPX): New.
16956         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
16957         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
16958         indicating '-z bndplt' support by linker.
16959         * configure: Regenerate.
16960         * config.in: Regenerate.
16962 2015-07-16  Richard Biener  <rguenther@suse.de>
16964         * fold-const.c (fold_widened_comparison): Remove.
16965         (fold_sign_changed_comparison): Likewise.
16966         (fold_comparison): Move widened and sign-changed comparison
16967         simplification ...
16968         * match.pd: ... to patterns here.
16969         * generic-match-head.c: Include target.h.
16970         * gimple-match-head.c: Likewise.
16972 2015-07-16  Richard Biener  <rguenther@suse.de>
16974         * tree-ssa-dom.c (dom_valueize): New function.
16975         (record_temporary_equivalences): Also record equivalences
16976         for dominating stmts that have uses of equivalences we are
16977         about to record.
16979 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
16981         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
16982         add_autoinc_candidates.
16983         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
16984         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
16985         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
16986         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
16987         Call new function.
16988         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
16989         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
16990         Remove parameter struct iv*.  Call add_autoinc_candidates here.
16991         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
16992         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
16993         Call new function.
16994         (find_iv_candidates): Call new functions.
16996 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
16998         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
16999         uninitialized-variable warning.
17001 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
17003         PR target/65249
17004         * config/sh/sh.md (movdi): Split simple reg move to two movsi
17005         when the destination is R0.
17007 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
17009         PR target/66866
17010         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
17011         * config/i386/i386.c (ix86_expand_pextr): New function.
17012         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
17013         for non-lowpart subregs.
17014         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
17015         (insv<mode>): Use SWI248 mode iterator.
17016         (insv<mode>_1): Ditto.
17018 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17019             Sebastian Pop  <s.pop@samsung.com>
17021         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
17022         iterator to use_stmt.
17024 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17025             Sebastian Pop <s.pop@samsung.com>
17027         * graphite-scop-detection.c (build_scops_1): Discard scops for
17028         which entry==exit.
17030 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17031             Sebastian Pop <s.pop@samsung.com>
17033         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
17034         case of a return statement in scop.
17036 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17037             Sebastian Pop <s.pop@samsung.com>
17039         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
17040         INTEGER_TYPE parameters.
17041         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
17042         VECTOR_CST in scan_tree_for_params.
17043         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
17045 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
17047         * gimple-pretty-print.h: Don't include pretty-print.h.
17048         * tree-streamer.h: Don't include lto-streamer.h.
17049         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
17050         * gimple-streamer-in.c: Remove redundant includes.
17051         * gimple-streamer-out.c: Likewise.
17052         * ipa-devirt.c: Likewise.
17053         * ipa-icf.c: Likewise.
17054         * ipa-inline-analysis.c: Likewise.
17055         * ipa-polymorphic-call.c: Likewise.
17056         * ipa-profile.c: Likewise.
17057         * ipa-prop.c: Likewise.
17058         * ipa-pure-const.c: Likewise.
17059         * lto-cgraph.c: Likewise.
17060         * lto-streamer-in.c: Likewise.
17061         * lto-streamer-out.c: Likewise.
17062         * lto-streamer.c: Likewise.
17063         * tree-streamer-in.c: Likewise.
17064         * tree-streamer-out.c: Likewise.
17065         * tree-streamer.c: Likewise.
17067 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
17069         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
17070         include input.h.
17071         * opts.c: Remove multiline #include comment.
17073 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
17075         * config/nvptx/mkoffload.c (process): Add C++ protection to
17076         emitted code.
17078 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17080         PR target/66854
17081         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
17082         null before IEEE 128-bit floating point support patch.
17084 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17086         * simplify-rtx.c (simplify_ternary_operation): Add simplification
17087         for (!c) != {0,...,0} ? a : b for vector modes.
17089 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
17090             Martin Jambor  <mjambor@suse.cz>
17092         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
17093         struct func_body_info* instead of struct ipa_node_params*, expecting
17094         fbi->info to be filled in.  Replace throughout.  Adjust call to
17095         ipa_load_from_parm_agg.
17096         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
17097         instead of struct ipa_node_params*.  Adjust calls to other functions
17098         so that they pass either fbi or fbi->info.
17099         (set_switch_stmt_execution_predicate): Likewise.
17100         (will_be_nonconstant_predicate): Likewise.
17101         (compute_bb_predicates): Likewise.
17102         (estimate_function_body_sizes): Move asserts earlier.  Fill in
17103         struct func_body_info, replace parms_info with fbi.info.  Adjust
17104         calls to functions that now accept struct func_body_info.
17105         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
17106         (struct func_body_info): Likewise.
17107         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
17108         remove static.  Adjust callers.
17109         (ipa_load_from_parm_agg): Remove.
17110         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
17111         (func_body_info): Likewise.
17112         (ipa_load_from_parm_agg): Adjust prototype.
17114 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17116         * gensupport.c (rtx_handle_directive): Adjust.
17117         * read-rtl.c (apply_iterators): Take vector to add rtxs to
17118         instead of expr list rtx.
17119         (add_define_attr_for_define_subst): Likewise.
17120         (add_define_subst_attr): Likewise.
17121         (read_subst_mapping): Likewise.
17122         (read_rtx): Likewise.
17123         * rtl.h (read_rtx): Adjust.
17125 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17127         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
17129 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
17131         PR target/58066
17132         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
17133         (*tls_local_dynamic_base_64_<mode>): Ditto.
17134         (*tls_local_dynamic_base_64_largepic): Ditto.
17135         (tls_global_dynamic_64_<mode>): Update expander pattern.
17136         (tls_local_dynamic_base_64_<mode>): Ditto.
17138 2015-07-15  Richard Biener  <rguenther@suse.de>
17140         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
17141         and bool_var == 1 -> bool_var simplifications ...
17142         * match.pd: ... to patterns here.  Factor out negate_expr_p
17143         cases from the A - B -> A + (-B) patterns as negate_expr_p
17144         predicate and add a -(A + B) -> (-B) - A pattern.
17146 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
17148         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
17150 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
17151             Robert Suchanek  <robert.suchanek@imgtec.com>
17153         * config/mips/mips.c (mips_int_mask): New enum.
17154         (mips_shadow_set): Likewise.
17155         (int_mask): New variable.
17156         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
17157         (machine_function): Add int_mask and use_shadow_register_set.
17158         (mips_attribute_table): Add attribute handlers for interrupt and
17159         use_shadow_register_set.
17160         (mips_interrupt_mask): New static function.
17161         (mips_handle_interrupt_attr): Likewise.
17162         (mips_handle_use_shadow_register_set_attr): Likewise.
17163         (mips_use_shadow_register_set): Change return type to enum
17164         mips_shadow_set.  Add argument handling for use_shadow_register_set
17165         attribute.
17166         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
17167         compare with mips_shadow_set enum.
17168         (mips_compute_frame_info): Add interrupt mask and
17169         use_shadow_register_set to per-function information structure.
17170         Add a stack slot for EPC unconditionally.
17171         (mips_expand_prologue): Compare use_shadow_register_set value
17172         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
17173         masked interrupt register but in EIC mode use K0 and save Cause in K0.
17174         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
17175         copying the stack pointer from the shadow register set.
17176         * config/mips/mips.h (SR_IM0): New define.
17177         * config/mips/mips.md (mips_rdpgpr): Rename to...
17178         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
17179         * doc/extend.texi (Declaring Attributes of Functions): Document
17180         optional arguments for interrupt and use_shadow_register_set
17181         attributes.
17183 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
17185         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
17186         interrupt attribute.
17187         (mips_expand_prologue): Disable the floating point unit in an ISR.
17188         * config/mips/mips.h (SR_COP1): New define.
17190 2015-07-15  Richard Biener  <rguenther@suse.de>
17192         * genmatch.c (parser::peek, parser::peek_ident): Add argument
17193         to tell how many tokens to peek ahead (default 1).
17194         (parser::eat_token, parser::eat_ident): Return token consumed.
17195         (parser::parse_result): Parse new switch statement.
17196         * match.pd: Use case statements where appropriate.
17198 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
17200         PR rtl-optimization/58066
17201         * calls.c (expand_call): Precompute register parameters before stack
17202         alignment is performed.
17204 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
17206         PR rtl-optimization/66838
17207         * postreload.c (reload_cse_move2add): Also process
17208         CALL_INSN_FUNCTION_USAGE when resetting information of
17209         call-clobbered registers.
17211 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17212             Cesar Philippidis  <cesar@codesourcery.com>
17213             Chung-Lin Tang  <cltang@codesourcery.com>
17215         * config/nios2/constraints.md (U, v): New constraints.
17216         * config/nios2/predicates.md (rdprs_dcache_operand): New.
17217         (ldstex_memory_operand): New.
17218         * config/nios2/sync.md: New file.
17219         * config/nios2/nios2.md (unspecv): Add new builtin function
17220         UNSPECV codes.
17221         (rdprs, flushd, flushda, wrpie, eni): New patterns.
17222         (top-level): Include sync.md.
17223         * config/nios2/nios2.c (N2_FTYPES): Add function types for
17224         new builtins.
17225         (N2_BUILTINS): Add arch field setting, add new builtins.
17226         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
17227         for arch field.
17228         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
17229         Also handle ldex/stex/ldsex/stsex builtins.
17230         (nios2_expand_rdprs_builtin): New function.
17231         (nios2_expand_cache_builtin): New function.
17232         (nios2_expand_wrpie_builtin): New function.
17233         (nios2_expand_eni_builtin): New function.
17234         (nios2_expand_builtin): Add arch field handling and new builtin
17235         cases.
17236         * doc/extend.texi (Altera Nios II Built-in Functions): Document
17237         new builtins.
17238         * doc/md.texi (Machine Constraints): Document U and v constraints.
17240 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17241             Cesar Philippidis  <cesar@codesourcery.com>
17242             Chung-Lin Tang  <cltang@codesourcery.com>
17244         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
17245         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
17246         callee_save_reg_size and uses_anonymous_args fields.
17247         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
17248         (nios2_create_cfa_notes): New function.
17249         (nios2_adjust_stack): New function for adjusting stack.
17250         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
17251         Use nios2_adjust_stack.
17252         (nios2_expand_epilogue): Likewise.
17253         (nios2_expand_return): New function.
17254         (nios2_can_use_return_insn): Update for CDX pop.n usage.
17255         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
17256         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
17257         * config/nios2/nios2.md (return): Use nios2_expand_return.
17259 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17260             Cesar Philippidis  <cesar@codesourcery.com>
17261             Chung-Lin Tang  <cltang@codesourcery.com>
17263         * config/nios2/predicates.md (pop_operation): New.
17264         (ldwm_operation, stwm_operation): New.
17265         (nios2_hard_register_operand): New.
17266         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
17267         (ldstwm_operation_p): Declare.
17268         (gen_ldstwm_peep): Declare.
17269         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
17270         (base_reg_adjustment_p): New.
17271         (pop_operation_p): New.
17272         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
17273         (nios2_ldstwm_regset_p): New.
17274         (ldstwm_operation_p): New.
17275         (gen_ldst): New.
17276         (nios2_ldst_parallel): New.
17277         (struct ldswm_operand): Declare.
17278         (compare_ldstwm_operands): New.
17279         (can_use_cdx_ldstw): New.
17280         (gen_ldstwm_peep): New.
17281         * config/nios2/nios2-ldstwm.sml: New.
17282         * config/nios2/nios2.md: Include ldstwm.md.
17283         * config/nios2/ldstwm.md: Generated.
17285 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17286             Cesar Philippidis  <cesar@codesourcery.com>
17287             Chung-Lin Tang  <cltang@codesourcery.com>
17289         * config/nios2/nios2.h (LABEL_ALIGN): Define.
17290         (REG_ALLOC_ORDER): Define.
17291         (ADJUST_REG_ALLOC_ORDER): Define.
17292         (HONOR_REG_ALLOC_ORDER): Define.
17293         (CDX_REG_P): Define.
17294         (ANDCLEAR_INT): Define.
17295         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
17296         (nios2_label_align): Declare.
17297         (nios2_cdx_narrow_form_p): Declare.
17298         (nios2_adjust_reg_alloc_order): Declare.
17299         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
17300         operation.
17301         (nios2_large_unspec_reloc_p): New function, split from...
17302         (nios2_legitimate_pic_operand_p): ...here.
17303         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
17304         (nios2_print_operand_punct_valid_p): New.
17305         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
17306         (split_mem_address): New.
17307         (split_alu_insn): New.
17308         (cdxreg): New.
17309         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
17310         (enum nios2_add_insn_kind): New.
17311         (nios2_add_insn_names, nios2_add_insn_narrow): New.
17312         (nios2_add_insn_classify): New.
17313         (nios2_add_insn_asm): New.
17314         (nios2_cdx_narrow_form_p): New.
17315         (label_align, min_labelno, max_labelno): New.
17316         (nios2_reorg): New.
17317         (nios2_label_align): New.
17318         (nios2_adjust_reg_alloc_order): New.
17319         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17320         (TARGET_MACHINE_DEPENDENT_REORG): Define.
17321         * config/nios2/constraints.md (P): New constraint.
17322         * config/nios2/predicates.md (const_and_operand): New.
17323         (and_operand): New.
17324         (stack_memory_operand): New.
17325         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
17326         (length): Update to use nios2_cdx_narrow_form_p().
17327         (type): Add new insn type values.
17328         (control, alu, st, ld, shift): Update insn reservations with
17329         new insn type values.
17330         (*high, *lo_sum): Define new insn patterns for constant generation.
17331         (movqi_internal, movhi_internal, movsi_internal): Reduce
17332         alternatives, update asm template to handle CDX variants, update
17333         type attributes.
17334         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
17335         template, update type attributes.
17336         (extendhisi2, extendqi<mode>2): Likewise.
17337         (addsi3): Change to use function for asm string.
17338         (subsi3): Add CDX notation to asm template, update type attributes.
17339         (negsi3, one_cmplsi3): Likewise.
17340         (andsi3): New pattern, specialized from logical patterns.
17341         (<code>si3): Remove and case, combine alternatives, update asm
17342         template.
17343         (<shift_op>si3): Add CDX notation, update type attributes.
17344         (rotrsi3): Update type attribute.
17345         (*merge, extzv, insv): New insn patterns.
17346         (return): Change to define_expand.
17347         (simple_return): Add CDX notation, update type attributes.
17348         (indirect_jump): Add CDX notation.
17349         (jump): Update asm cases, update length attribute expression.
17350         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
17351         (nios2_cbranch): Update asm cases and length attribute expression
17352         to handle CDX variants.
17353         (nios2_cmp<code>): Update asm template.
17354         (nop): Add CDX notation, update type attributes.
17355         (trap): Add CDX notation.
17356         (ctrapsi4): Update asm cases and length attribute expression to
17357         handle CDX variant.
17358         * doc/md.texi (Machine Constraints): Document P constraint.
17360 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17361             Cesar Philippidis  <cesar@codesourcery.com>
17362             Chung-Lin Tang  <cltang@codesourcery.com>
17364         * config/nios2/nios2.h (SMALL_INT12): New macro.
17365         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
17366         (nios2_valid_addr_expr_p): Use it.
17367         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
17368         with implicit "io" instructions on R2.
17369         * config/nios2/constraints.md (w): New constraint.
17370         * config/nios2/predicates.md (ldstio_memory_operand): New.
17371         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
17372         operand predicate and constraint.
17373         (ld<bh>io_signed, st<bhw>io>): Likewise.
17374         * doc/md.texi (Machine Constraints): Document w constraint.
17376 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17377             Cesar Philippidis  <cesar@codesourcery.com>
17378             Chung-Lin Tang  <cltang@codesourcery.com>
17380         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
17381         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
17382         Nios II architecture level.
17383         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
17384         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
17385         (OPTION_DEFAULT_SPECS): Define.
17386         (ASM_SPEC): Add -march= spec strings.
17387         * config/nios2/nios2.c (nios2_option_override): Check for
17388         conflicts involving new options.
17389         * config.gcc (nios2*-*-*): Support --with-arch=.
17390         * doc/invoke.texi (Option Summary, Nios II Options): Document
17391         -march=, -mbmx, and -mcdx.
17393 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
17395         PR rtl-optimization/66626
17396         * lra-constraints.c (lra_constraints): Prevent equivalence
17397         substitution for static chain pseudo in functions with nonlocal
17398         goto.
17400 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17402         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
17403         (nios2_emit_stack_limit_check): Add size parameter.  Handle
17404         -fstack-limit-symbol as well as -fstack-limit-register.
17405         (nios2_expand_prologue): Emit only a single stack limit check,
17406         even if multiple stack adjustments are required.
17407         (nios2_option_override): Diagnose unsupported combination of -fpic
17408         and -stack-limit-symbol.
17410 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
17412         * Makefile.in (top_srcdir): New.
17413         * configure.ac: Use AM_ZLIB.
17414         * configure: Regeneated.
17416 2015-07-14  Matthias Klose  <doko@ubuntu.com>
17418         PR target/66840
17419         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
17421 2015-07-14  Richard Biener  <rguenther@suse.de>
17423         PR tree-optimization/66863
17424         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
17425         what we record for conversion use stmt lhs inequalities.
17427 2015-07-14  Richard Biener  <rguenther@suse.de>
17429         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
17430         (decision_tree::gen_gimple): Likewise.
17432 2015-07-14  Tom de Vries  <tom@codesourcery.com>
17434         * gcc.c (greater_than_spec_func): Declare forward.
17435         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
17436         -ftree-parallelize-loops={0,1}.
17437         (static_spec_functions): Add greater_than_spec_func function with name
17438         "gt".
17439         (greater_than_spec_func): New function.
17441 2015-07-14  Richard Biener  <rguenther@suse.de>
17443         * tree-ssa-dom.c (record_temporary_equivalences): Merge
17444         wideing type conversion case from record_equivalences_from_incoming_edge
17445         and use record_equality to record equivalences.
17446         (record_equivalences_from_incoming_edge): Call
17447         record_temporary_equivalences.
17449 2015-07-14  Richard Biener  <rguenther@suse.de>
17451         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
17452         (struct if_expr): New.
17453         (struct with_expr): Likewise.
17454         (is_a_helper): Add helpers for if_expr and with_expr.
17455         (struct simplify): Add simplify_kind enum and member.  Remove
17456         ifexpr_vec member.
17457         (simplify::simplify): Adjust.
17458         (lower_commutative): Adjust.
17459         (lower_opt_convert): Likewise.
17460         (lower_cond): Likewise.
17461         (replace_id): Handle with_expr and if_expr.
17462         (lower_for): Adjust.
17463         (dt_simplify::gen_1): New recursive worker, split out from ...
17464         (dt_simplify::gen): ... here.  Deal with if and with expansion
17465         recursively.
17466         (capture_info::capture_info): Take context argument
17467         (capture_info::walk_result): Only analyze specific result.
17468         (parser::parse_result): New function.
17469         (parser::parse_simplify): Adjust to parse ifs with then end
17470         else case.
17471         (parser::parse_if): Simplify.
17472         (parser::parse_pattern): Pass down simplify kind.
17473         * match.pd: Convert if structure to new syntax.
17475 2015-07-13  Marek Polacek  <polacek@redhat.com>
17477         * rtl.c (rtx_equal_p_cb): Fix typo.
17479 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
17481         * omega.h: Don't include config.h, don't include params.h again if
17482         omega.h has already been included.
17483         * graphite-poly.h: Include sese.h.
17484         * graphite.c: Don't include sese.h, remove needless includes and
17485         minimize includes outside #ifdef HAVE_isl block.
17486         * graphite-blocking.c: Don't include sese.h, remove needless includes,
17487         and wrap entire file in #ifdef HAVE_isl
17488         * graphite-dependences.c: Likewise.
17489         * graphite-interchange.c: Likewise.
17490         * graphite-isl-ast-to-gimple.c: Likewise.
17491         * graphite-optimize-isl.c: Likewise.
17492         * graphite-poly.c: Likewise.
17493         * graphite-scop-detection.c: Likewise.
17494         * graphite-sese-to-poly.c: Likewise.
17496 2015-07-13  Tom de Vries  <tom@codesourcery.com>
17498         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
17500 2015-07-13  Renlin Li  <renlin.li@arm.com>
17502         PR rtl/66556
17503         * simplify-rtx.c (simplify_const_relational_operation): Add
17504         side_effects_p checks.
17506 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
17508         * bitmap.h: Fix double word typos.
17509         * builtins.c: Same.
17510         * calls.c: Same.
17511         * cfgloopmanip.c: Same.
17512         * cgraph.c: Same.
17513         * cgraph.h: Same.
17514         * cgraphclones.c: Same.
17515         * combine.c: Same.
17516         * config/aarch64/aarch64-protos.h: Same.
17517         * config/aarch64/aarch64.c: Same.
17518         * config/aarch64/aarch64.md: Same.
17519         * config/arm/arm.md: Same.
17520         * config/arm/arm1020e.md: Same.
17521         * config/arm/arm1026ejs.md: Same.
17522         * config/arm/arm926ejs.md: Same.
17523         * config/arm/fa526.md: Same.
17524         * config/arm/fa606te.md: Same.
17525         * config/arm/fa626te.md: Same.
17526         * config/arm/fa726te.md: Same.
17527         * config/arm/fmp626.md: Same.
17528         * config/darwin.c: Same.
17529         * config/epiphany/epiphany.c: Same.
17530         * config/frv/frv.c: Same.
17531         * config/ft32/ft32.c: Same.
17532         * config/gnu-user.h: Same.
17533         * config/h8300/constraints.md: Same.
17534         * config/i386/i386.c: Same.
17535         * config/i386/i386.md: Same.
17536         * config/iq2000/iq2000.md: Same.
17537         * config/mips/mips.c: Same.
17538         * config/mmix/mmix.md: Same.
17539         * config/moxie/moxie.c: Same.
17540         * config/nds32/nds32.md: Same.
17541         * config/pa/pa.h: Same.
17542         * config/rs6000/aix.h: Same.
17543         * config/rs6000/rs6000.h: Same.
17544         * config/sh/sh.c: Same.
17545         * config/tilegx/tilegx.md: Same.
17546         * config/tilepro/gen-mul-tables.cc: Same.
17547         * cse.c: Same.
17548         * dbxout.c: Same.
17549         * doc/invoke.texi: Same.
17550         * dse.c: Same.
17551         * dwarf2out.c: Same.
17552         * final.c: Same.
17553         * gcc.c: Same.
17554         * genmatch.c: Same.
17555         * gimplify.c: Same.
17556         * hash-table.h: Same.
17557         * internal-fn.c: Same.
17558         * ipa-cp.c: Same.
17559         * ipa-devirt.c: Same.
17560         * ipa-icf.c: Same.
17561         * ipa-icf.h: Same.
17562         * ipa-profile.c: Same.
17563         * ipa-prop.c: Same.
17564         * ipa-prop.h: Same.
17565         * ira.c: Same.
17566         * omp-low.c: Same.
17567         * reg-stack.c: Same.
17568         * regcprop.c: Same.
17569         * reorg.c: Same.
17570         * rtl.h: Same.
17571         * sbitmap.h: Same.
17572         * tree-eh.c: Same.
17573         * tree-inline.c: Same.
17574         * tree-sra.c: Same.
17575         * tree-ssa-dom.c: Same.
17576         * tree-ssa-loop-ivopts.c: Same.
17577         * tree-ssa-structalias.c: Same.
17578         * tree-ssa-tail-merge.c: Same.
17579         * tree-ssa-ter.c: Same.
17580         * tree-ssa-threadupdate.c: Same.
17581         * tree-ssa-uninit.c: Same.
17582         * tree-ssanames.c: Same.
17583         * tree-vect-loop-manip.c: Same.
17584         * tree-vrp.c: Same.
17585         * tree.c: Same.
17586         * valtrack.c: Same.
17587         * vec.h: Same.
17589 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17591         PR middle-end/66726
17592         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
17593         tree_ssa_phiopt_worker): Call it.
17595 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17597         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
17598         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
17599         REG_EQUAL note.
17601 2015-07-11  Marek Polacek  <polacek@redhat.com>
17603         PR middle-end/66353
17604         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
17605         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
17606         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
17607         rather than bb_has_abnormal_call_pred.
17608         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
17609         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
17610         rather than bb_has_abnormal_call_pred.
17612 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
17614         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17615         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
17616         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17617         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
17618         v850_legitimate_address_p): New functions.
17619         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17621 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
17623         PR target/66819
17624         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
17625         indirect sibcall with register arguments if register available
17626         for argument passing.
17627         (init_cumulative_args): Set cfun->machine->arg_reg_available
17628         to (cum->nregs > 0) or to true if function has a variable
17629         argument list.
17630         (function_arg_advance_32): Set cfun->machine->arg_reg_available
17631         to false if cum->nregs <= 0.
17632         * config/i386/i386.h (machine_function): Add arg_reg_available.
17634 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
17636         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
17637         and gen_higpart instead of gen_rtx_SUBREG.
17638         * config/i386/i386.md
17639         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
17640         (read-modify peephole2): Use gen_lowpart instead of
17641         gen_rtx_SUBREG for operand 5.
17643 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
17645         * config/tilepro/gen-mul-tables.cc (main): Change include list for
17646         generated files.
17647         * config/tilepro/mul-tables.c: Regenerate.
17648         * config/tilegx/mul-tables.c: Regenerate.
17650 2015-07-10  Richard Biener  <rguenther@suse.de>
17652         * fold-const.c (distribute_bit_expr): Remove.
17653         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
17654         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
17655         to A & (B | C) and simplifying A << C1 << C2 to ...
17656         * match.pd: ... patterns here.
17658 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
17660         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17661         Mark mem as READONLY and NOTRAP for PIC symbol.
17663 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
17665         * gimple-predict.h: New file.
17666         (gimple_predict_predictor, gimple_predict_set_predictor,
17667         gimple_predict_outcome, gimple_predict_set_outcome,
17668         gimple_build_predict): Relocate here.
17669         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
17670         gimple_predict_outcome, gimple_predict_set_outcome): Move to
17671         gimple-predict.h.
17672         * gimple.c (gimple_build_predict): Move to gimple-predict.h
17673         * basic-block.h: Don't include cfghooks.h.
17674         * backend.h: Don't include predict.h.
17675         * cfghooks.h: Include predict.h.
17676         * gimple-pretty-print.c: Include gimple-predict.h.
17677         * gimplify.c: Likwise.
17678         * predict.c: Adjust includes.
17679         * tree-inline.c: Likewise.
17680         * asan.c: Likewise.
17681         * auto-inc-dec.c: Likewise.
17682         * auto-profile.c: Likewise.
17683         * bb-reorder.c: Likewise.
17684         * builtins.c: Likewise.
17685         * caller-save.c: Likewise.
17686         * calls.c: Likewise.
17687         * cfganal.c: Likewise.
17688         * cfgbuild.c: Likewise.
17689         * cfg.c: Likewise.
17690         * cfgcleanup.c: Likewise.
17691         * cfgexpand.c: Likewise.
17692         * cfghooks.c: Likewise.
17693         * cfgloopanal.c: Likewise.
17694         * cfgloop.c: Likewise.
17695         * cfgloopmanip.c: Likewise.
17696         * cfgrtl.c: Likewise.
17697         * cgraph.c: Likewise.
17698         * cgraphunit.c: Likewise.
17699         * combine.c: Likewise.
17700         * cprop.c: Likewise.
17701         * cse.c: Likewise.
17702         * dce.c: Likewise.
17703         * dojump.c: Likewise.
17704         * dse.c: Likewise.
17705         * except.c: Likewise.
17706         * expmed.c: Likewise.
17707         * expr.c: Likewise.
17708         * final.c: Likewise.
17709         * fold-const.c: Likewise.
17710         * function.c: Likewise.
17711         * fwprop.c: Likewise.
17712         * gcc-plugin.h: Likewise.
17713         * gcse.c: Likewise.
17714         * genattrtab.c: Likewise.
17715         * genemit.c: Likewise.
17716         * gengtype.c: Likewise.
17717         * genopinit.c: Likewise.
17718         * genoutput.c: Likewise.
17719         * genpreds.c: Likewise.
17720         * genrecog.c: Likewise.
17721         * gimple-fold.c: Likewise.
17722         * gimple-iterator.c: Likewise.
17723         * gimple-ssa-isolate-paths.c: Likewise.
17724         * gimple-ssa-strength-reduction.c: Likewise.
17725         * graph.c: Likewise.
17726         * graphite-blocking.c: Likewise.
17727         * graphite.c: Likewise.
17728         * graphite-dependences.c: Likewise.
17729         * graphite-interchange.c: Likewise.
17730         * graphite-isl-ast-to-gimple.c: Likewise.
17731         * graphite-optimize-isl.c: Likewise.
17732         * graphite-poly.c: Likewise.
17733         * graphite-scop-detection.c: Likewise.
17734         * graphite-sese-to-poly.c: Likewise.
17735         * haifa-sched.c: Likewise.
17736         * ifcvt.c: Likewise.
17737         * internal-fn.c: Likewise.
17738         * ipa-cp.c: Likewise.
17739         * ipa-profile.c: Likewise.
17740         * ipa-split.c: Likewise.
17741         * ipa-utils.c: Likewise.
17742         * ira-build.c: Likewise.
17743         * ira-color.c: Likewise.
17744         * ira-conflicts.c: Likewise.
17745         * ira-costs.c: Likewise.
17746         * ira-emit.c: Likewise.
17747         * ira-lives.c: Likewise.
17748         * jump.c: Likewise.
17749         * loop-doloop.c: Likewise.
17750         * loop-init.c: Likewise.
17751         * loop-invariant.c: Likewise.
17752         * loop-unroll.c: Likewise.
17753         * lower-subreg.c: Likewise.
17754         * lra-assigns.c: Likewise.
17755         * lra.c: Likewise.
17756         * lra-coalesce.c: Likewise.
17757         * lra-constraints.c: Likewise.
17758         * lra-lives.c: Likewise.
17759         * lto-cgraph.c: Likewise.
17760         * lto-streamer-in.c: Likewise.
17761         * mode-switching.c: Likewise.
17762         * modulo-sched.c: Likewise.
17763         * omp-low.c: Likewise.
17764         * optabs.c: Likewise.
17765         * passes.c: Likewise.
17766         * postreload.c: Likewise.
17767         * postreload-gcse.c: Likewise.
17768         * profile.c: Likewise.
17769         * recog.c: Likewise.
17770         * regstat.c: Likewise.
17771         * reload1.c: Likewise.
17772         * reorg.c: Likewise.
17773         * rtlanal.c: Likewise.
17774         * sched-ebb.c: Likewise.
17775         * sel-sched-ir.c: Likewise.
17776         * sese.c: Likewise.
17777         * shrink-wrap.c: Likewise.
17778         * simplify-rtx.c: Likewise.
17779         * stmt.c: Likewise.
17780         * store-motion.c: Likewise.
17781         * tracer.c: Likewise.
17782         * trans-mem.c: Likewise.
17783         * tree-call-cdce.c: Likewise.
17784         * tree-cfg.c: Likewise.
17785         * tree-cfgcleanup.c: Likewise.
17786         * tree-chkp.c: Likewise.
17787         * tree-complex.c: Likewise.
17788         * tree-eh.c: Likewise.
17789         * tree-if-conv.c: Likewise.
17790         * tree-loop-distribution.c: Likewise.
17791         * tree-outof-ssa.c: Likewise.
17792         * tree-parloops.c: Likewise.
17793         * tree-predcom.c: Likewise.
17794         * tree-pretty-print.c: Likewise.
17795         * tree-profile.c: Likewise.
17796         * tree-sra.c: Likewise.
17797         * tree-ssa.c: Likewise.
17798         * tree-ssa-coalesce.c: Likewise.
17799         * tree-ssa-dce.c: Likewise.
17800         * tree-ssa-dom.c: Likewise.
17801         * tree-ssa-forwprop.c: Likewise.
17802         * tree-ssa-ifcombine.c: Likewise.
17803         * tree-ssa-loop-ch.c: Likewise.
17804         * tree-ssa-loop-im.c: Likewise.
17805         * tree-ssa-loop-ivcanon.c: Likewise.
17806         * tree-ssa-loop-ivopts.c: Likewise.
17807         * tree-ssa-loop-manip.c: Likewise.
17808         * tree-ssa-loop-prefetch.c: Likewise.
17809         * tree-ssa-loop-unswitch.c: Likewise.
17810         * tree-ssa-math-opts.c: Likewise.
17811         * tree-ssa-phiopt.c: Likewise.
17812         * tree-ssa-pre.c: Likewise.
17813         * tree-ssa-reassoc.c: Likewise.
17814         * tree-ssa-sink.c: Likewise.
17815         * tree-ssa-tail-merge.c: Likewise.
17816         * tree-ssa-threadedge.c: Likewise.
17817         * tree-ssa-threadupdate.c: Likewise.
17818         * tree-switch-conversion.c: Likewise.
17819         * tree-tailcall.c: Likewise.
17820         * tree-vect-data-refs.c: Likewise.
17821         * tree-vect-loop.c: Likewise.
17822         * tree-vect-loop-manip.c: Likewise.
17823         * tree-vectorizer.c: Likewise.
17824         * tree-vrp.c: Likewise.
17825         * ubsan.c: Likewise.
17826         * value-prof.c: Likewise.
17827         * varasm.c: Likewise.
17828         * var-tracking.c: Likewise.
17829         * config/aarch64/aarch64-builtins.c: Likewise.
17830         * config/aarch64/aarch64.c: Likewise.
17831         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17832         * config/alpha/alpha.c: Likewise.
17833         * config/arc/arc.c: Likewise.
17834         * config/arm/arm.c: Likewise.
17835         * config/avr/avr.c: Likewise.
17836         * config/bfin/bfin.c: Likewise.
17837         * config/c6x/c6x.c: Likewise.
17838         * config/cr16/cr16.c: Likewise.
17839         * config/cris/cris.c: Likewise.
17840         * config/darwin.c: Likewise.
17841         * config/darwin-c.c: Likewise.
17842         * config/epiphany/epiphany.c: Likewise.
17843         * config/epiphany/mode-switch-use.c: Likewise.
17844         * config/epiphany/resolve-sw-modes.c: Likewise.
17845         * config/fr30/fr30.c: Likewise.
17846         * config/frv/frv.c: Likewise.
17847         * config/ft32/ft32.c: Likewise.
17848         * config/h8300/h8300.c: Likewise.
17849         * config/i386/i386.c: Likewise.
17850         * config/i386/winnt.c: Likewise.
17851         * config/ia64/ia64.c: Likewise.
17852         * config/iq2000/iq2000.c: Likewise.
17853         * config/lm32/lm32.c: Likewise.
17854         * config/m32c/m32c.c: Likewise.
17855         * config/m32r/m32r.c: Likewise.
17856         * config/m68k/m68k.c: Likewise.
17857         * config/mcore/mcore.c: Likewise.
17858         * config/mep/mep.c: Likewise.
17859         * config/microblaze/microblaze.c: Likewise.
17860         * config/mips/mips.c: Likewise.
17861         * config/mmix/mmix.c: Likewise.
17862         * config/mn10300/mn10300.c: Likewise.
17863         * config/moxie/moxie.c: Likewise.
17864         * config/msp430/msp430.c: Likewise.
17865         * config/nds32/nds32.c: Likewise.
17866         * config/nds32/nds32-cost.c: Likewise.
17867         * config/nds32/nds32-fp-as-gp.c: Likewise.
17868         * config/nds32/nds32-intrinsic.c: Likewise.
17869         * config/nds32/nds32-isr.c: Likewise.
17870         * config/nds32/nds32-md-auxiliary.c: Likewise.
17871         * config/nds32/nds32-memory-manipulation.c: Likewise.
17872         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17873         * config/nds32/nds32-predicates.c: Likewise.
17874         * config/nios2/nios2.c: Likewise.
17875         * config/nvptx/nvptx.c: Likewise.
17876         * config/pa/pa.c: Likewise.
17877         * config/pdp11/pdp11.c: Likewise.
17878         * config/rl78/rl78.c: Likewise.
17879         * config/rs6000/rs6000.c: Likewise.
17880         * config/rx/rx.c: Likewise.
17881         * config/s390/s390.c: Likewise.
17882         * config/sh/sh.c: Likewise.
17883         * config/sh/sh-mem.cc: Likewise.
17884         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17885         * config/sh/sh_treg_combine.cc: Likewise.
17886         * config/sparc/sparc.c: Likewise.
17887         * config/spu/spu.c: Likewise.
17888         * config/stormy16/stormy16.c: Likewise.
17889         * config/tilegx/tilegx.c: Likewise.
17890         * config/tilepro/tilepro.c: Likewise.
17891         * config/v850/v850.c: Likewise.
17892         * config/vax/vax.c: Likewise.
17893         * config/visium/visium.c: Likewise.
17894         * config/xtensa/xtensa.c: Likewise.
17896 2015-07-10  Richard Biener  <rguenther@suse.de>
17898         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
17899         (decision_tree::gen_gimple): Likewise.
17900         (decision_tree::gen_generic): Likewise.
17902 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
17904         PR target/66813
17905         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
17906         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
17908 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
17910         PR middle-end/66820
17911         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
17912         or ORT_TASK contexts.
17913         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
17914         is non-zero.
17916 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17918         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
17919         above function.
17921 2015-07-10  Tom de Vries  <tom@codesourcery.com>
17923         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
17924         insert nit + 1 bound.
17926 2015-07-10  Richard Biener  <rguenther@suse.de>
17928         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
17929         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
17930         (if_convertible_loop_p_1): For this always compute bb predicates.
17931         (if_convertible_loop_p): And free them.
17933 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17935         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
17936         in dump message.
17938 2015-07-10  Richard Biener  <rguenther@suse.de>
17940         PR tree-optimization/66823
17941         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
17942         inverted predicate.
17944 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
17946         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
17947         to handle mips[32|64]r3 and mips[32|64]r5.
17949 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
17951         PR middle-end/66633
17952         * tree-nested.c (get_static_chain): Or in a flag into
17953         info->static_chain_added.
17954         (get_frame_field, get_nonlocal_debug_decl): Likewise.
17955         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
17956         2015-07-01 changes.
17957         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
17958         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
17959         add it to clauses.
17961         PR tree-optimization/66718
17962         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
17963         field.
17964         (vect_simd_lane_linear): New function.
17965         (vectorizable_simd_clone_call): Support using linear arguments for
17966         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
17968 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17970         PR target/66821
17971         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
17973 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
17975         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
17976         Use machine mode, not enum machine_mode in the prototype.
17978         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
17979         classify 128-bit floating point support.
17980         (FLOAT128_IBM_P): Likewise.
17981         (FLOAT128_VECTOR_P): Likewise.
17982         (FLOAT128_2REG_P): Likewise.
17983         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
17984         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
17985         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17986         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
17988         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
17989         tests against TFmode/TDmode, since those modes do not use VSX
17990         addresses.
17991         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
17992         support.
17993         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
17994         tests against TFmode, etc.
17995         (invalid_e500_subreg): Add tests against IFmode/KFmode.
17996         (reg_offset_addressing_ok_p): Likewise.
17997         (rs6000_legitimate_offset_address_p): Likewise.
17998         (rs6000_legitimize_address): Likewise.
17999         (rs6000_legitimize_reload_address): Likewise.
18000         (rs6000_legitimate_address_p): Clean up tests against TFmode and
18001         TDmode to use the new helper macros, which will include IFmode and
18002         KFmode.
18003         (rs6000_emit_move): Likewise.
18004         (rs6000_darwin64_record_arg_recurse): Likewise.
18005         (print_operand): Likewise.
18006         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
18007         that uses a single vector register as a vector and not as a
18008         floating point register in terms of the calling sequence.
18009         (rs6000_discover_homogeneous_aggregate): Likewise.
18010         (rs6000_return_in_memory): Likewise.
18011         (init_cumulative_args): Likewise.
18012         (rs6000_function_arg_boundary): Likewise.
18013         (rs6000_function_arg_advance_1): Likewise.
18014         (rs6000_function_arg): Likewise.
18015         (rs6000_pass_by_reference): Likewise.
18016         (rs6000_gimplify_va_arg): Likewise.
18017         (rs6000_secondary_reload_memory): Use machine_mode not enum
18018         machine mode.
18019         (rs6000_split_multireg_move): Use new helper macros.
18020         (spe_func_has_64bit_regs_p): Likewise.
18021         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
18022         (output_toc): Use new helper macros.
18023         (rs6000_register_move_cost): Likewise.
18024         (rs6000_function_value): Add IEEE 128-bit floating point calling
18025         sequence support.
18026         (rs6000_libcall_value): Likewise.
18027         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
18028         floating point support.
18029         (rs6000_vector_mode_supported_p): Likewise.
18031 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
18033         PR rtl-optimization/66782
18034         * lra-int.h (struct lra_insn_recog_data): Add comment about
18035         clobbered hard regs for arg_hard_regs.
18036         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
18037         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
18038         Add condition for processing used hard regs.
18039         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
18040         Process clobbered hard regs.
18042 2015-07-09  Michael Matz  <matz@suse.de>
18044         * genmatch.c (fprintf_indent): New function.
18045         (operand::gen_transform): Add indent parameter.
18046         (expr::gen_transform, c_expr::gen_transform,
18047         capture::gen_transform): Ditto and use fprintf_indent.
18048         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
18049         (dt_operand::gen, dt_operand::gen_predicate,
18050         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
18051         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
18052         (decision_tree::gen_gimple): Adjust calls and indent generated
18053         code.
18054         (decision_tree::gen_generic): Ditto.
18055         (write_predicate): Ditto.
18057 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
18059         PR target/66814
18060         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
18061         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
18062         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
18063         {GENERAL,SSE,MMX}_REG_P where appropriate.
18065 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
18067         * lto-streamer.h: Don't include target.h and alloc-pool.h.
18068         * builtins.c: Adjust includes.
18069         * gimple.c: Likewise.
18070         * ipa-icf.c: Likewise.
18071         * lto-opts.c: Likewise.
18072         * ipa-reference.c: Likewise.
18073         * lto-section-out.c: Likewise.
18074         * lto-streamer-in.c: Likewise.
18075         * lto-streamer-out.c: Likewise.
18076         * opts-global.c: Likewise.
18077         * symtab.c: Likewise.
18078         * tree-chkp.c: Likewise.
18079         * tree-ssa-live.c: Likewise.
18080         * tree-streamer-in.c: Likewise.
18081         * tree-streamer-out.c: Likewise.
18082         * config/darwin.c: Likewise.
18083         * config/i386/winnt.c: Likewise.
18085 2015-07-09  Richard Biener  <rguenther@suse.de>
18087         * genmatch.c (struct expr): Add force_single_use flag.
18088         (expr::expr): Add copy constructor.
18089         (capture_info::walk_match): Gather force_single_use captures.
18090         (expr::gen_transform): Use possibly NULLified sequence.
18091         (dt_simplify::gen): Apply single-use restrictions by NULLifying
18092         seq if any constrained expr is not single-use.
18093         (parser::parse_expr): Refactor to allow multiple flags.  Handle
18094         's' flag to force an expression have a single-use if the pattern
18095         simplifies to more than one statement.
18096         * match.pd: Convert most single_use conditionals to :s flags.
18098 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18100         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
18101         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18102         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
18104 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
18106         * flags.h: Don't include flag-types.h or options.h.
18107         * opts-common.c: Adjust includes.
18108         * opts-global.c: Likewise.
18109         * common/config/epiphany/epiphany-common.c: Likewise.
18111 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18113         PR target/66818
18114         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
18115         for IA MCU.
18117 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18119         PR target/66817
18120         * config/i386/i386.c (ix86_return_in_memory): Return true
18121         if int_size_in_bytes returns negative for IA MCU.
18123 2015-07-09  Marek Polacek  <polacek@redhat.com>
18125         PR tree-optimization/66718
18126         * Makefile.in (OBJS): Add gimple-laddress.o.
18127         * passes.def: Schedule pass_laddress.
18128         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
18129         * tree-pass.h (make_pass_laddress): Declare.
18130         * gimple-laddress.c: New file.
18132 2015-07-09  Richard Biener  <rguenther@suse.de>
18134         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
18136 2015-07-09  Richard Biener  <rguenther@suse.de>
18138         PR tree-optimization/66807
18139         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
18141 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
18143         * function.c (stack_protect_epilogue): Use if rather than switch for
18144         check targetm.have_stack_protect_test.
18146 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18148         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
18149         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
18150         * config/arc/arc.h: Likewise.
18151         * config/arm/arm.h: Likewise.
18152         * config/bfin/bfin.h: Likewise.
18153         * config/epiphany/epiphany.h: Likewise.
18154         * config/frv/frv.h: Likewise.
18155         * config/ia64/ia64.h: Likewise.
18156         * config/iq2000/iq2000.h: Likewise.
18157         * config/lm32/lm32.h: Likewise.
18158         * config/m32r/m32r.h: Likewise.
18159         * config/mcore/mcore.h: Likewise.
18160         * config/mep/mep.h: Likewise.
18161         * config/microblaze/microblaze.h: Likewise.
18162         * config/mips/mips.h: Likewise.
18163         * config/mmix/mmix.h: Likewise.
18164         * config/mn10300/mn10300.h: Likewise.
18165         * config/nds32/nds32.h: Likewise.
18166         * config/nios2/nios2.h: Likewise.
18167         * config/pa/pa.h: Likewise.
18168         * config/rl78/rl78.h: Likewise.
18169         * config/sh/sh.h: Likewise.
18170         * config/sparc/sparc.h: Likewise.
18171         * config/stormy16/stormy16.h: Likewise.
18172         * config/tilegx/tilegx.h: Likewise.
18173         * config/tilepro/tilepro.h: Likewise.
18174         * config/v850/v850.h: Likewise.
18175         * config/xtensa/xtensa.h: Likewise.
18176         * doc/tm.texi: Regenerate.
18177         * doc/tm.texi.in: Adjust.
18178         * combine.c (simplify_set): Likewise.
18179         (simplify_comparison): Likewise.
18180         * expr.c (store_constructor): Likewise.
18181         * internal-fn.c (expand_arith_overflow): Likewise.
18182         * reload.c (push_reload): Likewise.
18183         (find_reloads): Likewise.
18184         (find_reloads_subreg_address): Likewise.
18185         * reload1.c (eliminate_regs_1): Likewise.
18186         * rtlanal.c (nonzero_bits1): Likewise.
18187         (num_sign_bit_copies1): Likewise.
18188         * simplify-rtx.c (simplify_truncation): Likewise.
18190 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18192         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
18193         of AUTO_INC_DEC with the preprocessor.
18194         * combine.c (combine_instructions): Likewise.
18195         (can_combine_p): Likewise.
18196         (try_combine): Likewise.
18197         * emit-rtl.c (try_split): Likewise.
18198         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18199         * lower-subreg.c (resolve_simple_move): Likewise.
18200         * lra.c (update_inc_notes): Likewise.
18201         * recog.c (asm_operand_ok): Likewise.
18202         (constrain_operands): Likewise.
18203         * regrename.c (scan_rtx_address): Likewise.
18204         * reload.c (update_auto_inc_notes): Likewise.
18205         (reg_inc_found_and_valid_p): Likewise.
18206         * reload1.c (reload): Likewise.
18207         (emit_input_reload_insns): Likewise.
18208         (delete_output_reload): Likewise.
18209         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18210         * valtrack.c (cleanup_auto_inc_dec): Likewise.
18212 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18214         * rtl.h: Always define AUTO_INC_DEC.
18215         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
18216         * combine.c (combine_instructions): Likewise.
18217         (can_combine_p): Likewise.
18218         (try_combine): Likewise.
18219         * emit-rtl.c (try_split): Likewise.
18220         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18221         * lower-subreg.c (resolve_simple_move): Likewise.
18222         * lra.c (update_inc_notes): Likewise.
18223         * recog.c (asm_operand_ok): Likewise.
18224         (constrain_operands): Likewise.
18225         * regrename.c (scan_rtx_address): Likewise.
18226         * reload.c (update_auto_inc_notes): Likewise.
18227         (find_equiv_reg): Likewise.
18228         * reload1.c (reload): Likewise.
18229         (reload_as_needed): Likewise.
18230         (choose_reload_regs): Likewise.
18231         (emit_input_reload_insns): Likewise.
18232         (delete_output_reload): Likewise.
18233         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18234         * valtrack.c (cleanup_auto_inc_dec): Likewise.
18236 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18238         * combine.c (can_combine_def_p): Don't check the value of
18239         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
18240         (combinable_i3pat): Likewise.
18241         (mark_used_regs_combine): Likewise.
18242         * regrename.c (rename_chains): Likewise.
18243         * reload.c (find_reloads_address): Likewise.
18244         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18246 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18248         * combine.c (update_rsp_from_reg_equal): Don't check if
18249         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
18250         (reg_nonzero_bits_for_combine): Likewise.
18251         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
18252         1.
18253         * config/frv/frv.h: Likewise.
18254         * config/lm32/lm32.h: Likewise.
18255         * config/mep/mep.h: Likewise.
18256         * config/mips/mips.h: Likewise.
18257         * config/rs6000/rs6000.h: Likewise.
18258         * config/sh/sh.h: Likewise.
18259         * config/tilegx/tilegx.h (enum reg_class): Likewise.
18260         * config/tilepro/tilepro.h: Likewise.
18261         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
18262         * doc/tm.texi: Regenerate.
18263         * doc/tm.texi.in: Adjust.
18264         * rtlanal.c (nonzero_bits1): Likewise.
18266 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18268         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
18269         with the preprocessor.
18270         (combine_instructions): Likewise.
18271         (try_combine): Likewise.
18272         (subst): Likewise.
18273         (distribute_notes): Likewise.
18275 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18277         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
18278         defined.
18279         (simplify_set): Likewise.
18280         * cse.c (cse_insn): Likewise.
18281         * fold-const.c (fold_single_bit_test): Likewise.
18282         (fold_unary_loc): Likewise.
18283         * postreload.c (reload_cse_simplify_set): Likewise.
18284         (reload_cse_simplify_operands): Likewise.
18286 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
18288         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
18289         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
18291 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
18293         PR target/66746
18294         * config/i386/x86intrin.h: Include <adxintrin.h> even if
18295         __iamcu__ is defined.
18297 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
18299         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
18301 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
18303         PR target/66523
18304         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
18305         names from preservation.
18307 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
18309         PR target/66806
18310         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
18311         change for IAMCU.
18312         (function_arg_advance_32): Don't pass vectors in registers for
18313         IAMCU.
18314         (function_arg_32): Likewise.
18315         (ix86_return_in_memory): Don't return vectors in registers for
18316         IAMCU.
18318 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
18320         PR middle-end/66334
18321         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
18322         hard regno live at the start of BB with incoming abnormal edges.
18323         * lra-lives.c (process_bb_lives): Ditto.
18325 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
18327         PR libgomp/65099
18328         * config/nvptx/mkoffload.c (main): Create an offload image only in
18329         64-bit configurations.
18331 2015-07-08  Martin Liska  <mliska@suse.cz>
18333         PR bootstrap/66744
18334         * tree-sra.c (create_access_1): Call ctor without brackets.
18335         (create_artificial_child_access): Likewise.
18337 2015-07-08  Richard Biener  <rguenther@suse.de>
18339         PR tree-optimization/66793
18340         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
18341         Properly split the block after stmts ending it.
18343 2015-07-08  Richard Biener  <rguenther@suse.de>
18345         PR tree-optimization/66794
18346         * passes.c (execute_function_todo): Assert that post-dominators
18347         are not computed.
18348         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
18349         Free post-dominators.
18351 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18353         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
18354         with early exit.
18356 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
18358         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
18359         more than or equal 8 and less than 32 when optimizing for size.
18361 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18363         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
18364         COSTS_N_INSNS (1) and increment it appropriately throughout the
18365         function.
18367 2015-07-08  Richard Biener  <rguenther@suse.de>
18369         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
18371 2015-07-08  Alan Modra  <amodra@gmail.com>
18373         * target.def (rtx_costs): Remove "code" param, add "mode".
18374         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
18375         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
18376         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
18377         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
18378         call.  Track mode when given in rtx.
18379         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
18380         (default_address_cost): Pass Pmode to rtx_cost.
18381         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
18382         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
18383         with NULL set.
18384         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
18385         (notreg_cost): Add mode param.  Use it.
18386         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
18387         mode param and pass to set_src_cost.  Update all calls.
18388         (hash_scan_set): Formatting.
18389         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
18390         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
18391         * hooks.h: Ditto.
18392         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
18393         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
18394         emit_store_flag): Update set_src_cost and rtx_cost calls.
18395         * auto-inc-dec.c (attempt_change): Likewise.
18396         * calls.c (precompute_register_parameters): Likewise.
18397         * combine.c (expand_compound_operation, make_extraction,
18398         force_to_mode, distribute_and_simplify_rtx): Likewise.
18399         * dojump.c (prefer_and_bit_test): Likewise.
18400         * dse.c (find_shift_sequence): Likewise.
18401         * expr.c (compress_float_constant): Likewise.
18402         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
18403         * ifcvt.c (noce_try_sign_mask): Likewise.
18404         * loop-doloop.c (doloop_optimize): Likewise.
18405         * loop-invariant.c (create_new_invariant): Likewise.
18406         * lower-subreg.c (shift_cost, compute_costs): Likewise.
18407         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
18408         lshift_cheap_p): Likewise.
18409         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
18410         try_replace_in_use, reload_cse_move2add): Likewise.
18411         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
18412         Likewise.
18413         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18414         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18415         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
18416         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18417         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
18418         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
18419         to rtx_cost calls.
18420         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
18421         * config/arc/arc.c (arc_rtx_costs): Likewise.
18422         * config/arm/arm.c (arm_rtx_costs): Likewise.
18423         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
18424         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
18425         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
18426         * config/cris/cris.c (cris_rtx_costs): Likewise.
18427         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
18428         * config/frv/frv.c (frv_rtx_costs): Likewise.
18429         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
18430         * config/i386/i386.c (ix86_rtx_costs): Likewise.
18431         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
18432         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
18433         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
18434         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
18435         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
18436         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
18437         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
18438         * config/mep/mep.c (mep_rtx_cost): Likewise.
18439         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
18440         * config/mips/mips.c (mips_rtx_costs): Likewise.
18441         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
18442         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
18443         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
18444         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
18445         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
18446         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
18447         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
18448         * config/pa/pa.c (hppa_rtx_costs): Likewise.
18449         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
18450         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
18451         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
18452         * config/s390/s390.c (s390_rtx_costs): Likewise.
18453         * config/sh/sh.c (sh_rtx_costs): Likewise.
18454         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
18455         * config/spu/spu.c (spu_rtx_costs): Likewise.
18456         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
18457         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
18458         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
18459         * config/v850/v850.c (v850_rtx_costs): Likewise.
18460         * config/vax/vax.c (vax_rtx_costs): Likewise.
18461         * config/visium/visium.c (visium_rtx_costs): Likewise.
18462         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
18463         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
18464         "code" param, and pass as outer_code to first rtx_cost call.  Pass
18465         mode to rtx_cost calls.
18466         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
18467         calls.
18468         (aarch64_rtx_costs_wrapper): Update.
18469         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
18470         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
18471         rtx_cost calls.
18472         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
18473         and rtx_cost calls.
18474         (avr_operand_rtx_cost): Similarly.
18475         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
18476         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
18477         * config/mips/mips.c (mips_stack_address_p): Comment typo.
18478         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
18479         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
18480         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
18481         rtx_cost.
18482         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
18483         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
18484         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
18485         * doc/tm.texi: Regenerate.
18487 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
18489         * tree-core.h: Include symtab.h.
18490         * rtl.h: Include hard-reg-set.h but not flags.h.
18491         (HARD_CONST): Remove condition compilation involving HARD_CONST since
18492         hard-reg-set.h is always included.
18493         * regs.h: Don't include hard-reg-set.h or rtl.h.
18494         * cfg.h: Include dominance.h.
18495         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
18496         * backend.h: New.  Aggregate commonly used backend header files.
18497         * gimple-ssa.h: Don't include tree-hasher.h.
18498         * ssa.h: New.  Aggregate commonly used SSA header files.
18499         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
18500         * sel-sched-ir.h: Flatten includes.
18501         * lra-int.h: Flatten completely.
18502         * sel-sched-dump.h: Flatten includes.
18503         * ira-int.h: Flatten includes.
18504         * gimple-streamer.h: Remove all includes.
18505         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
18506         * resource.h: Flatten hard-reg-set.h and df.h.
18507         * sched-int.h: Flatten insn-arrt.h and df.h.
18508         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
18509         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
18510         * genattrtab.c (write_header): Adjust generated includes.
18511         * genautomata.c (main): Likewise.
18512         * genconditions.c (write-header): Likewise.
18513         * genemit.c (main): Likewise.
18514         * gengtype.c (open_base_files): Likewise.
18515         * genopinit.c (main): Likewise.
18516         * genoutput.c (output_prologue): Likewise.
18517         * genpeep.c (main): Likewise.
18518         * genpreds.c (write_insn_preds_c): Likewise.
18519         * genrecog.c (write_header): Likewise.
18520         * alias.c: Adjust includes.
18521         * asan.c: Likewise.
18522         * attribs.c: Likewise.
18523         * auto-inc-dec.c: Likewise.
18524         * auto-profile.c: Likewise.
18525         * bb-reorder.c: Likewise.
18526         * bt-load.c: Likewise.
18527         * builtins.c: Likewise.
18528         * caller-save.c: Likewise.
18529         * calls.c: Likewise.
18530         * ccmp.c: Likewise.
18531         * cfg.c: Likewise.
18532         * cfganal.c: Likewise.
18533         * cfgbuild.c: Likewise.
18534         * cfgcleanup.c: Likewise.
18535         * cfgexpand.c: Likewise.
18536         * cfghooks.c: Likewise.
18537         * cfgloop.c: Likewise.
18538         * cfgloopanal.c: Likewise.
18539         * cfgloopmanip.c: Likewise.
18540         * cfgrtl.c: Likewise.
18541         * cgraph.c: Likewise.
18542         * cgraphbuild.c: Likewise.
18543         * cgraphclones.c: Likewise.
18544         * cgraphunit.c: Likewise.
18545         * cilk-common.c: Likewise.
18546         * combine-stack-adj.c: Likewise.
18547         * combine.c: Likewise.
18548         * compare-elim.c: Likewise.
18549         * convert.c: Likewise.
18550         * coverage.c: Likewise.
18551         * cppbuiltin.c: Likewise.
18552         * cprop.c: Likewise.
18553         * cse.c: Likewise.
18554         * cselib.c: Likewise.
18555         * data-streamer-in.c: Likewise.
18556         * data-streamer-out.c: Likewise.
18557         * data-streamer.c: Likewise.
18558         * dbxout.c: Likewise.
18559         * dce.c: Likewise.
18560         * ddg.c: Likewise.
18561         * debug.c: Likewise.
18562         * df-core.c: Likewise.
18563         * df-problems.c: Likewise.
18564         * df-scan.c: Likewise.
18565         * dfp.c: Likewise.
18566         * dojump.c: Likewise.
18567         * dominance.c: Likewise.
18568         * domwalk.c: Likewise.
18569         * double-int.c: Likewise.
18570         * dse.c: Likewise.
18571         * dumpfile.c: Likewise.
18572         * dwarf2asm.c: Likewise.
18573         * dwarf2cfi.c: Likewise.
18574         * dwarf2out.c: Likewise.
18575         * emit-rtl.c: Likewise.
18576         * et-forest.c: Likewise.
18577         * except.c: Likewise.
18578         * explow.c: Likewise.
18579         * expmed.c: Likewise.
18580         * expr.c: Likewise.
18581         * final.c: Likewise.
18582         * fixed-value.c: Likewise.
18583         * fold-const.c: Likewise.
18584         * function.c: Likewise.
18585         * fwprop.c: Likewise.
18586         * gcc-plugin.h: Likewise.
18587         * gcse-common.c: Likewise.
18588         * gcse.c: Likewise.
18589         * generic-match-head.c: Likewise.
18590         * ggc-page.c: Likewise.
18591         * gimple-builder.c: Likewise.
18592         * gimple-expr.c: Likewise.
18593         * gimple-fold.c: Likewise.
18594         * gimple-iterator.c: Likewise.
18595         * gimple-low.c: Likewise.
18596         * gimple-match-head.c: Likewise.
18597         * gimple-pretty-print.c: Likewise.
18598         * gimple-ssa-isolate-paths.c: Likewise.
18599         * gimple-ssa-strength-reduction.c: Likewise.
18600         * gimple-streamer-in.c: Likewise.
18601         * gimple-streamer-out.c: Likewise.
18602         * gimple-walk.c: Likewise.
18603         * gimple.c: Likewise.
18604         * gimplify-me.c: Likewise.
18605         * gimplify.c: Likewise.
18606         * godump.c: Likewise.
18607         * graph.c: Likewise.
18608         * graphite-blocking.c: Likewise.
18609         * graphite-dependences.c: Likewise.
18610         * graphite-interchange.c: Likewise.
18611         * graphite-isl-ast-to-gimple.c: Likewise.
18612         * graphite-optimize-isl.c: Likewise.
18613         * graphite-poly.c: Likewise.
18614         * graphite-scop-detection.c: Likewise.
18615         * graphite-sese-to-poly.c: Likewise.
18616         * graphite.c: Likewise.
18617         * haifa-sched.c: Likewise.
18618         * hw-doloop.c: Likewise.
18619         * ifcvt.c: Likewise.
18620         * init-regs.c: Likewise.
18621         * internal-fn.c: Likewise.
18622         * ipa-chkp.c: Likewise.
18623         * ipa-comdats.c: Likewise.
18624         * ipa-cp.c: Likewise.
18625         * ipa-devirt.c: Likewise.
18626         * ipa-icf-gimple.c: Likewise.
18627         * ipa-icf.c: Likewise.
18628         * ipa-inline-analysis.c: Likewise.
18629         * ipa-inline-transform.c: Likewise.
18630         * ipa-inline.c: Likewise.
18631         * ipa-polymorphic-call.c: Likewise.
18632         * ipa-profile.c: Likewise.
18633         * ipa-prop.c: Likewise.
18634         * ipa-pure-const.c: Likewise.
18635         * ipa-ref.c: Likewise.
18636         * ipa-reference.c: Likewise.
18637         * ipa-split.c: Likewise.
18638         * ipa-utils.c: Likewise.
18639         * ipa-visibility.c: Likewise.
18640         * ipa.c: Likewise.
18641         * ira-build.c: Likewise.
18642         * ira-color.c: Likewise.
18643         * ira-conflicts.c: Likewise.
18644         * ira-costs.c: Likewise.
18645         * ira-emit.c: Likewise.
18646         * ira-lives.c: Likewise.
18647         * ira.c: Likewise.
18648         * jump.c: Likewise.
18649         * langhooks.c: Likewise.
18650         * lcm.c: Likewise.
18651         * loop-doloop.c: Likewise.
18652         * loop-init.c: Likewise.
18653         * loop-invariant.c: Likewise.
18654         * loop-iv.c: Likewise.
18655         * loop-unroll.c: Likewise.
18656         * lower-subreg.c: Likewise.
18657         * lra-assigns.c: Likewise.
18658         * lra-coalesce.c: Likewise.
18659         * lra-constraints.c: Likewise.
18660         * lra-eliminations.c: Likewise.
18661         * lra-lives.c: Likewise.
18662         * lra-remat.c: Likewise.
18663         * lra-spills.c: Likewise.
18664         * lra.c: Likewise.
18665         * lto-cgraph.c: Likewise.
18666         * lto-compress.c: Likewise.
18667         * lto-opts.c: Likewise.
18668         * lto-section-in.c: Likewise.
18669         * lto-section-out.c: Likewise.
18670         * lto-streamer-in.c: Likewise.
18671         * lto-streamer-out.c: Likewise.
18672         * lto-streamer.c: Likewise.
18673         * mcf.c: Likewise.
18674         * mode-switching.c: Likewise.
18675         * modulo-sched.c: Likewise.
18676         * omega.c: Likewise.
18677         * omp-low.c: Likewise.
18678         * optabs.c: Likewise.
18679         * opts-global.c: Likewise.
18680         * passes.c: Likewise.
18681         * plugin.c: Likewise.
18682         * postreload-gcse.c: Likewise.
18683         * postreload.c: Likewise.
18684         * predict.c: Likewise.
18685         * print-rtl.c: Likewise.
18686         * print-tree.c: Likewise.
18687         * profile.c: Likewise.
18688         * real.c: Likewise.
18689         * realmpfr.c: Likewise.
18690         * recog.c: Likewise.
18691         * ree.c: Likewise.
18692         * reg-stack.c: Likewise.
18693         * regcprop.c: Likewise.
18694         * reginfo.c: Likewise.
18695         * regrename.c: Likewise.
18696         * regstat.c: Likewise.
18697         * reload.c: Likewise.
18698         * reload1.c: Likewise.
18699         * reorg.c: Likewise.
18700         * resource.c: Likewise.
18701         * rtl-chkp.c: Likewise.
18702         * rtlanal.c: Likewise.
18703         * rtlhooks.c: Likewise.
18704         * sanopt.c: Likewise.
18705         * sched-deps.c: Likewise.
18706         * sched-ebb.c: Likewise.
18707         * sched-rgn.c: Likewise.
18708         * sched-vis.c: Likewise.
18709         * sdbout.c: Likewise.
18710         * sel-sched-dump.c: Likewise.
18711         * sel-sched-ir.c: Likewise.
18712         * sel-sched.c: Likewise.
18713         * sese.c: Likewise.
18714         * shrink-wrap.c: Likewise.
18715         * simplify-rtx.c: Likewise.
18716         * stack-ptr-mod.c: Likewise.
18717         * stmt.c: Likewise.
18718         * stor-layout.c: Likewise.
18719         * store-motion.c: Likewise.
18720         * stringpool.c: Likewise.
18721         * symtab.c: Likewise.
18722         * target-globals.c: Likewise.
18723         * targhooks.c: Likewise.
18724         * toplev.c: Likewise.
18725         * tracer.c: Likewise.
18726         * trans-mem.c: Likewise.
18727         * tree-affine.c: Likewise.
18728         * tree-browser.c: Likewise.
18729         * tree-call-cdce.c: Likewise.
18730         * tree-cfg.c: Likewise.
18731         * tree-cfgcleanup.c: Likewise.
18732         * tree-chkp-opt.c: Likewise.
18733         * tree-chkp.c: Likewise.
18734         * tree-chrec.c: Likewise.
18735         * tree-complex.c: Likewise.
18736         * tree-data-ref.c: Likewise.
18737         * tree-dfa.c: Likewise.
18738         * tree-diagnostic.c: Likewise.
18739         * tree-dump.c: Likewise.
18740         * tree-eh.c: Likewise.
18741         * tree-emutls.c: Likewise.
18742         * tree-if-conv.c: Likewise.
18743         * tree-inline.c: Likewise.
18744         * tree-into-ssa.c: Likewise.
18745         * tree-iterator.c: Likewise.
18746         * tree-loop-distribution.c: Likewise.
18747         * tree-nested.c: Likewise.
18748         * tree-nrv.c: Likewise.
18749         * tree-object-size.c: Likewise.
18750         * tree-outof-ssa.c: Likewise.
18751         * tree-parloops.c: Likewise.
18752         * tree-phinodes.c: Likewise.
18753         * tree-predcom.c: Likewise.
18754         * tree-pretty-print.c: Likewise.
18755         * tree-profile.c: Likewise.
18756         * tree-scalar-evolution.c: Likewise.
18757         * tree-sra.c: Likewise.
18758         * tree-ssa-address.c: Likewise.
18759         * tree-ssa-alias.c: Likewise.
18760         * tree-ssa-ccp.c: Likewise.
18761         * tree-ssa-coalesce.c: Likewise.
18762         * tree-ssa-copy.c: Likewise.
18763         * tree-ssa-copyrename.c: Likewise.
18764         * tree-ssa-dce.c: Likewise.
18765         * tree-ssa-dom.c: Likewise.
18766         * tree-ssa-dse.c: Likewise.
18767         * tree-ssa-forwprop.c: Likewise.
18768         * tree-ssa-ifcombine.c: Likewise.
18769         * tree-ssa-live.c: Likewise.
18770         * tree-ssa-loop-ch.c: Likewise.
18771         * tree-ssa-loop-im.c: Likewise.
18772         * tree-ssa-loop-ivcanon.c: Likewise.
18773         * tree-ssa-loop-ivopts.c: Likewise.
18774         * tree-ssa-loop-manip.c: Likewise.
18775         * tree-ssa-loop-niter.c: Likewise.
18776         * tree-ssa-loop-prefetch.c: Likewise.
18777         * tree-ssa-loop-unswitch.c: Likewise.
18778         * tree-ssa-loop.c: Likewise.
18779         * tree-ssa-math-opts.c: Likewise.
18780         * tree-ssa-operands.c: Likewise.
18781         * tree-ssa-phiopt.c: Likewise.
18782         * tree-ssa-phiprop.c: Likewise.
18783         * tree-ssa-pre.c: Likewise.
18784         * tree-ssa-propagate.c: Likewise.
18785         * tree-ssa-reassoc.c: Likewise.
18786         * tree-ssa-sccvn.c: Likewise.
18787         * tree-ssa-scopedtables.c: Likewise.
18788         * tree-ssa-sink.c: Likewise.
18789         * tree-ssa-strlen.c: Likewise.
18790         * tree-ssa-structalias.c: Likewise.
18791         * tree-ssa-tail-merge.c: Likewise.
18792         * tree-ssa-ter.c: Likewise.
18793         * tree-ssa-threadedge.c: Likewise.
18794         * tree-ssa-threadupdate.c: Likewise.
18795         * tree-ssa-uncprop.c: Likewise.
18796         * tree-ssa-uninit.c: Likewise.
18797         * tree-ssa.c: Likewise.
18798         * tree-ssanames.c: Likewise.
18799         * tree-stdarg.c: Likewise.
18800         * tree-streamer-in.c: Likewise.
18801         * tree-streamer-out.c: Likewise.
18802         * tree-streamer.c: Likewise.
18803         * tree-switch-conversion.c: Likewise.
18804         * tree-tailcall.c: Likewise.
18805         * tree-vect-data-refs.c: Likewise.
18806         * tree-vect-generic.c: Likewise.
18807         * tree-vect-loop-manip.c: Likewise.
18808         * tree-vect-loop.c: Likewise.
18809         * tree-vect-patterns.c: Likewise.
18810         * tree-vect-slp.c: Likewise.
18811         * tree-vect-stmts.c: Likewise.
18812         * tree-vectorizer.c: Likewise.
18813         * tree-vrp.c: Likewise.
18814         * tree.c: Likewise.
18815         * tsan.c: Likewise.
18816         * ubsan.c: Likewise.
18817         * valtrack.c: Likewise.
18818         * value-prof.c: Likewise.
18819         * var-tracking.c: Likewise.
18820         * varasm.c: Likewise.
18821         * varpool.c: Likewise.
18822         * vmsdbgout.c: Likewise.
18823         * vtable-verify.c: Likewise.
18824         * web.c: Likewise.
18825         * wide-int.cc: Likewise.
18826         * xcoffout.c: Likewise.
18827         * config/aarch64/aarch64-builtins.c: Likewise.
18828         * config/aarch64/aarch64.c: Likewise.
18829         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18830         * config/alpha/alpha.c: Likewise.
18831         * config/arc/arc.c: Likewise.
18832         * config/arm/aarch-common.c: Likewise.
18833         * config/arm/arm-builtins.c: Likewise.
18834         * config/arm/arm-c.c: Likewise.
18835         * config/arm/arm.c: Likewise.
18836         * config/avr/avr-c.c: Likewise.
18837         * config/avr/avr-log.c: Likewise.
18838         * config/avr/avr.c: Likewise.
18839         * config/bfin/bfin.c: Likewise.
18840         * config/c6x/c6x.c: Likewise.
18841         * config/cr16/cr16.c: Likewise.
18842         * config/cris/cris.c: Likewise.
18843         * config/darwin-c.c: Likewise.
18844         * config/darwin.c: Likewise.
18845         * config/epiphany/epiphany.c: Likewise.
18846         * config/epiphany/mode-switch-use.c: Likewise.
18847         * config/epiphany/resolve-sw-modes.c: Likewise.
18848         * config/fr30/fr30.c: Likewise.
18849         * config/frv/frv.c: Likewise.
18850         * config/ft32/ft32.c: Likewise.
18851         * config/h8300/h8300.c: Likewise.
18852         * config/i386/i386-c.c: Likewise.
18853         * config/i386/i386.c: Likewise.
18854         * config/i386/msformat-c.c: Likewise.
18855         * config/i386/winnt-cxx.c: Likewise.
18856         * config/i386/winnt-stubs.c: Likewise.
18857         * config/i386/winnt.c: Likewise.
18858         * config/ia64/ia64-c.c: Likewise.
18859         * config/ia64/ia64.c: Likewise.
18860         * config/iq2000/iq2000.c: Likewise.
18861         * config/lm32/lm32.c: Likewise.
18862         * config/m32c/m32c-pragma.c: Likewise.
18863         * config/m32c/m32c.c: Likewise.
18864         * config/m32r/m32r.c: Likewise.
18865         * config/m68k/m68k.c: Likewise.
18866         * config/mcore/mcore.c: Likewise.
18867         * config/mep/mep-pragma.c: Likewise.
18868         * config/mep/mep.c: Likewise.
18869         * config/microblaze/microblaze-c.c: Likewise.
18870         * config/microblaze/microblaze.c: Likewise.
18871         * config/mips/mips.c: Likewise.
18872         * config/mmix/mmix.c: Likewise.
18873         * config/mn10300/mn10300.c: Likewise.
18874         * config/moxie/moxie.c: Likewise.
18875         * config/msp430/msp430-c.c: Likewise.
18876         * config/msp430/msp430.c: Likewise.
18877         * config/nds32/nds32-cost.c: Likewise.
18878         * config/nds32/nds32-fp-as-gp.c: Likewise.
18879         * config/nds32/nds32-intrinsic.c: Likewise.
18880         * config/nds32/nds32-isr.c: Likewise.
18881         * config/nds32/nds32-md-auxiliary.c: Likewise.
18882         * config/nds32/nds32-memory-manipulation.c: Likewise.
18883         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18884         * config/nds32/nds32-predicates.c: Likewise.
18885         * config/nds32/nds32.c: Likewise.
18886         * config/nios2/nios2.c: Likewise.
18887         * config/nvptx/nvptx.c: Likewise.
18888         * config/pa/pa.c: Likewise.
18889         * config/pdp11/pdp11.c: Likewise.
18890         * config/rl78/rl78-c.c: Likewise.
18891         * config/rl78/rl78.c: Likewise.
18892         * config/rs6000/rs6000-c.c: Likewise.
18893         * config/rs6000/rs6000.c: Likewise.
18894         * config/rx/rx.c: Likewise.
18895         * config/s390/s390-c.c: Likewise.
18896         * config/s390/s390.c: Likewise.
18897         * config/sh/sh-c.c: Likewise.
18898         * config/sh/sh-mem.cc: Likewise.
18899         * config/sh/sh.c: Likewise.
18900         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18901         * config/sh/sh_treg_combine.cc: Likewise.
18902         * config/sol2-c.c: Likewise.
18903         * config/sol2-cxx.c: Likewise.
18904         * config/sol2-stubs.c: Likewise.
18905         * config/sol2.c: Likewise.
18906         * config/sparc/sparc-c.c: Likewise.
18907         * config/sparc/sparc.c: Likewise.
18908         * config/spu/spu-c.c: Likewise.
18909         * config/spu/spu.c: Likewise.
18910         * config/stormy16/stormy16.c: Likewise.
18911         * config/tilegx/mul-tables.c: Likewise.
18912         * config/tilegx/tilegx-c.c: Likewise.
18913         * config/tilegx/tilegx.c: Likewise.
18914         * config/tilepro/mul-tables.c: Likewise.
18915         * config/tilepro/tilepro-c.c: Likewise.
18916         * config/tilepro/tilepro.c: Likewise.
18917         * config/v850/v850-c.c: Likewise.
18918         * config/v850/v850.c: Likewise.
18919         * config/vax/vax.c: Likewise.
18920         * config/visium/visium.c: Likewise.
18921         * config/vms/vms-c.c: Likewise.
18922         * config/vms/vms.c: Likewise.
18923         * config/vxworks.c: Likewise.
18924         * config/xtensa/xtensa.c: Likewise.
18926 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
18928         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
18929         Remove operand constraints.  Change operand 2 predicate to
18930         nonmemory operand.  Limit const_int values to mode bitsize.  Only
18931         allow const_int values less than 32 when optimizing for size.
18932         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
18933         Remove operand constraints.
18934         (*bt<mode>): Use SImode for const_int values less than 32.
18935         (regmode): Remove mode attribute.
18937 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
18939         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18940         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
18941           moxie_legitimate_address_p): New functions.
18942           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18944 2015-07-07  Tom de Vries  <tom@codesourcery.com>
18946         PR tree-optimization/66642
18947         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
18948         header comment.  Rename split_edge variable to edge_at_split.  Split
18949         exit edge to create new loop exit bb.  Insert loop exit phis in new
18950         loop exit bb.
18952 2015-07-07  Tom de Vries  <tom@codesourcery.com>
18954         * tree-cfg.c (get_virtual_phi): New function.
18955         * tree-cfg.h (get_virtual_phi): Declare.
18956         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
18957         (rewrite_virtuals_into_loop_closed_ssa): New function.
18958         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
18959         Declare.
18960         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
18961         (transform_to_exit_first_loop_alt): Use
18962         rewrite_virtuals_into_loop_closed_ssa.
18964 2015-07-07  Richard Biener  <rguenther@suse.de>
18966         * fold-const.c (fold_binary_loc): Move
18967         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
18968         * match.pd: ... here.
18969         Add (X * C1) % C2 -> 0 simplification pattern derived from
18970         extract_muldiv_1.
18972 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
18974         PR target/66780
18975         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
18976         change for target/65249.
18978 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
18980         * symtab.c (address_matters_1): Fix typo in comment above.
18981         (can_increase_alignment_p): Likewise.
18983 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18985         * function.c (free_after_compilation): Clear PROP_cfg in
18986         f->curr_properties.
18988 2015-07-07  Richard Biener  <rguenther@suse.de>
18990         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
18991         add which use to.
18992         (add_control_edge): Remove excessive vertical space in dumping.
18993         (process_ssa_edge_worklist): Simulate at most one statement and
18994         return whether we did.  Do not simulate PHIs if they are in a
18995         BB not yet simulated.
18996         (ssa_propagate): Adjust to always drain the BB worklist whenever
18997         a BB is available there, likewise the VARYING edges list before
18998         the interesting edge list.
19000 2015-07-07  Christian Bruel  <christian.bruel@st.com>
19002         PR target/52144
19003         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
19005 2015-07-07  Richard Biener  <rguenther@suse.de>
19007         PR middle-end/66739
19008         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
19009         A - B.
19011 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
19013         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
19014         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
19015         Copy operand 0 to a temporary if !ext_register_operand.  Remove
19016         ancient extract_bit_field workaround.
19017         (insv<mode>_1): Rename from mov<mode>_insv_1.
19018         (*insvqi): Rename from *movqi_insv_2.
19019         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
19020         for renamed insvsi_1.
19021         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
19023 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
19025         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
19026         call to nvptx_reorg_subreg.
19028 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
19030         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
19031         * graphite-dependencies.c, graphite-interchange.c,
19032         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
19033         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
19034         Likewise.
19036 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
19038         * match.pd: Remove element_mode inside HONOR_*.
19039         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
19040         (~X | X -> -1, ~X ^ X -> -1): Merge.
19041         * tree.c (build_each_one_cst): New function.
19042         * tree.h (build_each_one_cst): Likewise.
19044 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
19046         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19047         PROCESSOR_IAMCU.
19049 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
19051         * config.gcc <mips*-*-*>: Add fused-madd.opt.
19052         * config/mips/mips.opt (mfused-madd): Remove.
19053         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
19054         * config/mips/mips.h (TARGET_MIPS8000): New.
19055         (ISA_HAS_FP_MADD4_MSUB4): Remove.
19056         (ISA_HAS_FP_MADDF_MSUBF): Remove.
19057         (ISA_HAS_FP_MADD3_MSUB3): Remove.
19058         (ISA_HAS_NMADD4_NMSUB4): Remove.
19059         (ISA_HAS_NMADD3_NMSUB3): Remove.
19060         (ISA_HAS_FUSED_MADD4): New.
19061         (ISA_HAS_UNFUSED_MADD4): New.
19062         (ISA_HAS_FUSED_MADDF): New.
19063         (ISA_HAS_FUSED_MADD3): New.
19064         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
19065         (*fma<mode>4_madd3) New.
19066         (*fma<mode>4_madd4) New.
19067         (*fma<mode>4_maddf) New.
19068         (fms<mode>4) New.
19069         (*fms<mode>4_msub3) New.
19070         (*fms<mode>4_msub4) New.
19071         (fnma<mode>4) New.
19072         (*fnma<mode>4_nmadd3) New.
19073         (*fnma<mode>4_nmadd4) New.
19074         (fnms<mode>4) New.
19075         (*fnms<mode>4_nmsub3) New.
19076         (*fnms<mode>4_nmsub4) New.
19077         (*madd4<mode>) Modify to be unfused only.
19078         (*msub4<mode>) Modify to be unfused only.
19079         (*nmadd4<mode>) Modify to be unfused only.
19080         (*nmsub4<mode>) Modify to be unfused only.
19081         (*madd3<mode>) Remove.
19082         (*msub3<mode>) Remove.
19083         (*nmadd3<mode>) Remove.
19084         (*nmsub3<mode>) Remove.
19085         (*nmadd3<mode>_fastmath) Remove.
19086         (*nmsub3<mode>_fastmath) Remove.
19087         (*nmadd4<mode>_fastmath) Update condition.
19088         (*nmsub4<mode>_fastmath) Update condition.
19090 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
19092         PR target/65956
19093         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
19094         alignment attribute, exploring one level down for records and arrays.
19096 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
19098         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
19099         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
19100         Copy operand 1 to a temporary if !ext_register_operand.  Remove
19101         ancient extract_bit_field workaround.
19102         (*extv<mode>): Rename from *mov<mode>_extv_1.
19103         (*extvqi): Rename from *movqi_extv_1.
19104         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
19105         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
19106         to a temporary if !ext_register_operand.  Remove ancient
19107         extract_bit_field workaround.
19108         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
19109         (*extzvqi): Rename from *movqi_extzv_2.
19110         (*testqi_ext_3): Remove modes from const_int_operand predicated
19111         operands.  Add "n" constraint.
19112         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
19113         operand.  Add "J" constraint.
19114         (*btsq, *btrq, *btcq peephole2s): Remove mode from
19115         const_0_to_63 predicated operand.
19116         (regmode): New insn attribute.
19117         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
19118         to nonmemory_operand.  Use regmode insn attribute.
19119         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
19120         (*jcc_bt<mode>_mask): Remove mode from operand 3.
19121         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
19122         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
19123         operands.  Use "N" constraint instead of "n".
19125 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
19127         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
19129 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
19131         PR target/66749
19132         * config/i386/i386.c (iamcu_cost): New.
19133         (m_IAMCU): Likewise.
19134         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
19135         (processor_target_table): Add an entry for "iamcu".
19136         (processor_alias_table): Likewise.
19137         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
19138         (ix86_adjust_cost): Likewise.
19139         (ia32_multipass_dfa_lookahead): Likewise.
19140         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
19141         * config/i386/x86-tune.def: Updated for m_IAMCU.
19143 2015-07-06  Richard Biener  <rguenther@suse.de>
19145         PR tree-optimization/66772
19146         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
19147         values are available in the PHI node BB when there are
19148         still unexecutable edges.
19150 2015-07-06  Richard Biener  <rguenther@suse.de>
19152         PR tree-optimization/66767
19153         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
19154         Make sure to build the alignment test on a SSA name without
19155         final alignment info valid only if the alignment test
19156         evaluates to true.
19158 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
19160         PR target/66620
19161         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
19162         loop start when inserting LSETUP.
19164 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
19166         PR target/53383
19167         * config/i386/i386.c (ix86_option_override_internal): Allow
19168         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
19170 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19172         * read-md.c (decimal_string): Rename to ...
19173         (md_decimal_string): ... this.
19174         (handle_enum): Reflect this.
19176 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19178         PR target/66731
19179         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
19181 2015-07-06  Richard Biener  <rguenther@suse.de>
19183         PR middle-end/66759
19184         * match.pd: Add missing constraint of y to REAL_CST in
19185         REAL_CST - x CMP y to y - CST CMP x simplification.
19187 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
19189         PR tree-optimization/66757
19190         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
19192 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
19193             Sandra Loosemore <sandra@codesourcery.com>
19195         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
19196         Delete extern declaration.
19197         (gprel_constant_p): Add extern declaration.
19198         * config/nios2/constraints.md ("S"): Use gprel_constant_p
19199         instead of nios2_symbol_ref_in_small_data_p.
19200         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
19201         (nios2_symbol_ref_in_small_data_p): Make static.
19202         (gprel_constant_p): Make non-static.
19204 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
19206         * doc/fragments.texi (Target Fragment): Convert debian.org
19207         link to use https.
19208         * doc/install.texi (Configuration): Ditto.
19210 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
19212         PR tree-optimization/66718
19213         * tree-vect-stmts.c (vectorizable_call): Replace uses of
19214         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
19216         PR tree-optimization/66718
19217         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
19218         vectorizable_load, vectorizable_condition): Move vectype,
19219         nunits, ncopies computation after checking what kind of statement
19220         stmt is.
19222 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19224         * target-insns.def (extv, extzv, insv): New targetm instruction
19225         patterns.
19226         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
19227         interface.
19228         * recog.c (simplify_while_replacing): Likewise.
19230 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19232         * target-insns.def (doloop_begin, doloop_end): New targetm
19233         instruction patterns.
19234         * loop-init.c: Include target.h.
19235         (pass_loop2::gate): Use the new targetm patterns instead of
19236         HAVE_*/gen_* interface.
19237         (pass_rtl_doloop::gate): Likewise.
19238         (pass_rtl_doloop::execute): Remove preprocessor condition.
19239         * hw-doloop.c: Build unconditionally.
19240         * loop-doloop.c: Likewise.
19241         (doloop_optimize): Use the new targetm patterns instead of
19242         HAVE_*/gen_* interface.
19243         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
19244         * modulo-sched.c (doloop_register_get): Likewise.
19246 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19248         * target-insns.def (clear_cache): New targetm instruction pattern.
19249         * builtins.c (expand_builtin___clear_cache): Use it instead of
19250         HAVE_*/gen_* interface.
19252 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19254         * target-insns.def (allocate_stack, check_stack, probe_stack)
19255         (probe_stack_address, split_stack_prologue, split_stack_space_check):
19256         New targetm instruction patterns.
19257         * explow.c (allocate_dynamic_stack_space): Use them instead of
19258         HAVE_*/gen_* interface.
19259         (emit_stack_probe): Likewise.
19260         (probe_stack_range): Likewise.
19261         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19263 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19265         * target-insns.def (stack_protect_set, stack_protect_test): New
19266         targetm instruction patterns.
19267         * cfgexpand.c (stack_protect_prologue): Use them instead of
19268         HAVE_*/gen_* interface.
19269         * function.c (stack_protect_epilogue): Likewise.
19271 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19273         * expr.h (gen_move_insn_uncast): Delete.
19274         * expr.c (gen_move_insn_uncast): Delete.
19276 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19278         * target-insns.def (restore_stack_block, restore_stack_function)
19279         (restore_stack_nonlocal, save_stack_block, save_stack_function)
19280         (save_stack_nonlocal): New targetm instruction patterns.
19281         * builtins.c (expand_builtin_apply): Use them instead of
19282         HAVE_*/gen_* interface.
19283         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
19285 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19287         * target-insns.def (trap): New targetm instruction pattern.
19288         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
19289         interface.
19290         * explow.c (allocate_dynamic_stack_space): Likewise.
19291         * ifcvt.c (find_if_header): Likewise.
19293 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19295         * target-insns.def (prefetch): New targetm instruction pattern.
19296         * tree-ssa-loop-prefetch.c: Include targeth.
19297         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
19298         of HAVE_*/gen_* interface.
19299         * builtins.c (expand_builtin_prefetch): Likewise.
19300         * toplev.c (process_options): Likewise.
19302 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19304         * target-insns.def (untyped_call, untyped_return): New targetm
19305         instruction patterns.
19306         * builtins.c (expand_builtin_apply): Use them instead of
19307         HAVE_*/gen_* interface.
19308         (result_vector): Define unconditionally.
19310 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19312         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
19313         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
19314         (nonlocal_goto_receiver): New targetm instruction patterns.
19315         * builtins.c (expand_builtin_setjmp_setup): Use them instead
19316         of HAVE_*/gen_* interface.
19317         (expand_builtin_setjmp_receiver): Likewise.
19318         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
19319         * except.c (expand_dw2_landing_pad_for_region): Likewise.
19321 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19323         * target.def: Add code_for_* hooks.
19324         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
19325         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
19326         * target-insns.def (casesi, tablejump): New targetm instruction
19327         patterns.
19328         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
19329         (do_tablejump): Likewise.
19330         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
19331         (expand_sjlj_dispatch_table): Likewise.
19332         * targhooks.c (default_case_values_threshold): Likewise.
19334 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
19336         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
19337         Use rtx_insn * instead of rtx.
19338         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
19339         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
19340         (nios2_call_tls_get_addr): Likewise.
19341         (nios2_emit_expensive_div): Likewise.
19342         (nios2_emit_move_sequence): Change return type to bool.
19343         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
19344         Change return type to bool.
19346 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19348         PR target/66747
19349         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
19351 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
19353         PR target/66114
19354         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
19355         of register_operand.  Remove constraint.
19357 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
19359         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
19360         the first argument.
19362 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
19364         * attribs.c (decl_attributes): Guard inform with the return value
19365         of the preceding warning.
19367 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
19369         * doc/invoke.texi (moverride): Move to correct section.
19371 2015-07-03  Richard Biener  <rguenther@suse.de>
19373         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
19374         Copy from tree.c
19375         (dt_operand::gen_gimple_expr): After valueizing operands
19376         re-canonicalize operand order for commutative tree codes.
19378 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
19380         PR target/66746.
19381         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
19382         is defined.
19383         (__crc32w): Likewise.
19384         (__crc32d): Likewise.
19385         (__rdpmc): Likewise.
19386         (__rdtscp): Likewise.
19387         (_rdpmc): Likewise.
19388         (_rdtscp): Likewise.
19389         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
19390         is defined.
19392 2015-07-03  Richard Biener  <rguenther@suse.de>
19394         * fold-const.c (fold_mathfn_compare): Remove.
19395         (fold_inf_compare): Likewise.
19396         (fold_comparison): Move floating point comparison simplifications...
19397         * match.pd: ... to patterns here.  Introduce simple_comparisons
19398         operator list and use it for patterns formerly in fold_comparison.
19400 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
19402         PR tree-optimization/66119
19403         * toplev.c (process_options): Don't set up default values for
19404         the sra_max_scalarization_size_{speed,size} parameters.
19405         * tree-sra (analyze_all_variable_accesses): If no values
19406         have been set for the sra_max_scalarization_size_{speed,size}
19407         parameters, call get_move_ratio to get target defaults.
19409 2015-07-03  Richard Biener  <rguenther@suse.de>
19411         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
19412         * match.pd: ... here.
19414 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
19416         PR target/37072
19417         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
19418         is not actually the default on FreeBSD.
19420 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19422         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
19423         definition.
19424         (CMPGE_8HI): Likewise.
19425         (CMPGE_4SI): Likewise.
19426         (CMPGE_2DI): Likewise.
19427         (CMPGE_U16QI): Likewise.
19428         (CMPGE_U8HI): Likewise.
19429         (CMPGE_U4SI): Likewise.
19430         (CMPGE_U2DI): Likewise.
19431         (CMPLE_16QI): Likewise.
19432         (CMPLE_8HI): Likewise.
19433         (CMPLE_4SI): Likewise.
19434         (CMPLE_2DI): Likewise.
19435         (CMPLE_U16QI): Likewise.
19436         (CMPLE_U8HI): Likewise.
19437         (CMPLE_U4SI): Likewise.
19438         (CMPLE_U2DI): Likewise.
19439         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19440         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
19441         ALTIVEC_BUILTIN_VEC_CMPLE.
19442         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
19443         floating-point vector modes.
19444         (vector_nlt<mode>): New define_expand.
19445         (vector_nltu<mode>): Likewise.
19446         (vector_ngt<mode>): Likewise.
19447         (vector_ngtu<mode>): Likewise.
19449 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
19451         PR rtl-optimization/66706
19452         * combine.c (make_compound_operation): If an AND of SUBREG of
19453         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
19455 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
19457         * tree-pass.h (make_pass_ch_vect): New.
19458         * passes.def: Add pass_ch_vect just before pass_if_conversion.
19460         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
19461         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
19462         make_pass_ch_vect): New.
19463         (pass_ch): Extend ch_base.
19465         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
19466         (ch_base::copy_headers): ...here.
19468 2015-07-02  Richard Biener  <rguenther@suse.de>
19470         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
19471         * fold-const.c (get_pointer_modulus_and_residue): Remove.
19472         (fold_binary_loc): Implement (T)ptr & CST in terms of
19473         get_pointer_alignment_1.
19474         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
19475         Make sure to build the alignment test on a SSA name without
19476         final alignment info valid only after the prologue.
19478 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
19480         * config/cris/cris.md ("epilogue"): Remove condition.
19481         ("prologue"): Ditto.
19483 2015-07-02  Richard Biener  <rguenther@suse.de>
19485         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
19486         parameter to record a condition that is false.
19487         (record_conditions): When recording an extra NE_EXPR that is
19488         true also record a EQ_EXPR that is false.
19490 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
19492         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
19493         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
19494         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
19495         (set_iv, find_interesting_uses_address, add_candidate_1): New
19496         argument to alloc_iv.
19497         (find_interesting_uses_op, find_interesting_uses_cond): Don't
19498         duplicate struct iv.
19499         (free_loop_data): Don't free struct iv explicitly.
19500         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
19502 2015-07-01  DJ Delorie  <dj@redhat.com>
19504         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
19505         (LIB_SPEC): Add.
19506         (SUPPORTS_DISCRIMINATOR): Define.
19508 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
19510         PR bootstrap/66685
19511         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
19512         there are no CALLs in the same pattern.
19514 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19516         PR rtl-optimization/61047
19517         * rtlanal.c (get_initial_register_offset): New function.
19518         (rtx_addr_can_trap_p_1): Check offsets of stack references.
19520 2015-07-01  Richard Biener  <rguenther@suse.de>
19522         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
19523         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
19524         ~X CMP C -> X CMP' ~C to ...
19525         * match.pd: ... patterns here.
19527 2015-07-01  Nick Clifton  <nickc@redhat.com>
19529         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
19530         a 16-bit value into a 20-bit memory slot.
19532 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
19534         * doc/sourcebuild.texi (AArch64-specific attributes): Document
19535         "aarch64_tiny", "aarch64_small", "aarch64_large",
19536         "aarch64_little_endian", "aarch64_big_endian".
19538 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
19540         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
19541         Document "aarch64_small_fpic".
19543 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
19545         * configure.ac: Add check for aarch64 assembler -fpic relocation
19546         modifier support.
19547         * configure: Regenerate.
19548         * config.in: Regenerate.
19549         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
19550         to -fPIC if not support of -fpic relocation modifier in assembler.
19552 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
19554         PR bootstrap/66685
19555         * rtl.c (classify_insn): Handle returns in PARALLELs.
19557 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
19559         PR middle-end/66633
19560         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
19561         to true if the function is nested and if not optimizing.
19562         (convert_local_omp_clauses): Initialize need_frame to true if the
19563         function contains nested functions and if not optimizing.
19565 2015-07-01  Richard Biener  <rguenther@suse.de>
19567         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
19568         (X & Y) ^ Y -> ~X & Y transforms to ...
19569         * match.pd: ... here.
19571 2015-07-01  Richard Biener <rguenther@suse.de>
19573         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
19574         of converts to avoid uninteresting noise from the conversion
19575         simplifying patterns.
19577 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
19579         * config/c6x/c6x.c (try_rename_operands): Do not depend on
19580         gcc_assert evaluating its argument for side-effect.
19582 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
19584         PR target/64833
19585         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
19586         flag_pic is set.
19588 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
19590         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
19591         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
19592         (hash_scc): Add this_ref_p and ref_p parameters and pass them
19593         to the inner DFS walk.
19595 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19597         * target-insns.def (jump): New targetm instruction pattern.
19598         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
19599         instead of gen_jump.
19600         (fix_up_crossing_landing_pad): Likewise.
19601         (add_labels_and_missing_jumps): Likewise.
19602         (fix_crossing_conditional_branches): Likewise.
19603         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
19604         (force_nonfallthru_and_redirect): Likewise.
19605         * cse.c (cse_insn): Likewise.
19606         * expmed.c (expand_divmod): Likewise.
19607         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
19608         * haifa-sched.c (init_before_recovery): Likewise.
19609         (sched_create_recovery_edges): Likewise.
19610         * ifcvt.c (find_cond_trap): Likewise.
19611         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
19612         (expand_float, expand_fix): Likewise.
19613         * stmt.c (emit_jump): Likewise.
19615 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19617         * defaults.h (HAVE_load_multiple, gen_load_multiple)
19618         (HAVE_store_multiple, gen_store_multiple): Delete.
19619         * target-insns.def (load_multiple, store_multiple): New targetm
19620         instruction patterns.
19621         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
19622         of HAVE_*/gen_* interface.
19624 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19626         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
19627         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
19628         (gen_mem_signal_fence): Delete.
19629         * target-insns.def (mem_signal_fence, mem_thread_fence)
19630         (memory_barrier): New targetm instruction patterns.
19631         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
19632         interface.
19633         (expand_mem_signal_fence): Likewise.
19635 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19637         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
19638         * target-insns.def (epilogue, prologue, sibcall_prologue): New
19639         targetm instruction patterns.
19640         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19641         interface.
19642         * calls.c (expand_call): Likewise.
19643         * cfgrtl.c (cfg_layout_finalize): Likewise.
19644         * df-scan.c (df_get_entry_block_def_set): Likewise.
19645         (df_get_exit_block_use_set): Likewise.
19646         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
19647         * final.c (final_start_function): Likewise.
19648         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19649         (reposition_prologue_and_epilogue_notes): Likewise.
19650         * reorg.c (find_end_label): Likewise.
19651         * toplev.c (process_options): Likewise.
19653 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
19655         * typed-splay-tree.h: New file.
19657 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
19659         PR debug/66691
19660         * lra-int.h (lra_substitute_pseudo): Add a parameter.
19661         (lra_substitute_pseudo_within_insn): Ditto.
19662         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
19663         of constant.
19664         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
19665         to lra_substitute_pseudo.
19666         * lra-lives.c (process_bb_lives): Add an argument to
19667         lra_substitute_pseudo_within_insn call.
19668         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
19669         argument to lra_substitute_pseudo and
19670         lra_substitute_pseudo_within_insn calls.
19671         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
19673 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
19675         * configure: Regenerated.
19677 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
19679         * config.gcc: Support i[34567]86-*-elfiamcu target.
19680         * config/i386/iamcu.h: New.
19681         * config/i386/i386.opt: Add -miamcu.
19682         * doc/invoke.texi: Document -miamcu.
19683         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
19684         off x87/MMX/SSE/AVX codegen for -miamcu.
19685         * config/i386/i386-c.c (ix86_target_macros_internal): Define
19686         __iamcu/__iamcu__ for -miamcu.
19687         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
19688         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
19689         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
19690         * config/i386/i386.c (ix86_option_override_internal): Ignore and
19691         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
19692         MCU by default.  Default long double to 64-bit for Intel MCU.
19693         Turn on -freg-struct-return for Intel MCU.  Issue an error when
19694         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
19695         AVX is turned on.
19696         (function_arg_advance_32): Pass value whose size is no larger
19697         than 8 bytes in registers for Intel MCU.
19698         (function_arg_32): Likewise.
19699         (ix86_return_in_memory): Return value whose size is no larger
19700         than 8 bytes in registers for Intel MCU.
19701         (iamcu_alignment): New function.
19702         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
19703         true.
19704         (ix86_local_alignment): Don't increase alignment for Intel MCU.
19705         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
19706         true.
19708 2015-06-30  Marek Polacek  <polacek@redhat.com>
19710         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
19711         both operands of the resulting expression.
19713         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
19714         the final expression with the operand's type and then convert
19715         it to the type of the expression.
19717 2015-06-30  Richard Biener  <rguenther@suse.de>
19719         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
19720         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
19721         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
19722         * match.pd: ... to patterns here.
19724 2015-06-30  Richard Biener  <rguenther@suse.de>
19726         PR tree-optimization/66704
19727         * tree-vect-data-refs.c (vect_setup_realignment): Use
19728         make_ssa_name for non-SSA name source.
19730 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
19732         PR middle-end/66702
19733         * omp-low.c (simd_clone_adjust): Handle addressable linear
19734         or uniform parameters or non-gimple type uniform parameters.
19736 2015-06-30  Richard Biener  <rguenther@suse.de>
19738         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
19739         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
19740         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
19741         * match.pd: ... here.
19742         Add a few cases of A - B -> A + (-B) when B "easily" negates.
19743         Move (x & y) | x -> x and friends before
19744         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
19746 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
19748         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
19749         -mfix-ut699 is not specified.
19750         (leon3_load): Rename into...
19751         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
19752         is specified.
19754 2015-06-30  Marek Polacek  <polacek@redhat.com>
19756         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
19757         * match.pd: ... here.
19759 2015-06-30  Richard Biener  <rguenther@suse.de>
19761         * target-insns.def (canonicalize_funcptr_for_compare): Add.
19762         * fold-const.c (build_range_check): Replace uses of
19763         HAVE_canonicalize_funcptr_for_compare.
19764         (fold_widened_comparison): Likewise.
19765         (fold_sign_changed_comparison): Likewise.
19766         * dojump.c: Include "target.h".
19767         (do_compare_and_jump): Replace uses of
19768         HAVE_canonicalize_funcptr_for_compare and
19769         gen_canonicalize_funcptr_for_compare.
19770         * expr.c (do_store_flag): Likewise.
19772 2015-06-30  Tom de Vries  <tom@codesourcery.com>
19774         PR tree-optimization/66652
19775         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
19776         max_loop_iterations to determine if nit + 1 overflows.
19778 2015-06-30  Richard Biener  <rguenther@suse.de>
19780         * tree-vrp.c (register_edge_assert_for_2): Also register
19781         asserts for dominating conversion results.
19783 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
19785         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
19786         field in struct iv.
19788 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
19790         PR target/66509
19791         * configure.ac: Fix filds and fildq test for 64-bit.
19792         * configure: Regenerated.
19794 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
19796         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
19797         (nvptx_reorg): Here.  Keep the non-subreg pieces.
19799 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
19801         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
19802         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19804 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
19806         * config/i386/i386.md (*jcc_1): Use %! in asm template.
19807         Set attribute "length_nobnd" instead of "length".
19808         (*jcc_2): Ditto.
19809         (jump): Ditto.
19810         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
19812 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
19814         * config/nios2/nios2.c (nios2_delegitimize_address): Make
19815         assert less restrictive.
19817 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19819         PR fortran/66605
19820         * cgraphunit.c (cgraph_node::finalize_function): Do not call
19821         do_warn_unused_parameter.
19822         * function.c (do_warn_unused_parameter): Move from here.
19823         * function.h (do_warn_unused_parameter): Do not declare.
19825 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19827         PR target/65697
19828         * gcc.target/arm/armv-sync-comp-swap.c: New.
19829         * gcc.target/arm/armv-sync-op-acquire.c: New.
19830         * gcc.target/arm/armv-sync-op-full.c: New.
19831         * gcc.target/arm/armv-sync-op-release.c: New.
19833 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19835         PR target/65697
19836         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
19837         initial acquire barrier with final barrier.
19839 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19841         PR target/65697
19842         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
19843         initial acquire barrier with final barrier.
19845 2015-06-29  Richard Henderson  <rth@redhat.com>
19847         * config/i386/constraints.md (Bf): New constraint.
19848         * config/i386/i386-c.c (ix86_target_macros): Define
19849         __GCC_ASM_FLAG_OUTPUTS__.
19850         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
19851         as flags outputs.
19852         * doc/extend.texi (FlagOutputOperands): Document them.
19854 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
19856         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
19857         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
19858         unspec name.
19859         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
19860         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
19861         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
19862         (aarch64_symbol_context): Ditto.
19863         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
19864         and use new pattern name.
19865         (aarch64_expand_mov_immediate): Ditto.
19866         (aarch64_print_operand): Ditto.
19867         (aarch64_classify_tls_symbol): Ditto.
19869 2015-06-29  Marek Polacek  <polacek@redhat.com>
19870             Marc Glisse  <marc.glisse@inria.fr>
19872         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
19873         * match.pd: ... pattern here.
19875 2015-06-29  Tom de Vries  <tom@codesourcery.com>
19877         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
19878         function structure.
19880 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19882         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
19883         feature description, split out the native option, add a link to
19884         the feature documentation, rearrange and slightly rewrite text.
19885         (Aarch64 options, -mcpu): Likewise.
19886         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
19887         +rdma implies Adv. SIMD.
19889 2015-06-29  Marek Polacek  <polacek@redhat.com>
19891         PR c/66322
19892         * function.c (stack_protect_epilogue): Remove a cast to int.
19893         * doc/invoke.texi: Update -Wswitch-bool description.
19895 2015-06-29  Richard Biener  <rguenther@suse.de>
19897         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
19898         * fold-const.c (fold_binary_loc): Move &A - &B simplification
19899         via ptr_difference_const ...
19900         * match.pd: ... here.
19901         When matching (X ^ Y) == Y also match with swapped operands.
19903 2015-06-29  Richard Biener  <rguenther@suse.de>
19905         * lto-streamer.h (LTO_major_version): Bump to 5.
19907 2015-06-29  Richard Biener  <rguenther@suse.de>
19909         PR tree-optimization/66677
19910         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
19911         STMT_VINFO_VEC_STMT clobbering less strict.
19913 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
19915         PR middle-end/64130
19916         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
19917         division, compute max and min when value ranges for dividend and
19918         divisor are available.
19920 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
19921             Sandra Loosemore <sandra@codesourcery.com>
19923         * regrename.h (regrename_do_replace): Change to return bool.
19924         * regrename.c (rename_chains): Check return value of
19925         regname_do_replace.
19926         (regrename_do_replace): Re-validate the modified insns and
19927         return bool status.
19928         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
19929         Update to match rename_chains changes.
19930         * config/c6x/c6x.c (try_rename_operands): Assert that
19931         regrename_do_replace returns true.
19933 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
19935         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
19936         operand 2 here.  Use copy_addr_to_reg to copy non-index
19937         register operand 2 to a temporary.
19938         (<mode>_stx): Ditto for operand 1.
19939         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
19940         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
19941         (ix86_store_bounds): Ditto.
19943 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
19945         * print-tree.c (print_node) [TREE_VEC]: Print its length.
19947 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
19949         * gimple.c (gimple_call_set_fndecl): Remove.
19950         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
19951         build1_loc directly instead of build_fold_addr_expr_loc.
19953 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
19955         * hash-map.h (hash_map::traverse): Use the definition of the
19956         Key typedef rather than the typedef itself.
19958 2015-06-26  Martin Jambor  <mjambor@suse.cz>
19960         PR debug/66301
19961         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
19962         NULL instead of calling dump_enabled_p.
19964 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19966         * config/aarch64/aarch64.opt: (override): New.
19967         * doc/invoke.texi (override): Document.
19968         * config/aarch64/aarch64.c (aarch64_flag_desc): New
19969         (aarch64_fusible_pairs): Likewise.
19970         (aarch64_tuning_flags): Likewise.
19971         (aarch64_tuning_override_function): Likewise.
19972         (aarch64_tuning_override_functions): Likewise.
19973         (aarch64_parse_one_option_token): Likewise.
19974         (aarch64_parse_boolean_options): Likewise.
19975         (aarch64_parse_fuse_string): Likewise.
19976         (aarch64_parse_tune_string): Likewise.
19977         (aarch64_parse_one_override_token): Likewise.
19978         (aarch64_parse_override_string): Likewise.
19979         (aarch64_override_options): Parse the -override string if it
19980         is present.
19982 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19984         * config/aarch64/aarch64-protos.h (tune_params): Remove
19985         const from members.
19986         (aarch64_tune_params): Remove const, change to no longer be
19987         a pointer.
19988         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
19989         change to no longer be a pointer, initialize to generic_tunings.
19990         (aarch64_min_divisions_for_recip_mul): Change dereference of
19991         aarch64_tune_params to member access.
19992         (aarch64_reassociation_width): Likewise.
19993         (aarch64_rtx_mult_cost): Likewise.
19994         (aarch64_address_cost): Likewise.
19995         (aarch64_branch_cost): Likewise.
19996         (aarch64_rtx_costs): Likewise.
19997         (aarch64_register_move_cost): Likewise.
19998         (aarch64_memory_move_cost): Likewise.
19999         (aarch64_sched_issue_rate): Likewise.
20000         (aarch64_builtin_vectorization_cost): Likewise.
20001         (aarch64_override_options): Take a copy of the selected tuning
20002         struct in to aarch64_tune_params, rather than just setting
20003         a pointer, change dereferences of aarch64_tune_params to member
20004         accesses.
20005         (aarch64_override_options_after_change): Change dereferences of
20006         aarch64_tune_params to member access.
20007         (aarch64_macro_fusion_p): Likewise.
20008         (aarch_macro_fusion_pair_p): Likewise.
20009         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
20011 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20013         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
20014         (aarch64_tune_flags): Likewise.
20015         (AARCH64_TUNE_FMA_STEERING): Likewise.
20016         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
20017         to AARCH64_FL_USE_FMA_STEERING_PASS.
20018         (cortex-a57.cortex-a53): Likewise.
20019         (cortex-a72): Use cortexa72_tunings.
20020         (cortex-a72.cortex-a53): Likewise.
20021         (exynos-m1): Likewise.
20022         * config/aarch64/aarch64-protos.h (tune_params): Add
20023         a field: extra_tuning_flags.
20024         * config/aarch64/aarch64-tuning-flags.def: New.
20025         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
20026         (aarch64_extra_tuning_flags): Likewise.
20027         (aarch64_tune_params): Declare here.
20028         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
20029         (cortexa53_tunings): Likewise.
20030         (cortexa57_tunings): Likewise.
20031         (thunderx_tunings): Likewise.
20032         (xgene1_tunings): Likewise.
20033         (cortexa72_tunings): New.
20034         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
20035          (gate): Check against aarch64_tune_params.
20036         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
20037         aarch64-protos.h.
20039 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20041         * config/aarch64/aarch64-fusion-pairs.def: New.
20042         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
20043         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
20044         aarch64_fusion_pairs.
20045         (AARCH64_FUSE_MOV_MOVK): Likewise.
20046         (AARCH64_FUSE_ADRP_ADD): Likewise.
20047         (AARCH64_FUSE_MOVK_MOVK): Likewise.
20048         (AARCH64_FUSE_ADRP_LDR): Likewise.
20049         (AARCH64_FUSE_CMP_BRANCH): Likewise.
20051 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
20053         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
20054         SYMBOL_SMALL_GOT_28K.
20055         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
20056         relocation modifiers.
20057         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
20058         (ldr_got_small_28k_<mode>): New.
20059         (ldr_got_small_28k_sidi): New.
20060         * config/aarch64/iterators.md (got_modifier): New mode iterator.
20061         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
20062         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
20063         SYMBOL_SMALL_GOT_28K.
20064         (aarch64_rtx_costs): Add costs for new instruction sequences.
20065         (initialize_aarch64_code_model): Initialize new model.
20066         (aarch64_classify_symbol): Recognize new model and new symbol classification.
20067         (aarch64_asm_preferred_eh_data_format): Support new model.
20068         (aarch64_load_symref_appropriately): Generate new instruction
20069         sequences for -fpic.
20070         (TARGET_USE_PSEUDO_PIC_REG): New definition.
20071         (aarch64_use_pseudo_pic_reg): New function.
20073 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
20075         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
20076         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
20077         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
20078         (aarch64_expand_mov_immediate): Ditto.
20079         (aarch64_print_operand): Ditto.
20080         (aarch64_classify_symbol): Ditto.
20082 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
20084         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
20086 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
20088         PR bootstrap/66638
20089         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
20090         assertion failed.  Remove assertion itself.
20092 2015-06-26  Richard Biener  <rguenther@suse.de>
20094         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
20095         and -A CMP CST -> A CMP -CST which is redundant with a pattern
20096         in match.pd.
20097         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
20098         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
20099         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
20100         * match.pd: ... patterns here.
20102 2015-06-26  Marek Polacek  <polacek@redhat.com>
20104         * match.pd ((x | y) & ~(x & y) -> x ^ y,
20105         (x | y) & (~x ^ y) -> x & y): New patterns.
20107 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
20109         * rtl.h (emit): Add an optional boolean parameter to control
20110         whether barriers are emitted.
20111         * emit-rtl.c (emit): Likewise.
20112         * gensupport.c (get_emit_function): Return null rather than "emit".
20113         * genemit.c (gen_emit_seq): Handle the null return value.
20114         Don't emit barriers after the final instruction in the sequence.
20115         * gentarget-def.c (main): Don't emit barriers after the instruction.
20117 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20119         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
20120         TARGET_UNIFIED_ASM.
20122 2015-06-26  Richard Biener  <rguenther@suse.de>
20124         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
20126 2015-06-26  Richard Biener  <rguenther@suse.de>
20128         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
20129         irrespective on whether the inner operation has a single use
20130         of both off are constant.
20132 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
20133             Segher Boessenkool  <segher@kernel.crashing.org>
20135         PR target/66412
20136         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
20137         before doing PUT_MODE or PUT_CODE on operands to avoid
20138         in-place RTX modification.
20140 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20142         * gentarget-def.c (def_target_insn): Cast return of strtol to
20143         unsigned int.
20145 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20147         * gimple.h (gimple_call_set_fn): Move inline function.
20148         * gimple.c (gimple_call_set_fn): Relocate here.
20150 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
20152         PR target/65979
20153         PR target/66611
20154         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
20155         the replacement insn will work.
20157 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20159         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
20160         by default.
20162 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20164         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
20165         * cgraph.h: Include ipa-ref.h and plugin-api.h.
20166         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
20167         (symtab_node::address_can_be_compared_p): Move function.
20168         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
20169         definition here.
20170         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
20171         * auto-profile.c: Likewise.
20172         * bb-reorder.c: Likewise.
20173         * builtins.c: Likewise.
20174         * calls.c: Likewise.
20175         * cfgexpand.c: Likewise.
20176         * cgraphbuild.c: Likewise.
20177         * cgraphclones.c: Likewise.
20178         * cgraphunit.c: Likewise.
20179         * combine.c: Likewise.
20180         * coverage.c: Likewise.
20181         * data-streamer-in.c: Likewise.
20182         * data-streamer-out.c: Likewise.
20183         * data-streamer.c: Likewise.
20184         * dbxout.c: Likewise.
20185         * dwarf2out.c: Likewise.
20186         * except.c: Likewise.
20187         * expr.c: Likewise.
20188         * final.c: Likewise.
20189         * fold-const.c: Likewise.
20190         * ggc-page.c: Likewise.
20191         * gimple-fold.c: Likewise.
20192         * gimple-iterator.c: Likewise.
20193         * gimple-pretty-print.c: Likewise.
20194         * gimple-streamer-in.c: Likewise.
20195         * gimple-streamer-out.c: Likewise.
20196         * gimple.c: Likewise.
20197         * gimplify.c: Likewise.
20198         * ipa-chkp.c: Likewise.
20199         * ipa-comdats.c: Likewise.
20200         * ipa-cp.c: Likewise.
20201         * ipa-devirt.c: Likewise.
20202         * ipa-icf-gimple.c: Likewise.
20203         * ipa-icf.c: Likewise.
20204         * ipa-inline-analysis.c: Likewise.
20205         * ipa-inline-transform.c: Likewise.
20206         * ipa-inline.c: Likewise.
20207         * ipa-polymorphic-call.c: Likewise.
20208         * ipa-profile.c: Likewise.
20209         * ipa-prop.c: Likewise.
20210         * ipa-pure-const.c: Likewise.
20211         * ipa-ref.c: Likewise.
20212         * ipa-reference.c: Likewise.
20213         * ipa-split.c: Likewise.
20214         * ipa-utils.c: Likewise.
20215         * ipa-visibility.c: Likewise.
20216         * ipa.c: Likewise.
20217         * langhooks.c: Likewise.
20218         * lto-cgraph.c: Likewise.
20219         * lto-compress.c: Likewise.
20220         * lto-opts.c: Likewise.
20221         * lto-section-in.c: Likewise.
20222         * lto-section-out.c: Likewise.
20223         * lto-streamer-in.c: Likewise.
20224         * lto-streamer-out.c: Likewise.
20225         * lto-streamer.c: Likewise.
20226         * omp-low.c: Likewise.
20227         * opts-global.c: Likewise.
20228         * passes.c: Likewise.
20229         * predict.c: Likewise.
20230         * print-tree.c: Likewise.
20231         * profile.c: Likewise.
20232         * ree.c: Likewise.
20233         * sanopt.c: Likewise.
20234         * stor-layout.c: Likewise.
20235         * symtab.c: Likewise.
20236         * toplev.c: Likewise.
20237         * trans-mem.c: Likewise.
20238         * tree-cfg.c: Likewise.
20239         * tree-chkp.c: Likewise.
20240         * tree-eh.c: Likewise.
20241         * tree-emutls.c: Likewise.
20242         * tree-inline.c: Likewise.
20243         * tree-nested.c: Likewise.
20244         * tree-parloops.c: Likewise.
20245         * tree-pretty-print.c: Likewise.
20246         * tree-profile.c: Likewise.
20247         * tree-sra.c: Likewise.
20248         * tree-ssa-alias.c: Likewise.
20249         * tree-ssa-live.c: Likewise.
20250         * tree-ssa-loop-ivcanon.c: Likewise.
20251         * tree-ssa-loop-ivopts.c: Likewise.
20252         * tree-ssa-pre.c: Likewise.
20253         * tree-ssa-sccvn.c: Likewise.
20254         * tree-ssa-strlen.c: Likewise.
20255         * tree-ssa-structalias.c: Likewise.
20256         * tree-streamer-in.c: Likewise.
20257         * tree-streamer-out.c: Likewise.
20258         * tree-streamer.c: Likewise.
20259         * tree-switch-conversion.c: Likewise.
20260         * tree-tailcall.c: Likewise.
20261         * tree-vect-data-refs.c: Likewise.
20262         * tree-vect-stmts.c: Likewise.
20263         * tree-vectorizer.c: Likewise.
20264         * tree.c: Likewise.
20265         * tsan.c: Likewise.
20266         * ubsan.c: Likewise.
20267         * value-prof.c: Likewise.
20268         * varasm.c: Likewise.
20269         * varpool.c: Likewise.
20270         * config/arm/arm.c: Likewise.
20271         * config/bfin/bfin.c: Likewise.
20272         * config/c6x/c6x.c: Likewise.
20273         * config/cris/cris.c: Likewise.
20274         * config/darwin-c.c: Likewise.
20275         * config/darwin.c: Likewise.
20276         * config/i386/i386.c: Likewise.
20277         * config/i386/winnt.c: Likewise.
20278         * config/microblaze/microblaze.c: Likewise.
20279         * config/mips/mips.c: Likewise.
20280         * config/rs6000/rs6000.c: Likewise.
20281         * config/rx/rx.c: Likewise.
20282         * config/s390/s390.c: Likewise.
20283         * config/tilegx/mul-tables.c: Likewise.
20285 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20287         * config/aarch64/aarch64.c, config/alpha/alpha.c,
20288         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
20289         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
20290         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
20291         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20292         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20293         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20294         config/microblaze/microblaze.c, config/mips/mips.c,
20295         config/mmix/mmix.c, config/mn10300/mn10300.c,
20296         config/moxie/moxie.c, config/msp430/msp430.c,
20297         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20298         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20299         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20300         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20301         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20302         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20303         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
20304         target-def.h include.
20305         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
20307 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20309         * Makefile.in (TARGET_DEF): Add target-insns.def.
20310         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
20311         (build/gentarget-def.o): New rule.
20312         (genprogrtl): Add target-def.
20313         * target-insns.def, gentarget-def.c: New files.
20314         * target.def: Add targetm.have_* and targetm.gen_* hooks,
20315         based on the contents of target-insns.def.
20316         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
20317         (HAVE_return, gen_return): Delete.
20318         * target-def.h: Include insn-target-def.h.
20319         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
20320         instead of direct calls.  Rely on them to do the appropriate assertions.
20321         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
20322         (convert_jumps_to_returns): Use targetm interface instead of
20323         direct calls.
20324         (thread_prologue_and_epilogue_insns): Likewise.
20325         * reorg.c (find_end_label, dbr_schedule): Likewise.
20326         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
20327         * shrink-wrap.c (convert_to_simple_return): Likewise.
20328         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
20330 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20332         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
20333         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
20334         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
20335         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
20336         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20337         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20338         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20339         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
20340         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
20341         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20342         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20343         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20344         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20345         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20346         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20347         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
20348         includes to end.
20350 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20352         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
20353         (unbounded_int_hashmap_traits::key_type): Likewise.
20354         * hash-map.h (hash_map): Get the key type from the traits.
20355         * hash-traits.h (default_hash_traits): By default, inherit from the
20356         template parameter.
20357         * alias.c (alias_set_traits): Delete.
20358         (alias_set_entry_d::children): Use alias_set_hash as the first
20359         template parameter.
20360         (record_alias_subset): Update accordingly.
20361         * except.c (tree_hash_traits): Delete.
20362         (type_to_runtime_map): Use tree_hash as the first template parameter.
20363         (init_eh): Update accordingly.
20364         * genmatch.c (capture_id_map_hasher): Delete.
20365         (cid_map_t): Use nofree_string_hash as first template parameter.
20366         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
20367         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20368         Use symbol_compare_hash as the first template parameter in
20369         subdivide_hash_map.
20370         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
20371         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
20372         template parameter.
20373         * passes.c (pass_registry_hasher): Delete.
20374         (name_to_pass_map): Use nofree_string_hash as the first template
20375         parameter.
20376         (register_pass_name): Update accordingly.
20377         * sanopt.c (sanopt_tree_map_traits): Delete.
20378         (sanopt_tree_triplet_map_traits): Delete.
20379         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
20380         template parameter.
20381         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
20382         the first template parameter.
20383         * sese.c (rename_map_hasher): Delete.
20384         (rename_map_type): Use tree_ssa_name_hash as the first template
20385         parameter.
20386         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
20387         (function_summary::m_map): Use map_hash as the first template
20388         parameter.
20389         (function_summary::release): Update accordingly.
20390         * tree-if-conv.c (phi_args_hash_traits): Delete.
20391         (predicate_scalar_phi): Use tree_operand_hash as the first template
20392         parameter to phi_arg_map.
20393         * tree-inline.h (dependence_hasher): Delete.
20394         (copy_body_data::dependence_map): Use dependence_hash as the first
20395         template parameter.
20396         * tree-inline.c (remap_dependence_clique): Update accordingly.
20397         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
20398         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
20399         parameter.
20400         (addr_stridxptr): Update accordingly.
20401         * value-prof.c (profile_id_traits): Delete.
20402         (cgraph_node_map): Use profile_id_hash as the first template
20403         parameter.
20404         (init_node_map): Update accordingly.
20405         * config/alpha/alpha.c (string_traits): Delete.
20406         (machine_function::links): Use nofree_string_hash as the first
20407         template parameter.
20408         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
20409         * config/m32c/m32c.c (pragma_traits): Delete.
20410         (pragma_htab): Use nofree_string_hash as the first template parameter.
20411         (m32c_note_pragma_address): Update accordingly.
20412         * config/mep/mep.c (pragma_traits): Delete.
20413         (pragma_htab): Use nofree_string_hash as the first template parameter.
20414         (mep_note_pragma_flag): Update accordingly.
20415         * config/mips/mips.c (mips16_flip_traits): Delete.
20416         (mflip_mips16_htab): Use nofree_string_hash as the first template
20417         parameter.
20418         (mflip_mips16_use_mips16_p): Update accordingly.
20419         (local_alias_traits): Delete.
20420         (mips16_local_aliases): Use nofree_string_hash as the first template
20421         parameter.
20422         (mips16_local_alias): Update accordingly.
20424 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20426         * hash-map-traits.h (default_hashmap_traits): Delete.
20428 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20430         * hash-map-traits.h (unbounded_hashmap_traits): New class.
20431         (unbounded_int_hashmap_traits): Likewise.
20432         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
20434 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20436         * ipa-icf.h (symbol_compare_hash): New class.
20437         (symbol_compare_hashmap_traits): Use it.
20438         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
20439         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
20440         (mem_alloc_description::reverse_mem_map_t): Remove redundant
20441         default_hashmap_traits.
20442         * sanopt.c (sanopt_tree_triplet_hash): New class.
20443         (sanopt_tree_triplet_map_traits): Use it.
20445 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20447         * gengtype-parse.c (require_template_declaration): Allow '+' in
20448         template parameters.  Consolidate cases.
20449         * hash-traits.h (int_hash): New class.
20450         * alias.c (alias_set_hash): New structure.
20451         (alias_set_traits): Use it.
20452         * symbol-summary.h (function_summary::map_hash): New class.
20453         (function_summary::summary_hashmap_traits): Use it.
20454         * tree-inline.h (dependence_hash): New class.
20455         (dependence_hasher): Use it.
20456         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
20457         * value-prof.c (profile_id_hash): New class.
20458         (profile_id_traits): Use it.
20460 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20462         * config/mips/mips.c (mips16_flip_traits): Use it.
20463         (local_alias_traits, mips16_local_aliases): Convert from a map of
20464         rtxes to a map of symbol names.
20465         (mips16_local_alias): Update accordingly.
20467 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20469         * hash-traits.h (string_hash, nofree_string_hash): New classes.
20470         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
20471         * passes.c (pass_registry_hasher): Likewise.
20472         * config/alpha/alpha.c (string_traits): Likewise.
20473         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
20474         * config/m32c/m32c.c (pragma_traits): Likewise.
20475         * config/mep/mep.c (pragma_traits): Likewise.
20477 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20479         * tree-hash-traits.h (tree_hash): New class.
20480         * except.c: Include tree-hash-traits.h.
20481         (tree_hash_traits): Use tree_hash.
20483 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20485         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
20486         * sese.c: Include tree-hash-traits.h.
20487         (rename_map_hasher): Use tree_ssa_name_hasher.
20489 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20491         * tree-hash-traits.h (tree_decl_hash): New class.
20492         * tree-ssa-strlen.c: Include tree-hash-traits.h.
20493         (stridxlist_hash_traits): Use tree_decl_hash.
20495 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20497         * tree-hash-traits.h: New file.
20498         (tree_operand_hash): New class.
20499         * sanopt.c: Include tree-hash-traits.h.
20500         (sanopt_tree_map_traits): Use tree_operand_hash.
20501         * tree-if-conv.c: Include tree-hash-traits.h.
20502         (phi_args_hash_traits): Use tree_operand_hash.
20503         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
20504         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
20506 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20508         * hash-map-traits.h: Include hash-traits.h.
20509         (simple_hashmap_traits): New class.
20510         * mem-stats.h (hash_map): Change the default traits to
20511         simple_hashmap_traits<default_hash_traits<Key> >.
20513 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20515         * hash-table.h: Update comments.
20517 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20519         * hash-traits.h (default_hash_traits): New structure.
20520         * hash-set.h (default_hashset_traits): Delete.
20521         (hash_set): Use default_hash_traits<Key> instead of
20522         default_hashset_traits.  Delete hash_entry type and use Key directly.
20523         * ipa-devirt.c (pair_traits): Delete.
20524         (default_hash_traits <type_pair>): Override.
20525         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
20526         (odr_types_equivalent_p, add_type_duplicate): Likewise.
20528 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20530         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
20532 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20534         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
20535         (has_is_empty, is_empty_helper): Delete.
20536         (has_mark_deleted, mark_deleted_helper): Delete.
20537         (has_mark_empty, mark_empty_helper): Delete.
20538         (hash_table::is_deleted): Call the Descriptor unconditionally.
20539         (hash_table::is_empty): Likewise.
20540         (hash_table::mark_deleted): Likewise.
20541         (hash_table::mark_empty): Likewise.
20543 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20545         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
20546         redundant typedefs and members.
20547         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
20548         redundant typedefs.
20549         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
20550         * ipa-devirt.c (odr_name_hasher): Likewise.
20551         (polymorphic_call_target_hasher): Likewise.
20552         * ira-costs.c (cost_classes_hasher): Likewise.
20553         * statistics.c (stats_counter_hasher): Likewise.
20554         * trans-mem.c (log_entry_hasher): Likewise.
20555         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20556         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
20557         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
20558         * var-tracking.c (variable_hasher): Likewise.
20559         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
20560         Remove redundant typedefs and members.
20562 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20564         * hash-traits.h (ggc_cache_hasher): Rename to...
20565         (ggc_cache_remove): ...this and remove typedefs.
20566         (ggc_cache_ptr_hash): New class.
20567         * hash-table.h: Update commentary.
20568         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
20569         rather than ggc_cache_hasher.
20570         (const_wide_int_hasher, reg_attr_hasher): Likewise.
20571         (const_double_hasher, const_fixed_hasher): Likewise.
20572         * function.c (insn_cache_hasher): Likewise.
20573         * trans-mem.c (tm_wrapper_hasher): Likewise.
20574         * tree.h (tree_decl_map_cache_hasher): Likewise.
20575         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
20576         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
20577         * ubsan.c (tree_type_map_cache_hasher): Likewise.
20578         * varasm.c (tm_clone_hasher): Likewise.
20579         * config/i386/i386.c (dllimport_hasher): Likewise.
20580         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
20581         (tree_hasher): Likewise.
20583 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20585         * hash-traits.h (ggc_hasher): Rename to...
20586         (ggc_remover): ...this and remove typedefs.
20587         (ggc_cache_hasher): Update accordingly.  Add typedefs.
20588         (ggc_ptr_hash): New class.
20589         * hash-table.h: Update comment.
20590         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
20591         ggc_hasher.
20592         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
20593         (tree_descriptor_hasher): Likewise.
20594         * cgraph.c (function_version_hasher): Likewise.
20595         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
20596         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
20597         (dw_loc_list_hasher, addr_hasher): Likewise.
20598         * function.h (used_type_hasher): Likewise.
20599         * function.c (temp_address_hasher): Likewise.
20600         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
20601         * libfuncs.h (libfunc_hasher): Likewise.
20602         * lto-streamer.h (decl_state_hasher): Likewise.
20603         * optabs.c (libfunc_decl_hasher): Likewise.
20604         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
20605         * varasm.c (section_hasher, object_block_hasher): Likewise.
20606         (const_rtx_desc_hasher): Likewise.
20607         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
20608         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
20610 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20612         * hash-traits.h (free_ptr_hash): New class.
20613         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
20614         rather than typed_free_remove.  Remove redudant typedefs.
20615         (external_ref_hasher): Likewise.
20616         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
20617         (ehspec_hasher): Likewise.
20618         * ggc-common.c (saving_hasher): Likewise.
20619         * gimplify.c (gimplify_hasher): Likewise.
20620         * haifa-sched.c (delay_i2_hasher): Likewise.
20621         * loop-invariant.c (invariant_expr_hasher): Likewise.
20622         * loop-iv.c (biv_entry_hasher): Likewise.
20623         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
20624         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
20625         * tree-cfg.c (locus_discrim_hasher): Likewise.
20626         * tree-eh.c (finally_tree_hasher): Likewise.
20627         * tree-into-ssa.c (var_info_hasher): Likewise.
20628         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
20629         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
20630         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
20631         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
20632         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
20633         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
20634         (shared_bitmap_hasher): Likewise.
20635         * tree-ssa-threadupdate.c (redirection_data): Likewise.
20636         * tree-vectorizer.h (peel_info_hasher): Likewise.
20637         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
20638         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
20640 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20642         * hash-table.h: Update comments.
20643         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
20644         (nofree_ptr_hash): New class.
20645         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
20646         than typed_noop_remove.  Remove redudant typedefs.
20647         * attribs.c (attribute_hasher): Likewise.
20648         * cfg.c (bb_copy_hasher): Likewise.
20649         * cselib.c (cselib_hasher): Likewise.
20650         * dse.c (invariant_group_base_hasher): Likewise.
20651         * dwarf2cfi.c (trace_info_hasher): Likewise.
20652         * dwarf2out.c (macinfo_entry_hasher): Likewise.
20653         (comdat_type_hasher, loc_list_hasher): Likewise.
20654         * gcse.c (pre_ldst_expr_hasher): Likewise.
20655         * genmatch.c (id_base): Likewise.
20656         * genrecog.c (test_pattern_hasher): Likewise.
20657         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
20658         * haifa-sched.c (delay_i1_hasher): Likewise.
20659         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
20660         * ipa-icf.h (congruence_class_group_hash): Likewise.
20661         * ipa-profile.c (histogram_hash): Likewise.
20662         * ira-color.c (allocno_hard_regs_hasher): Likewise.
20663         * lto-streamer.h (string_slot_hasher): Likewise.
20664         * lto-streamer.c (tree_entry_hasher): Likewise.
20665         * plugin.c (event_hasher): Likewise.
20666         * postreload-gcse.c (expr_hasher): Likewise.
20667         * store-motion.c (st_expr_hasher): Likewise.
20668         * tree-sra.c (uid_decl_hasher): Likewise.
20669         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
20670         (ssa_name_var_hash): Likewise.
20671         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
20672         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
20673         * tree-ssa-pre.c (pre_expr_d): Likewise.
20674         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
20675         * vtable-verify.h (registration_hasher): Likewise.
20676         * vtable-verify.c (vtbl_map_hasher): Likewise.
20677         * config/arm/arm.c (libcall_hasher): Likewise.
20678         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
20679         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
20680         * config/sol2.c (comdat_entry_hasher): Likewise.
20681         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
20682         (print_fold_checksum, fold_checksum_tree): Likewise.
20683         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
20684         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
20685         (fold_build_call_array_loc): Likewise.
20686         * tree-ssa-ccp.c (gimple_htab): Likewise.
20687         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
20688         rather than pointer_type.
20690 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20692         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
20693         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
20695 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20697         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
20698         (ggc_hasher::ggc_mx): Likewise.
20699         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
20700         that duplicate ggc_hasher ones.
20702 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20704         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
20705         (gt_cleare_cache): Check here for deleted and empty entries.
20706         Replace handle_cache_entry with a call to keep_cache_entry.
20707         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
20708         (ggc_cache_hasher::keep_cache_entry): New function.
20709         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
20710         (tm_wrapper_hasher::keep_cache_entry): New function.
20711         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
20712         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20713         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
20714         (type_cache_hasher::keep_cache_entry): New function.
20715         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
20716         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20717         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
20718         (tree_type_map_cache_hasher::keep_cache_entry): New function.
20719         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
20720         (tm_clone_hasher::keep_cache_entry): New function.
20721         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
20722         (dllimport_hasher::keep_cache_entry): New function.
20724 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20726         * hash-table.h: Include hash-traits.h.
20727         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
20728         (ggc_cache_hasher): Move to...
20729         * hash-traits.h: ...this new file.
20731 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20733         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
20734         struct cl_optimization.
20735         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
20736         * tree.c (make_node_stat): Allocate cl_optimization struct.
20737         (copy_node_stat): Allocate and copy cl_optimization struct.
20739 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20741         * function.h (struct incoming_args): Move struct.
20742         (pass_by_reference, reference_callee_copied): Remove prototypes.
20743         * emit-rtl.h (struct incoming_args): Relocate struct here.
20744         * calls.h (pass_by_reference, reference_callee_copied): Relocate
20745         prototypes here.
20746         * function.c (pass_by_reference, reference_callee_copied): Move.
20747         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
20748         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
20749         * ipa-chkp.c: Include calls.h.
20751 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
20753         * alias.h (alias_set_type): Move typedef.
20754         * coretypes.h (alias_set_type): Relocate typedef here.
20755         * rtl.h: Don't include alias.h.
20757 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20759         * cgraph.h (cgraph_rtl_info): Move to rtl.h
20760         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
20761         and instance.
20762         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
20763         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
20764         doesn't exist.
20765         * calls.c: Include hard-reg-set.h before rtl.h.
20766         * ira.c: Likewise.
20768 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
20769             Vladimir Makarov  <vmakarov@redhat.com>
20771         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
20772         Add assert.
20774 2015-06-25  Richard Biener  <rguenther@suse.de>
20776         * fold-const.c (fold_binary_loc): Move simplification of
20777         (X <<>> C1) & C2 ...
20778         * match.pd: ... here.
20780 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
20782         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
20784 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20786         * match.pd: Add patterns for vec_conds between 1 and 0.
20788 2015-06-25  Richard Biener  <rguenther@suse.de>
20790         * tree-vect-stmts.c (vectorizable_conversion): Do not set
20791         STMT_VINFO_VEC_STMT for SLP.
20792         (vectorizable_store): Likewise.
20793         (vectorizable_load): Likewise.
20794         (vect_transform_stmt): Catch SLP vectorization clobbering
20795         STMT_VINFO_VEC_STMT.
20797 2015-06-25  Richard Biener  <rguenther@suse.de>
20799         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
20800         dumping.
20801         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
20802         cleanup resulting dead code and parameters.
20803         (vect_transform_slp_perm_load): Adjust.
20805 2015-06-25  Nick Clifton  <nickc@redhat.com>
20807         * config/bfin/bfin.c (bfin_expand_prologue): Set
20808         current_function_static_stack_size if flag_stack_usage_info is set.
20809         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
20810         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
20811         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20812         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
20814 2015-06-25  Tom de Vries  <tom@codesourcery.com>
20816         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
20817         comment that the generated IV is unsigned.
20819 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20821         PR target/29693
20822         * config/arm/arm.c (arm_dbx_register_number): Return
20823         DWARF_FRAME_REGISTERS by default.
20825 2015-06-25  Tom de Vries  <tom@codesourcery.com>
20827         * dominance.c (calculate_dominance_info): Fix verify_dominators call
20828         argument.  Call verify_dominator when reusing dominator info.
20830 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
20832         PR target/66563
20833         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
20834         an additional element of the unspec vector.  Modify indices
20835         of operands.
20836         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
20837         * config/sh/sh.c (prepare_move_operands): Pass incremented
20838         const_int to gen_GOTaddr2picreg.
20839         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
20841 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20843         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
20844         Condition on TARGET_FLOAT.
20846 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20848         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
20849         and (no)crypto.
20851 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20853         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
20855         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
20856         aarch64_err_no_fpadvsimd.
20858         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
20859         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
20860         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
20861         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
20862         Turn error into assert, test TARGET_FLOAT.
20863         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
20864         TARGET_FLOAT.
20866 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
20868         PR debug/66482
20869         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
20871 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
20873         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
20875 2015-06-24  Renlin Li <renlin.li@arm.com>
20877         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
20878         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
20880 2015-06-24  Richard Biener  <rguenther@suse.de>
20882         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
20883         (main): Likewise.
20884         (lower_opt_convert): Support lowering of conditional view_convert.
20885         (parser::parse_operation): Likewise.
20886         (parser::parse_for): Likewise.
20888 2015-06-24  Renlin Li  <renlin.li@arm.com>
20890         * varasm.c (emit_local): Use unsigned int for align variable.
20892 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20894         PR target/63408
20895         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
20896         for negative numbers.
20898 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20900         PR rtl-optimization/66306
20901         * reload.c (find_reloads): Swap the match_dup info for
20902         commutative operands.
20904 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20906         * config/s390/vx-builtins.md
20907         ("vec_scatter_element<mode>_<non_vec_int>")
20908         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
20909         attribute with bhfgq.
20911 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20913         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
20915 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20917         * config/s390/s390-builtin-types.def: Add flag to indicate the
20918         options under which the function type is needed.
20919         * config/s390/s390-builtins.def: Add flag to indicate the options
20920         under which the builtin is enabled.
20921         * config/s390/s390-builtins.h: Add flags parameter to macro
20922         definitions.
20923         (bflags_for_builtin): New function.
20924         (flags_for_builtin): Renamed to ...
20925         (opflags_for_builtin): ... this.
20926         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
20927         flags_for_builtin to bflags_for_builtin and
20928         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
20929         * config/s390/s390.c: Add initialization of bflags_builtin and
20930         opflags_builtin arrays.
20931         Remove code for flags_builtin.
20932         (s390_init_builtins): Only create builtin function types if one of
20933         their flags is active.
20934         Only create builtins if all of their flags are active.
20935         (s390_expand_builtin): Rename flags_for_builtin to
20936         opflags_for_builtin.
20938 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20940         * config/s390/vecintrin.h: Remove internal builtins.
20942 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20944         * config/s390/s390.c (s390_secondary_reload): Fix check for
20945         GENERAL_REGS register class.
20947 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20949         * config/s390/s390.c (s390_support_vector_misalignment): Call
20950         default implementation for !TARGET_VX.
20952 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20954         * config/s390/s390.c (s390_legitimate_constant_p): Add
20955         TARGET_VX check.
20957 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20959         * config/s390/s390.c (s390_vector_abi): New variable definition.
20960         (s390_check_type_for_vector_abi): New function.
20961         (TARGET_ASM_FILE_END): New macro definition.
20962         (s390_asm_file_end): New function.
20963         (s390_function_arg): Call s390_check_type_for_vector_abi.
20964         (s390_gimplify_va_arg): Likewise.
20965         * configure: Regenerate.
20966         * configure.ac: Check for .gnu_attribute Binutils feature.
20968 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
20970         PR target/65803
20971         * config/bfin/bfin.c (hwloop_optimize): Initialize
20972         JUMP_LABEL for newly created jump.
20974 2015-06-23  Tristan Gingold  <gingold@adacore.com>
20976         * collect-utils.c (collect_wait): Unlink the response file here
20977         instead of...
20978         (do_wait): ...here.
20979         (utils_cleanup): ...and here.
20981 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
20983         * df-scan.c: Don't include target-def.h.
20984         * targhooks.c: Likewise.
20985         * config/arm/arm-c.c: Likewise.
20986         * config/i386/i386-c.c: Likewise.
20987         * config/nds32/nds32-cost.c: Likewise.
20988         * config/nds32/nds32-fp-as-gp.c: Likewise.
20989         * config/nds32/nds32-intrinsic.c: Likewise.
20990         * config/nds32/nds32-isr.c: Likewise.
20991         * config/nds32/nds32-md-auxiliary.c: Likewise.
20992         * config/nds32/nds32-memory-manipulation.c: Likewise.
20993         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20994         * config/nds32/nds32-predicates.c: Likewise.
20996 2015-06-23  Richard Biener  <rguenther@suse.de>
20998         PR tree-optimization/66636
20999         * tree-vect-stmts.c (vectorizable_store): Properly compute the
21000         def type for further defs for strided stores.
21002 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
21004         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
21005         conditional selects.
21006         (setcc_int<mode>, setcc_float<mode>): Reformat.
21008 2015-06-23  Marek Polacek  <polacek@redhat.com>
21010         * match.pd ((x + y) - (x | y) -> x & y,
21011         (x + y) - (x & y) -> x | y): New patterns.
21013 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
21015         PR 65711
21016         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
21017         '-dynamic-linker' within %{!shared: ...}.
21019 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
21021         PR target/66560
21022         * config/i386/predicates.md (addsub_vm_operator): New predicate.
21023         (addsub_vs_operator): Ditto.
21024         (addsub_vs_parallel): Ditto.
21025         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
21026         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
21027         Put minus RTX before plus and adjust vec_merge selector.
21028         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
21029         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
21030         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
21031         (addsub vec_merge splitters): New combiner splitters.
21032         (addsub vec_select/vec_concat splitters): Ditto.
21034 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
21036         PR tree-optimization/66449
21037         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
21038         POINTER_PLUS_EXPR for pointers.
21040 2015-06-23  Alan Modra  <amodra@gmail.com>
21042         * rtlanal.c (commutative_operand_precedence): Correct comments.
21043         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
21044         declaration.  Return an int.  Distinguish REG,REG return from
21045         others.
21046         (struct simplify_plus_minus_op_data): Make local to function.
21047         (simplify_plus_minus): Don't set canonicalized if merely sorting
21048         registers.  Avoid packing ops if nothing changes.  White space fixes.
21050 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
21052         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
21053         -fdump-ada-spec is passed but not if -fsyntax-only is.
21055 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
21057         PR bootstrap/63740
21058         * lra-lives.c (process_bb_lives): Check insn copying the same
21059         reload pseudo and don't create a copy for it.
21061 2015-06-22  Tom de Vries  <tom@codesourcery.com>
21063         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
21064         for cond_stmt.
21066 2015-06-22  Tom de Vries  <tom@codesourcery.com>
21068         * builtins.def (DEF_GOMP_BUILTIN): Test
21069         'flag_tree_parallelize_loops > 1' instead of
21070         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
21072 2015-06-22  Tom de Vries  <tom@codesourcery.com>
21074         * dominance.c (calculate_dominance_info): Verify dominators if
21075         early-out.
21077 2015-06-22  Marek Polacek  <polacek@redhat.com>
21079         * match.pd ((x ^ y) ^ (x | y) -> x & y,
21080         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
21081         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
21082         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
21084 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
21086         PR target/65871
21087         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
21088         cost of embedded comparison.
21090 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21092         PR target/65914
21093         * config/rs6000/predicates.md (altivec_register_operand): Permit
21094         virtual stack registers.
21095         (vsx_register_operand): Likewise.
21096         (vfloat_operand): Likewise.
21097         (vint_operand): Likewise.
21098         (vlogical_operand): Likewise.
21100 2015-06-22  Richard Biener  <rguenther@suse.de>
21102         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
21103         and single_scalar_iteration_cost members.
21104         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
21105         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
21106         (vect_get_single_scalar_iteration_cost): Remove.
21107         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21108         Use LOOP_VINFO_SCALAR_ITERATION_COST.
21109         * tree-vect-loop.c (destroy_loop_vec_info): Free
21110         scalar_cost_vec.
21111         (vect_get_single_scalar_iteration_cost): Compute result into
21112         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
21113         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
21114         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
21115         (vect_estimate_min_profitable_iters): Use them.
21117 2015-06-22  Christian Bruel  <christian.bruel@st.com>
21119         PR target/52144
21120         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
21121         (TARGET_INSERT_ATTRIBUTES): Define.
21122         (thumb_flipper): New var.
21123         * config/arm/arm.opt (-mflip-thumb): New switch.
21125 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
21126             Martin Liska  <mliska@suse.cz>
21128         PR ipa/65908
21129         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
21130         construction of arg_types.
21131         (sem_function::sem_function): Likewise.
21132         (sem_function::~sem_function): Remove destruction of arg_types.
21133         (sem_function::compatible_parm_types_p): New function.
21134         (sem_function::equals_wpa): Reorg matching of return values
21135         and parameter types.
21136         (sem_function::equals_private): Reorg mathcing of argument types.
21137         (sem_function::parse_tree_args): Remove.
21138         * ipa-icf.h (init_wpa): Do not call it.
21139         (parse_tree_args): Remove.
21140         (compatible_parm_types_p): Declare.
21141         (result_type): Remove.
21142         (arg_types): Remove.
21144 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
21146         PR ipa/66351
21147         * ipa-polymorphic-call.c
21148         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
21149         initializing alias oracle; fix formating; set base_alias_set if it
21150         is known.
21152 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
21154         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
21155         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
21156         (find_inc): Likewise.
21157         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
21158         swapping.
21159         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
21160         * df-scan.c (df_swap_refs): Remove.
21161         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
21162         * dominance.c (link_roots): Use std::swap instead of manually swapping.
21163         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
21164         * fold-const.c (fold_relational_const): Likewise.
21165         * genattrtab.c (simplify_test_exp): Likewise.
21166         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
21167         gimple_simplify): Likewise.
21168         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
21169         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
21170         * ipa-devirt.c (add_type_duplicate): Likewise.
21171         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
21172         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
21173         * lra.c (lra_create_copy): Likewise.
21174         * lto-streamer-out.c (DFS::DFS): Likewise.
21175         * modulo-sched.c (get_sched_window): Likewise.
21176         * omega.c (omega_pretty_print_problem): Likewise.
21177         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
21178         * reload1.c (reloads_unique_chain_p): Likewise.
21179         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
21180         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
21181         use std::swap.
21182         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
21183         manually swapping.
21184         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
21185         predicate_mem_writes): Likewise.
21186         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
21187         * tree-predcom.c (combine_chains): Likewise.
21188         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
21189         refs_may_alias_p_1): Likewise.
21190         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
21191         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
21192         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
21193         number_of_iterations_cond): Likewise.
21194         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
21195         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
21196         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
21197         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
21198         * tree-vrp.c (extract_range_from_binary_expr_1,
21199         extract_range_from_unary_expr_1): Likewise.
21201 2015-06-20  Marek Polacek  <polacek@redhat.com>
21203         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
21205 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
21207         PR target/66591
21208         * config/sh/sh.c (prepare_move_operands): Replace subreg
21209         index term with R0 for base and index addressing.
21211 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
21213         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
21214         op1 is an fp zero.
21215         (movsf_aarch64): Change condition from register_operand to
21216         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
21217         load1.  Change type for alternative 7 to store1.
21218         (movdf_aarch64): Likewise.
21220 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
21222         * config/vax/vax.md: Adjust sign/zero extend patterns to
21223         handle SUBREGs in operands[1].
21225 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21227         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
21228         of manually swapping.
21229         (expand_vec_perm_interleave2): Likewise.
21231 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
21233         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
21234         reuse bounds created for abnormal ssa names.
21236 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
21238         * config/nvptx/nvptx.md (allocate_stack): Rename to...
21239         (allocate_stack_<mode>): ... this, and add :P on both
21240         match_operand and unspec.
21241         (allocate_stack): New expander.
21243 2015-06-19  Christian Bruel  <christian.bruel@st.com>
21245         PR target/66541
21246         PR target/52144
21247         * config/arm/arm.c (arm_set_current_function): Handle
21248         explicit default options.
21250 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
21252         * config/i386/i386.md (*movsicc_noc_zext): New insn.
21253         (zero-extended cmove with mem peephole2): New pattern.
21254         (cmove with mem peephole2): Merge patterns.
21256 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
21258         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
21260 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
21262         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
21263         * config/mips/mips.md (*madd4<mode>): Ditto.
21264         (*nmadd3<mode>) Ditto.
21265         (*nmadd4<mode>_fastmath): Ditto.
21266         (*nmadd3<mode>_fastmath): Ditto.
21267         (*nmsub4<mode>): Ditto.
21268         (*nmsub3<mode>): Ditto.
21269         (*nmsub4<mode>_fastmath): Ditto.
21270         (*nmsub3<mode>_fastmath): Ditto.
21272 2015-06-18  Michael Matz  <matz@suse.de>
21274         PR middle-end/66253
21275         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
21276         grouped strided stores.
21277         (vectorizable_load): Don't use the DR from first_stmt in
21278         the non-SLP grouped strided case.
21280 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
21282         PR target/66569
21283         * function.c (assign_bounds): Add arguments assign_regs,
21284         assign_special, assign_bt.
21285         (assign_parms): For vararg functions handle bounds in BT
21286         and special slots after incoming vararg bounds.
21288 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
21290         PR middle-end/66568
21291         * cfgexpand.c (expand_return): Handle missing bounds.
21292         (expand_gimple_stmt_1): Likewise.
21293         * tree-chkp.c (chkp_expand_zero_bounds): New.
21294         * tree-chkp.h (chkp_expand_zero_bounds): New.
21296 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
21298         PR middle-end/66567
21299         * ipa-chkp.c (chkp_maybe_create_clone): Require
21300         functions to be instrumentable.
21301         * tree-chkp.c (chkp_replace_function_pointer): Use
21302         chkp_instrumentable_p instead of attribute check.
21304 2015-06-18  Richard Biener  <rguenther@suse.de>
21306         PR tree-optimization/66510
21307         * tree-vect-stmts.c (vectorizable_load): Properly compute the
21308         number of vector loads for SLP permuted loads.
21309         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
21310         check the stride for loop vectorization.
21311         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
21312         vectorization factor.
21313         (vect_analyze_group_access): If the group size is not a power
21314         of two require a epilogue loop.
21315         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
21316         compute and optimizing and alias test pruning after final
21317         vectorization factor computation.
21318         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
21319         vector alignment.
21320         (vect_transform_slp_perm_load): Properly compute the original
21321         number of vector load stmts.
21323 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
21325         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
21326         "unlikely character , in @var" warning.
21328 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
21330         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
21331         (ix86_function_arg_advance): Ditto.
21332         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
21334 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
21336         * function.h (struct rtl_data): Remove struct and accessor macros.
21337         * emit-rtl.h (struct rtl_data): Relocate to here.
21338         * Makefile.in (GTFILES): Add emit-rtl.h.
21339         * df-core.c: Include emit-rtl.h.
21340         * genattrtab.c: Likewise.
21341         * genconditions.c: Likewise.
21342         * genpreds.c: Likewise.
21343         * genrecog.c: Likewise.
21344         * regcprop.c: Likewise.
21345         * resource.c: Likewise.
21346         * sched-rgn.c: Likewise.
21347         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21348         * config/i386/winnt.c: Likewise.
21350 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
21352         PR middle-end/66429
21353         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
21354         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
21355         and has_force_vectorize_loops flags from cfun into
21356         child_cfun.
21357         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
21358         if simduid is non-NULL.
21359         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
21360         * passes.def (pass_simduid_cleanup): Add new pass after loop
21361         passes.
21362         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
21363         indirection from htab argument's type.
21364         (shrink_simd_arrays): New function.
21365         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
21366         Don't call adjust_simduid_builtins if there are no loops.
21367         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
21368         (pass_simduid_cleanup::execute): New method.
21369         (make_pass_simduid_cleanup): New function.
21371 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
21373         * tree-core.h (tree_target_option): Make opts field a pointer to a
21374         cl_target_option instead of an instance of the struct.
21375         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
21376         the structure.
21377         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
21378         TARGET_OPTION_NODE.
21379         (copy_node_stat): Allocate and copy struct cl_target_option.
21381 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
21383         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
21384         Remove conditional exposure of prototypes.
21385         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
21386         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
21387         definitions in tree.h with functions.
21388         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
21389         anon_aggrname_p.
21390         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
21392 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
21394         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
21395         (*cmp<mode>_signed): ... this.
21396         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
21397         (*cmp<mode>_unsigned): ... this.  Remove %b.
21399 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
21401         * coretypes.h: Include input.h and as-a.h.
21402         * rtl.h: Include input.h and as-a.h for generator files.
21403         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
21404         * vec.c: Don't include diagnostic-core.h.
21405         * alias.c: Do not include input.h, line-map.h or is-a.h.
21406         * asan.c: Likewise.
21407         * attribs.c: Likewise.
21408         * auto-inc-dec.c: Likewise.
21409         * auto-profile.c: Likewise.
21410         * bb-reorder.c: Likewise.
21411         * bt-load.c: Likewise.
21412         * builtins.c: Likewise.
21413         * caller-save.c: Likewise.
21414         * calls.c: Likewise.
21415         * ccmp.c: Likewise.
21416         * cfg.c: Likewise.
21417         * cfganal.c: Likewise.
21418         * cfgbuild.c: Likewise.
21419         * cfgcleanup.c: Likewise.
21420         * cfgexpand.c: Likewise.
21421         * cfghooks.c: Likewise.
21422         * cfgloop.c: Likewise.
21423         * cfgloop.h: Likewise.
21424         * cfgloopanal.c: Likewise.
21425         * cfgloopmanip.c: Likewise.
21426         * cfgrtl.c: Likewise.
21427         * cgraph.c: Likewise.
21428         * cgraphbuild.c: Likewise.
21429         * cgraphclones.c: Likewise.
21430         * cgraphunit.c: Likewise.
21431         * cilk-common.c: Likewise.
21432         * combine-stack-adj.c: Likewise.
21433         * combine.c: Likewise.
21434         * compare-elim.c: Likewise.
21435         * convert.c: Likewise.
21436         * coverage.c: Likewise.
21437         * cppbuiltin.c: Likewise.
21438         * cprop.c: Likewise.
21439         * cse.c: Likewise.
21440         * cselib.c: Likewise.
21441         * data-streamer-in.c: Likewise.
21442         * data-streamer-out.c: Likewise.
21443         * data-streamer.c: Likewise.
21444         * dbxout.c: Likewise.
21445         * dce.c: Likewise.
21446         * ddg.c: Likewise.
21447         * debug.c: Likewise.
21448         * df-core.c: Likewise.
21449         * df-problems.c: Likewise.
21450         * df-scan.c: Likewise.
21451         * df.h: Likewise.
21452         * dfp.c: Likewise.
21453         * diagnostic-core.h: Likewise.
21454         * diagnostic.c: Likewise.
21455         * dojump.c: Likewise.
21456         * dominance.c: Likewise.
21457         * domwalk.c: Likewise.
21458         * double-int.c: Likewise.
21459         * dse.c: Likewise.
21460         * dumpfile.c: Likewise.
21461         * dumpfile.h: Likewise.
21462         * dwarf2asm.c: Likewise.
21463         * dwarf2cfi.c: Likewise.
21464         * dwarf2out.c: Likewise.
21465         * emit-rtl.c: Likewise.
21466         * et-forest.c: Likewise.
21467         * except.c: Likewise.
21468         * explow.c: Likewise.
21469         * expmed.c: Likewise.
21470         * expr.c: Likewise.
21471         * final.c: Likewise.
21472         * fixed-value.c: Likewise.
21473         * fold-const.c: Likewise.
21474         * function.c: Likewise.
21475         * fwprop.c: Likewise.
21476         * gcc-plugin.h: Likewise.
21477         * gcse.c: Likewise.
21478         * generic-match-head.c: Likewise.
21479         * ggc-page.c: Likewise.
21480         * gimple-builder.c: Likewise.
21481         * gimple-expr.c: Likewise.
21482         * gimple-fold.c: Likewise.
21483         * gimple-iterator.c: Likewise.
21484         * gimple-low.c: Likewise.
21485         * gimple-match-head.c: Likewise.
21486         * gimple-pretty-print.c: Likewise.
21487         * gimple-ssa-isolate-paths.c: Likewise.
21488         * gimple-ssa-strength-reduction.c: Likewise.
21489         * gimple-streamer-in.c: Likewise.
21490         * gimple-streamer-out.c: Likewise.
21491         * gimple-streamer.h: Likewise.
21492         * gimple-walk.c: Likewise.
21493         * gimple.c: Likewise.
21494         * gimplify-me.c: Likewise.
21495         * gimplify.c: Likewise.
21496         * godump.c: Likewise.
21497         * graph.c: Likewise.
21498         * graphite-blocking.c: Likewise.
21499         * graphite-dependences.c: Likewise.
21500         * graphite-interchange.c: Likewise.
21501         * graphite-isl-ast-to-gimple.c: Likewise.
21502         * graphite-optimize-isl.c: Likewise.
21503         * graphite-poly.c: Likewise.
21504         * graphite-scop-detection.c: Likewise.
21505         * graphite-sese-to-poly.c: Likewise.
21506         * graphite.c: Likewise.
21507         * haifa-sched.c: Likewise.
21508         * hw-doloop.c: Likewise.
21509         * ifcvt.c: Likewise.
21510         * init-regs.c: Likewise.
21511         * input.c: Likewise.
21512         * internal-fn.c: Likewise.
21513         * ipa-chkp.c: Likewise.
21514         * ipa-comdats.c: Likewise.
21515         * ipa-cp.c: Likewise.
21516         * ipa-devirt.c: Likewise.
21517         * ipa-icf-gimple.c: Likewise.
21518         * ipa-icf.c: Likewise.
21519         * ipa-inline-analysis.c: Likewise.
21520         * ipa-inline-transform.c: Likewise.
21521         * ipa-inline.c: Likewise.
21522         * ipa-polymorphic-call.c: Likewise.
21523         * ipa-profile.c: Likewise.
21524         * ipa-prop.c: Likewise.
21525         * ipa-pure-const.c: Likewise.
21526         * ipa-ref.c: Likewise.
21527         * ipa-reference.c: Likewise.
21528         * ipa-split.c: Likewise.
21529         * ipa-utils.c: Likewise.
21530         * ipa-visibility.c: Likewise.
21531         * ipa.c: Likewise.
21532         * ira-build.c: Likewise.
21533         * ira-color.c: Likewise.
21534         * ira-conflicts.c: Likewise.
21535         * ira-costs.c: Likewise.
21536         * ira-emit.c: Likewise.
21537         * ira-lives.c: Likewise.
21538         * ira.c: Likewise.
21539         * jump.c: Likewise.
21540         * langhooks.c: Likewise.
21541         * lcm.c: Likewise.
21542         * loop-doloop.c: Likewise.
21543         * loop-init.c: Likewise.
21544         * loop-invariant.c: Likewise.
21545         * loop-iv.c: Likewise.
21546         * loop-unroll.c: Likewise.
21547         * lower-subreg.c: Likewise.
21548         * lra-assigns.c: Likewise.
21549         * lra-coalesce.c: Likewise.
21550         * lra-constraints.c: Likewise.
21551         * lra-eliminations.c: Likewise.
21552         * lra-lives.c: Likewise.
21553         * lra-remat.c: Likewise.
21554         * lra-spills.c: Likewise.
21555         * lra.c: Likewise.
21556         * lto-cgraph.c: Likewise.
21557         * lto-compress.c: Likewise.
21558         * lto-opts.c: Likewise.
21559         * lto-section-in.c: Likewise.
21560         * lto-section-out.c: Likewise.
21561         * lto-streamer-in.c: Likewise.
21562         * lto-streamer-out.c: Likewise.
21563         * lto-streamer.c: Likewise.
21564         * mcf.c: Likewise.
21565         * mode-switching.c: Likewise.
21566         * modulo-sched.c: Likewise.
21567         * omega.c: Likewise.
21568         * omp-low.c: Likewise.
21569         * optabs.c: Likewise.
21570         * opts-global.c: Likewise.
21571         * opts.h: Likewise.
21572         * passes.c: Likewise.
21573         * plugin.c: Likewise.
21574         * postreload-gcse.c: Likewise.
21575         * postreload.c: Likewise.
21576         * predict.c: Likewise.
21577         * pretty-print.h: Likewise.
21578         * print-rtl.c: Likewise.
21579         * print-tree.c: Likewise.
21580         * profile.c: Likewise.
21581         * real.c: Likewise.
21582         * realmpfr.c: Likewise.
21583         * recog.c: Likewise.
21584         * ree.c: Likewise.
21585         * reg-stack.c: Likewise.
21586         * regcprop.c: Likewise.
21587         * reginfo.c: Likewise.
21588         * regrename.c: Likewise.
21589         * regstat.c: Likewise.
21590         * reload.c: Likewise.
21591         * reload1.c: Likewise.
21592         * reorg.c: Likewise.
21593         * resource.c: Likewise.
21594         * rtl-chkp.c: Likewise.
21595         * rtl-error.c: Likewise.
21596         * rtlanal.c: Likewise.
21597         * rtlhooks.c: Likewise.
21598         * sanopt.c: Likewise.
21599         * sched-deps.c: Likewise.
21600         * sched-ebb.c: Likewise.
21601         * sched-rgn.c: Likewise.
21602         * sched-vis.c: Likewise.
21603         * sdbout.c: Likewise.
21604         * sel-sched-dump.c: Likewise.
21605         * sel-sched-ir.c: Likewise.
21606         * sel-sched.c: Likewise.
21607         * sese.c: Likewise.
21608         * shrink-wrap.c: Likewise.
21609         * simplify-rtx.c: Likewise.
21610         * stack-ptr-mod.c: Likewise.
21611         * statistics.c: Likewise.
21612         * stmt.c: Likewise.
21613         * stor-layout.c: Likewise.
21614         * store-motion.c: Likewise.
21615         * streamer-hooks.c: Likewise.
21616         * stringpool.c: Likewise.
21617         * symtab.c: Likewise.
21618         * target-globals.c: Likewise.
21619         * targhooks.c: Likewise.
21620         * toplev.c: Likewise.
21621         * tracer.c: Likewise.
21622         * trans-mem.c: Likewise.
21623         * tree-affine.c: Likewise.
21624         * tree-browser.c: Likewise.
21625         * tree-call-cdce.c: Likewise.
21626         * tree-cfg.c: Likewise.
21627         * tree-cfgcleanup.c: Likewise.
21628         * tree-chkp-opt.c: Likewise.
21629         * tree-chkp.c: Likewise.
21630         * tree-chrec.c: Likewise.
21631         * tree-complex.c: Likewise.
21632         * tree-data-ref.c: Likewise.
21633         * tree-dfa.c: Likewise.
21634         * tree-diagnostic.c: Likewise.
21635         * tree-dump.c: Likewise.
21636         * tree-eh.c: Likewise.
21637         * tree-emutls.c: Likewise.
21638         * tree-if-conv.c: Likewise.
21639         * tree-inline.c: Likewise.
21640         * tree-into-ssa.c: Likewise.
21641         * tree-iterator.c: Likewise.
21642         * tree-loop-distribution.c: Likewise.
21643         * tree-nested.c: Likewise.
21644         * tree-nrv.c: Likewise.
21645         * tree-object-size.c: Likewise.
21646         * tree-outof-ssa.c: Likewise.
21647         * tree-parloops.c: Likewise.
21648         * tree-phinodes.c: Likewise.
21649         * tree-predcom.c: Likewise.
21650         * tree-pretty-print.c: Likewise.
21651         * tree-profile.c: Likewise.
21652         * tree-scalar-evolution.c: Likewise.
21653         * tree-sra.c: Likewise.
21654         * tree-ssa-address.c: Likewise.
21655         * tree-ssa-alias.c: Likewise.
21656         * tree-ssa-ccp.c: Likewise.
21657         * tree-ssa-coalesce.c: Likewise.
21658         * tree-ssa-copy.c: Likewise.
21659         * tree-ssa-copyrename.c: Likewise.
21660         * tree-ssa-dce.c: Likewise.
21661         * tree-ssa-dom.c: Likewise.
21662         * tree-ssa-dse.c: Likewise.
21663         * tree-ssa-forwprop.c: Likewise.
21664         * tree-ssa-ifcombine.c: Likewise.
21665         * tree-ssa-live.c: Likewise.
21666         * tree-ssa-loop-ch.c: Likewise.
21667         * tree-ssa-loop-im.c: Likewise.
21668         * tree-ssa-loop-ivcanon.c: Likewise.
21669         * tree-ssa-loop-ivopts.c: Likewise.
21670         * tree-ssa-loop-manip.c: Likewise.
21671         * tree-ssa-loop-niter.c: Likewise.
21672         * tree-ssa-loop-prefetch.c: Likewise.
21673         * tree-ssa-loop-unswitch.c: Likewise.
21674         * tree-ssa-loop.c: Likewise.
21675         * tree-ssa-math-opts.c: Likewise.
21676         * tree-ssa-operands.c: Likewise.
21677         * tree-ssa-phiopt.c: Likewise.
21678         * tree-ssa-phiprop.c: Likewise.
21679         * tree-ssa-pre.c: Likewise.
21680         * tree-ssa-propagate.c: Likewise.
21681         * tree-ssa-reassoc.c: Likewise.
21682         * tree-ssa-sccvn.c: Likewise.
21683         * tree-ssa-scopedtables.c: Likewise.
21684         * tree-ssa-sink.c: Likewise.
21685         * tree-ssa-strlen.c: Likewise.
21686         * tree-ssa-structalias.c: Likewise.
21687         * tree-ssa-tail-merge.c: Likewise.
21688         * tree-ssa-ter.c: Likewise.
21689         * tree-ssa-threadedge.c: Likewise.
21690         * tree-ssa-threadupdate.c: Likewise.
21691         * tree-ssa-uncprop.c: Likewise.
21692         * tree-ssa-uninit.c: Likewise.
21693         * tree-ssa.c: Likewise.
21694         * tree-ssanames.c: Likewise.
21695         * tree-stdarg.c: Likewise.
21696         * tree-streamer-in.c: Likewise.
21697         * tree-streamer-out.c: Likewise.
21698         * tree-streamer.c: Likewise.
21699         * tree-switch-conversion.c: Likewise.
21700         * tree-tailcall.c: Likewise.
21701         * tree-vect-data-refs.c: Likewise.
21702         * tree-vect-generic.c: Likewise.
21703         * tree-vect-loop-manip.c: Likewise.
21704         * tree-vect-loop.c: Likewise.
21705         * tree-vect-patterns.c: Likewise.
21706         * tree-vect-slp.c: Likewise.
21707         * tree-vect-stmts.c: Likewise.
21708         * tree-vectorizer.c: Likewise.
21709         * tree-vrp.c: Likewise.
21710         * tree.c: Likewise.
21711         * tsan.c: Likewise.
21712         * ubsan.c: Likewise.
21713         * valtrack.c: Likewise.
21714         * value-prof.c: Likewise.
21715         * var-tracking.c: Likewise.
21716         * varasm.c: Likewise.
21717         * varpool.c: Likewise.
21718         * vmsdbgout.c: Likewise.
21719         * vtable-verify.c: Likewise.
21720         * web.c: Likewise.
21721         * wide-int.cc: Likewise.
21722         * xcoffout.c: Likewise.
21723         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
21724         * common/common-targhooks.c: Likewise.
21725         * config/aarch64/aarch64-builtins.c: Likewise.
21726         * config/aarch64/aarch64.c: Likewise.
21727         * config/alpha/alpha.c: Likewise.
21728         * config/arc/arc.c: Likewise.
21729         * config/arm/aarch-common.c: Likewise.
21730         * config/arm/arm-builtins.c: Likewise.
21731         * config/arm/arm-c.c: Likewise.
21732         * config/arm/arm.c: Likewise.
21733         * config/avr/avr-c.c: Likewise.
21734         * config/avr/avr-log.c: Likewise.
21735         * config/avr/avr.c: Likewise.
21736         * config/bfin/bfin.c: Likewise.
21737         * config/c6x/c6x.c: Likewise.
21738         * config/cr16/cr16.c: Likewise.
21739         * config/cris/cris.c: Likewise.
21740         * config/darwin-c.c: Likewise.
21741         * config/darwin.c: Likewise.
21742         * config/default-c.c: Likewise.
21743         * config/epiphany/epiphany.c: Likewise.
21744         * config/epiphany/mode-switch-use.c: Likewise.
21745         * config/epiphany/resolve-sw-modes.c: Likewise.
21746         * config/fr30/fr30.c: Likewise.
21747         * config/frv/frv.c: Likewise.
21748         * config/ft32/ft32.c: Likewise.
21749         * config/glibc-c.c: Likewise.
21750         * config/h8300/h8300.c: Likewise.
21751         * config/i386/i386-c.c: Likewise.
21752         * config/i386/i386.c: Likewise.
21753         * config/i386/msformat-c.c: Likewise.
21754         * config/i386/winnt-cxx.c: Likewise.
21755         * config/i386/winnt-stubs.c: Likewise.
21756         * config/i386/winnt.c: Likewise.
21757         * config/ia64/ia64-c.c: Likewise.
21758         * config/ia64/ia64.c: Likewise.
21759         * config/iq2000/iq2000.c: Likewise.
21760         * config/lm32/lm32.c: Likewise.
21761         * config/m32c/m32c-pragma.c: Likewise.
21762         * config/m32c/m32c.c: Likewise.
21763         * config/m32r/m32r.c: Likewise.
21764         * config/m68k/m68k.c: Likewise.
21765         * config/mcore/mcore.c: Likewise.
21766         * config/mep/mep-pragma.c: Likewise.
21767         * config/mep/mep.c: Likewise.
21768         * config/microblaze/microblaze-c.c: Likewise.
21769         * config/microblaze/microblaze.c: Likewise.
21770         * config/mips/mips.c: Likewise.
21771         * config/mmix/mmix.c: Likewise.
21772         * config/mn10300/mn10300.c: Likewise.
21773         * config/moxie/moxie.c: Likewise.
21774         * config/msp430/msp430-c.c: Likewise.
21775         * config/msp430/msp430.c: Likewise.
21776         * config/nds32/nds32-cost.c: Likewise.
21777         * config/nds32/nds32-fp-as-gp.c: Likewise.
21778         * config/nds32/nds32-intrinsic.c: Likewise.
21779         * config/nds32/nds32-isr.c: Likewise.
21780         * config/nds32/nds32-md-auxiliary.c: Likewise.
21781         * config/nds32/nds32-memory-manipulation.c: Likewise.
21782         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21783         * config/nds32/nds32-predicates.c: Likewise.
21784         * config/nds32/nds32.c: Likewise.
21785         * config/nios2/nios2.c: Likewise.
21786         * config/nvptx/nvptx.c: Likewise.
21787         * config/pa/pa.c: Likewise.
21788         * config/pdp11/pdp11.c: Likewise.
21789         * config/rl78/rl78-c.c: Likewise.
21790         * config/rl78/rl78.c: Likewise.
21791         * config/rs6000/rs6000-c.c: Likewise.
21792         * config/rs6000/rs6000.c: Likewise.
21793         * config/rx/rx.c: Likewise.
21794         * config/s390/s390-c.c: Likewise.
21795         * config/s390/s390.c: Likewise.
21796         * config/sh/sh-c.c: Likewise.
21797         * config/sh/sh-mem.cc: Likewise.
21798         * config/sh/sh.c: Likewise.
21799         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21800         * config/sh/sh_treg_combine.cc: Likewise.
21801         * config/sol2-c.c: Likewise.
21802         * config/sol2-cxx.c: Likewise.
21803         * config/sol2-stubs.c: Likewise.
21804         * config/sol2.c: Likewise.
21805         * config/sparc/sparc-c.c: Likewise.
21806         * config/sparc/sparc.c: Likewise.
21807         * config/spu/spu-c.c: Likewise.
21808         * config/spu/spu.c: Likewise.
21809         * config/stormy16/stormy16.c: Likewise.
21810         * config/tilegx/mul-tables.c: Likewise.
21811         * config/tilegx/tilegx-c.c: Likewise.
21812         * config/tilegx/tilegx.c: Likewise.
21813         * config/tilepro/mul-tables.c: Likewise.
21814         * config/tilepro/tilepro-c.c: Likewise.
21815         * config/tilepro/tilepro.c: Likewise.
21816         * config/v850/v850-c.c: Likewise.
21817         * config/v850/v850.c: Likewise.
21818         * config/vax/vax.c: Likewise.
21819         * config/visium/visium.c: Likewise.
21820         * config/vms/vms-c.c: Likewise.
21821         * config/vms/vms.c: Likewise.
21822         * config/vxworks.c: Likewise.
21823         * config/winnt-c.c: Likewise.
21824         * config/xtensa/xtensa.c: Likewise.
21826 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
21828         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
21829         function.
21830         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
21832 2015-06-17  Richard Biener  <rguenther@suse.de>
21834         PR tree-optimization/66251
21835         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
21836         stmts for SLP strided stores.
21838         Revert
21839         2015-05-22  Richard Biener  <rguenther@suse.de>
21841         PR tree-optimization/66251
21842         * tree-vect-stmts.c (vectorizable_conversion): Properly
21843         set STMT_VINFO_VEC_STMT even for the SLP case.
21845         2015-05-26  Michael Matz  <matz@suse.de>
21847         PR middle-end/66251
21848         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
21849         STMT_VINFO_VEC_STMT, also with SLP.
21851 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
21853         PR target/56766
21854         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
21855         (*avx_addsubv4df3_1s): Ditto.
21856         (*sse3_addsubv2df3_1): Ditto.
21857         (*sse3_addsubv2df3_1s): Ditto.
21858         (*avx_addsubv8sf3_1): Ditto.
21859         (*avx_addsubv8sf3_1s): Ditto.
21860         (*sse3_addsubv4sf3_1): Ditto.
21861         (*sse3_addsubv4sf3_1s): Ditto.
21863 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
21865         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
21866         (SYSROOT_SUFFIX_SPEC): Update.
21867         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
21868         (STARTFILE_PREFIX_SPEC): Update.
21869         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
21870         (MULTILIB_REQUIRED): New.
21871         (MULTILIB_OSDIRNAMES): New.
21872         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
21873         (MULTILIB_REQUIRED): New.
21874         (MULTILIB_OSDIRNAMES): New.
21876 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
21878         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
21879         * config/aarch64/aarch64-options-extensions.def: Update "fP",
21880         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
21881         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
21882         (AARCH64_FL_PAN): New.
21883         (AARCH64_FL_LOR): New.
21884         (AARCH64_FL_RDMA): New.
21885         (AARCH64_FL_FOR_ARCH8_1): New.
21886         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
21887         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
21889 2015-06-16  Martin Liska  <mliska@suse.cz>
21891         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
21892         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
21893         guard.
21895 2015-06-16  Richard Biener  <rguenther@suse.de>
21897         * tree-vect-stmts.c (vectorizable_store): Adjust.
21898         (vectorizable_load): Likewise.
21899         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21900         Simplify.
21901         (vect_create_data_ref_ptr): Likewise.
21902         (bump_vector_ptr): Adjust.
21904 2015-06-16  Richard Biener  <rguenther@suse.de>
21906         * tree-vect-stmts.c (vectorizable_load): Properly start loads
21907         with the first element if this is grouped loads.
21909 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
21911         * config/arm/arm-protos.h (struct tune_params): Rename
21912         log_op_non_sc to log_op_non_short_circuit, and rename enum
21913         values to expand SC to SHORT_CIRCUIT.
21914         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
21915         to LOG_OP_NON_SHORT_CIRCUIT.
21916         (arm_fastmul_tune):Likewise
21917         (arm_strongarm_tune): Likewise.
21918         (arm_xscale_tune): Likewise.
21919         (arm_9e_tune): Likewise.
21920         (arm_marvell_pj4_tune): Likewise.
21921         (arm_v6t2_tune): Likewise.
21922         (arm_cortex_tune): Likewise.
21923         (arm_cortex_a8_tune): Likewise.
21924         (arm_cortex_a7_tune): Likewise.
21925         (arm_cortex_a15_tune): Likewise.
21926         (arm_cortex_a53_tune): Likewise.
21927         (arm_cortex_a57_tune): Likewise.
21928         (arm_xgene1_tune): Likewise.
21929         (arm_cortex_a5_tune): Likewise.
21930         (arm_cortex_a9_tune): Likewise.
21931         (arm_cortex_a12_tune): Likewise.
21932         (arm_v7m_tune): Likewise.
21933         (arm_cortex_m7_tune): Likewise.
21934         (arm_v6m_tune): Likewise.
21935         (arm_fa726te_tune): Likewise.
21937 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
21939         * altivec.md: Delete UNSPEC_VMLADDUHM.
21940         (mulv4si3_p8): New pattern.
21941         (mulv4si3): Use it for POWER8.
21942         (mulv8hi3): Use vmladduhm with zero addend.
21943         (altivec_vmladduhm): Descriptive RTL.
21945 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
21947         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
21948         to use neon_move instead of mov_imm.
21949         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
21950         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
21952         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
21953         aarch64_float_const_zero_rtx_p check before TFmode check.
21954         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
21955         an fp zero.
21956         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
21957         code and attributes to match.  Change condition from register_operand
21958         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
21959         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
21960         to store2.
21962 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
21964         PR debug/66535
21965         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
21966         there is no parent.
21968 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
21970         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
21971         HOST_WIDE_INT parameter.
21973 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
21975         PR ipa/66181
21976         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
21977         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
21978         TYPE_NO_FORCE_BLK.
21979         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
21981 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
21983         * rtl.h (classify_insn): Declare.
21984         * emit-rtl.c (classify_insn): Move to...
21985         * rtl.c: ...here and add generator support.
21986         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
21987         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
21988         * genemit.c (gen_emit_seq): New function.
21989         (gen_expand, gen_split): Use it.
21991 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
21993         * tree.c (make_vector_stat): Fix comment to state that the
21994         function returns a VECTOR_CST.
21996 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
21998         * gensupport.h (add_implicit_parallel): Declare.
21999         * genrecog.c (add_implicit_parallel): Move to...
22000         * gensupport.c (add_implicit_parallel): ...here.
22001         (process_one_cond_exec): Use it.
22002         * genemit.c (gen_insn): Likewise.
22004 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
22006         PR bootstrap/66448
22007         * passes.c (rest_of_decl_compilation): Do not register globals for
22008         early debug if they are declared in built-ins.
22010 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
22012         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
22014 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22016         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
22017         manually swapping.
22018         (noce_try_cmove_arith): Likewise.
22019         (noce_get_alt_condition): Likewise.
22021 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22023         * common/config/i386/i386-common.c
22024         (OPTION_MASK_ISA_MWAITX_SET): New.
22025         (ix86_handle_option): Handle mwaitx.
22026         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
22027         (x86_64-*-*): Likewise.
22028         * config/i386/mwaitxintrin.h: New header.
22029         * config/i386/cpuid.h (bit_MWAITX):  Define.
22030         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22031         MWAITX support.
22032         * config/i386/i386.opt (mwaitx): New.
22033         * config/i386/i386-builtin-types.def
22034         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
22035         * config/i386/i386-c.c: Define __MWAITX__ if needed.
22036         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
22037         (PTA_MWAITX): New.
22038         (ix86_option_override_internal): Handle new option.
22039         (processor_alias_table): Added PTA_MWAITX.
22040         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
22041         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
22042         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
22043         IX86_BUILTIN_MONITORX  built-ins.
22044         * config/i386/i386.h (TARGET_MWAITX): New.
22045         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
22046         UNSPEC_MONITORX.
22047         (mwaitx):  New pattern.
22048         (monitorx_<mode>): New pattern.
22049         * config/i386/x86intrin.h: Include mwaitxintrin.h.
22050         * doc/extend.texi: Document monitorx and mwaitx builtins.
22051         * doc/invoke.texi: Document -mmwaitx option.
22053 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
22055         * emit-rtl.c (need_atomic_barrier_p): Mask model with
22056         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
22058 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
22060         * dbxout.c (xcoff_debug_hooks): Provide a function for
22061         register_main_translation_unit hook.
22063 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
22065         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
22066         variants cases from switch.
22067         (rs6000_post_atomic_barrier): Same.
22068         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
22069         (rs6000_expand_atomic_exchange): Same.
22070         (rs6000_expand_atomic_op): Same.
22071         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
22072         SYNC variants cases from switch.
22073         (atomic_load): Same.
22074         (atomic_store): Same.
22076 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
22078         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
22079         CONST_INT for goto.
22081 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
22083         PR bootstrap/66448
22084         * dwarf2out.c (check_die): Check for common duplicate attributes.
22085         (add_location_or_const_value_attribute): Do not add duplicate
22086         attributes.
22087         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
22088         time around.
22089         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
22090         (gen_type_die_with_usage): Call check_die.
22091         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
22093 2015-06-11  Jason Merrill  <jason@redhat.com>
22095         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
22096         dies.
22098 2015-06-11  Marek Polacek  <polacek@redhat.com>
22100         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
22102 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
22104         PR bootstrap/66252
22105         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
22106         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
22107         (*addx_extend_sp32): Fix pasto.
22108         (*subx_extend): Rename into...
22109         (*subx_extend_sp32): ...this.
22110         (*adddi3_extend_sp32): Add earlyclobber.
22111         (*subdi3_insn_sp32): Likewise.
22112         (*subdi3_extend_sp32): Likewise.
22113         (*and_not_di_sp32): Likewise.
22114         (*or_not_di_sp32): Likewise.
22115         (*xor_not_di_sp32): Likewise.
22116         (*negdi2_sp32): Likewise.
22117         (*one_cmpldi2_sp32): Likewise.
22119 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
22121         * debug.h (struct gcc_debug_hooks): Add a
22122         register_main_translation_unit hook.
22123         * debug.c (do_nothing_debug_hooks): Provide a function for this
22124         new hook.
22125         * dbxout.c (dbx_debug_hooks): Likewise.
22126         * sdbout.c (sdb_debug_hooks): Likewise.
22127         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22128         * dwarf2out.c (main_translation_unit): New global variable.
22129         (dwarf2out_register_main_translation_unit): New function
22130         implementing the new hook.
22131         (dwarf2_debug_hooks): Assign
22132         dwarf2out_register_main_translation_unit to this new hook.
22133         (dwarf2out_init): Associate any main translation unit to
22134         comp_unit_die ().
22136 2015-06-11  Marek Polacek  <polacek@redhat.com>
22138         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
22140 2015-06-11  Marek Polacek  <polacek@redhat.com>
22142         * match.pd: Use single_use throughout.
22144 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22146         * config/arm/arm.c (arm_option_params_internal): When optimising
22147         for speed set max_insns_skipped when arm_restrict_it.
22149 2015-06-11  Christian Bruel  <christian.bruel@st.com>
22151         PR target/52144
22152         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
22153          macros in ...
22154         (arm_cpu_builtins): New function.
22155         (arm_pragma_target_parse): Call arm_cpu_builtins.
22156         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
22157         (arm_register_target_pragmas): Likewise.
22158         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
22159          Call arm_register_target_pragmas.
22160         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
22161         (arm_pragma_target_parse): Likewise.
22163 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
22165         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
22166         of the second operand.
22168 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
22170         PR target/66473
22171         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
22172         to prepare mask operand for AVX512 modes.
22174 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
22176         PR target/66474
22177         * doc/md.texi (Machine Constraints): Document that on the PowerPC
22178         if you use a constraint that targets a VSX register, you must use
22179         %x<n> in the template.
22181 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
22183         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
22184         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
22185         (define_insn "trap"): New definition.
22187 2015-06-10  Richard Biener  <rguenther@suse.de>
22189         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
22190         out from ...
22191         (vect_supported_load_permutation_p): ... here.  Handle
22192         supportable permutations in reductions.
22193         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
22194         for vectorizing strided group loads.
22196 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
22198         PR target/66470
22199         * config/i386/i386.c (ix86_split_long_move): For collisions
22200         involving direct tls segment refs, move the UNSPEC_TP possibly
22201         wrapped in ZERO_EXTEND out of the address for lea, to each of
22202         the memory loads.
22204 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22206         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
22207         dmb sy. Adjust tabs.
22209 2015-06-10  Tom de Vries  <tom@codesourcery.com>
22211         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
22213 2015-06-10  Martin Liska  <mliska@suse.cz>
22215         PR bootstrap/66471
22216         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
22217         all enum values in mem_alloc_origin.
22218         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
22219         name.
22220         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
22221         * bitmap.c (bitmap_register): Likewise.
22222         (dump_bitmap_statistics): Likewise.
22223         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
22224         (ggc_record_overhead): Likewise.
22225         * hash-map.h: Likewise.
22226         * hash-set.h: Likewise.
22227         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
22228         * hash-table.h: Likewise.
22229         * vec.c (vec_prefix::register_overhead): Likewise.
22230         (vec_prefix::release_overhead): Likewise.
22231         (dump_vec_loc_statistics): Likewise.
22233 2015-06-09  Christian Bruel  <christian.bruel@st.com>
22235         PR target/52144
22236         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
22237         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
22238         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
22239         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
22240         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
22241         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
22242         (arm_valid_target_attribute_p): Likewise.
22243         (arm_set_current_function, arm_can_inline_p): Likewise.
22244         (arm_valid_target_attribute_rec): Likewise.
22245         (arm_previous_fndecl): New variable.
22246         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
22247         (TARGET_CAN_INLINE_P): Define.
22248         (arm_asm_trampoline_template): Emit mode.
22249         (arm_file_start): Don't set unified syntax.
22250         (arm_declare_function_name): Set unified syntax and mode.
22251         (arm_option_override): Init target_option_default_node.
22252         and target_option_current_node.
22253         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
22254         (*call_symbol): Likewise.
22255         * doc/extend.texi: Document ARM/Thumb target attribute.
22256         * doc/invoke.texi: Likewise.
22258 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22260         Revert:
22261         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22262         PR rtl-optimization/64164
22263         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22264         * tree-ssa-copyrename.c: Removed.
22265         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
22266         -ftree-coalesce-vars.
22267         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22268         * common.opt (ftree-copyrename): Ignore.
22269         (ftree-coalesce-inlined-vars): Likewise.
22270         * doc/invoke.texi: Remove the ignored options above.
22271         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22272         * tree-ssa-coalesce.h: ... here.
22273         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22274         headers required by it.
22275         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22276         across variables when flag_tree_coalesce_vars.  Check register
22277         use and promoted modes to allow coalescing.  Moved to
22278         tree-ssa-coalesce.c.
22279         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22280         with its member functions to tree-ssa-coalesce.c.
22281         (var_map_base_init): Likewise.  Renamed to
22282         compute_samebase_partition_bases.
22283         (partition_view_normal): Drop want_bases parameter.
22284         (partition_view_bitmap): Likewise.
22285         * tree-ssa-live.h: Adjust declarations.
22286         * tree-ssa-coalesce.c: Include explow.h.
22287         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22288         default defs at the entry point.
22289         (dump_part_var_map): New.
22290         (compute_optimized_partition_bases): New, called by...
22291         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22292         of compute_samebase_partition_bases.  Adjust.
22293         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22294         * cfgexpand.c (leader_merge): New.
22295         (get_rtl_for_parm_ssa_default_def): New.
22296         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22297         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22298         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
22299         redundant MEM attr setting.
22300         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
22301         from...
22302         (expand_one_stack_var): ... this.  New wrapper to check and
22303         skip already expanded SSA partitions.
22304         (record_alignment_for_reg_var): New, factored out of...
22305         (expand_one_var): ... this.
22306         (expand_one_ssa_partition): New.
22307         (adjust_one_expanded_partition_var): New.
22308         (expand_one_register_var): Check and skip already expanded SSA
22309         partitions.
22310         (expand_used_vars): Don't create DECLs for anonymous SSA
22311         names.  Expand all SSA partitions, then adjust all SSA names.
22312         (pass::execute): Replace the loops that set
22313         SA.partition_to_pseudo from partition leaders and cleared
22314         DECL_RTL for multi-location variables, and that which used to
22315         rename vars and set attrs, with one that clears DECL_RTL and
22316         checks that PARMs and RESULTs default_defs match DECL_RTL.
22317         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22318         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22319         * explow.c (promote_ssa_mode): New.
22320         * explow.h (promote_ssa_mode): Declare.
22321         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22322         * function.c: Include cfgexpand.h.
22323         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22324         (use_register_for_parm_decl): Wrapper for the above to
22325         special-case the result_ptr.
22326         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22327         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22328         multiple locations.
22329         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22330         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
22331         (assign_parm_setup_block): Prefer SSA-assigned location.
22332         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
22333         if stack_parm is NULL.
22334         (assign_parm_setup_stack): Prefer SSA-assigned location.
22335         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
22336         rtl before testing for pointer bounds.  Special-case result_ptr.
22337         (expand_function_start): Maybe reset DECL_RTL of result.
22338         Prefer SSA-assigned location for result and static chain.
22339         Factor out DECL_RESULT and SET_DECL_RTL.
22340         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22341         anonymous SSA names.  Use promote_ssa_mode.
22342         (get_temp_reg): Likewise.
22343         (remove_ssa_form): Adjust.
22344         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22345         and get its reg_usage for reg invalidation.
22346         (compute_bb_dataflow): Pass it insn.
22347         (emit_notes_in_bb): Likewise.
22348         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22349         fail assert on conversion between unsigned types.
22351 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22353         PR tree-optimization/65460
22354         * omp-low.c (expand_omp_target): Set parallelized_function on
22355         cgraph_node for child_fn.
22357 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22359         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
22360         parallelized_function before add_new_function.
22362 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
22364         * gcc-plugin.h: Move decls to plugin.h and include it.
22365         * plugin.h: Relocate decls from gcc-plugin.h
22366         * ggc-page.c: Include required header files.
22367         * passes.c: Likewise.
22368         * cgraphunit.c: Likewise.
22370 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22372         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
22374 2015-06-09  Jason Merrill  <jason@redhat.com>
22376         PR bootstrap/66448
22377         * toplev.c (check_global_declaration): Don't warn about a clone.
22379 2015-06-09  Marek Polacek  <polacek@redhat.com>
22381         PR tree-optimization/66299
22382         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
22383         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
22384         patterns.
22386 2015-06-09  Richard Biener  <rguenther@suse.de>
22388         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
22389         (vect_analyze_slp_instance): Instead do not falsely drop
22390         load permutations.
22392 2015-06-09  Richard Biener  <rguenther@suse.de>
22394         PR middle-end/66423
22395         * match.pd: Handle A % (unsigned)(1 << B).
22397 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
22399         * varasm.c (output_object_block_htab): Remove.
22400         (output_object_block_compare): New.
22401         (output_object_blocks): Sort named object_blocks before outputting
22402         them.
22404 2015-06-09  Richard Biener  <rguenther@suse.de>
22406         PR tree-optimization/66419
22407         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
22408         consider GROUP_GAP when detecting a perfect subchain.
22410 2015-06-09  Nick Clifton  <nickc@redhat.com>
22412         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
22413         place read only data in the .frodata section.
22415 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
22417         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
22418         (atomic_store<mode>): Likewise.
22420 2015-06-09  Richard Biener  <rguenther@suse.de>
22422         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
22424 2015-06-09  Richard Biener  <rguenther@suse.de>
22426         PR middle-end/66413
22427         * tree-inline.c (insert_init_debug_bind): Unshare value.
22429 2015-06-09  Richard Biener  <rguenther@suse.de>
22431         PR tree-optimization/66396
22432         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
22433         Rename virtual operands.
22435 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22437         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
22438         always return false.
22440 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22442         PR rtl-optimization/64164
22443         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22444         * tree-ssa-copyrename.c: Removed.
22445         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
22446         -ftree-coalesce-vars.
22447         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22448         * common.opt (ftree-copyrename): Ignore.
22449         (ftree-coalesce-inlined-vars): Likewise.
22450         * doc/invoke.texi: Remove the ignored options above.
22451         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22452         * tree-ssa-coalesce.h: ... here.
22453         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22454         headers required by it.
22455         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22456         across variables when flag_tree_coalesce_vars.  Check register
22457         use and promoted modes to allow coalescing.  Moved to
22458         tree-ssa-coalesce.c.
22459         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22460         with its member functions to tree-ssa-coalesce.c.
22461         (var_map_base_init): Likewise.  Renamed to
22462         compute_samebase_partition_bases.
22463         (partition_view_normal): Drop want_bases parameter.
22464         (partition_view_bitmap): Likewise.
22465         * tree-ssa-live.h: Adjust declarations.
22466         * tree-ssa-coalesce.c: Include explow.h.
22467         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22468         default defs at the entry point.
22469         (dump_part_var_map): New.
22470         (compute_optimized_partition_bases): New, called by...
22471         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22472         of compute_samebase_partition_bases.  Adjust.
22473         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22474         * cfgexpand.c (leader_merge): New.
22475         (get_rtl_for_parm_ssa_default_def): New.
22476         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22477         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22478         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
22479         redundant MEM attr setting.
22480         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
22481         from...
22482         (expand_one_stack_var): ... this.  New wrapper to check and
22483         skip already expanded SSA partitions.
22484         (record_alignment_for_reg_var): New, factored out of...
22485         (expand_one_var): ... this.
22486         (expand_one_ssa_partition): New.
22487         (adjust_one_expanded_partition_var): New.
22488         (expand_one_register_var): Check and skip already expanded SSA
22489         partitions.
22490         (expand_used_vars): Don't create DECLs for anonymous SSA
22491         names.  Expand all SSA partitions, then adjust all SSA names.
22492         (pass::execute): Replace the loops that set
22493         SA.partition_to_pseudo from partition leaders and cleared
22494         DECL_RTL for multi-location variables, and that which used to
22495         rename vars and set attrs, with one that clears DECL_RTL and
22496         checks that PARMs and RESULTs default_defs match DECL_RTL.
22497         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22498         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22499         * explow.c (promote_ssa_mode): New.
22500         * explow.h (promote_ssa_mode): Declare.
22501         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22502         * function.c: Include cfgexpand.h.
22503         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22504         (use_register_for_parm_decl): Wrapper for the above to
22505         special-case the result_ptr.
22506         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22507         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22508         multiple locations.
22509         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22510         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
22511         (assign_parm_setup_block): Prefer SSA-assigned location.
22512         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
22513         if stack_parm is NULL.
22514         (assign_parm_setup_stack): Prefer SSA-assigned location.
22515         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
22516         rtl before testing for pointer bounds.  Special-case result_ptr.
22517         (expand_function_start): Maybe reset DECL_RTL of result.
22518         Prefer SSA-assigned location for result and static chain.
22519         Factor out DECL_RESULT and SET_DECL_RTL.
22520         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22521         anonymous SSA names.  Use promote_ssa_mode.
22522         (get_temp_reg): Likewise.
22523         (remove_ssa_form): Adjust.
22524         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22525         and get its reg_usage for reg invalidation.
22526         (compute_bb_dataflow): Pass it insn.
22527         (emit_notes_in_bb): Likewise.
22528         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22529         fail assert on conversion between unsigned types.
22531 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22533         PR debug/58315
22534         * tree-inline.c (reset_debug_binding): New.
22535         (reset_debug_bindings): Likewise.
22536         (expand_call_inline): Call it.
22538 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
22540         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
22541         TYPE_STRING_FLAG.
22543 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
22545         * lto-streamer-out.c (lto_output_location): Stream
22546         reserved locations correctly.
22547         * lto-streamer-in.c (lto_output_location): Likewise.
22549 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
22551         * coretypes.h: Include hash-table.h and hash-set.h for host files.
22552         * ggc.h: Don't include statistics.h>
22553         * hash-map.h: Remove all includes.
22554         * hash-set.h: Likewise.
22555         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
22556         the include list. Remove <new>.
22557         * inchash.h: Remove all includes.
22558         * mem-stats.h: Likewise.
22559         * vec.h: No special processing for generators or ggc.
22560         * alias.c : Adjust include files.
22561         * alloc-pool.c : Likewise.
22562         * alloc-pool.h : Likewise.
22563         * asan.c : Likewise.
22564         * attribs.c : Likewise.
22565         * auto-inc-dec.c : Likewise.
22566         * auto-profile.c : Likewise.
22567         * bb-reorder.c : Likewise.
22568         * bitmap.c : Likewise.
22569         * bitmap.h : Likewise.
22570         * bt-load.c : Likewise.
22571         * builtins.c : Likewise.
22572         * caller-save.c : Likewise.
22573         * calls.c : Likewise.
22574         * ccmp.c : Likewise.
22575         * cfg.c : Likewise.
22576         * cfganal.c : Likewise.
22577         * cfgbuild.c : Likewise.
22578         * cfgcleanup.c : Likewise.
22579         * cfgexpand.c : Likewise.
22580         * cfghooks.c : Likewise.
22581         * cfgloop.c : Likewise.
22582         * cfgloop.h : Likewise.
22583         * cfgloopanal.c : Likewise.
22584         * cfgloopmanip.c : Likewise.
22585         * cfgrtl.c : Likewise.
22586         * cgraph.c : Likewise.
22587         * cgraphbuild.c : Likewise.
22588         * cgraphclones.c : Likewise.
22589         * cgraphunit.c : Likewise.
22590         * cilk-common.c : Likewise.
22591         * combine-stack-adj.c : Likewise.
22592         * combine.c : Likewise.
22593         * compare-elim.c : Likewise.
22594         * context.c : Likewise.
22595         * convert.c : Likewise.
22596         * coverage.c : Likewise.
22597         * cppbuiltin.c : Likewise.
22598         * cprop.c : Likewise.
22599         * cse.c : Likewise.
22600         * cselib.c : Likewise.
22601         * data-streamer-in.c : Likewise.
22602         * data-streamer-out.c : Likewise.
22603         * data-streamer.c : Likewise.
22604         * data-streamer.h : Likewise.
22605         * dbxout.c : Likewise.
22606         * dce.c : Likewise.
22607         * ddg.c : Likewise.
22608         * debug.c : Likewise.
22609         * df-core.c : Likewise.
22610         * df-problems.c : Likewise.
22611         * df-scan.c : Likewise.
22612         * df.h : Likewise.
22613         * dfp.c : Likewise.
22614         * dojump.c : Likewise.
22615         * dominance.c : Likewise.
22616         * domwalk.c : Likewise.
22617         * double-int.c : Likewise.
22618         * dse.c : Likewise.
22619         * dumpfile.c : Likewise.
22620         * dwarf2asm.c : Likewise.
22621         * dwarf2cfi.c : Likewise.
22622         * dwarf2out.c : Likewise.
22623         * emit-rtl.c : Likewise.
22624         * et-forest.c : Likewise.
22625         * except.c : Likewise.
22626         * except.h : Likewise.
22627         * explow.c : Likewise.
22628         * expmed.c : Likewise.
22629         * expr.c : Likewise.
22630         * final.c : Likewise.
22631         * fixed-value.c : Likewise.
22632         * fold-const.c : Likewise.
22633         * function.c : Likewise.
22634         * fwprop.c : Likewise.
22635         * gcc-plugin.h : Likewise.
22636         * gcc.c : Likewise.
22637         * gcse-common.c : Likewise.
22638         * gcse.c : Likewise.
22639         * genattrtab.c : Likewise.
22640         * genautomata.c : Likewise.
22641         * genconditions.c : Likewise.
22642         * genemit.c : Likewise.
22643         * generic-match-head.c : Likewise.
22644         * genextract.c : Likewise.
22645         * gengtype-state.c : Likewise.
22646         * gengtype.c : Likewise.
22647         * genhooks.c : Likewise.
22648         * genmatch.c : Likewise.
22649         * genmodes.c : Likewise.
22650         * genrecog.c : Likewise.
22651         * gensupport.c : Likewise.
22652         * ggc-common.c : Likewise.
22653         * ggc-internal.h : Likewise.
22654         * ggc-none.c : Likewise.
22655         * ggc-page.c : Likewise.
22656         * gimple-builder.c : Likewise.
22657         * gimple-expr.c : Likewise.
22658         * gimple-fold.c : Likewise.
22659         * gimple-iterator.c : Likewise.
22660         * gimple-low.c : Likewise.
22661         * gimple-match-head.c : Likewise.
22662         * gimple-pretty-print.c : Likewise.
22663         * gimple-ssa-isolate-paths.c : Likewise.
22664         * gimple-ssa-strength-reduction.c : Likewise.
22665         * gimple-ssa.h : Likewise.
22666         * gimple-streamer-in.c : Likewise.
22667         * gimple-streamer-out.c : Likewise.
22668         * gimple-streamer.h : Likewise.
22669         * gimple-walk.c : Likewise.
22670         * gimple.c : Likewise.
22671         * gimplify-me.c : Likewise.
22672         * gimplify.c : Likewise.
22673         * godump.c : Likewise.
22674         * graph.c : Likewise.
22675         * graphds.c : Likewise.
22676         * graphite-blocking.c : Likewise.
22677         * graphite-dependences.c : Likewise.
22678         * graphite-interchange.c : Likewise.
22679         * graphite-isl-ast-to-gimple.c : Likewise.
22680         * graphite-optimize-isl.c : Likewise.
22681         * graphite-poly.c : Likewise.
22682         * graphite-scop-detection.c : Likewise.
22683         * graphite-sese-to-poly.c : Likewise.
22684         * graphite.c : Likewise.
22685         * haifa-sched.c : Likewise.
22686         * hard-reg-set.h : Likewise.
22687         * hw-doloop.c : Likewise.
22688         * ifcvt.c : Likewise.
22689         * inchash.c : Likewise.
22690         * incpath.c : Likewise.
22691         * init-regs.c : Likewise.
22692         * input.c : Likewise.
22693         * internal-fn.c : Likewise.
22694         * ipa-chkp.c : Likewise.
22695         * ipa-comdats.c : Likewise.
22696         * ipa-cp.c : Likewise.
22697         * ipa-devirt.c : Likewise.
22698         * ipa-icf-gimple.c : Likewise.
22699         * ipa-icf.c : Likewise.
22700         * ipa-inline-analysis.c : Likewise.
22701         * ipa-inline-transform.c : Likewise.
22702         * ipa-inline.c : Likewise.
22703         * ipa-polymorphic-call.c : Likewise.
22704         * ipa-profile.c : Likewise.
22705         * ipa-prop.c : Likewise.
22706         * ipa-pure-const.c : Likewise.
22707         * ipa-ref.c : Likewise.
22708         * ipa-reference.c : Likewise.
22709         * ipa-split.c : Likewise.
22710         * ipa-utils.c : Likewise.
22711         * ipa-visibility.c : Likewise.
22712         * ipa.c : Likewise.
22713         * ira-build.c : Likewise.
22714         * ira-color.c : Likewise.
22715         * ira-conflicts.c : Likewise.
22716         * ira-costs.c : Likewise.
22717         * ira-emit.c : Likewise.
22718         * ira-lives.c : Likewise.
22719         * ira.c : Likewise.
22720         * jump.c : Likewise.
22721         * langhooks.c : Likewise.
22722         * lcm.c : Likewise.
22723         * libfuncs.h : Likewise.
22724         * lists.c : Likewise.
22725         * loop-doloop.c : Likewise.
22726         * loop-init.c : Likewise.
22727         * loop-invariant.c : Likewise.
22728         * loop-iv.c : Likewise.
22729         * loop-unroll.c : Likewise.
22730         * lower-subreg.c : Likewise.
22731         * lra-assigns.c : Likewise.
22732         * lra-coalesce.c : Likewise.
22733         * lra-constraints.c : Likewise.
22734         * lra-eliminations.c : Likewise.
22735         * lra-lives.c : Likewise.
22736         * lra-remat.c : Likewise.
22737         * lra-spills.c : Likewise.
22738         * lra.c : Likewise.
22739         * lto-cgraph.c : Likewise.
22740         * lto-compress.c : Likewise.
22741         * lto-opts.c : Likewise.
22742         * lto-section-in.c : Likewise.
22743         * lto-section-out.c : Likewise.
22744         * lto-streamer-in.c : Likewise.
22745         * lto-streamer-out.c : Likewise.
22746         * lto-streamer.c : Likewise.
22747         * lto-streamer.h : Likewise.
22748         * mcf.c : Likewise.
22749         * mode-switching.c : Likewise.
22750         * modulo-sched.c : Likewise.
22751         * omega.c : Likewise.
22752         * omp-low.c : Likewise.
22753         * optabs.c : Likewise.
22754         * opts-global.c : Likewise.
22755         * opts.h : Likewise.
22756         * passes.c : Likewise.
22757         * plugin.c : Likewise.
22758         * postreload-gcse.c : Likewise.
22759         * postreload.c : Likewise.
22760         * predict.c : Likewise.
22761         * print-rtl.c : Likewise.
22762         * print-tree.c : Likewise.
22763         * profile.c : Likewise.
22764         * read-md.c : Likewise.
22765         * read-md.h : Likewise.
22766         * read-rtl.c : Likewise.
22767         * real.c : Likewise.
22768         * realmpfr.c : Likewise.
22769         * recog.c : Likewise.
22770         * ree.c : Likewise.
22771         * reg-stack.c : Likewise.
22772         * regcprop.c : Likewise.
22773         * reginfo.c : Likewise.
22774         * regrename.c : Likewise.
22775         * regstat.c : Likewise.
22776         * reload.c : Likewise.
22777         * reload1.c : Likewise.
22778         * reorg.c : Likewise.
22779         * resource.c : Likewise.
22780         * rtl-chkp.c : Likewise.
22781         * rtl.c : Likewise.
22782         * rtl.h : Likewise.
22783         * rtlanal.c : Likewise.
22784         * rtlhash.c : Likewise.
22785         * rtlhash.h : Likewise.
22786         * rtlhooks.c : Likewise.
22787         * sanopt.c : Likewise.
22788         * sched-deps.c : Likewise.
22789         * sched-ebb.c : Likewise.
22790         * sched-rgn.c : Likewise.
22791         * sched-vis.c : Likewise.
22792         * sdbout.c : Likewise.
22793         * sel-sched-dump.c : Likewise.
22794         * sel-sched-ir.c : Likewise.
22795         * sel-sched-ir.h : Likewise.
22796         * sel-sched.c : Likewise.
22797         * sese.c : Likewise.
22798         * shrink-wrap.c : Likewise.
22799         * shrink-wrap.h : Likewise.
22800         * simplify-rtx.c : Likewise.
22801         * stack-ptr-mod.c : Likewise.
22802         * statistics.c : Likewise.
22803         * stmt.c : Likewise.
22804         * stor-layout.c : Likewise.
22805         * store-motion.c : Likewise.
22806         * stringpool.c : Likewise.
22807         * symtab.c : Likewise.
22808         * target-globals.c : Likewise.
22809         * targhooks.c : Likewise.
22810         * tlink.c : Likewise.
22811         * toplev.c : Likewise.
22812         * tracer.c : Likewise.
22813         * trans-mem.c : Likewise.
22814         * tree-affine.c : Likewise.
22815         * tree-affine.h : Likewise.
22816         * tree-browser.c : Likewise.
22817         * tree-call-cdce.c : Likewise.
22818         * tree-cfg.c : Likewise.
22819         * tree-cfgcleanup.c : Likewise.
22820         * tree-chkp-opt.c : Likewise.
22821         * tree-chkp.c : Likewise.
22822         * tree-chrec.c : Likewise.
22823         * tree-complex.c : Likewise.
22824         * tree-data-ref.c : Likewise.
22825         * tree-dfa.c : Likewise.
22826         * tree-diagnostic.c : Likewise.
22827         * tree-dump.c : Likewise.
22828         * tree-eh.c : Likewise.
22829         * tree-eh.h : Likewise.
22830         * tree-emutls.c : Likewise.
22831         * tree-hasher.h : Likewise.
22832         * tree-if-conv.c : Likewise.
22833         * tree-inline.c : Likewise.
22834         * tree-inline.h : Likewise.
22835         * tree-into-ssa.c : Likewise.
22836         * tree-iterator.c : Likewise.
22837         * tree-loop-distribution.c : Likewise.
22838         * tree-nested.c : Likewise.
22839         * tree-nrv.c : Likewise.
22840         * tree-object-size.c : Likewise.
22841         * tree-outof-ssa.c : Likewise.
22842         * tree-parloops.c : Likewise.
22843         * tree-phinodes.c : Likewise.
22844         * tree-predcom.c : Likewise.
22845         * tree-pretty-print.c : Likewise.
22846         * tree-profile.c : Likewise.
22847         * tree-scalar-evolution.c : Likewise.
22848         * tree-sra.c : Likewise.
22849         * tree-ssa-address.c : Likewise.
22850         * tree-ssa-alias.c : Likewise.
22851         * tree-ssa-ccp.c : Likewise.
22852         * tree-ssa-coalesce.c : Likewise.
22853         * tree-ssa-copy.c : Likewise.
22854         * tree-ssa-copyrename.c : Likewise.
22855         * tree-ssa-dce.c : Likewise.
22856         * tree-ssa-dom.c : Likewise.
22857         * tree-ssa-dse.c : Likewise.
22858         * tree-ssa-forwprop.c : Likewise.
22859         * tree-ssa-ifcombine.c : Likewise.
22860         * tree-ssa-live.c : Likewise.
22861         * tree-ssa-loop-ch.c : Likewise.
22862         * tree-ssa-loop-im.c : Likewise.
22863         * tree-ssa-loop-ivcanon.c : Likewise.
22864         * tree-ssa-loop-ivopts.c : Likewise.
22865         * tree-ssa-loop-manip.c : Likewise.
22866         * tree-ssa-loop-niter.c : Likewise.
22867         * tree-ssa-loop-prefetch.c : Likewise.
22868         * tree-ssa-loop-unswitch.c : Likewise.
22869         * tree-ssa-loop.c : Likewise.
22870         * tree-ssa-math-opts.c : Likewise.
22871         * tree-ssa-operands.c : Likewise.
22872         * tree-ssa-phiopt.c : Likewise.
22873         * tree-ssa-phiprop.c : Likewise.
22874         * tree-ssa-pre.c : Likewise.
22875         * tree-ssa-propagate.c : Likewise.
22876         * tree-ssa-reassoc.c : Likewise.
22877         * tree-ssa-sccvn.c : Likewise.
22878         * tree-ssa-scopedtables.c : Likewise.
22879         * tree-ssa-sink.c : Likewise.
22880         * tree-ssa-strlen.c : Likewise.
22881         * tree-ssa-structalias.c : Likewise.
22882         * tree-ssa-tail-merge.c : Likewise.
22883         * tree-ssa-ter.c : Likewise.
22884         * tree-ssa-threadedge.c : Likewise.
22885         * tree-ssa-threadupdate.c : Likewise.
22886         * tree-ssa-uncprop.c : Likewise.
22887         * tree-ssa-uninit.c : Likewise.
22888         * tree-ssa.c : Likewise.
22889         * tree-ssanames.c : Likewise.
22890         * tree-stdarg.c : Likewise.
22891         * tree-streamer-in.c : Likewise.
22892         * tree-streamer-out.c : Likewise.
22893         * tree-streamer.c : Likewise.
22894         * tree-streamer.h : Likewise.
22895         * tree-switch-conversion.c : Likewise.
22896         * tree-tailcall.c : Likewise.
22897         * tree-vect-data-refs.c : Likewise.
22898         * tree-vect-generic.c : Likewise.
22899         * tree-vect-loop-manip.c : Likewise.
22900         * tree-vect-loop.c : Likewise.
22901         * tree-vect-patterns.c : Likewise.
22902         * tree-vect-slp.c : Likewise.
22903         * tree-vect-stmts.c : Likewise.
22904         * tree-vectorizer.c : Likewise.
22905         * tree-vectorizer.h : Likewise.
22906         * tree-vrp.c : Likewise.
22907         * tree.c : Likewise.
22908         * tsan.c : Likewise.
22909         * ubsan.c : Likewise.
22910         * valtrack.c : Likewise.
22911         * valtrack.h : Likewise.
22912         * value-prof.c : Likewise.
22913         * var-tracking.c : Likewise.
22914         * varasm.c : Likewise.
22915         * varpool.c : Likewise.
22916         * vec.c: Likewise.
22917         * vmsdbgout.c : Likewise.
22918         * vtable-verify.c : Likewise.
22919         * vtable-verify.h : Likewise.
22920         * web.c : Likewise.
22921         * wide-int.cc : Likewise.
22922         * xcoffout.c : Likewise.
22923         * config/aarch64/aarch64-builtins.c : Likewise.
22924         * config/aarch64/aarch64.c : Likewise.
22925         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
22926         * config/alpha/alpha.c : Likewise.
22927         * config/arc/arc.c : Likewise.
22928         * config/arm/aarch-common.c : Likewise.
22929         * config/arm/arm-builtins.c : Likewise.
22930         * config/arm/arm-c.c : Likewise.
22931         * config/arm/arm.c : Likewise.
22932         * config/avr/avr-c.c : Likewise.
22933         * config/avr/avr-log.c : Likewise.
22934         * config/avr/avr.c : Likewise.
22935         * config/bfin/bfin.c : Likewise.
22936         * config/c6x/c6x.c : Likewise.
22937         * config/cr16/cr16.c : Likewise.
22938         * config/cris/cris.c : Likewise.
22939         * config/darwin-c.c : Likewise.
22940         * config/darwin.c : Likewise.
22941         * config/default-c.c : Likewise.
22942         * config/epiphany/epiphany.c : Likewise.
22943         * config/epiphany/mode-switch-use.c : Likewise.
22944         * config/epiphany/resolve-sw-modes.c : Likewise.
22945         * config/fr30/fr30.c : Likewise.
22946         * config/frv/frv.c : Likewise.
22947         * config/ft32/ft32.c : Likewise.
22948         * config/glibc-c.c : Likewise.
22949         * config/h8300/h8300.c : Likewise.
22950         * config/i386/i386-c.c : Likewise.
22951         * config/i386/i386.c : Likewise.
22952         * config/i386/msformat-c.c : Likewise.
22953         * config/i386/winnt-cxx.c : Likewise.
22954         * config/i386/winnt-stubs.c : Likewise.
22955         * config/i386/winnt.c : Likewise.
22956         * config/ia64/ia64-c.c : Likewise.
22957         * config/ia64/ia64.c : Likewise.
22958         * config/iq2000/iq2000.c : Likewise.
22959         * config/lm32/lm32.c : Likewise.
22960         * config/m32c/m32c-pragma.c : Likewise.
22961         * config/m32c/m32c.c : Likewise.
22962         * config/m32r/m32r.c : Likewise.
22963         * config/m68k/m68k.c : Likewise.
22964         * config/mcore/mcore.c : Likewise.
22965         * config/mep/mep-pragma.c : Likewise.
22966         * config/mep/mep.c : Likewise.
22967         * config/microblaze/microblaze-c.c : Likewise.
22968         * config/microblaze/microblaze.c : Likewise.
22969         * config/mips/mips.c : Likewise.
22970         * config/mmix/mmix.c : Likewise.
22971         * config/mn10300/mn10300.c : Likewise.
22972         * config/moxie/moxie.c : Likewise.
22973         * config/msp430/msp430-c.c : Likewise.
22974         * config/msp430/msp430.c : Likewise.
22975         * config/nds32/nds32-cost.c : Likewise.
22976         * config/nds32/nds32-fp-as-gp.c : Likewise.
22977         * config/nds32/nds32-intrinsic.c : Likewise.
22978         * config/nds32/nds32-isr.c : Likewise.
22979         * config/nds32/nds32-md-auxiliary.c : Likewise.
22980         * config/nds32/nds32-memory-manipulation.c : Likewise.
22981         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
22982         * config/nds32/nds32-predicates.c : Likewise.
22983         * config/nds32/nds32.c : Likewise.
22984         * config/nios2/nios2.c : Likewise.
22985         * config/nvptx/nvptx.c : Likewise.
22986         * config/pa/pa.c : Likewise.
22987         * config/pdp11/pdp11.c : Likewise.
22988         * config/rl78/rl78-c.c : Likewise.
22989         * config/rl78/rl78.c : Likewise.
22990         * config/rs6000/rs6000-c.c : Likewise.
22991         * config/rs6000/rs6000.c : Likewise.
22992         * config/rx/rx.c : Likewise.
22993         * config/s390/s390-c.c : Likewise.
22994         * config/s390/s390.c : Likewise.
22995         * config/sh/sh-c.c : Likewise.
22996         * config/sh/sh-mem.cc : Likewise.
22997         * config/sh/sh.c : Likewise.
22998         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
22999         * config/sh/sh_treg_combine.cc : Likewise.
23000         * config/sol2-c.c : Likewise.
23001         * config/sol2-cxx.c : Likewise.
23002         * config/sol2-stubs.c : Likewise.
23003         * config/sol2.c : Likewise.
23004         * config/sparc/sparc-c.c : Likewise.
23005         * config/sparc/sparc.c : Likewise.
23006         * config/spu/spu-c.c : Likewise.
23007         * config/spu/spu.c : Likewise.
23008         * config/stormy16/stormy16.c : Likewise.
23009         * config/tilegx/mul-tables.c : Likewise.
23010         * config/tilegx/tilegx-c.c : Likewise.
23011         * config/tilegx/tilegx.c : Likewise.
23012         * config/tilepro/mul-tables.c : Likewise.
23013         * config/tilepro/tilepro-c.c : Likewise.
23014         * config/tilepro/tilepro.c : Likewise.
23015         * config/v850/v850-c.c : Likewise.
23016         * config/v850/v850.c : Likewise.
23017         * config/vax/vax.c : Likewise.
23018         * config/visium/visium.c : Likewise.
23019         * config/vms/vms-c.c : Likewise.
23020         * config/vms/vms.c : Likewise.
23021         * config/vxworks.c : Likewise.
23022         * config/winnt-c.c : Likewise.
23023         * config/xtensa/xtensa.c : Likewise.
23025 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
23027         PR lto/65378
23028         * ipa-utils.h (warn_types_mismatch): Update prototype.
23029         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
23030         parameters.
23031         (type_mismatch_p): New function.
23032         (warn_types_mismatch): Reorg to work better on non-C++ types.
23033         (odr_types_equivalent_p): Add loc1/loc2 parameters.
23034         (add_type_duplicate): Update.
23036 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23038         PR rtl-optimization/66444
23039         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
23040         call_used_regs.
23042 2015-06-08  Richard Biener  <rguenther@suse.de>
23044         PR tree-optimization/66422
23045         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
23046         block after inserted gcc_unreachable.
23048 2015-06-08  Nick Clifton  <nickc@redhat.com>
23050         * config/rx/rx.c (rx_function_value): Do not promote vector types.
23051         (rx_promote_function_mode): Likewise.
23052         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
23054 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
23056         * genattrtab.c (insn_alternatives): Change type from int *
23057         to uint64_t *.
23058         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
23059         (get_attr_value): Change type of num_alt to uint64_t.
23060         (compute_alternative_mask): Change return type from
23061         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
23062         (make_alternative_compare, mk_attr_alt): Change argument type
23063         from int to uint64_t.
23064         (simplify_test_exp): Change type of i from int to uint64_t.
23065         Shift ((uint64_t) 1) instead of 1 up.
23066         (main): Adjust oballocvec first argument from int to uint64_t.
23067         Shift ((uint64_t) 1) instead of 1 up.
23069 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
23071         PR other/65366
23072         * gdbhooks.py: Import sys.
23073         (intptr): New function.  Replace int(...) by intptr(...).
23075 2015-06-08  Richard Biener  <rguenther@suse.de>
23077         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
23078         adjustment for gaps at the end of a SLP load group properly.
23079         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
23080         all permutations we can generate.
23081         (vect_transform_slp_perm_load): Use the correct group-size.
23083 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
23085         * genmatch.c (expr::gen_transform): For conditions, guess the type
23086         from the second operand.
23088 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23090         PR tree-optimization/66442
23091         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
23092         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
23093         if the loop latch is not a singleton.  Use
23094         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
23096 2015-06-08  Marek Polacek  <polacek@redhat.com>
23098         PR sanitizer/66452
23099         * toplev.c (check_global_declaration): Don't warn about artificial
23100         decls.
23102 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23104         PR tree-optimization/66436
23105         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
23106         dump file.
23107         * gimplify.c: Add tree-dump.h include.
23108         (gimplify_function_tree): Dump function to gimple dump file.
23109         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
23110         dump file.
23112 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23114         PR tree-optimization/66435
23115         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
23116         function.
23118 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
23120         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
23121         of ptr_type_node to not be ptr_to_node.
23122         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
23123         TREE_TYPE of pointers.
23124         * gimple-expr.c (useless_type_conversion): Reorder the check for
23125         function pointers and TYPE_CANONICAL.
23127 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
23129         PR bootstrap/66319
23130         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
23131         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
23132         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
23133         later.
23134         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
23135         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
23136         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
23137         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
23138         and non iso if unix2003.
23140 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
23142         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
23144 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
23146         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
23147         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
23148         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
23149         except.c, final.c, function.c, gcse-common.c, genemit.c,
23150         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
23151         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
23152         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
23153         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
23154         more derived ones.
23156 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
23158         * combine.c (combine_split_insns): Remove cast.
23159         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
23160         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
23161         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
23162         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
23163         * genemit.c (gen_split): Change return type of generated functions to
23164         rtx_insn.
23165         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
23166         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
23167         gen_peephole2_* functions.
23168         (print_subroutine, main): Likewise.
23169         * recog.c (peephole2_optimize): Remove cast.
23170         (peep2_next_insn): Promote return type to rtx_insn.
23171         * recog.h (peep2_next_insn): Fix prototype.
23172         * rtl.h (try_split, split_insns): Likewise.
23174 2015-06-06  DJ Delorie  <dj@redhat.com>
23176         * config/msp430/msp430.c (msp430_asm_integer): Support addition
23177         and subtraction too.
23179 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
23181         PR target/66410
23182         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
23183         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
23184         instead of Snd.  Disparage Sid/z alternative with '^'.
23186 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
23188         * dwarf2out.c: Remove deferred_locations*.
23189         (dwarf2_debug_hooks): Add early_finish hook.
23190         Remove global_decl hook.
23191         Add early_global_decl and late_global_decl hook.
23192         New global early_dwarf.
23193         New structure set_early_dwarf.
23194         (output_die): Indicate whether a DIE was generated early
23195         when generating assembly with -dA.
23196         (struct limbo_die_struct): Document created_for field.
23197         Remove file_table_last_lookup.
23198         (remove_AT): Return TRUE if successful.
23199         (remove_child_TAG): Clear die_parent.
23200         (reparent_child): New function abstracted from...
23201         (splice_child_die): ...here.
23202         (new_die): ICE if a DIE ends up in limbo too late.
23203         (check_die): New.
23204         (defer_location): Remove.
23205         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
23206         (fill_variable_array_bounds): New.
23207         (decl_start_label): Call fill_variable_array_bounds.
23208         (gen_formal_parameter_die): Rewrite to reuse previously generated
23209         DIEs.
23210         (gen_subprogram_die): Same.
23211         (gen_variable_die): Same.
23212         (gen_const_die): Same.
23213         (gen_label_die): Same.
23214         (gen_lexical_block_die): Same.
23215         (decl_will_get_specification_p): New.
23216         (local_function_static): New.
23217         (gen_struct_or_union_type_die): Fill in variable-length fields.
23218         (gen_typedef_die): Fill in variable-length typedefs.
23219         (gen_tagged_type_die): Gracefully return on error_mark_node.
23220         Handle re-entrancy.
23221         (gen_type_die_with_usage): Handle variable-length types.
23222         Remove duplicate code for ARRAY_TYPE case.
23223         (process_scope_var): Only process imported modules during early
23224         dwarf.
23225         (dwarf2out_early_global_decl): New.
23226         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
23227         (dwarf2out_type_decl): Set early_dwarf while calling
23228         dwarf2out_decl.
23229         (dwarf2out_decl): Verify that we did not recreate a previously
23230         generated DIE.
23231         Do not return on DECL_EXTERNALs in VAR_DECLs.
23232         Abstract some code to local_function_static.
23233         (lookup_filename): Remove use of file_table_last_lookup.
23234         Gracefully exit on missing file_name.
23235         (dwarf2out_finish): Verify limbo list.
23236         Remove deferred_locations_list use.
23237         Move deferred_asm_name and limbo flushing to...
23238         (dwarf2out_early_finish): ...here.  New.
23239         (dwarf2out_c_finalize): Remove set of deferred_location_list,
23240         deferred_asm_name, and file_table_last_lookup.
23241         * cgraph.h (referred_to_p): Add default argument.
23242         * cgraphunit.c (referred_to_p): Add and handle include_self
23243         argument.
23244         (analyze_functions): Add first_time argument.
23245         Call check_global_declaration for all symbols.
23246         Call late_global_decl for nodes for moribund nodes.
23247         (finalize_compilation_unit): Add new argument to
23248         analyze_functions.
23249         Call early_global_decl for functions.
23250         Call early_finish debug hook.
23251         * dbxout.c (dbxout_early_global_decl): New.
23252         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
23253         (dbx_debug_hooks): Add new hooks.
23254         (xcoff_debug_hooks): Same.
23255         * debug.c (do_nothing_debug_hooks): Add early_finish field.
23256         Add early and late debug hooks.
23257         Remove global_decl hook.
23258         * debug.h (struct gcc_debug_hooks): Add early_finish,
23259         early_global_decl, and late_global_decl fields.
23260         Remove global_decl field.
23261         Document gcc_debug_hooks.
23262         * gengtype.c (output_typename): Remove.
23263         * godump.c (go_early_global_decl): New.
23264         (go_late_global_decl): New.
23265         (go_global_decl): Remove.
23266         (dump_go_spec_init): Remove global_decl.  Add
23267         {early,late}_global_decl.
23268         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
23269         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
23270         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
23271         (write_global_declarations): Remove.
23272         (global_decl_processing): New.
23273         * langhooks.h (struct lang_hooks_for_decls): Remove
23274         final_write_globals field.
23275         Add post_compilation_parsing_cleanups field.
23276         * passes.c (rest_of_decl_compilation): Call early_global_decl.
23277         * sdbout.c: Add early and late_global_decl hooks.  Remove
23278         sdbout_global_decl hook.
23279         Add early_finish field for sdb_debug_hooks.
23280         (sdbout_global_decl): Remove.
23281         (sdbout_early_global_decl): New.
23282         (sdbout_late_global_decl): New.
23283         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
23284         * toplev.c (check_global_declaration): Rename from
23285         check_global_declaration_1.
23286         Adapt to use symtab infrastructure.
23287         (check_global_declarations): Remove.
23288         (emit_debug_global_declarations): Remove.
23289         (compile_file): Remove call to final_write_globals langhook.
23290         Run the actual compilation process.
23291         Perform any post compilation parser cleanups.
23292         Generate late debug info.
23293         * toplev.h (check_global_declaration): New.
23294         (check_global_declaration_1): Remove.
23295         (check_global_declarations): Remove.
23296         (write_global_declarations): Remove.
23297         (emit_debug_global_declarations): Remove.
23298         (global_decl_processing): New.
23299         * tree-core.h (struct tree_block): Add DIE field.
23300         * tree.h (BLOCK_DIE): New.
23301         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
23302         throughout.
23303         (vmsdbgout_early_global_decl): New.
23304         (vmsdbgout_late_global_decl): New.
23305         Add early_finish debug hook field to vmsdbg_debug_hooks.
23306         Remove vmsdbgout_decl to vmsdbgout_function_decl.
23307         Add early and late_global_decl debug hooks.
23309 2015-06-05  Julian Brown  <julian@codesourcery.com>
23310             Sandra Loosemore  <sandra@codesourcery.com>
23312         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
23313         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
23314         to print-sysroot-suffix.sh script.
23316 2015-06-05  Tom de Vries  <tom@codesourcery.com>
23318         merge from gomp4 branch:
23319         2015-05-28  Tom de Vries  <tom@codesourcery.com>
23321         PR tree-optimization/65443
23322         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
23323         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
23324         (try_transform_to_exit_first_loop_alt): New function.
23325         (transform_to_exit_first_loop): Use
23326         try_transform_to_exit_first_loop_alt.
23328 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
23330         * builtins.c (expand_builtin_atomic_compare_exchange): Call
23331         emit_cmp_and_jump_insns with the mode of target.
23333 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23335         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
23337 2015-06-04  DJ Delorie  <dj@redhat.com>
23339         * config/msp430/msp430.md (movsi_s): New.  Special case for
23340         storing a 20-bit symbol into a 32-bit register.
23341         * config/msp430/msp430.c (msp430_subreg): Add support for it.
23342         * config/msp430/predicates.md (msp430_symbol_operand): New.
23344 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
23346         * c-family/c-common.c (noplt): New attribute.
23347         (handle_noplt_attribute): New handler.
23348         * calls.c (prepare_call_address): Check for noplt
23349         attribute.
23350         * config/i386/i386.c (ix86_expand_call): Check
23351         for noplt attribute.
23352         (ix86_nopic_noplt_attribute_p): New function.
23353         (ix86_output_call_insn): Output indirect call for non-pic
23354         no plt calls.
23355         * doc/extend.texi (noplt): Document new attribute.
23356         * doc/invoke.texi: Document new attribute.
23358 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
23360         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
23361         real.h, and fixed-value.h when included in host source files.
23362         * double-int.h: Remove redundant #includes listed above.
23363         * fixed-value.h: Likewise.
23364         * real.h: Likewise.
23365         * wide-int.h: Likewise.
23366         * inchash.h: Likewise.
23367         * rtl.h: Add some include files When included from a generator file.
23368         * target.h: Remove wide-int.h and insn-modes.h from the include list.
23369         * internal-fn.h: Don't include coretypes.h.
23370         * alias.c: Adjust includes for restructured coretypes.h.
23371         * asan.c: Likewise.
23372         * attribs.c: Likewise.
23373         * auto-inc-dec.c: Likewise.
23374         * auto-profile.c: Likewise.
23375         * bb-reorder.c: Likewise.
23376         * bt-load.c: Likewise.
23377         * builtins.c: Likewise.
23378         * caller-save.c: Likewise.
23379         * calls.c: Likewise.
23380         * ccmp.c: Likewise.
23381         * cfg.c: Likewise.
23382         * cfganal.c: Likewise.
23383         * cfgbuild.c: Likewise.
23384         * cfgcleanup.c: Likewise.
23385         * cfgexpand.c: Likewise.
23386         * cfghooks.c: Likewise.
23387         * cfgloop.c: Likewise.
23388         * cfgloop.h: Likewise.
23389         * cfgloopanal.c: Likewise.
23390         * cfgloopmanip.c: Likewise.
23391         * cfgrtl.c: Likewise.
23392         * cgraph.c: Likewise.
23393         * cgraphbuild.c: Likewise.
23394         * cgraphclones.c: Likewise.
23395         * cgraphunit.c: Likewise.
23396         * cilk-common.c: Likewise.
23397         * combine-stack-adj.c: Likewise.
23398         * combine.c: Likewise.
23399         * compare-elim.c: Likewise.
23400         * convert.c: Likewise.
23401         * coverage.c: Likewise.
23402         * cppbuiltin.c: Likewise.
23403         * cprop.c: Likewise.
23404         * cse.c: Likewise.
23405         * cselib.c: Likewise.
23406         * data-streamer-in.c: Likewise.
23407         * data-streamer-out.c: Likewise.
23408         * data-streamer.c: Likewise.
23409         * dbxout.c: Likewise.
23410         * dce.c: Likewise.
23411         * ddg.c: Likewise.
23412         * debug.c: Likewise.
23413         * df-core.c: Likewise.
23414         * df-problems.c: Likewise.
23415         * df-scan.c: Likewise.
23416         * df.h: Likewise.
23417         * dfp.c: Likewise.
23418         * dojump.c: Likewise.
23419         * dominance.c: Likewise.
23420         * domwalk.c: Likewise.
23421         * double-int.c: Likewise.
23422         * dse.c: Likewise.
23423         * dumpfile.c: Likewise.
23424         * dwarf2asm.c: Likewise.
23425         * dwarf2cfi.c: Likewise.
23426         * dwarf2out.c: Likewise.
23427         * dwarf2out.h: Likewise.
23428         * emit-rtl.c: Likewise.
23429         * et-forest.c: Likewise.
23430         * except.c: Likewise.
23431         * explow.c: Likewise.
23432         * expmed.c: Likewise.
23433         * expr.c: Likewise.
23434         * final.c: Likewise.
23435         * fixed-value.c: Likewise.
23436         * fold-const.c: Likewise.
23437         * function.c: Likewise.
23438         * fwprop.c: Likewise.
23439         * gcc-plugin.h: Likewise.
23440         * gcse.c: Likewise.
23441         * generic-match-head.c: Likewise.
23442         * ggc-page.c: Likewise.
23443         * gimple-builder.c: Likewise.
23444         * gimple-expr.c: Likewise.
23445         * gimple-fold.c: Likewise.
23446         * gimple-iterator.c: Likewise.
23447         * gimple-low.c: Likewise.
23448         * gimple-match-head.c: Likewise.
23449         * gimple-pretty-print.c: Likewise.
23450         * gimple-ssa-isolate-paths.c: Likewise.
23451         * gimple-ssa-strength-reduction.c: Likewise.
23452         * gimple-streamer-in.c: Likewise.
23453         * gimple-streamer-out.c: Likewise.
23454         * gimple-streamer.h: Likewise.
23455         * gimple-walk.c: Likewise.
23456         * gimple.c: Likewise.
23457         * gimplify-me.c: Likewise.
23458         * gimplify.c: Likewise.
23459         * godump.c: Likewise.
23460         * graph.c: Likewise.
23461         * graphite-blocking.c: Likewise.
23462         * graphite-dependences.c: Likewise.
23463         * graphite-interchange.c: Likewise.
23464         * graphite-isl-ast-to-gimple.c: Likewise.
23465         * graphite-optimize-isl.c: Likewise.
23466         * graphite-poly.c: Likewise.
23467         * graphite-scop-detection.c: Likewise.
23468         * graphite-sese-to-poly.c: Likewise.
23469         * graphite.c: Likewise.
23470         * haifa-sched.c: Likewise.
23471         * hooks.h: Likewise.
23472         * hw-doloop.c: Likewise.
23473         * ifcvt.c: Likewise.
23474         * incpath.c: Likewise.
23475         * init-regs.c: Likewise.
23476         * internal-fn.c: Likewise.
23477         * ipa-chkp.c: Likewise.
23478         * ipa-comdats.c: Likewise.
23479         * ipa-cp.c: Likewise.
23480         * ipa-devirt.c: Likewise.
23481         * ipa-icf-gimple.c: Likewise.
23482         * ipa-icf.c: Likewise.
23483         * ipa-inline-analysis.c: Likewise.
23484         * ipa-inline-transform.c: Likewise.
23485         * ipa-inline.c: Likewise.
23486         * ipa-polymorphic-call.c: Likewise.
23487         * ipa-profile.c: Likewise.
23488         * ipa-prop.c: Likewise.
23489         * ipa-pure-const.c: Likewise.
23490         * ipa-ref.c: Likewise.
23491         * ipa-reference.c: Likewise.
23492         * ipa-split.c: Likewise.
23493         * ipa-utils.c: Likewise.
23494         * ipa-visibility.c: Likewise.
23495         * ipa.c: Likewise.
23496         * ira-build.c: Likewise.
23497         * ira-color.c: Likewise.
23498         * ira-conflicts.c: Likewise.
23499         * ira-costs.c: Likewise.
23500         * ira-emit.c: Likewise.
23501         * ira-lives.c: Likewise.
23502         * ira.c: Likewise.
23503         * jump.c: Likewise.
23504         * langhooks.c: Likewise.
23505         * lcm.c: Likewise.
23506         * loop-doloop.c: Likewise.
23507         * loop-init.c: Likewise.
23508         * loop-invariant.c: Likewise.
23509         * loop-iv.c: Likewise.
23510         * loop-unroll.c: Likewise.
23511         * lower-subreg.c: Likewise.
23512         * lra-assigns.c: Likewise.
23513         * lra-coalesce.c: Likewise.
23514         * lra-constraints.c: Likewise.
23515         * lra-eliminations.c: Likewise.
23516         * lra-lives.c: Likewise.
23517         * lra-remat.c: Likewise.
23518         * lra-spills.c: Likewise.
23519         * lra.c: Likewise.
23520         * lto-cgraph.c: Likewise.
23521         * lto-compress.c: Likewise.
23522         * lto-opts.c: Likewise.
23523         * lto-section-in.c: Likewise.
23524         * lto-section-out.c: Likewise.
23525         * lto-streamer-in.c: Likewise.
23526         * lto-streamer-out.c: Likewise.
23527         * lto-streamer.c: Likewise.
23528         * mcf.c: Likewise.
23529         * mode-switching.c: Likewise.
23530         * modulo-sched.c: Likewise.
23531         * omega.c: Likewise.
23532         * omp-low.c: Likewise.
23533         * optabs.c: Likewise.
23534         * opts-global.c: Likewise.
23535         * passes.c: Likewise.
23536         * plugin.c: Likewise.
23537         * postreload-gcse.c: Likewise.
23538         * postreload.c: Likewise.
23539         * predict.c: Likewise.
23540         * print-rtl.c: Likewise.
23541         * print-tree.c: Likewise.
23542         * profile.c: Likewise.
23543         * real.c: Likewise.
23544         * realmpfr.c: Likewise.
23545         * realmpfr.h: Likewise.
23546         * recog.c: Likewise.
23547         * ree.c: Likewise.
23548         * reg-stack.c: Likewise.
23549         * regcprop.c: Likewise.
23550         * reginfo.c: Likewise.
23551         * regrename.c: Likewise.
23552         * regs.h: Likewise.
23553         * regstat.c: Likewise.
23554         * reload.c: Likewise.
23555         * reload1.c: Likewise.
23556         * reorg.c: Likewise.
23557         * resource.c: Likewise.
23558         * rtl-chkp.c: Likewise.
23559         * rtlanal.c: Likewise.
23560         * rtlhooks.c: Likewise.
23561         * sanopt.c: Likewise.
23562         * sched-deps.c: Likewise.
23563         * sched-ebb.c: Likewise.
23564         * sched-rgn.c: Likewise.
23565         * sched-vis.c: Likewise.
23566         * sdbout.c: Likewise.
23567         * sel-sched-dump.c: Likewise.
23568         * sel-sched-ir.c: Likewise.
23569         * sel-sched.c: Likewise.
23570         * sese.c: Likewise.
23571         * shrink-wrap.c: Likewise.
23572         * shrink-wrap.h: Likewise.
23573         * simplify-rtx.c: Likewise.
23574         * stack-ptr-mod.c: Likewise.
23575         * statistics.c: Likewise.
23576         * stmt.c: Likewise.
23577         * stor-layout.c: Likewise.
23578         * store-motion.c: Likewise.
23579         * stringpool.c: Likewise.
23580         * symtab.c: Likewise.
23581         * target-globals.c: Likewise.
23582         * targhooks.c: Likewise.
23583         * toplev.c: Likewise.
23584         * tracer.c: Likewise.
23585         * trans-mem.c: Likewise.
23586         * tree-affine.c: Likewise.
23587         * tree-affine.h: Likewise.
23588         * tree-browser.c: Likewise.
23589         * tree-call-cdce.c: Likewise.
23590         * tree-cfg.c: Likewise.
23591         * tree-cfgcleanup.c: Likewise.
23592         * tree-chkp-opt.c: Likewise.
23593         * tree-chkp.c: Likewise.
23594         * tree-chrec.c: Likewise.
23595         * tree-complex.c: Likewise.
23596         * tree-data-ref.c: Likewise.
23597         * tree-dfa.c: Likewise.
23598         * tree-diagnostic.c: Likewise.
23599         * tree-dump.c: Likewise.
23600         * tree-eh.c: Likewise.
23601         * tree-emutls.c: Likewise.
23602         * tree-if-conv.c: Likewise.
23603         * tree-inline.c: Likewise.
23604         * tree-into-ssa.c: Likewise.
23605         * tree-iterator.c: Likewise.
23606         * tree-loop-distribution.c: Likewise.
23607         * tree-nested.c: Likewise.
23608         * tree-nrv.c: Likewise.
23609         * tree-object-size.c: Likewise.
23610         * tree-outof-ssa.c: Likewise.
23611         * tree-parloops.c: Likewise.
23612         * tree-phinodes.c: Likewise.
23613         * tree-predcom.c: Likewise.
23614         * tree-pretty-print.c: Likewise.
23615         * tree-pretty-print.h: Likewise.
23616         * tree-profile.c: Likewise.
23617         * tree-scalar-evolution.c: Likewise.
23618         * tree-sra.c: Likewise.
23619         * tree-ssa-address.c: Likewise.
23620         * tree-ssa-alias.c: Likewise.
23621         * tree-ssa-ccp.c: Likewise.
23622         * tree-ssa-coalesce.c: Likewise.
23623         * tree-ssa-copy.c: Likewise.
23624         * tree-ssa-copyrename.c: Likewise.
23625         * tree-ssa-dce.c: Likewise.
23626         * tree-ssa-dom.c: Likewise.
23627         * tree-ssa-dse.c: Likewise.
23628         * tree-ssa-forwprop.c: Likewise.
23629         * tree-ssa-ifcombine.c: Likewise.
23630         * tree-ssa-live.c: Likewise.
23631         * tree-ssa-loop-ch.c: Likewise.
23632         * tree-ssa-loop-im.c: Likewise.
23633         * tree-ssa-loop-ivcanon.c: Likewise.
23634         * tree-ssa-loop-ivopts.c: Likewise.
23635         * tree-ssa-loop-manip.c: Likewise.
23636         * tree-ssa-loop-niter.c: Likewise.
23637         * tree-ssa-loop-prefetch.c: Likewise.
23638         * tree-ssa-loop-unswitch.c: Likewise.
23639         * tree-ssa-loop.c: Likewise.
23640         * tree-ssa-loop.h: Likewise.
23641         * tree-ssa-math-opts.c: Likewise.
23642         * tree-ssa-operands.c: Likewise.
23643         * tree-ssa-phiopt.c: Likewise.
23644         * tree-ssa-phiprop.c: Likewise.
23645         * tree-ssa-pre.c: Likewise.
23646         * tree-ssa-propagate.c: Likewise.
23647         * tree-ssa-reassoc.c: Likewise.
23648         * tree-ssa-sccvn.c: Likewise.
23649         * tree-ssa-scopedtables.c: Likewise.
23650         * tree-ssa-sink.c: Likewise.
23651         * tree-ssa-strlen.c: Likewise.
23652         * tree-ssa-structalias.c: Likewise.
23653         * tree-ssa-tail-merge.c: Likewise.
23654         * tree-ssa-ter.c: Likewise.
23655         * tree-ssa-threadedge.c: Likewise.
23656         * tree-ssa-threadupdate.c: Likewise.
23657         * tree-ssa-uncprop.c: Likewise.
23658         * tree-ssa-uninit.c: Likewise.
23659         * tree-ssa.c: Likewise.
23660         * tree-ssanames.c: Likewise.
23661         * tree-stdarg.c: Likewise.
23662         * tree-streamer-in.c: Likewise.
23663         * tree-streamer-out.c: Likewise.
23664         * tree-streamer.c: Likewise.
23665         * tree-switch-conversion.c: Likewise.
23666         * tree-tailcall.c: Likewise.
23667         * tree-vect-data-refs.c: Likewise.
23668         * tree-vect-generic.c: Likewise.
23669         * tree-vect-loop-manip.c: Likewise.
23670         * tree-vect-loop.c: Likewise.
23671         * tree-vect-patterns.c: Likewise.
23672         * tree-vect-slp.c: Likewise.
23673         * tree-vect-stmts.c: Likewise.
23674         * tree-vectorizer.c: Likewise.
23675         * tree-vrp.c: Likewise.
23676         * tree.c: Likewise.
23677         * tsan.c: Likewise.
23678         * ubsan.c: Likewise.
23679         * valtrack.c: Likewise.
23680         * value-prof.c: Likewise.
23681         * var-tracking.c: Likewise.
23682         * varasm.c: Likewise.
23683         * varpool.c: Likewise.
23684         * vmsdbgout.c: Likewise.
23685         * vtable-verify.c: Likewise.
23686         * web.c: Likewise.
23687         * wide-int-print.cc: Likewise.
23688         * wide-int-print.h: Likewise.
23689         * wide-int.cc: Likewise.
23690         * xcoffout.c: Likewise.
23691         * config/aarch64/aarch64-builtins.c: Likewise.
23692         * config/aarch64/aarch64.c: Likewise.
23693         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23694         * config/alpha/alpha.c: Likewise.
23695         * config/arc/arc.c: Likewise.
23696         * config/arm/aarch-common.c: Likewise.
23697         * config/arm/arm-builtins.c: Likewise.
23698         * config/arm/arm-c.c: Likewise.
23699         * config/arm/arm.c: Likewise.
23700         * config/avr/avr-c.c: Likewise.
23701         * config/avr/avr-log.c: Likewise.
23702         * config/avr/avr.c: Likewise.
23703         * config/bfin/bfin.c: Likewise.
23704         * config/c6x/c6x.c: Likewise.
23705         * config/cr16/cr16.c: Likewise.
23706         * config/cris/cris.c: Likewise.
23707         * config/darwin-c.c: Likewise.
23708         * config/darwin.c: Likewise.
23709         * config/default-c.c: Likewise.
23710         * config/epiphany/epiphany.c: Likewise.
23711         * config/epiphany/mode-switch-use.c: Likewise.
23712         * config/epiphany/resolve-sw-modes.c: Likewise.
23713         * config/fr30/fr30.c: Likewise.
23714         * config/frv/frv.c: Likewise.
23715         * config/ft32/ft32.c: Likewise.
23716         * config/glibc-c.c: Likewise.
23717         * config/h8300/h8300.c: Likewise.
23718         * config/i386/i386-c.c: Likewise.
23719         * config/i386/i386.c: Likewise.
23720         * config/i386/msformat-c.c: Likewise.
23721         * config/i386/winnt-cxx.c: Likewise.
23722         * config/i386/winnt-stubs.c: Likewise.
23723         * config/i386/winnt.c: Likewise.
23724         * config/ia64/ia64-c.c: Likewise.
23725         * config/ia64/ia64.c: Likewise.
23726         * config/iq2000/iq2000.c: Likewise.
23727         * config/lm32/lm32.c: Likewise.
23728         * config/m32c/m32c-pragma.c: Likewise.
23729         * config/m32c/m32c.c: Likewise.
23730         * config/m32r/m32r.c: Likewise.
23731         * config/m68k/m68k.c: Likewise.
23732         * config/mcore/mcore.c: Likewise.
23733         * config/mep/mep-pragma.c: Likewise.
23734         * config/mep/mep.c: Likewise.
23735         * config/microblaze/microblaze-c.c: Likewise.
23736         * config/microblaze/microblaze.c: Likewise.
23737         * config/mips/mips.c: Likewise.
23738         * config/mmix/mmix.c: Likewise.
23739         * config/mn10300/mn10300.c: Likewise.
23740         * config/moxie/moxie.c: Likewise.
23741         * config/msp430/msp430-c.c: Likewise.
23742         * config/msp430/msp430.c: Likewise.
23743         * config/nds32/nds32-cost.c: Likewise.
23744         * config/nds32/nds32-fp-as-gp.c: Likewise.
23745         * config/nds32/nds32-intrinsic.c: Likewise.
23746         * config/nds32/nds32-isr.c: Likewise.
23747         * config/nds32/nds32-md-auxiliary.c: Likewise.
23748         * config/nds32/nds32-memory-manipulation.c: Likewise.
23749         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23750         * config/nds32/nds32-predicates.c: Likewise.
23751         * config/nds32/nds32.c: Likewise.
23752         * config/nios2/nios2.c: Likewise.
23753         * config/nvptx/nvptx.c: Likewise.
23754         * config/pa/pa.c: Likewise.
23755         * config/pdp11/pdp11.c: Likewise.
23756         * config/rl78/rl78-c.c: Likewise.
23757         * config/rl78/rl78.c: Likewise.
23758         * config/rs6000/rs6000-c.c: Likewise.
23759         * config/rs6000/rs6000.c: Likewise.
23760         * config/rx/rx.c: Likewise.
23761         * config/s390/s390-c.c: Likewise.
23762         * config/s390/s390.c: Likewise.
23763         * config/sh/sh-c.c: Likewise.
23764         * config/sh/sh-mem.cc: Likewise.
23765         * config/sh/sh.c: Likewise.
23766         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23767         * config/sh/sh_treg_combine.cc: Likewise.
23768         * config/sol2-c.c: Likewise.
23769         * config/sol2-cxx.c: Likewise.
23770         * config/sol2-stubs.c: Likewise.
23771         * config/sol2.c: Likewise.
23772         * config/sparc/sparc-c.c: Likewise.
23773         * config/sparc/sparc.c: Likewise.
23774         * config/spu/spu-c.c: Likewise.
23775         * config/spu/spu.c: Likewise.
23776         * config/stormy16/stormy16.c: Likewise.
23777         * config/tilegx/mul-tables.c: Likewise.
23778         * config/tilegx/tilegx-c.c: Likewise.
23779         * config/tilegx/tilegx.c: Likewise.
23780         * config/tilepro/mul-tables.c: Likewise.
23781         * config/tilepro/tilepro-c.c: Likewise.
23782         * config/tilepro/tilepro.c: Likewise.
23783         * config/v850/v850-c.c: Likewise.
23784         * config/v850/v850.c: Likewise.
23785         * config/vax/vax.c: Likewise.
23786         * config/visium/visium.c: Likewise.
23787         * config/vms/vms-c.c: Likewise.
23788         * config/vms/vms.c: Likewise.
23789         * config/vxworks.c: Likewise.
23790         * config/winnt-c.c: Likewise.
23791         * config/xtensa/xtensa.c: Likewise.
23792         * common/config/bfin/bfin-common.c: Likewise.
23794 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
23796         * tree.h (tree_code_for_canonical_type_merging): New function.
23797         * tree.c (gimple_canonical_types_compatible_p): Use
23798         tree_code_for_canonical_type_merging..
23800 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23802         PR c++/66192
23803         PR target/66200
23804         * doc/tm.texi: Regenerate.
23805         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
23806         * target.def (TARGET_RELAXED_ORDERING): Likewise.
23807         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
23808         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
23809         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
23810         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
23811         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
23812         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
23813         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
23815 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23817         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
23818         register fma steering pass.
23819         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
23820         AARCH64_TUNE_FMA_STEERING.
23822 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
23824         * tree.c (verify_type_variant): Verify that type and variant is
23825         compatible.
23826         (gimple_canonical_types_compatible_p): Look for main variants.
23828 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
23830         * config.gcc (powerpc*-*-*): Add support for a new configure
23831         option --with-advance-toolchain=<xxx> which overrides using the
23832         default header files, libraries and dynamic linker.
23834         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
23835         specs to support the configure --with-advance-toolchain=<xxx>
23836         option.
23837         (INCLUDE_EXTRA_SPEC): Likewise.
23838         (LINK_OS_EXTRA_SPEC32): Likewise.
23839         (LINK_OK_EXTRA_SPEC64): Likewise.
23840         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
23841         (DYNAMIC_LINKER_PREFIX): Likewise.
23842         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
23843         toolchain support.
23844         (GLIBC_DYNAMIC_LINKER32): Likewise.
23845         (GLIBC_DYNAMIC_LINKER64): Likewise.
23846         (LINK_OS_LINUX_SPEC32): Likewise.
23847         (LINK_OS_LINUX_SPEC64): Likewise.
23849         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
23850         configuration option.
23852 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
23854         PR target/66275
23855         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
23856         to determine current function ABI.
23857         (ix86_function_value_regno_p): Ditto.
23859 2015-06-03  Martin Liska  <mliska@suse.cz>
23861         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
23862         * bitmap.h (struct bitmap_usage): Likewise.
23863         * ggc-common.c (struct ggc_usage): Likewise.
23864         * mem-stats.h (struct mem_location): Likewise.
23865         (struct mem_usage): Likewise.
23866         * vec.c (struct vec_usage): Likewise.
23868 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
23870         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
23871         -Bsymbolic.
23873 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
23875         * doc/plugins.texi (enum plugin_event): New event.
23876         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
23877         and PLUGIN_FINISH_FUNCTION.
23878         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
23879         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
23881 2015-06-03  Richard Biener  <rguenther@suse.de>
23883         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23884         compute GROUP_GAP for the first element.
23885         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
23886         on in-group gaps.
23888 2015-06-03  Nick Clifton  <nickc@redhat.com>
23890         * config/rl78/rl78-real.md: Add peepholes to avoid a register
23891         copy when calling a function.
23892         * config/rl78/rl78.c (need_to_save): Do not push the frame
23893         pointer in an interrupt handler prologue if it is never used.
23895 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23897         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
23899 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
23901         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
23902         reference when cloning alias node.
23904 2015-06-03  Martin Liska  <mliska@suse.cz>
23906         * alloc-pool.h (struct pool_usage): Correct space padding.
23907         * ggc-page.c (ggc_print_statistics): Align columns in a report.
23908         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
23909         * tree.c (dump_tree_statistics): Align columns in a report.
23911 2015-06-03  Martin Liska  <mliska@suse.cz>
23913         * alloc-pool.c (allocate_pool_descriptor): Remove.
23914         (struct pool_output_info): Likewise.
23915         (print_alloc_pool_statistics): Likewise.
23916         (dump_alloc_pool_statistics): Likewise.
23917         * alloc-pool.h (struct pool_usage): New struct.
23918         (pool_allocator::initialize): Change usage of memory statistics
23919         to a new interface.
23920         (pool_allocator::release): Likewise.
23921         (pool_allocator::allocate): Likewise.
23922         (pool_allocator::remove): Likewise.
23923         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
23924         for a pool allocator.
23925         * mem-stats.h (struct mem_location): Add new ctor.
23926         (struct mem_usage): Add counter for number of
23927         instances.
23928         (mem_alloc_description::register_descriptor): New overload of
23929         * mem-stats.h (mem_location::to_string): New function.
23930         * bitmap.h (struct bitmap_usage): Use this new function.
23931         * ggc-common.c (struct ggc_usage): Likewise.
23932         the function.
23934 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
23936         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
23937         of GCC_INSN_FLAGS_H block.
23939 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23941         * explow.c (plus_constant): Update check after force_const_mem call
23942         to see if the value returned is not a NULL_RTX.
23944 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
23946         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
23947         remove instumentation thunks calling reachable functions.
23948         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
23949         * lto/lto-partition.c (privatize_symbol_name_1): New.
23950         (privatize_symbol_name): Privatize both decl and orig_decl
23951         names for instrumented functions.
23952         * cgraph.c (cgraph_node::verify_node): Add transparent
23953         alias chain check for instrumented node.
23955 2015-06-03  Marek Polacek  <polacek@redhat.com>
23957         PR c/64223
23958         PR c/29358
23959         * tree.c (attribute_value_equal): Handle attribute format.
23960         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
23962 2015-06-03  Richard Biener  <rguenther@suse.de>
23964         PR tree-optimization/63916
23965         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
23966         Forward-propagate non-invariant addresses by splicing their
23967         reference ops if the result isn't going to be used by PRE.
23968         (vn_reference_lookup_3): Remove pointless assert.
23970 2015-06-03  Richard Biener  <rguenther@suse.de>
23972         PR tree-optimization/66375
23973         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
23974         add to the evolution before following SSA edges.
23976 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
23978         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
23979         (dump_use, dump_cand, find_induction_variables): Pass new argument
23980         to dump_iv.
23981         (record_use): Preserve the ssa name information in IV.
23983 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
23985         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
23986         NO_MODE_TEST.
23987         (add_mode_tests): Don't add mode tests if the predicate only
23988         accepts scalar constant integers.  Otherwise, allow the mode
23989         of "op" to be VOIDmode if the predicate does accept such integers.
23991 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
23993         PR target/66258
23994         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
23995         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
23996         (aarch64_secondary_reload): Likewise
23997         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
23998         to !TARGET_FLOAT.
23999         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
24000         Likewise.
24002 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
24003             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24005         PR target/65768
24006         * cprop.c (try_replace_reg): Check cost of constants before propagating.
24008 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24010         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
24011         provide access to the IBM extended double floating point mode if
24012         long double is IEEE 128-bit floating point.
24013         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
24014         point if long double is the IBM extended double type.
24016         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
24017         enable adding IEEE 128-bit floating point support.
24018         (-mfloat128-software): Likewise.
24019         (-mfloat128-sw): Likewise.
24021         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
24022         128-bit floating point types to occupy any register if
24023         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
24024         -mfloat128-software is enabled.
24025         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
24026         support.
24027         (rs6000_option_override_internal): Add -mfloat128-* support.
24028         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
24030         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
24031         and float128 type nodes.
24032         (ieee128_float_type_node): Likewise.
24033         (ibm128_float_type_node): Likewise.
24035 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24037         PR target/66136
24038         * config/aarch64/geniterators.sh: Rewrite in awk.
24040 2015-06-02  Martin Liska  <mliska@suse.cz>
24042         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
24043         values to avoid -Wmaybe-uninitialized errors.
24045 2015-06-02  Richard Biener  <rguenther@suse.de>
24047         PR debug/65549
24048         * dwarf2out.c (lookup_context_die): New function.
24049         (resolve_addr): Avoid forcing a full DIE for the
24050         target of a DW_TAG_GNU_call_site during late compilation.
24051         Instead create a stub DIE without a type if we have a
24052         context DIE present.
24054 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
24056         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
24058 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
24060         PR tree-optimization/48052
24061         * cfgloop.h (struct control_iv): New.
24062         (struct loop): New field control_ivs.
24063         * tree-ssa-loop-niter.c : Include "stor-layout.h".
24064         (number_of_iterations_lt): Set no_overflow information.
24065         (number_of_iterations_exit): Init control iv in niter struct.
24066         (record_control_iv): New.
24067         (estimate_numbers_of_iterations_loop): Call record_control_iv.
24068         (loop_exits_before_overflow): New.  Interface factored out of
24069         scev_probably_wraps_p.
24070         (scev_probably_wraps_p): Factor loop niter related code into
24071         loop_exits_before_overflow.
24072         (free_numbers_of_iterations_estimates_loop): Free control ivs.
24073         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
24075 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
24077         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
24078         the target doesn't belong to the current function.
24080 2015-06-02  Marek Polacek  <polacek@redhat.com>
24082         PR middle-end/66345
24083         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
24084         get_maxval_strlen does not produce an INTEGER_CST.
24086 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
24088         * config/arc/constraints.md: Use lower-case names in match_code.
24089         * config/mmix/constraints.md: Likewise.
24091 2015-06-02  Richard Biener  <rguenther@suse.de>
24093         PR tree-optimization/65961
24094         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
24095         check and clarify dump message.
24096         (vect_build_slp_tree): If all children are built up from scalars
24097         build up the parent from scalars instead.
24098         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
24100 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
24102         PR other/65366
24103         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
24104         instead of print ... .
24106 2015-06-02  Alan Modra  <amodra@gmail.com>
24108         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
24109         2014-08-11 change.
24111 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
24113         PR tree-optimization/52563
24114         PR tree-optimization/62173
24115         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
24116         (alloc_iv, set_iv): New parameter.
24117         (determine_biv_step): Delete.
24118         (find_bivs): Inline original determine_biv_step.  Pass new
24119         argument to set_iv.
24120         (idx_find_step): Use no_overflow information for conversion.
24121         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
24122         resolve_mixers handle folded_casts.
24123         (instantiate_scev_name): Change bool parameter to bool pointer.
24124         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
24125         (instantiate_array_ref, instantiate_scev_not): Ditto.
24126         (instantiate_scev_3, instantiate_scev_2): Ditto.
24127         (instantiate_scev_1, instantiate_scev_r): Ditto.
24128         (instantiate_scev_convert, ): Change parameter.  Pass argument
24129         to chrec_convert_aggressive.
24130         (instantiate_scev): Change argument.
24131         (resolve_mixers): New parameter and set it.
24132         (scev_const_prop): New argument.
24133         * tree-scalar-evolution.h (resolve_mixers): New parameter.
24134         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
24135         of chrec_conert_1.
24136         (chrec_convert): New parameter.  Move definition below.
24137         (chrec_convert_aggressive): New parameter and set it.  Call
24138         convert_affine_scev.
24139         * tree-chrec.h (chrec_convert): New parameter.
24140         (chrec_convert_aggressive): Ditto.
24142 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
24144         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
24145         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
24146         the LHS of a no-return call if its type has variable size.
24147         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
24148         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
24150 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
24152         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
24153         * config.in: Regenerate.
24155 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
24157         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
24158         consecutive accesses within outer-loop with force_vectorize
24159         for references with zero step in inner-loop.
24161 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
24163         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
24164         rather than from gcc/build directory.
24166 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
24168         PR target/65697
24169         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
24170         for __sync memory models, emit initial loads and final barriers as
24171         appropriate.
24173 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
24175         PR target/65697
24176         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
24177         (aarch64_split_atomic_op): Check for __sync memory models, emit
24178         appropriate initial loads and final barriers.
24180 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
24182         * Makefile.in: Fix gcov dependencies that should
24183         not point to a build folder.
24185 2015-06-01  Richard Biener  <rguenther@suse.de>
24187         Revert
24188         2015-05-29  Richard Biener  <rguenther@suse.de>
24190         PR tree-optimization/66314
24191         * tree-ssa-threadupdate.c (create_block_for_threading): Add
24192         parameter that says which loop the new block belongs to.
24193         (ssa_create_duplicates): Blocks duplicated for the threaded
24194         path belong to the loop of the thread destination.
24196 2015-06-01  Martin Liska  <mliska@suse.cz>
24198         * sched-deps.c: Include pool-alloc.h before
24199         cselib.h header file is included.
24201 2015-06-01  Richard Biener  <rguenther@suse.de>
24203         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
24204         functions.
24206 2015-06-01  Martin Liska  <mliska@suse.cz>
24208         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
24209         a function local variable.
24211 2015-06-01  Martin Liska  <mliska@suse.cz>
24213         * alloc-pool.c (create_alloc_pool): Remove.
24214         (empty_alloc_pool): Likewise.
24215         (free_alloc_pool): Likewise.
24216         (free_alloc_pool_if_empty): Likewise.
24217         (pool_alloc): Likewise.
24218         (pool_free): Likewise.
24219         * alloc-pool.h: Remove old declarations.
24221 2015-06-01  Martin Liska  <mliska@suse.cz>
24223         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
24224         (ira_create_object): Likewise.
24225         (ira_create_allocno): Likewise.
24226         (ira_create_live_range): Likewise.
24227         (copy_live_range): Likewise.
24228         (ira_finish_live_range): Likewise.
24229         (ira_free_allocno_costs): Likewise.
24230         (finish_allocno): Likewise.
24231         (finish_allocnos): Likewise.
24232         (initiate_prefs): Likewise.
24233         (ira_create_pref): Likewise.
24234         (finish_pref): Likewise.
24235         (finish_prefs): Likewise.
24236         (initiate_copies): Likewise.
24237         (ira_create_copy): Likewise.
24238         (finish_copy): Likewise.
24239         (finish_copies): Likewise.
24240         (finish_prefs): Likewise.
24242 2015-06-01  Martin Liska  <mliska@suse.cz>
24244         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
24245         (allocate_and_init_ipcp_value): Likewise.
24246         (ipcp_lattice::add_value): Likewise.
24247         (merge_agg_lats_step): Likewise.
24248         (ipcp_driver): Likewise.
24249         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
24250         (ipa_free_all_structures_after_iinln): Likewise.
24251         * ipa-prop.h: Likewise.
24253 2015-06-01  Martin Liska  <mliska@suse.cz>
24255         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
24256         pool allocator.
24257         (set_hint_predicate): Likewise.
24258         (inline_summary_alloc): Likewise.
24259         (reset_inline_edge_summary): Likewise.
24260         (reset_inline_summary): Likewise.
24261         (set_cond_stmt_execution_predicate): Likewise.
24262         (set_switch_stmt_execution_predicate): Likewise.
24263         (compute_bb_predicates): Likewise.
24264         (estimate_function_body_sizes): Likewise.
24265         (inline_free_summary): Likewise.
24267 2015-06-01  Martin Liska  <mliska@suse.cz>
24269         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
24270         (ipa_edge_duplication_hook): Likewise.
24271         (ipa_free_all_structures_after_ipa_cp): Likewise.
24272         (ipa_free_all_structures_after_iinln): Likewise.
24274 2015-06-01  Martin Liska  <mliska@suse.cz>
24276         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
24277         (ipa_profile_generate_summary): Likewise.
24278         (ipa_profile_read_summary): Likewise.
24279         (ipa_profile): Likewise.
24281 2015-06-01  Martin Liska  <mliska@suse.cz>
24283         * tree-ssa-structalias.c (new_var_info): Use new type-based
24284         pool allocator.
24285         (new_constraint): Likewise.
24286         (init_alias_vars): Likewise.
24287         (delete_points_to_sets): Likewise.
24289 2015-06-01  Martin Liska  <mliska@suse.cz>
24291         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
24292         (free_strinfo): Likewise.
24293         (pass_strlen::execute): Likewise.
24295 2015-06-01  Martin Liska  <mliska@suse.cz>
24297         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
24298         pool allocator.
24299         (vn_reference_insert_pieces): Likewise.
24300         (vn_phi_insert): Likewise.
24301         (visit_reference_op_call): Likewise.
24302         (copy_phi): Likewise.
24303         (copy_reference): Likewise.
24304         (process_scc): Likewise.
24305         (allocate_vn_table): Likewise.
24306         (free_vn_table): Likewise.
24308 2015-06-01  Martin Liska  <mliska@suse.cz>
24310         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
24311         pool allocator.
24312         (add_repeat_to_ops_vec): Likewise.
24313         (get_ops): Likewise.
24314         (maybe_optimize_range_tests): Likewise.
24315         (init_reassoc): Likewise.
24316         (fini_reassoc): Likewise.
24318 2015-06-01  Martin Liska  <mliska@suse.cz>
24320         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
24321         pool allocator.
24322         (bitmap_set_new): Likewise.
24323         (get_or_alloc_expr_for_constant): Likewise.
24324         (get_or_alloc_expr_for): Likewise.
24325         (phi_translate_1): Likewise.
24326         (compute_avail): Likewise.
24327         (init_pre): Likewise.
24328         (fini_pre): Likewise.
24330 2015-06-01  Martin Liska  <mliska@suse.cz>
24332         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
24333         (delete_dep_node): Likewise.
24334         (create_deps_list): Likewise.
24335         (free_deps_list): Likewise.
24336         (sched_deps_init): Likewise.
24337         (sched_deps_finish): Likewise.
24339 2015-06-01  Martin Liska  <mliska@suse.cz>
24341         * regcprop.c (free_debug_insn_changes): Use new type-based
24342         pool allocator.
24343         (replace_oldest_value_reg): Likewise.
24344         (pass_cprop_hardreg::execute): Likewise.
24346 2015-06-01  Martin Liska  <mliska@suse.cz>
24348         * ira-build.c (initiate_cost_vectors): Use new type-based
24349         pool allocator.
24350         (ira_allocate_cost_vector): Likewise.
24351         (ira_free_cost_vector): Likewise.
24352         (finish_cost_vectors): Likewise.
24354 2015-06-01  Martin Liska  <mliska@suse.cz>
24356         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
24357         pool allocator.
24358         (free_sched_pools): Likewise.
24359         * sel-sched-ir.h (_list_alloc): Likewise.
24360         (_list_remove): Likewise.
24362 2015-06-01  Martin Liska  <mliska@suse.cz>
24364         * stmt.c (add_case_node): Use new type-based pool allocator.
24365         (expand_case): Likewise.
24366         (expand_sjlj_dispatch_table): Likewise.
24368 2015-06-01  Martin Liska  <mliska@suse.cz>
24370         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
24371         (free_bb): Likewise.
24372         (pass_cse_reciprocals::execute): Likewise.
24374 2015-06-01  Martin Liska  <mliska@suse.cz>
24376         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
24377         (sra_deinitialize) Likewise.
24378         (create_access_1) Likewise.
24379         (build_accesses_from_assign) Likewise.
24380         (create_artificial_child_access) Likewise.
24382 2015-06-01  Martin Liska  <mliska@suse.cz>
24384         * dse.c (get_group_info):Use new type-based pool allocator.
24385         (dse_step0) Likewise.
24386         (free_store_info) Likewise.
24387         (delete_dead_store_insn) Likewise.
24388         (free_read_records) Likewise.
24389         (record_store) Likewise.
24390         (replace_read) Likewise.
24391         (check_mem_read_rtx) Likewise.
24392         (scan_insn) Likewise.
24393         (dse_step1) Likewise.
24394         (dse_step7) Likewise.
24396 2015-06-01  Martin Liska  <mliska@suse.cz>
24398         * df-scan.c (struct df_scan_problem_data):Use new type-based
24399         pool allocator.
24400         (df_scan_free_internal) Likewise.
24401         (df_scan_alloc) Likewise.
24402         (df_grow_reg_info) Likewise.
24403         (df_free_ref) Likewise.
24404         (df_insn_create_insn_record) Likewise.
24405         (df_mw_hardreg_chain_delete) Likewise.
24406         (df_insn_info_delete) Likewise.
24407         (df_free_collection_rec) Likewise.
24408         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
24409         (df_sort_and_compress_mws) Likewise.
24410         (df_ref_create_structure) Likewise.
24411         (df_ref_record) Likewise.
24413 2015-06-01  Martin Liska  <mliska@suse.cz>
24415         * df-problems.c (df_chain_create):Use new type-based pool allocator.
24416         (df_chain_unlink_1) Likewise.
24417         (df_chain_unlink) Likewise.
24418         (df_chain_remove_problem) Likewise.
24419         (df_chain_alloc) Likewise.
24420         (df_chain_free) Likewise.
24421         * df.h (struct dataflow) Likewise.
24423 2015-06-01  Martin Liska  <mliska@suse.cz>
24425         * cselib.c (new_elt_list):Use new type-based pool allocator.
24426         (new_elt_loc_list) Likewise.
24427         (unchain_one_elt_list) Likewise.
24428         (unchain_one_elt_loc_list) Likewise.
24429         (unchain_one_value) Likewise.
24430         (new_cselib_val) Likewise.
24431         (cselib_init) Likewise.
24432         (cselib_finish) Likewise.
24434 2015-06-01  Martin Liska  <mliska@suse.cz>
24436         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
24437         (sh_reorg) Likewise.
24439 2015-06-01  Martin Liska  <mliska@suse.cz>
24441         * cfg.c (initialize_original_copy_tables):Use new type-based
24442         pool allocator.
24443         (free_original_copy_tables) Likewise.
24444         (copy_original_table_clear) Likewise.
24445         (copy_original_table_set) Likewise.
24447 2015-06-01  Martin Liska  <mliska@suse.cz>
24449         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
24450         pool allocator.
24451         (asan_mem_ref_new) Likewise.
24452         (free_mem_ref_resources) Likewise.
24454 2015-06-01  Martin Liska  <mliska@suse.cz>
24456         * var-tracking.c (variable_htab_free):Use new type-based
24457         pool allocator.
24458         (attrs_list_clear) Likewise.
24459         (attrs_list_insert) Likewise.
24460         (attrs_list_copy) Likewise.
24461         (shared_hash_unshare) Likewise.
24462         (shared_hash_destroy) Likewise.
24463         (unshare_variable) Likewise.
24464         (var_reg_delete_and_set) Likewise.
24465         (var_reg_delete) Likewise.
24466         (var_regno_delete) Likewise.
24467         (drop_overlapping_mem_locs) Likewise.
24468         (variable_union) Likewise.
24469         (insert_into_intersection) Likewise.
24470         (canonicalize_values_star) Likewise.
24471         (variable_merge_over_cur) Likewise.
24472         (dataflow_set_merge) Likewise.
24473         (remove_duplicate_values) Likewise.
24474         (variable_post_merge_new_vals) Likewise.
24475         (dataflow_set_preserve_mem_locs) Likewise.
24476         (dataflow_set_remove_mem_locs) Likewise.
24477         (variable_from_dropped) Likewise.
24478         (variable_was_changed) Likewise.
24479         (set_slot_part) Likewise.
24480         (clobber_slot_part) Likewise.
24481         (delete_slot_part) Likewise.
24482         (loc_exp_insert_dep) Likewise.
24483         (notify_dependents_of_changed_value) Likewise.
24484         (emit_notes_for_differences_1) Likewise.
24485         (vt_emit_notes) Likewise.
24486         (vt_initialize) Likewise.
24487         (vt_finalize) Likewise.
24489 2015-06-01  Martin Liska  <mliska@suse.cz>
24491         * ira-color.c (init_update_cost_records):Use new type-based
24492         pool allocator.
24493         (get_update_cost_record) Likewise.
24494         (free_update_cost_record_list) Likewise.
24495         (finish_update_cost_records) Likewise.
24496         (initiate_cost_update) Likewise.
24498 2015-06-01  Martin Liska  <mliska@suse.cz>
24500         * lra.c (init_insn_regs): Use new type-based pool allocator.
24501         (new_insn_reg) Likewise.
24502         (free_insn_reg) Likewise.
24503         (free_insn_regs) Likewise.
24504         (finish_insn_regs) Likewise.
24505         (init_insn_recog_data) Likewise.
24506         (init_reg_info) Likewise.
24507         (finish_reg_info) Likewise.
24508         (lra_free_copies) Likewise.
24509         (lra_create_copy) Likewise.
24510         (invalidate_insn_data_regno_info) Likewise.
24512 2015-06-01  Martin Liska  <mliska@suse.cz>
24514         * lra-lives.c (free_live_range): Use new type-based pool allocator.
24515         (free_live_range_list) Likewise.
24516         (create_live_range) Likewise.
24517         (copy_live_range) Likewise.
24518         (lra_merge_live_ranges) Likewise.
24519         (remove_some_program_points_and_update_live_ranges) Likewise.
24520         (lra_live_ranges_init) Likewise.
24521         (lra_live_ranges_finish) Likewise.
24523 2015-06-01  Martin Liska  <mliska@suse.cz>
24525         * et-forest.c (et_new_occ): Use new type-based pool allocator.
24526         (et_new_tree): Likewise.
24527         (et_free_tree): Likewise.
24528         (et_free_tree_force): Likewise.
24529         (et_free_pools): Likewise.
24530         (et_split): Likewise.
24532 2015-06-01  Martin Liska  <mliska@suse.cz>
24534         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
24535         to header file.
24536         * alloc-pool.h (pool_allocator::pool_allocator): New function.
24537         (pool_allocator::release): Likewise.
24538         (inline pool_allocator::release_if_empty): Likewise.
24539         (inline pool_allocator::~pool_allocator): Likewise.
24540         (pool_allocator::allocate): Likewise.
24541         (pool_allocator::remove): Likewise.
24543 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24545         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
24546         in comment.
24548 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24550         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
24551         to fusible_ops.
24552         * config/arm/arm.c (arm_print_tune_info): Likewise.
24553         (arm_macro_fusion_p): Likewise.
24554         (arm_macro_fusion_pair_p): Likewise.
24556 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24558         * config/aarch64/aarch64-protos.h (tune_params): Rename
24559         fuseable_ops to fusible_ops.
24560         * config/aarch64/aarch64.c (generic_tunings): Rename
24561         fuseable_ops to fusible_ops.
24562         (cortexa53_tunings): Likewise.
24563         (cortexa57_tunings): Likewise.
24564         (thunderx_tunings): Likewise.
24565         (xgene1_tunings): Likewise.
24566         (aarch64_macro_fusion_p): Likewise.
24567         (aarch64_macro_fusion_pair_p): Likewise.
24569 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24571         * config/s390/driver-native.c: New file.
24572         * config/s390/x-native: New file.
24573         * config.host: Add new files for s390.
24574         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
24575         and -march=native
24576         * config.gcc: Likewise.
24577         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
24578         * config/s390/s390-opts.h (enum processor_type): Ditto.
24579         * config/s390/s390.c (s390_option_override): Catch unhandled
24580         PROCESSOR_NATIVE
24582 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
24584         PR target/65527
24585         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
24586         redirection for instrumented calls.
24587         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
24588         (append_compiler_options): Append -fcheck-pointer-bounds.
24589         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
24590         (chkp_redirect_edge): New.
24591         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
24592         (chkp_redirect_edge): New.
24594 2015-06-01  Richard Biener  <rguenther@suse.de>
24596         PR tree-optimization/66280
24597         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
24598         def-use walking.
24600 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24602         * config/aarch64/aarch64.md
24603         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
24604         logic_shift_imm.
24606 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
24608         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
24609         Remove obsolete kludge.
24611 2015-06-01  Richard Biener  <rguenther@suse.de>
24613         * tree-ssa-reassoc.c (get_rank): Simplify.
24615 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
24617         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
24618         * configure: Regenerated.
24620 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
24622         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
24623         issue (add space between string literal and macro).
24624         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
24626 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
24628         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24629         implict or explicit -fPIE or -fpie.
24631 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
24633         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
24635 2015-05-28  DJ Delorie  <dj@redhat.com>
24637         * expmed.c (extract_bit_field_1): Avoid clobbering a
24638         yet-to-be-used base/index register.
24640 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
24642         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
24643         (alias_stats): Add num_universal.
24644         (alias_set_subset_of): Special case pointers; be ready for NULL
24645         children.
24646         (alias_sets_conflict_p): Special case pointers; be ready for NULL
24647         children.
24648         (init_alias_set_entry): Break out from ...
24649         (record_alias_subset): ... here; propagate new fields;
24650         allocate children only when really needed.
24651         (get_alias_set): Do less generous pointer globbing.
24652         (dump_alias_stats_in_alias_c): Update statistics.
24654 2015-05-30  Alan Modra  <amodra@gmail.com>
24656         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
24657         correct block for use of r12.
24658         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
24660 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24662         PR target/66215
24663         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
24664         with -mhotpatch=.
24666 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
24668         PR tree-optimization/66142
24669         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
24670         virtual phis that feed themselves.
24672 2015-05-29  Richard Biener  <rguenther@suse.de>
24674         PR tree-optimization/66314
24675         * tree-ssa-threadupdate.c (create_block_for_threading): Add
24676         parameter that says which loop the new block belongs to.
24677         (ssa_create_duplicates): Blocks duplicated for the threaded
24678         path belong to the loop of the thread destination.
24680 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24682         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
24683         to cleanup-saved-temps.
24684         * doc/sourcebuild.texi (Clean up generated test files): Expand
24685         introduction.
24686         (dg-keep-saved-temps): Document new proc.
24687         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
24688         cleanup-saved-temps): Remove.
24690 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
24692         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
24693         gcc_AC_CHECK_DECLS.
24694         * configure: Regenerate.
24696 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
24698         * config/nios2/linux.h (CPP_SPEC): Define.
24700 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
24702         * config/microblaze/linux.h (CPP_SPEC): Define.
24704 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
24706         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
24707         -pthread is specified.
24709 2015-05-28  Richard Biener  <rguenther@suse.de>
24711         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
24712         (vect_fixup_scalar_cycles_with_patterns): Likewise.
24713         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
24714         after pattern recog.
24715         (vect_create_epilog_for_reduction): Properly handle reductions
24716         with patterns.
24717         (vectorizable_reduction): Likewise.
24718         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
24719         reduction chains.
24720         (vect_get_constant_vectors): Create the correct number of
24721         initial values for reductions.
24722         (vect_schedule_slp_instance): Handle reduction chains that are
24723         type changing properly.
24724         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
24726 2015-05-28  Richard Biener  <rguenther@suse.de>
24728         PR tree-optimization/66142
24729         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
24730         values better in memcpy destination handling.  Handle non-aliasing
24731         we discover here.
24733 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
24735         PR target/63810
24736         * config/darwin-c.c (version_components): New global enum.
24737         (parse_version, version_as_legacy_macro)
24738         (version_as_modern_macro, macosx_version_as_macro): New functions.
24739         (version_as_macro): Remove.
24740         (darwin_cpp_builtins): Use new function.
24742 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
24744         * builtins.c (expand_builtin_acc_on_device): Mark parameters
24745         with ATTRIBUTE_UNUSED.
24747 2015-05-28  Julian Brown  <julian@codesourcery.com>
24749         PR libgomp/65742
24751         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
24752         sequence for !ACCEL_COMPILER.
24754 2015-05-28  Nick Clifton  <nickc@redhat.com>
24756         * config/rx/rx.c (push_regs): New function.  Extracts code from...
24757         (rx_expand_prologue): ... here.  Use push_regs to push even small
24758         spans of registers.
24759         (pop_regs): New function.
24760         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
24761         registers.
24763 2015-05-28  Richard Biener  <rguenther@suse.de>
24765         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
24766         member.
24767         (SLP_INSTANCE_BODY_COST_VEC): Remove.
24768         (vect_update_slp_costs_according_to_vf): Likewise.
24769         (vect_slp_analyze_operations): Update prototype.
24770         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
24771         vect_update_slp_costs_according_to_vf, adjust.
24772         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
24773         (vect_analyze_slp_cost_1): Likewise.
24774         (vect_analyze_slp_cost): Likewise.  Properly deal with
24775         widening reduction ops.  Commit body costs.
24776         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
24777         cost for loops from here.
24778         (vect_slp_analyze_operations): But do it from here when
24779         the vectorization factor is known and stmts are analyzed.
24780         (vect_bb_vectorization_profitable_p): Simplify.
24781         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
24782         (vect_update_slp_costs_according_to_vf): Remove.
24784 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
24785             H.J. Lu  <hongjiu.lu@intel.com>
24787         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
24788         (BUILD_CFLAGS): Likewise.
24789         (BUILD_CXXFLAGS): Likewise.
24790         (LINKER): Add @NO_PIE_FLAG@.
24791         (BUILD_LDFLAGS): Likewise.
24792         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
24793         --enable-default-pie.
24794         * common.opt (fPIE): Initialize to -1.
24795         (fpie): Likewise.
24796         (no-pie): New option.
24797         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
24798         * configure.ac: Add --enable-default-pie.
24799         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
24800         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
24801         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
24802         * gcc.c (NO_PIE_SPEC): New.
24803         (PIE_SPEC): Likewise.
24804         (NO_FPIE1_SPEC): Likewise.
24805         (FPIE1_SPEC): Likewise.
24806         (NO_FPIE2_SPEC): Likewise.
24807         (FPIE2_SPEC): Likewise.
24808         (NO_FPIE2_SPEC): Likewise.
24809         (FPIE_SPEC): Likewise.
24810         (NO_FPIE_SPEC): Likewise.
24811         (NO_FPIC1_SPEC): Likewise.
24812         (FPIC1_SPEC): Likewise.
24813         (NO_FPIC2_SPEC): Likewise.
24814         (FPIC2_SPEC): Likewise.
24815         (NO_FPIC2_SPEC): Likewise.
24816         (FPIC_SPEC): Likewise.
24817         (NO_FPIC_SPEC): Likewise.
24818         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
24819         (FPIE1_OR_FPIC1_SPEC): Likewise.
24820         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
24821         (FPIE2_OR_FPIC2_SPEC): Likewise.
24822         (NO_FPIE_AND_FPIC_SPEC): Likewise.
24823         (FPIE_OR_FPIC_SPEC): Likewise.
24824         (LD_PIE_SPEC): Likewise.
24825         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
24826         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
24827         * config/darwin.h (PIE_SPEC): Renamed to ...
24828         (DARWIN_PIE_SPEC): This.
24829         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
24830         * config/darwin9.h (PIE_SPEC): Renamed to ...
24831         (DARWIN_PIE_SPEC): This.
24832         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
24833         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24834         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
24835         FPIE2_OR_FPIC2_SPEC.
24836         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
24837         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
24838         * config/sol2.h (ASM_PIC_SPEC): Likewise.
24839         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24840         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24841         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24842         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
24843         * config/m32r/m32r.h (ASM_SPEC): Likewise.
24844         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
24845         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24846         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
24847         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
24848         * config/sparc/linux.h (ASM_SPEC): Likewise.
24849         * config/sparc/linux64.h (ASM_SPEC): Likewise.
24850         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
24851         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
24852         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24853         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24854         * config/sparc/sparc.h (ASM_SPEC): Likewise.
24855         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
24856         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
24857         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
24858         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
24859         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
24860         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
24861         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
24862         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
24863         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
24864         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
24865         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
24866         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
24867         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24868         * config/vax/linux.h (ASM_SPEC): Likewise.
24869         * doc/install.texi: Document --enable-default-pie.
24870         * doc/invoke.texi: Document -no-pie.
24871         * config.in: Regenerated.
24872         * configure: Likewise.
24874 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24876         PR rtl-optimization/66168
24877         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
24878         can_move_invariant_reg.
24880 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
24882         PR target/66148
24883         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
24884         REG_EQUAL note when doing insert.
24886         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
24887         instead of "%d" for 'o' operand.
24889 2015-05-27  Nathan Sidwell  <nathan@acm.org>
24891         PR c++/66270
24892         * tree.c (build_pointer_type_for_mode): Canonical type does not
24893         inherit can_alias_all.
24894         (build_reference_type_for_mode): Likewise.
24896 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
24898         * expr.h (array_at_struct_end_p): Move to...
24899         (array_ref_element_size): Likewise.
24900         (component_ref_field_offset): Likewise.
24901         * tree.h (array_ref_element_size): ...here.
24902         (array_at_struct_end_p): Likewise.
24903         (component_ref_field_offset): Likewise.
24904         * expr.c (array_ref_element_size): Move to...
24905         (array_ref_low_bound): Likewise.
24906         (array_at_struct_end_p): Likewise.
24907         (array_ref_up_bound): Likewise.
24908         (component_ref_field_offset): Likewise.
24909         * tree.c (array_ref_element_size): ...here.
24910         (array_ref_low_bound): Likewise.
24911         (array_ref_up_bound): Likewise.
24912         (array_at_struct_end_p): Likewise.
24913         (component_ref_field_offset): Likewise.
24915 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
24916             Szabolcs Nagy  <szabolcs.nagy@arm.com>
24918         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
24920 2015-05-27  Jason Merrill  <jason@redhat.com>
24922         PR bootstrap/66304
24923         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
24924         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
24925         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
24927 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
24929         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
24930         is true.
24932         * statistics.c (statistics_fini_pass): Print pass name.
24934 2015-05-27  Richard Biener  <rguenther@suse.de>
24936         PR tree-optimization/66272
24937         Revert parts of
24938         2014-08-15  Richard Biener  <rguenther@suse.de>
24940         PR tree-optimization/62031
24941         * tree-data-ref.c (dr_analyze_indices): Do not set
24942         DR_UNCONSTRAINED_BASE.
24943         (dr_may_alias_p): All indirect accesses have to go the
24944         formerly DR_UNCONSTRAINED_BASE path.
24945         * tree-data-ref.h (struct indices): Remove
24946         unconstrained_base member.
24947         (DR_UNCONSTRAINED_BASE): Remove.
24949 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
24951         * dwarf2out.c: Remove block_map.
24952         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
24953         (gen_lexical_block_die): Same.
24954         (dwarf2out_function_decl): Remove block_map use.
24955         (dwarf2out_c_finalize): Same.
24956         * tree-core.h (struct tree_block): Add die field.
24957         * tree.h (BLOCK_DIE): New.
24959 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24961         PR target/65358
24962         * expr.c (memory_load_overlap): New function.
24963         (emit_push_insn): When pushing partial args to the stack would
24964         clobber the register part load the overlapping part into a pseudo
24965         and put it into the hard reg after pushing.  Change return type
24966         to bool.  Add bool argument.
24967         * expr.h (emit_push_insn): Change return type to bool.
24968         Add bool argument.
24969         * calls.c (expand_call): Cancel sibcall optimization when encountering
24970         partial argument on targets with ARGS_GROW_DOWNWARD and
24971         !STACK_GROWS_DOWNWARD.
24972         (emit_library_call_value_1): Update callsite of emit_push_insn.
24973         (store_one_arg): Likewise.
24975 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
24977         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
24979 2015-05-27  Martin Liska  <mliska@suse.cz>
24981         * Makefile.in: Add additional dependencies related to memory report
24982         enhancement.
24983         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
24984         * bitmap.c (struct bitmap_descriptor_d): Remove.
24985         (struct loc): Likewise.
24986         (struct bitmap_desc_hasher): Likewise.
24987         (bitmap_desc_hasher::hash): Likewise.
24988         (bitmap_desc_hasher::equal): Likewise.
24989         (get_bitmap_descriptor): Likewise.
24990         (bitmap_register): User new memory descriptor API.
24991         (register_overhead): Likewise.
24992         (bitmap_find_bit): Register nsearches and search_iter statistics.
24993         (struct bitmap_output_info): Remove.
24994         (print_statistics): Likewise.
24995         (dump_bitmap_statistics): Use new memory descriptor.
24996         * bitmap.h (struct bitmap_usage): New class.
24997         * genmatch.c: Extend header file inclusion.
24998         * genpreds.c: Likewise.
24999         * ggc-common.c (struct ggc_usage): New class.
25000         (struct ggc_loc_desc_hasher): Remove.
25001         (ggc_loc_desc_hasher::hash): Likewise.
25002         (ggc_loc_desc_hasher::equal): Likewise.
25003         (struct ggc_ptr_hash_entry): Likewise.
25004         (struct ptr_hash_hasher): Likewise.
25005         (ptr_hash_hasher::hash): Likewise.
25006         (ptr_hash_hasher::equal): Likewise.
25007         (make_loc_descriptor): Likewise.
25008         (ggc_prune_ptr): Likewise.
25009         (dump_ggc_loc_statistics): Use new memory descriptor.
25010         (ggc_record_overhead): Likewise.
25011         (ggc_free_overhead): Likewise.
25012         (final_cmp_statistic): Remove.
25013         (cmp_statistic): Likewise.
25014         (ggc_add_statistics): Liekwise.
25015         (ggc_prune_overhead_list): Likewise.
25016         * hash-map-traits.h: New file.
25017         * hash-map.h (struct default_hashmap_traits): Move the traits to a
25018         separate header file.
25019         * hash-set.h: Pass memory statistics info to ctor.
25020         * hash-table.c (void dump_hash_table_loc_statistics): New function.
25021         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
25022         (hash_table::~hash_table): Register memory release operation.
25023         (hash_table::alloc_entries): Handle memory allocation operation.
25024         (hash_table::expand): Likewise.
25025         * inchash.c (iterative_hash_hashval_t): Move implementation to header
25026         file.
25027         (iterative_hash_host_wide_int): Likewise.
25028         * inchash.h (class hash): Likewise.
25029         * mem-stats-traits.h: New file.
25030         * mem-stats.h: New file.
25031         (mem_location): Add new class.
25032         (mem_usage): Likewise.
25033         (mem_alloc_description): Likewise.
25034         * sese.c: Add new header file inclusision.
25035         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
25036         and hash_set.
25037         * tree-sra.c: Add new header file inclusision.
25038         * vec.c (struct vec_descriptor): Remove.
25039         (hash_descriptor): Likewise.
25040         (struct vec_usage): Likewise.
25041         (struct ptr_hash_entry): Likewise.
25042         (hash_ptr): Likewise.
25043         (eq_ptr): Likewise.
25044         (vec_prefix::register_overhead): Use new memory descriptor API.
25045         (vec_prefix::release_overhead): Likewise.
25046         (add_statistics): Remove.
25047         (dump_vec_loc_statistics): Use new memory descriptor API.
25048         * vec.h (struct vec_prefix): Likewise.
25049         (va_heap::reserve): Likewise.
25050         (va_heap::release): Likewise.
25051         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
25053 2015-05-27  Richard Biener  <rguenther@suse.de>
25055         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
25056         earlier and remove ??? comment.
25057         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
25058         and got called from loop analysis bail out.  Always pass the SLP
25059         node to the vectorizable_* functions.
25060         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
25061         the premature SLP check here.
25062         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
25063         detected SLP stmts.
25064         (vect_detect_hybrid_slp_1): Likewise.
25066 2015-05-26  Jeff Law  <law@redhat.com>
25068         * combine.c (find_split_point): Verify that the shift count is a
25069         constant when choosing (plus (ashift ...)) as a split point.
25071         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
25072         No functional changes.
25074 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
25076         * ipa-polymorphic-call.c
25077         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
25078         case when call target is already known.
25080 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
25082         PR target/65979
25083         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
25084         take into account the case that operands[1] and operands[2]
25085         are the same register.
25087 2015-05-26  Michael Matz  <matz@suse.de>
25089         PR middle-end/66251
25091         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
25092         stores.
25093         (vect_create_vectorized_demotion_stmts): Always set
25094         STMT_VINFO_VEC_STMT, also with SLP.
25095         (vectorizable_store): Handle strided group stores.
25097 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25099         PR target/66049
25100         * config/aarch64/aarch64.md
25101         (*adds_shift_imm_<mode>):  New pattern.
25102         (*subs_shift_imm_<mode>):  Likewise.
25103         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
25104         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
25105         (*add_uxt<mode>_shift2): Likewise.
25106         (*add_uxtsi_shift2_uxtw): Likewise.
25107         (*sub_uxt<mode>_shift2): Likewise.
25108         (*sub_uxtsi_shift2_uxtw): Likewise.
25110 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
25112         * config/rs6000/constraints.md (Y, U): Use match_test.
25114 2015-05-26  Christian Bruel  <christian.bruel@st.com>
25116         PR target/52144
25117         * config/arm/arm.c (arm_option_check_internal)
25118         (arm_option_params_internal): Check opts->target_flags to set macros.
25119         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25120         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
25121         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25122         (builtin_define): Replaced with def_or_undef_macro.
25123         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25124         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
25125         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25126         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
25127         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
25128         (TARGET_ARM_FEATURE_LDREX_P)
25129         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
25130         * config/arm/arm-c.c (def_or_undef_macro): New function.
25131         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
25133 2015-05-26  Christian Bruel  <christian.bruel@st.com>
25135         * c-common.h (builtin_define_with_int_value)
25136         (builtin_define_type_sizeof): Declare.
25137         * c-cppbuiltin.c (builtin_define_with_int_value)
25138         (builtin_define_type_sizeof): Externalize.
25139         (builtin_define_std): Cleanup declaration.
25140         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
25141         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
25142         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
25143         (builtin_define, builtin_assert): New macros.
25145 2015-05-26  Richard Biener  <rguenther@suse.de>
25147         PR tree-optimization/66142
25148         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
25149         MEM_REFs for the same base address.
25151 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25153         PR ipa/66181
25154         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
25156 2015-05-26  Jason Merrill  <jason@redhat.com>
25158         * configure.ac: Set CXXFLAGS for ISL test.
25159         * configure: Regenerate.
25161         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
25162         strstr and basename.
25163         * configure: Regenerate.
25165 2015-05-26  Richard Biener  <rguenther@suse.de>
25167         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
25168         X % C -> X & (C - 1) for C being a power-of two to ...
25169         * match.pd: ... patterns.
25171 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
25173         * match.pd (swapped_tcc_comparison): New operator list.
25174         (-A CMP -B): New simplification.
25175         * fold-const.c (fold_comparison): Remove corresponding code.
25177 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
25179         * caller-save.c (init_caller_save): Base temporary register numbers
25180         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
25181         * cfgloopanal.c (init_set_costs): Likewise.
25182         * dojump.c (prefer_and_bit_test): Likewise.
25183         * expr.c (init_expr_target): Likewise.
25184         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25185         * lower-subreg.c (init_lower_subreg): Likewise.
25186         * postreload.c (reload_cse_regs_1): Likewise.
25188 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
25190         * gensupport.h (compute_test_codes): Declare.
25191         * gensupport.c (compute_predicate_codes): Rename to...
25192         (compute_test_codes): ...this.  Generalize error message.
25193         (process_define_predicate): Update accordingly.
25194         * genpreds.c (compute_maybe_allows): Delete.
25195         (add_constraint): Use compute_test_codes to determine whether
25196         something can accept a SUBREG, REG or MEM.
25198 2015-05-26  Torvald Riegel  <triegel@redhat.com>
25200         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
25201         'memory model' to align with C++11; fix description of memory orders;
25202         fix a few typos.
25204 2015-05-26  Richard Biener  <rguenther@suse.de>
25206         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
25207         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
25208         detect whether we apply SLP.  Remove call to
25209         vect_update_slp_costs_according_to_vf.
25210         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
25211         vect_update_slp_costs_according_to_vf from here.  Dispatch
25212         to vect_slp_analyze_operations to analyze SLP stmts.
25213         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
25214         unused bb_vec_info parameter, adjust assert.
25215         (vect_slp_analyze_operations): Pass in the slp instance tree
25216         instead of bb_vec_info.
25217         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
25218         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
25220 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
25222         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
25223         Q_REGS.  Expand comment.
25224         (REG_CLASS_NAMES): Ditto.
25225         (REG_CLASS_CONTENTS): Ditto.
25227 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
25229         PR target/66274
25230         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
25231         when LEGACY_INT_REGNO_P is processed.
25233 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
25235         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
25237 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
25239         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
25240         register if not marked dead/unused, before return.
25242 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
25244         PR lto/66180
25245         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
25246         is set; check for assembler name at LTO time.
25247         (type_in_anonymous_namespace): Remove hacks, check that all
25248         anonymous types are called "<anon>"
25249         (odr_type_p): Simplify; add check for "<anon>"
25250         (odr_subtypes_equivalent): Add odr_type_p check.
25251         * tree.c (need_assembler_name_p): Even anonymous namespace needs
25252         assembler name.
25254 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
25256         * ipa-utils.h (method_class_type): Remove.
25257         * cgraphunit.c (walk_polymorphic_call_targets): Use
25258         TYPE_METHOD_BASETYPE.
25259         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
25260         on main variants only.
25261         (method_class_type): Remove.
25262         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
25263         (build_type_inheritance_graph): Likewise.
25264         * ipa-icf.c (sem_function::equals_wpa): Likewise.
25265         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
25266         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
25268 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
25270         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
25271         is_typedef_decl, typedef_variant_p): Constify.
25272         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
25273         is_typedef_decl, typedef_variant_p): Constify.
25275 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25277         * defaults.h (gen_tablejump): New function.
25278         (HAVE_tablejump): Add default value.
25279         * expr.c: Adjust.
25280         * stmt.c: Likewise.
25282 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25284         * defaults.h (gen_store_multiple): New function.
25285         (HAVE_store_multiple): Add default value.
25286         * expr.c (move_block_from_reg): Adjust.
25288 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25290         * defaults.h (gen_load_multiple): New function.
25291         (HAVE_load_multiple): Add default value.
25292         * expr.c (move_block_to_reg): Adjust.
25294 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25296         * defaults.h (gen_mem_signal_fence): New function.
25297         (HAVE_mem_signal_fence): Add default value.
25298         * optabs.c: Adjust.
25300 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25302         * defaults.h (gen_memory_barrier): New function.
25303         (HAVE_memory_barrier): Add default value.
25304         * optabs.c: Adjust.
25306 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25308         * defaults.h (gen_mem_thread_fence): New function.
25309         (HAVE_mem_thread_fence): Add default definition.
25310         * optabs.c: Adjust.
25312 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25314         * combine.c (find_split_point): Check the value of HAVE_lo_sum
25315         instead of if it is defined.
25316         (combine_simplify_rtx): Likewise.
25317         * lra-constraints.c (process_address_1): Likewise.
25318         * config/darwin.c: Adjust.
25319         * genconfig.c (main): Always define HAVE_lo_sum.
25321 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25323         * genmatch.c (parser::parse_operation): Reject expanding
25324         operator-list inside 'for'.
25326 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25328         * genmatch.c (parser::parse_for): Reject iterator if used as
25329         operator-list.
25331 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25333         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
25334         after end of id-list.
25336 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
25338         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
25339         we do not try to compute canonical type for type that does not need
25340         alias set.
25341         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
25342         FUNCITON_TYPE.
25343         * tree.h (type_with_alias_set_p): New.
25345 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
25347         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
25348         function attributes.
25349         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
25351 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
25353         * Makefile.in (check_gcc_parallelize): Delete.
25354         (lang_checks_parallelized): Update comment.
25356 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
25358         PR rtl-optimization/66237
25359         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
25360         location of an "as_a" cast.
25362 2015-05-22  Jeff Law  <law@redhat.com>
25364         * config/pa/pa.md (non-canonical shift-add insns): Remove.
25365         (peepholes with non-canonical RTL sources): Remove.
25366         (peepholes for indexed stores of FP regs in integer modes): Match and
25367         generate canonical RTL.
25369 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
25371         PR tree-optimization/63387
25372         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
25373         ((x ord x) & (y ord y) -> (x ord y),
25374         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
25375         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
25376         vectors like scalars.
25378 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
25380         * convert.c (convert_to_integer, convert_to_vector): Include the
25381         types in the error message.
25383 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
25385         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
25386         simplifications.
25388 2015-05-22  Jeff Law  <law@redhat.com>
25390         * config/pa/pa.md (integer_indexed_store splitters): Use
25391         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
25392         insns -- adjusting the constant 2nd operand accordingly.
25394         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
25395         (plus (ashift X log2) Y) if it is a split point.
25397         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
25398         out of hppa_legitimize_address to handle both forms of a multiply
25399         by 2, 4 or 8.
25400         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
25401         Always generate the ASHIFT variant as the result is not directly
25402         used in a MEM.  Update comments and refactor slightly to improve
25403         readability.
25405 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25407         PR target/65491
25408         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
25409         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
25410         (aarch64_composite_type_p): Return false if given type and mode are
25411         for a short vector.
25413 2015-05-22  Richard Biener  <rguenther@suse.de>
25415         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
25416         member.
25417         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
25418         patterns when determining whether SLP is pure.
25419         (vect_is_slp_reduction): Remove check for pattern stmts.
25420         (vect_is_simple_reduction_1): Remove dead code.
25421         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
25422         (vect_get_and_check_slp_defs): Pass in the stmt number.
25423         Allow the first def in a reduction to be not a pattern stmt when
25424         the rest of the stmts def are patterns.
25425         (vect_build_slp_tree_1): Allow tcc_expression codes like
25426         SAD_EXPR and DOT_PROD_EXPR.
25427         (vect_build_slp_tree): Adjust.
25428         (vect_analyze_slp): Refactor and move BB vect error message ...
25429         (vect_slp_analyze_bb_1): ... here.
25431 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
25433         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
25434         for CSWTCH temporary.
25436 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25438         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
25439         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
25440         unknown unspecs.
25442 2015-05-22  Richard Biener  <rguenther@suse.de>
25444         PR tree-optimization/66251
25445         * tree-vect-stmts.c (vectorizable_conversion): Properly
25446         set STMT_VINFO_VEC_STMT even for the SLP case.
25448 2015-05-22  Marek Polacek  <polacek@redhat.com>
25450         * doc/extend.texi: Use @pxref instead of @xref.
25452 2015-05-22  hiraditya  <hiraditya@msn.com>
25454         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
25455         redundant if.
25457 2015-05-22  Richard Biener  <rguenther@suse.de>
25459         PR tree-optimization/65701
25460         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25461         Move peeling cost models into one place.  Peel for alignment
25462         for single loads only if an aligned load is cheaper than
25463         an unaligned load.
25465 2015-05-22  Marek Polacek  <polacek@redhat.com>
25467         PR c/47043
25468         * doc/extend.texi (Enumerator Attributes): New section.
25469         Document syntax of enumerator attributes.
25471 2015-05-22  Richard Biener  <rguenther@suse.de>
25473         * tree-vect-loop.c (get_reduction_op): New function.
25474         (vect_model_reduction_cost): Use it, add reduc_index parameter.
25475         Make ready for BB reductions.
25476         (vect_create_epilog_for_reduction): Use get_reduction_op.
25477         (vectorizable_reduction): Init reduc_index to a valid value.
25478         Adjust vect_model_reduction_cost call.
25479         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
25480         operand for reduction defaults.  Add SAD_EXPR support.
25481         Assert we have a neutral op for SLP reductions.
25482         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
25483         walking pattern stmt ops only recurse to SSA names.
25485 2015-05-22  Richard Biener  <rguenther@suse.de>
25487         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
25488         assert with guard, remove check on detected reduction.
25489         (vect_recog_sad_pattern): Likewise.
25490         (vect_recog_widen_sum_pattern): Likewise.
25492 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25494         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
25495         __always_inline__ attribute.
25496         (vaesdq_u8): Likewise.
25497         (vaesmcq_u8): Likewise.
25498         (vaesimcq_u8): Likewise.
25499         (vsha1cq_u32): Likewise.
25500         (vsha1mq_u32): Likewise.
25501         (vsha1pq_u32): Likewise.
25502         (vsha1h_u32): Likewise.
25503         (vsha1su0q_u32): Likewise.
25504         (vsha1su1q_u32): Likewise.
25505         (vsha256hq_u32): Likewise.
25506         (vsha256h2q_u32): Likewise.
25507         (vsha256su0q_u32): Likewise.
25508         (vsha256su1q_u32): Likewise.
25509         (vmull_p64): Likewise.
25510         (vmull_high_p64): Likewise.
25512 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25514         * final.c (final_scan_insn): Don't check HAVE_peephole with the
25515         preprocessor.
25516         * output.h: Likewise.
25517         * genconfig.c (main): Alwways define HAVE_peephole.
25518         * genpeep.c: Don't emit checks of HAVE_peephole.
25520 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25522         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
25523         check HAVE_conditional_move with the preprocessor.
25525 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25527         * genconfig.c (main): Always define HAVE_conditional_move.
25528         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
25529         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
25530         is defined.
25532 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25534         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
25535         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
25536         and FRAME_POINTER_REGNUM with the preprocessor.
25538 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25540         * defaults.h: Add default for STACK_PUSH_CODE.
25541         * expr.c: Don't redefine STACK_PUSH_CODE.
25542         * recog.c: Likewise.
25544 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25546         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
25547         sched-deps.c: Use if instead of preprocessor checks with
25548         STACK_GROWS_DOWNWARD.
25550 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25552         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
25553         is defined.
25554         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
25555         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
25556         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
25557         * doc/tm.texi: Regenerate.
25559 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
25561         PR target/66232
25562         * config/i386/constraints.md (Bg): New constraint for GOT memory
25563         operand.
25564         * config/i386/i386.md (*call_got_x32): New pattern.
25565         (*call_value_got_x32): Likewise.
25566         * config/i386/predicates.md (GOT_memory_operand): New predicate.
25568 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
25570         PR tree-optimization/66233
25571         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
25572         Simplify.
25574 2015-05-21  Jeff Law  <law@redhat.com>
25576         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
25577         than MULT for shadd sequences.
25579 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
25581         * alias.c (alias_stats): New static var.
25582         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
25583         (dump_alias_stats_in_alias_c): New function.
25584         * alias.h (dump_alias_stats_in_alias_c): Declare.
25585         * tree-ssa-alias.c (dump_alias_stats): Call it.
25587 2015-05-08  Michael Matz  <matz@suse.de>
25589         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
25590         to strided_p.
25591         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
25592         (STMT_VINFO_STRIDED_P): ... this.
25593         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
25594         (vect_verify_datarefs_alignment): Likewise.
25595         (vect_enhance_data_refs_alignment): Likewise.
25596         (vect_analyze_data_ref_access): Likewise.
25597         (vect_analyze_data_refs): Accept strided stores.
25598         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
25599         (vect_model_load_cost): Adjust for macro rename.
25600         (vectorizable_mask_load_store): Likewise.
25601         (vectorizable_load): Likewise.
25602         (vectorizable_store): Open code strided stores.
25604 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25606         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
25607         Document sqrt_insn.
25609 2015-05-21  Richard Biener  <rguenther@suse.de>
25611         PR c++/66211
25612         * match.pd: Guard pattern optimzing (int)(float)int
25613         conversions to apply only on GIMPLE.
25615 2015-05-21  Jeff Law  <law@redhat.com>
25617         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
25618         multiply-accumulate/shift-add insn generation.
25620 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
25622         PR target/54236
25623         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
25624         operands[1] are the same.
25626 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
25628         PR middle-end/66221
25629         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
25630         build_distinct_type_copy to copy bounds.
25632 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
25634         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
25635         Change to unsigned int.
25637 2015-05-20  Jeff Law  <law@redhat.com>
25639         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
25640         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
25641         (pa_shadd_constant_p): Allow constants for shadd insns rather
25642         than valid scaling constants for memory addresses.
25643         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
25644         * config/pa/predicates.md (mem_shadd_operand): New predicate.
25645         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
25646         (shift-add insns using ASHIFT): New patterns.
25648 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
25650         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
25651         feasible.
25652         (fix_up_fall_thru_edges): Likewise.
25653         (fix_crossing_conditional_branches): Likewise. Promote jump targets
25654         from to rtx_insn to rtx_code_label where feasible.
25655         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
25656         gen_move_insn (returned type changed to rtx_insn).
25657         * builtins.c (expand_errno_check): Fix arguments of
25658         do_compare_rtx_and_jump (now expects rtx_code_label).
25659         (expand_builtin_acc_on_device): Likewise.
25660         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
25661         invert_jump (now exprects rtx_jump_insn).
25662         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
25663         (construct_init_block): Use rtx_code_label.
25664         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
25665         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
25666         calling redirect_jump.
25667         (patch_jump_insn): Likewise.
25668         (redirect_branch_edge): Likewise.
25669         (force_nonfallthru_and_redirect): Likewise.
25670         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
25671         when suitable.
25672         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
25673         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
25674         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
25675         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
25676         to store the value retured by gen_label_rtx.
25677         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
25678         rtx_jump_insn.
25679         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
25680         (split_branches): Fix calls of redirect_jump.
25681         * dojump.c (jumpifnot): Promote argument type from rtx to
25682         rtx_code_label.
25683         (jumpifnot_1): Likewise.
25684         (jumpif): Likewise.
25685         (jumpif_1): Likewise.
25686         (do_jump_1): Likewise.
25687         (do_jump): Likewise. Use rtx_code_label when feasible.
25688         (do_jump_by_parts_greater_rtx): Likewise.
25689         (do_jump_by_parts_zero_rtx): Likewise.
25690         (do_jump_by_parts_equality_rtx): Likewise.
25691         (do_compare_rtx_and_jump): Likewise.
25692         * dojump.h: Update function prototypes.
25693         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
25694         returns rtx_insn).
25695         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
25696         rtx_jump_insn.
25697         (emit_label_before): Likewise.
25698         (emit_jump_insn_after_noloc): Likewise.
25699         (emit_jump_insn_after_setloc): Likewise.
25700         (emit_jump_insn_after): Likewise
25701         (emit_jump_insn_before_setloc): Likewise.
25702         (emit_jump_insn_before): Likewise.
25703         (emit_label_before): Promote return type to rtx_code_label.
25704         (emit_label): Likewise.
25705         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
25706         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
25707         gen_move_insn.
25708         (emit_stack_restore): Likewise.
25709         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
25710         (do_cmp_and_jump): Likewise.
25711         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
25712         from rtx to rtx_code_label.
25713         (gen_move_insn_uncast): New function.
25714         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
25715         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
25716         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
25717         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
25718         invert_jump_1 and redirect_jump_1.
25719         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
25720         do_compare_rtx_and_jump.
25721         (expand_addsub_overflow): Likewise.
25722         (expand_neg_overflow): Likewise.
25723         (expand_mul_overflow): Likewise.
25724         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
25725         return value of gen_move_insn.
25726         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
25727         * loop-doloop.c (add_test): Use rtx_code_label.
25728         (doloop_modify): Likewise.
25729         (doloop_optimize): Likewise.
25730         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
25731         * lra-constraints.c (emit_spill_move): Remove cast of value returned
25732         by gen_move_insn.
25733         (inherit_reload_reg): Add cast when calling dump_insn_slim.
25734         (split_reg): Likewise.
25735         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
25736         gen_move_insn.
25737         * optabs.c (expand_binop_directly): Remove casts of values returned by
25738         maybe_gen_insn.
25739         (expand_unop_direct): Likewise.
25740         (expand_abs): Likewise.
25741         (maybe_emit_unop_insn): Likewise.
25742         (maybe_gen_insn): Promote return type to rtx_insn.
25743         * optabs.h: Update prototype of maybe_gen_insn.
25744         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
25745         redundant cast.
25746         * recog.c (struct peep2_insn_data): Promote type of insn field to
25747         rtx_insn.
25748         (peep2_reinit_state): Use NULL instead of NULL_RTX.
25749         (peep2_attempt): Remove casts of insn in peep2_insn_data.
25750         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
25751         * recog.h (struct insn_gen_fn): Promote return types of function
25752         pointers and operator ().from rtx to rtx_insn.
25753         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
25754         (fill_eager_delay_slots): Likewise.
25755         (relax_delay_slots): Likewise.
25756         (make_return_insns): Likewise.
25757         (dbr_schedule): Likewise.
25758         (optimize_skips): Likewise.
25759         (reorg_redirect_jump): Likewise.
25760         (fill_slots_from_thread): Likewise.
25761         * reorg.h: Update prototypes.
25762         * resource.c (find_dead_or_set_registers): Use dyn_cast to
25763         rtx_jump_insn instead of check.  Use it's jump_target method.
25764         * rtl.h (rtx_jump_insn::jump_label): Define new method.
25765         (rtx_jump_insn::jump_target): Define new method.
25766         (rtx_jump_insn::set_jump_target): Define new method.
25767         * rtlanal.c (tablejump_p): Promote type of one local variable.
25768         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
25769         (sched_analyze_insn): Likewise.
25770         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
25771         (print_insn): Likewise.
25772         * stmt.c (label_rtx): Promote return type to rtx_insn.
25773         (force_label_rtx): Likewise.
25774         (jump_target_rtx): Define new function.
25775         (expand_label): Use it, get rid of one cast.
25776         (expand_naked_return): Promote rtx to rtx_code_label.
25777         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
25778         (expand_case): Use rtx_code_label instread of rtx where feasible.
25779         (expand_sjlj_dispatch_table): Likewise.
25780         (emit_case_nodes): Likewise.
25781         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
25782         * store-motion.c (insert_store): Make use of new return type of
25783         gen_move_insn and remove a cast.
25784         (replace_store_insn): Likewise.
25786 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
25788         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
25789         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
25791 2015-05-20  Jeff Law  <law@redhat.com>
25793         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
25794         dispose of the jump thread path when the jump threading
25795         opportunity is cancelled.
25797 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25799         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
25800         when printing the caret character.
25802 2015-05-20  Marek Polacek  <polacek@redhat.com>
25804         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
25806 2015-05-20  Marek Polacek  <polacek@redhat.com>
25808         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
25809         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
25810         * gimple-fold.c (canonicalize_bool): Likewise.
25811         (same_bool_result_p): Likewise.
25812         * tree-if-conv.c (parse_predicate): Likewise.
25814 2015-05-20  Marek Polacek  <polacek@redhat.com>
25816         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
25817         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
25819 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25821         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
25822         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
25823         values.
25825 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
25827         * config/mips/mips.h (micromips_globals): Declare.
25829 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
25831         * timevar.def (TV_INITIALIZE_RTL): New.
25832         * toplev.c (initialize_rtl): Use an auto_timevar to account this
25833         function's time to TV_INITIALIZE_RTL.
25835 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
25837         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
25838         gimple_build_nop calls.
25839         (chkp_find_bounds_for_elem): Likewise.
25840         (chkp_get_zero_bounds): Likewise.
25841         (chkp_get_none_bounds): Likewise.
25842         (chkp_get_bounds_by_definition): Likewise.
25843         (chkp_generate_extern_var_bounds): Likewise.
25844         (chkp_get_bounds_for_decl_addr): Likewise.
25845         (chkp_get_bounds_for_string_cst): Likewise.
25847 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
25849         PR tree-optimization/65447
25850         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
25851         (dump_use, dump_uses): Support to dump sub use.
25852         (record_use): New parameters to support sub use.  Remove call to
25853         dump_use.
25854         (record_sub_use, record_group_use): New functions.
25855         (compute_max_addr_offset, split_all_small_groups): New functions.
25856         (group_address_uses, rewrite_use_address): New functions.
25857         (strip_offset): New declaration.
25858         (find_interesting_uses_address): Call record_group_use.
25859         (add_candidate): New assertion.
25860         (infinite_cost_p): Move definition forward.
25861         (add_costs): Check INFTY cost and return immediately.
25862         (get_computation_cost_at): Clear setup cost and dependent bitmap
25863         for sub uses.
25864         (determine_use_iv_cost_address): Compute cost for sub uses.
25865         (rewrite_use_address_1): Rename from old rewrite_use_address.
25866         (free_loop_data): Free sub uses.
25867         (tree_ssa_iv_optimize_loop): Call group_address_uses.
25869 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
25870             Jim Wilson  <jim.wilson@linaro.org>
25872         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
25873         new  fields loadv and storev.
25874         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
25875         Initialize loadv and storev.
25876         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
25877         (cortexa53_extra_costs): Likewise.
25878         (cortexa57_extra_costs): Likewise.
25879         (xgene1_extra_costs): Likewise.
25880         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
25881         rtx_costs.
25883 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
25885         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
25886          storev.
25887         (cortexa8_extra_costs): Likewise.
25888         (cortexa5_extra_costs): Likewise.
25889         (cortexa7_extra_costs): Likewise.
25890         (cortexa12_extra_costs): Likewise.
25891         (cortexa15_extra_costs): Likewise.
25892         (v7m_extra_costs): Likewise.
25894 2015-05-20  Jeff Law  <law@redhat.com>
25896         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
25897         instead of open-coded version.  Also delete the jump thread created
25898         within this function.
25900 2015-05-20  Alan Modra  <amodra@gmail.com>
25902         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
25903         stack adjusting insn.  Formatting.
25904         (rs6000_emit_prologue): Track stack adjusting insn, and use of
25905         r12.  If possible, emit first -fsplit-stack arg pointer insn
25906         before stack adjust.  Don't use r12 to save cr if split-stack.
25908 2015-05-20  Alan Modra  <amodra@gmail.com>
25910         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
25911         Define.
25912         (rs6000_supports_split_stack): New function.
25913         * config/rs6000/rs6000.c (machine_function): Add
25914         split_stack_arg_pointer.
25915         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
25916         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
25917         rather than virtual_incoming_args_rtx.
25918         (rs6000_va_start): Likewise.
25919         (split_stack_arg_pointer_used_p): New function.
25920         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
25921         (morestack_ref): New var.
25922         (gen_add3_const, rs6000_expand_split_stack_prologue,
25923         rs6000_internal_arg_pointer, rs6000_live_on_entry,
25924         rs6000_split_stack_space_check): New functions.
25925         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
25926         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
25927         (UNSPECV_SPLIT_STACK_RETURN): Define.
25928         (split_stack_prologue, load_split_stack_limit,
25929         load_split_stack_limit_di, load_split_stack_limit_si,
25930         split_stack_return, split_stack_space_check): New expands and insns.
25931         * config/rs6000/rs6000-protos.h
25932         (rs6000_expand_split_stack_prologue): Declare.
25933         (rs6000_split_stack_space_check): Declare.
25935 2015-05-20  Alan Modra  <amodra@gmail.com>
25937         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
25938         (direct_return): Test vrsave_size rather than vrsave_mask.
25939         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
25940         (rs6000_emit_epilogue): Likewise.
25942 2015-05-20  Alan Modra  <amodra@gmail.com>
25944         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
25945         when not saving registers.
25946         (debug_stack_info): Adjust to omit printing unused offsets,
25947         as before.
25948         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
25949         expression.
25951 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25953         PR c++/65835
25954         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
25955         value_type to const char *.
25957 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
25959         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
25960         to build a biarch toolchain again.
25962 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
25964         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
25965         or implicit declarations.
25966         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
25967         into it.
25968         (get_odr_type): Check type has linkage before adding bases.
25969         (register_odr_type): Check that type has linkage before adding it.
25970         (type_known_to_have_no_deriavations_p): Rename to ..
25971         (type_known_to_have_no_derivations_p): This one.
25972         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
25973         (type_known_to_have_no_derivations_p): This one.
25974         * ipa-polymorphic-call.c
25975         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
25976         type has linkage.
25978 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
25980         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
25981         (layout_type): Use RECORD_OR_UNION_TYPE_P.
25983 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25985         * config/s390/s390.c (s390_vector_bool_type_p): New function.
25986         (s390_invalid_binary_op): New function.
25987         (TARGET_INVALID_BINARY_OP): Define macro.
25989 2015-05-19  David Sherwood  <david.sherwood@arm.com>
25991         * loop-invariant.c (create_new_invariant): Don't calculate address cost
25992         if mode is not a scalar integer.
25993         (get_inv_cost): Increase computational cost for unused invariants.
25995 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25997         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
25998         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
25999         * config/s390/s390-builtin-types.def: New file.
26000         * config/s390/s390-builtins.def: New file.
26001         * config/s390/s390-builtins.h: New file.
26002         * config/s390/s390-c.c: New file.
26003         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
26004         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
26005         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
26006         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
26007         prototypes.
26008         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
26009         Include.
26010         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
26011         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
26012         variable definitions.
26013         (s390_const_operand_ok): New function.
26014         (s390_expand_builtin): Rewrite.
26015         (s390_init_builtins): New function.
26016         (s390_handle_vectorbool_attribute): New function.
26017         (s390_attribute_table): Add s390_vector_bool attribute.
26018         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
26019         (s390_branch_condition_mask): Generate masks for new modes.
26020         (s390_expand_vec_compare_cc): New function.
26021         (s390_mangle_type): Add mangling for vector bool types.
26022         (enum s390_builtin): Remove.
26023         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
26024         efpc builtins.
26025         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
26026         s390_cpu_cpp_builtins.
26027         (REGISTER_TARGET_PRAGMAS): New macro.
26028         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
26029         (insn_cmp mode attribute): Add new CC modes.
26030         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
26031         (lcbb): New pattern definition.
26032         * config/s390/s390intrin.h: Include vecintrin.h.
26033         * config/s390/t-s390: New file.
26034         * config/s390/vecintrin.h: New file.
26035         * config/s390/vector.md: Include vx-builtins.md.
26036         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
26037         support.
26039 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26041         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
26042         CCVFHE.
26043         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
26044         (s390_select_ccmode): Likewise.
26045         (s390_canonicalize_comparison): Swap operands if necessary.
26046         (s390_expand_vec_compare_scalar): Expand DFmode compare using
26047         single element vector instructions.
26048         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
26049         (s390_branch_condition_mask): Generate CC masks for the new modes.
26050         * config/s390/s390.md (v0, vf, vd): New mode attributes.
26051         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
26052         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
26053         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
26054         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
26055         (*extend<DSF:mode><BFP:mode>2): New insn definition.
26056         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
26057         (extend<DSF:mode><BFP:mode>2): Turn into expander.
26058         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
26059         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
26060         (sqrt<mode>2): Add vector instruction.
26062 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26064         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
26065         constraints.
26066         * config/s390/predicates.md (const0_operand, constm1_operand)
26067         (constable_operand): Accept vector operands.
26068         * config/s390/s390-modes.def: Add supported vector modes.
26069         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
26070         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
26071         (s390_bytemask_vector_p, s390_expand_vec_strlen)
26072         (s390_expand_vec_compare, s390_expand_vcond)
26073         (s390_expand_vec_init): Add prototypes.
26074         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
26075         (s390_vector_mode_supported_p): New function.
26076         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
26077         (s390_contiguous_bitmask_vector_p): New function.
26078         (s390_bytemask_vector_p): New function.
26079         (s390_split_ok_p): Vector regs don't work either.
26080         (regclass_map): Add VEC_REGS.
26081         (s390_legitimate_constant_p): Handle vector constants.
26082         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
26083         (legitimate_reload_vector_constant_p): New function.
26084         (s390_preferred_reload_class): Handle CONST_VECTOR.
26085         (s390_reload_symref_address):  Likewise.
26086         (s390_secondary_reload): Vector memory instructions only support
26087         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
26088         (s390_emit_ccraw_jump): New function.
26089         (s390_expand_vec_strlen): New function.
26090         (s390_expand_vec_compare): New function.
26091         (s390_expand_vcond): New function.
26092         (s390_expand_vec_init): New function.
26093         (s390_dwarf_frame_reg_mode): New function.
26094         (print_operand): Handle addresses with 'O' and 'R' constraints.
26095         (NR_C_MODES, constant_modes): Add vector modes.
26096         (s390_output_pool_entry): Handle vector constants.
26097         (s390_hard_regno_mode_ok): Handle vector registers.
26098         (s390_class_max_nregs): Likewise.
26099         (s390_cannot_change_mode_class): New function.
26100         (s390_invalid_arg_for_unprototyped_fn): New function.
26101         (s390_function_arg_vector): New function.
26102         (s390_function_arg_float): Remove size variable.
26103         (s390_pass_by_reference): Handle vector arguments.
26104         (s390_function_arg_advance): Likewise.
26105         (s390_function_arg): Likewise.
26106         (s390_return_in_memory): Vector values are returned in a VR if
26107         possible.
26108         (s390_function_and_libcall_value): Handle vector arguments.
26109         (s390_gimplify_va_arg): Likewise.
26110         (s390_call_saved_register_used): Consider the arguments named.
26111         (s390_conditional_register_usage): Disable v16-v31 for non-vec
26112         targets.
26113         (s390_preferred_simd_mode): New function.
26114         (s390_support_vector_misalignment): New function.
26115         (s390_vector_alignment): New function.
26116         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
26117         (TARGET_VECTOR_MODE_SUPPORTED_P)
26118         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
26119         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26120         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
26121         (TARGET_VECTOR_ALIGNMENT): Define target macro.
26122         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
26123         (FIRST_PSEUDO_REGISTER): Increase value.
26124         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
26125         (VECTOR_REG_P): Define macros.
26126         (FIXED_REGISTERS, CALL_USED_REGISTERS)
26127         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
26128         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
26129         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
26130         Add vector registers.
26131         (CANNOT_CHANGE_MODE_CLASS): Call C function.
26132         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
26133         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
26134         memory.
26135         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
26136         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
26137         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
26138         (VR*_REGNUM): New constants.
26139         (ALL): New mode iterator.
26140         (INTALL): Remove mode iterator.
26141         Include vector.md.
26142         (movti): Implement TImode moves for VRs.
26143         Disable TImode splitter for VR targets.
26144         Implement splitting TImode GPR<->VR moves.
26145         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
26146         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
26147         reload<mode>_la_in, reload<mode>_la_out.
26148         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
26149         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
26150         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
26151         (mov<mode> SF SD): Prefer lder, lde for loading.
26152         Add lrl and strl instructions.
26153         Add vector instructions.
26154         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
26155         Call s390_expand_vec_strlen on z13.
26156         (*cc_to_int): Change predicate to nonimmediate_operand.
26157         (addti3): Rename to *addti3.  New expander.
26158         (subti3): Rename to *subti3.  New expander.
26159         * config/s390/vector.md: New file.
26161 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26163         * common/config/s390/s390-common.c (processor_flags_table): Add
26164         z13.
26165         * config.gcc: Add z13.
26166         * config/s390/s390-opts.h (enum processor_type): Add
26167         PROCESSOR_2964_Z13.
26168         * config/s390/s390.c (s390_adjust_priority): Check for
26169         PROCESSOR_2964_Z13.
26170         (s390_reorg): Likewise.
26171         (s390_sched_reorder): Likewise.
26172         (s390_sched_variable_issue): Likewise.
26173         (s390_loop_unroll_adjust): Likewise.
26174         (s390_option_override): Likewise. Default to -mvx when available.
26175         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
26176         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
26177         (TARGET_VX_ABI): Define macros.
26178         macros.
26179         (TARGET_DEFAULT): Add MASK_OPT_VX.
26180         * config/s390/s390.md ("cpu" attribute): Add z13.
26181         ("cpu_facility" attribute): Add vec.
26182         * config/s390/s390.opt (processor_type): Add z13.
26183         (mvx): New options.
26184         * doc/invoke.texi: Add z13 option for -march.
26186 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26188         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
26189         mode check to make sure that only scalar integer values are
26190         accepted.
26192 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
26194         * tree.c (verify_type_variant): Fix #undef.
26195         (gimple_canonical_types_compatible_p): Move here from lto.c
26196         (verify_type): Verify TYPE_CANONICAL compatibility.
26197         * tree.h (gimple_canonical_types_compatible_p): Declare.
26199 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
26201         PR middle-end/66199
26202         * tree.h (OMP_TEAMS_COMBINED): Define.
26203         * gimplify.c (enum gimplify_omp_var_data): Add
26204         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
26205         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
26206         (omp_notice_variable): Accept both ORT_TEAMS
26207         and ORT_COMBINED_TEAMS.  Don't recurse if
26208         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
26209         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
26210         GOVD_FIRSTPRIVATE.
26211         (omp_no_lastprivate): New function.
26212         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
26213         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
26214         notice_outer and set appropriate bits, otherwise make
26215         sure default(none) combined constructs won't complain.
26216         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
26217         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
26218         omp_no_lastprivate either remove the clause or turn it
26219         into OMP_CLAUSE_PRIVATE.
26220         (gimplify_omp_for): Fix up handling of implicit
26221         lastprivate or linear iterators.
26222         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
26223         ORT_COMBINED_TEAMS.
26224         * omp-low.c (lower_omp_for_lastprivate): For combined
26225         for simd use fd.loop.n2 from the for rather than simd.
26227 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26229         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
26230         instead of gen_rtx_raw_REG.
26231         (cris_expand_epilogue): Likewise.
26232         * config/microblaze/microblaze.c (microblaze_classify_address):
26233         Likewise.
26234         * config/sparc/sparc.md: Likewise.
26236 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
26238         * config/alpha/alpha.c (alpha_legitimize_reload_address)
26239         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
26240         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
26241         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
26242         Use CASE_CONST_SCALAR_INT.
26243         (print_operand) <case 'M'>: Use mode_width_operand to check the
26244         value of the constant.
26245         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
26246         * config/alpha/predicates.md (input_operand): Use general_operand
26247         instead of match_code as operand check.
26248         (symbolic_operand): Use match_code with subexpression digits.
26249         * config/alpha/constraints.md (Q): Ditto.
26251 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26253         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
26255 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26257         * config/s390/s390.c (s390_secondary_reload): Fix check for
26258         load/store relative.
26260 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26262         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
26263         alternative_mask to uint64_t.
26265 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
26267         PR tree-optimization/66187
26268         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
26269         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
26270         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
26272 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
26274         * diagnostic.c (diagnostic_report_current_module): Strengthen
26275         local "new_map" from const line_map * to
26276         const line_map_ordinary *.
26277         * genmatch.c (error_cb): Likewise for local "map".
26278         (output_line_directive): Likewise for local "map".
26279         * input.c (expand_location_1): Likewise for local "map".
26280         Pass NULL rather than &map to
26281         linemap_unwind_to_first_non_reserved_loc, since the value is never
26282         read from there, and the value written back not read from here.
26283         (is_location_from_builtin_token): Strengthen local "map" from
26284         const line_map * to const line_map_ordinary *.
26285         (dump_location_info): Strengthen locals "map" from
26286         line_map *, one to const line_map_ordinary *, the other
26287         to const line_map_macro *.
26288         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
26289         const line_map * to const line_map_macro *.
26290         (maybe_unwind_expanded_macro_loc): Add a call to
26291         linemap_check_macro when writing to the "map" field of the
26292         loc_map_pair.
26293         Introduce local const line_map_ordinary * "ord_map", using it in
26294         place of "map" in the part of the function where we know we have
26295         an ordinary map.  Strengthen local "m" from const line_map * to
26296         const line_map_ordinary *.
26298 2015-05-19  Nick Clifton  <nickc@redhat.com>
26300         PR target/66156
26301         * config/msp430/msp430.md (zero_extendhisi2): Add support for
26302         separate source and destination registers.
26304 2015-05-19  Richard Biener  <rguenther@suse.de>
26306         PR tree-optimization/66165
26307         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
26308         for no load permutation.
26310         PR tree-optimization/66185
26311         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
26312         when building the SLP node from scalars.
26314 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
26315             Tristan Gingold  <gingold@adacore.com>
26317         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
26318         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
26319         (expand_stack_restore): Call record_new_stack_level.
26320         (expand_stack_save): Do not call do_pending_stack_adjust.
26321         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
26322         * calls.c (expand_call): Call record_new_stack_level for alloca.
26323         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
26324         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
26325         (update_sjlj_context): New global function.
26326         * except.h (update_sjlj_context): Declare.
26327         * explow.c (record_new_stack_level): New global function.
26328         (allocate_dynamic_stack_space): Call record_new_stack_level.
26329         * explow.h (record_new_stack_level): Declare.
26330         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
26331         * cfgrtl.c (duplicate_insn_chain): Likewise.
26333 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26335         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
26336         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
26337         STACK_GROWS_DOWNWARD as normal if.
26338         (expand_call): Likewise.
26340 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
26342         PR target/54236
26343         * config/sh/sh.md (*round_int_even): New insn_and_split and
26344         accompanying new unnamed split.
26346 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26348         * bitmap.c (bitmap_set_range): Handle count==1 specially.
26349         (bitmap_clear_range): Likewise.
26350         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
26351         bitmap_set_range unconditionally.
26352         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26353         * df-scan.c (df_mark_reg): Likewise.
26354         * haifa-sched.c (setup_ref_regs): Likewise.
26355         * sched-rgn.c (update_live_1): Likewise.
26357 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26359         * regs.h (END_HARD_REGNO): Delete.
26360         (END_REGNO): Move to...
26361         * rtl.h: ...here.
26362         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
26363         * caller-save.c (mark_set_regs): Likewise.
26364         * combine.c (move_deaths, distribute_notes): Likewise.
26365         * cse.c (invalidate, invalidate_for_call): Likewise.
26366         * df-scan.c (df_ref_record): Likewise.
26367         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
26368         (record_last_reg_set_info): Likewise.
26369         * reg-stack.c (convert_regs_exit): Likewise.
26370         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
26371         * resource.c (update_live_status): Likewise.
26372         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
26374 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26376         * rtl.h (reg_info): Add an nregs field.
26377         (REG_NREGS): Use it.
26378         (SET_REGNO_RAW): Delete.
26379         (set_regno_raw): New function.
26380         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
26381         (END_REGNO): Redefine in terms of REG_NREGS.
26382         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
26383         SET_REGNO_RAW.
26384         * emit-rtl.c (set_mode_and_regno): Likewise.
26385         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
26386         instead of SET_REGNO_RAW.
26388 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26390         * rtl.h (PUT_MODE_RAW): New macro.
26391         (PUT_REG_NOTE_KIND): Use it.
26392         (set_mode_and_regno): Declare.
26393         (gen_raw_REG): Change regno to "unsigned int".
26394         (gen_rtx_REG): Change "unsigned" to "unsigned int".
26395         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
26396         use set_mode_and_regno to change the mode of registers.
26397         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
26398         * emit-rtl.c (set_mode_and_regno): New function.
26399         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
26400         * caller-save.c (reg_save_code): Use set_mode_and_regno.
26401         * expr.c (init_expr_target): Likewise.
26402         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26403         * postreload.c (reload_cse_simplify_operands): Likewise.
26405 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26407         * caller-save.c (init_caller_save): Use word_mode and
26408         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
26409         * expr.c (init_expr_target): Likewise.
26410         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26411         * postreload.c (reload_cse_regs_1): Likewise.
26413 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26415         * rtl.def (REG): Change format to "r".
26416         * rtl.h (rtunion): Remove rt_reg.
26417         (reg_info): New structure.
26418         (rtx_def): Add reg field to main union.
26419         (X0REGATTR): Delete.
26420         (REG_CHECK): New macro.
26421         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
26422         * rtl.c (rtx_format): Document "r".
26423         (rtx_code_size): Handle REG specially.
26424         * gengenrtl.c (special_format): Return true for formats
26425         that include 'r'.
26426         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
26427         Deal with REG_ATTRS after the field loop.
26428         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
26429         * expmed.c (init_expmed): Call gen_raw_REG instead of
26430         gen_rtx_raw_REG.
26431         * expr.c (init_expr_target): Likewise.
26432         * regcprop.c (maybe_mode_change): Likewise.
26433         * varasm.c (make_decl_rtl): Likewise.
26434         * final.c (leaf_renumber_regs_insn): Return early after
26435         handling REGs.
26436         * genemit.c (gen_exp): Handle 'r' fields.
26437         * genpeep.c (match_rtx): Likewise.
26438         * gensupport.c (subst_pattern_match): Likewise.
26439         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
26440         (alter_constraints, subst_dup): Likewise.
26441         * read-rtl.c (read_rtx_code): Likewise.
26442         * print-rtl.c (print_rtx): Likewise.
26443         * genrecog.c (find_operand, find_matching_operand): Likewise.
26444         (validate_pattern, match_pattern_2): Likewise.
26445         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
26446         (rtx_test::regno_field): New function.
26447         (operator ==, safe_to_hoist_p, transition_parameter_type)
26448         (parameter_type_string, print_parameter_value)
26449         (print_nonbool_test, print_test): Handle new enum values.
26450         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
26451         * lra-constraints.c (operands_match_p): Likewise.
26453 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26455         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
26456         Change type of new_regno to unsigned int.
26457         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
26458         new_regno to unsigned int.
26459         (df_ref_change_reg_with_loc): Remove old_regno parameter.
26460         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
26461         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
26462         (SET_REGNO_RAW): Add space after ",".
26464 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26466         * rtl.h (REG_NREGS): New macro
26467         * alias.c (record_set): Use it.
26468         * cfgcleanup.c (mark_effect): Likewise.
26469         * combine.c (likely_spilled_retval_1): Likewise.
26470         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
26471         (move_deaths, distribute_notes): Likewise.
26472         * cselib.c (cselib_record_set): Likewise.
26473         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26474         * df-scan.c (df_mark_reg): Likewise.
26475         * dse.c (look_for_hardregs): Likewise.
26476         * dwarf2out.c (reg_loc_descriptor): Likewise.
26477         (multiple_reg_loc_descriptor): Likewise.
26478         * expr.c (write_complex_part, read_complex_part): Likewise.
26479         (emit_move_complex): Likewise.
26480         * haifa-sched.c (setup_ref_regs): Likewise.
26481         * ira-lives.c (mark_hard_reg_live): Likewise.
26482         * lra.c (lra_set_insn_recog_data): Likewise.
26483         * mode-switching.c (create_pre_exit): Likewise.
26484         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
26485         (reload_combine_recognize_pattern): Likewise.
26486         (reload_combine_note_use, move2add_record_mode): Likewise.
26487         (reload_cse_move2add): Likewise.
26488         * reg-stack.c (subst_stack_regs_pat): Likewise.
26489         * regcprop.c (kill_value, copy_value): Likewise.
26490         (copyprop_hardreg_forward_1): Likewise.
26491         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
26492         (build_def_use): Likewise.
26493         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
26494         (deps_analyze_insn): Likewise.
26495         * sched-rgn.c (check_live_1, update_live_1): Likewise.
26496         * sel-sched.c (count_occurrences_equiv): Likewise.
26497         * valtrack.c (dead_debug_insert_temp): Likewise.
26499 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26501         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
26502         * dse.c (note_add_store): Likewise.
26503         * ira-lives.c (mark_hard_reg_dead): Likewise.
26504         * loop-invariant.c (mark_reg_store): Likewise.
26505         (mark_reg_death): Likewise.
26506         * postreload.c (reload_combine): Likewise.
26507         (reload_combine_note_store): Likewise.
26508         (reload_combine_note_use): Likewise.
26509         * recog.c (peep2_reg_dead_p): Likewise.
26511 2015-05-19  Alan Modra  <amodra@gmail.com>
26513         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
26514         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
26515         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
26516         unused predicates.
26517         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
26518         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
26519         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
26520         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
26522 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
26524         * config/mips/mips.md (JOIN_MODE): New mode iterator.
26525         (join2_load_Store<JOIN_MODE:mode>): New pattern.
26526         (join2_loadhi): Likewise.
26527         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
26528         load-load and store-stores.
26529         * config/mips/mips.opt (mload-store-pairs): New option.
26530         (TARGET_LOAD_STORE_PAIRS): New macro.
26531         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
26532         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
26533         * config/mips/mips.c (mips_load_store_bonding_p): New function.
26535 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
26537         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
26538         explicit swaps.
26539         * dojump.c (do_compare_rtx_and_jump): Likewise.
26540         * expmed.c (emit_store_flag_1): Likewise.
26541         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
26542         * final.c (sprint_ul): Use std::reverse for reversing a string.
26543         * fold-const.c (extract_muldiv_1): Use std::swap.
26544         * genmodes.c (emit_mode_int_n): Likewise.
26545         * ifcvt.c (dead_or_predicable): Likewise.
26546         * ira-build.c (ira_merge_live_ranges): Likewise.
26547         (swap_allocno_copy_ends_if_necessary): Likewise.
26548         * ira.c (ira_setup_alts): Likewise.
26549         * loop-iv.c (iv_analyze_expr): Likewise.
26550         (implies_p): Likewise.
26551         (canon_condition): Likewise.
26552         * lra-constraints.c (swap_operands): Likewise.
26553         * lra-lives.c (lra_merge_live_ranges): Likewise.
26554         * omega.c (swap): Remove.
26555         (bswap): Remove.
26556         (omega_unprotect_1): Use std::swap.
26557         (omega_solve_geq): Likewise.
26558         * optabs.c (expand_binop_directly): Likewise.
26559         (expand_binop): Likewise.
26560         (emit_conditional_move): Likewise.
26561         (emit_conditional_add): Likewise.
26562         * postreload.c (reload_cse_simplify_operands): Likewise.
26563         * reg-stack.c (emit_swap_insn): Likewise.
26564         (swap_to_top): Likewise.
26565         (compare_for_stack_reg): Likewise.
26566         (subst_asm_stack_regs): Likewise.
26567         * reload.c (find_reloads): Likewise.
26568         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
26569         * sel-sched.c (invoke_reorder_hooks): Likewise.
26570         (create_block_for_bookkeeping): Likewise.
26571         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
26572         (lambda_matrix_right_hermite): Use std::swap.
26573         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
26574         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
26575         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
26576         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
26577         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
26578         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
26579         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
26580         * tree-vrp.c (compare_ranges): Likewise.
26581         * var-tracking.c (add_with_sets): Likewise.
26582         (vt_find_locations): Likewise.
26584 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
26586         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
26587         pie executables.
26588         (FBSD_ENDFILE_SPEC): Likewise.
26589         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
26590         config/freebsd-spec.h.
26591         (ENDFILE_SPEC): Likewise.
26593 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
26594             Richard Henderson  <rth@redhat.com>
26596         PR target/57032
26597         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
26598         Check for a memory location that is not a reference (using an AND)
26599         to an unaligned location here.
26600         * config/alpha/predicates.md (normal_memory_operand): Remove.
26602 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
26604         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
26605         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
26607 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
26609         * config/mips/mips.c (micromips_globals): New variable.
26610         (mips_set_compression_mode): Save and reinitialize target-dependent
26611         state for microMIPS.
26613 2015-05-18  Martin Liska  <mliska@suse.cz>
26615         * dbgcnt.def: Add new counter.
26616         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
26618 2015-05-18  Martin Liska  <mliska@suse.cz>
26620         * dbgcnt.def: Sort counters.
26621         * opts.c (common_handle_option): Do not compile if
26622         -fdbg-cnt-list is enabled.
26624 2015-05-18  Tom de Vries  <tom@codesourcery.com>
26626         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
26627         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
26628         address operator to va_list operand.
26629         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
26630         unconditionally.
26631         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
26632         operand.
26633         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
26634         * config/s390/s390.c (s390_gimplify_va_arg): Same.
26635         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
26637 2015-05-18  Tom de Vries  <tom@codesourcery.com>
26639         * tree-ssa-tail-merge.c: Fix whitespace.
26641 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
26643         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
26644         cortex-a17, and cortex-a17.cortex-a7.
26646 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
26648         PR target/54236
26649         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
26651 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
26653         PR target/66174
26654         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
26655         QImode inner modes for TARGET_AVX512BW.  Force mask operand
26656         to a register for AVX512F modes.
26658 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26660         * toplev.c (emit_debug_global_declarations): Do not output debug info
26661         when doing slim LTO objects.
26663 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26665         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
26666         odr_types_equivalent_p): Declare.
26667         (odr_type_p): Use gcc_checking_assert.
26668         (type_in_anonymous_namespace_p) Declare.
26669         (type_with_linkage_p): Declare.
26670         * common.opt (Wlto-type-mismatch): New warning.
26671         * ipa-devirt.c (compound_type_base): New function.
26672         (odr_or_derived_type_p): New function.
26673         (odr_types_equivalent_p): New function.
26674         (add_type_duplicate): Simplify.
26675         (type_with_linkage_p): Add hack to prevent false positives on C types
26676         (type_in_anonymous_namespace_p): Likewise.
26677         * tree.c (need_assembler_name_p): Use type_with_linkage.
26678         * tree.h (type_in_anonymous_namespace_p): Remove.
26679         * doc/invoke.texi (-Wlto-type-mismatch): Document
26681 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26683         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
26684         (verify_type): Verify STRING_FLAG.
26686 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26688         PR fortran/44054
26689         * tree-pretty-print.c (percent_K_format): Replace locus pointer
26690         with accessor function.
26691         * tree-diagnostic.c (diagnostic_report_current_function): Use
26692         diagnostic_location function.
26693         (maybe_unwind_expanded_macro_loc): Likewise.
26694         (virt_loc_aware_diagnostic_finalizer): Likewise.
26695         (default_tree_printer): Replace locus pointer with accessor function.
26696         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
26697         (diagnostic_set_info_translated): Initialize second location.
26698         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
26699         (diagnostic_show_locus): Handle two locations. Call
26700         diagnostic_print_caret_line.
26701         (diagnostic_print_caret_line): New.
26702         (default_diagnostic_starter): Use diagnostic_location function.
26703         (diagnostic_report_diagnostic): Use diagnostic_location function.
26704         (verbatim): Do not set text.locus.
26705         * diagnostic.h (struct diagnostic_info): Remove location field.
26706         (struct diagnostic_context): Make caret_chars an array of two.
26707         (diagnostic_location): New inline.
26708         (diagnostic_expand_location): Handle two locations.
26709         (diagnostic_same_line): New inline.
26710         (diagnostic_print_caret_line): Declare.
26711         (CARET_LINE_MARGIN): New constant.
26712         * pretty-print.c (pp_printf): Do not set text.locus.
26713         (pp_verbatim): Do not set text.locus.
26714         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
26715         (struct text_info): Replace locus pointer with locations
26716         array. Add accessor functions.
26718 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
26719             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26721         PR target/65768
26722         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
26723         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
26724          large constants in register instead of splitting them.
26726 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
26728         PR target/66140
26729         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
26730         replacements in memory addresses.
26731         (get_unaligned_address): Ditto.
26733 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
26735         * config/ft32/*: New files for FT32 port.
26736         * doc/install.texi: Add FT32 information.
26737         * doc/invoke.texi: Add FT32 information.
26738         * doc/md.texi: Add FT32 information.
26739         * doc/contrib.texi: Self added.
26741 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
26743         PR tree-optimization/64454
26744         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
26745         (-1 - A -> ~A): Remove unnecessary condition.
26747 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
26749         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
26750         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
26751         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
26753 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
26755         * ipa-chkp.h (chkp_wrap_function): New.
26756         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
26757         (chkp_wrap_function_name): New.
26758         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
26759         to get wrapper name.
26760         * lto-cgraph.c: Include ipa-chkp.h.
26761         (input_cgraph_1): Avoid alias chain for wrappers.
26763 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
26765         PR middle-end/66134
26766         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
26767         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
26769 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26771         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
26772         (AARCH64_FL_SLOWMUL): Delete.
26773         (AARCH64_FL_CRC): Redefine to 1<<3.
26774         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
26776 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26778         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
26779         casting.
26781 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
26783         * config/alpha/alpha.md (extendqidi2): Use general_operand
26784         instead of some_operand for operand[1] predicate.
26785         (extendhidi2): Ditto.
26786         (cbranchdi4): Use general_operand instead of some_operand
26787         for operand[1] and operands[2] predicates.
26788         (cstoredi4): Ditto.
26789         * config/alpha/predicates.md (some_operand): Remove unused predicate.
26790         (some_ni_operand): Ditto.
26792 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
26794         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
26795         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
26796         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
26797         low part of the constant using alpha_emit_set_const_1.
26798         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
26800 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
26802         * varasm.c (output_constant_pool_1): Pass down alignment from
26803         constant pool entry's descriptor to output_constant_pool_2.
26804         (output_object_block): Add comment prior to call to
26805         output_constant_pool_1.
26807 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
26809         PR rtl-optimization/65862
26810         * target.def (ira_change_pseudo_allocno_class): New hook.
26811         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
26812         value of the hook.
26813         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
26814         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
26815         hook.
26816         * ira-costs.c (find_costs_and_classes): Call the hook and change
26817         classes when it is necessary.
26818         * doc/tm.texi: Update.
26820 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
26822         * config/i386/i386.md (sibcall_memory): Check that register with
26823         callee address is not also used as one of the arguments, instead
26824         of checking that it is not live after the sibcall.
26825         (sibcall_pop_memory): Ditto.
26826         (sibcall_value_memory): Ditto.
26827         (sibcall_value_pop_memory): Ditto.
26829 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
26831         * generic-match-head.c (types_match): Handle non-types.
26832         * gimple-match-head.c (types_match): Likewise.
26833         * match.pd: Remove unnecessary TREE_TYPE for types_match.
26835 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
26837         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
26838         (csneg3<mode>_insn): Enable expansion of pattern.
26840 2015-05-14  Nick Clifton  <nickc@redhat.com>
26842         * config/rl78/rl78.c (rl78_select_section): Select the correct
26843         default section based upon the category of the decl.
26845 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
26847         PR rtl-optimization/30967
26848         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
26849         destination mode for the cost of scc patterns.
26851 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
26853         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
26854         using SWIM248 mode iterator.
26855         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
26856         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
26857         for operand[2] constraint.
26858         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
26860 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
26862         PR middle-end/66133
26863         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
26864         make sure it is never noreturn, even when the task body does not
26865         return.
26866         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
26867         right before GIMPLE_OMP_RETURN.
26868         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
26869         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
26870         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
26872 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26874         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
26875         * tree-ssa-math-opts.c: Include params.h
26876         (pow_synth_sqrt_info): New struct.
26877         (representable_as_half_series_p): New function.
26878         (get_fn_chain): Likewise.
26879         (print_nested_fn): Likewise.
26880         (dump_fractional_sqrt_sequence): Likewise.
26881         (dump_integer_part): Likewise.
26882         (expand_pow_as_sqrts): Likewise.
26883         (gimple_expand_builtin_pow): Use above to attempt to expand
26884         pow as series of square roots.  Removed now unused variables.
26886 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
26888         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
26889         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
26890         Remove *p0 and *p1 arguments.  Rewrite function.
26891         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
26892         (alpha_split_const_mov): Update calls to alpha_extract_integer and
26893         alpha_emit_set_long_const.
26894         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
26895         (alpha_output_mi_thunk_osf): Ditto.
26896         * config/alpha/alpha.md (movti): Do not check operands[1]
26897         for CONST_DOUBLE.
26899 2015-05-13  Richard Biener  <rguenther@suse.de>
26901         PR tree-optimization/66129
26902         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
26903         commutative.
26904         (vect_schedule_slp_instance): Fix typo.
26906 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
26908         * common.opt (fdump-internal-locations): New option.
26909         * input.c: Include diagnostic-core.h.
26910         (get_end_location): New function.
26911         (write_digit): New function.
26912         (write_digit_row): New function.
26913         (dump_location_range): New function.
26914         (dump_labelled_location_range): New function.
26915         (dump_location_info): New function.
26916         * input.h (dump_location_info): New prototype.
26917         * toplev.c (compile_file): Handle flag_dump_locations.
26919 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
26921         * gimple-expr.h (is_gimple_constant): Reorder.
26922         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
26924 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
26926         * combine.c (simplify_set): When generating a CC set, if the
26927         source already is in the correct mode, do not wrap it in a
26928         compare.  Simplify the rest of that code.
26930 2015-05-13  Richard Biener  <rguenther@suse.de>
26932         PR tree-optimization/66123
26933         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
26934         a taken edge.
26936 2015-05-13  Richard Biener  <rguenther@suse.de>
26938         PR middle-end/66110
26939         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
26940         specially.
26941         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
26943 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
26945         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
26946         * aclocal.m4: Regenerated with automake-1.11.6.
26948 2015-05-13  Tom de Vries  <tom@codesourcery.com>
26950         PR tree-optimization/66010
26951         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
26952         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
26953         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
26954         and rval based on do_deref.
26956 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
26958         PR target/65103
26959         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
26960         link time constants into adress expressions and therefore set
26961         their cost to 0.
26963 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
26965         PR target/66112
26966         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
26967         Use SWI248 iterator instead of SWI.
26968         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
26969         Use eq_attr "alternative" "0" instead of match_test in
26970         length_immediate attribute computation.
26971         (*mulvhi4, *mulvhi4_1): New define_insns.
26973         PR target/66112
26974         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
26975         SIGNED to get precision of non-negative value.
26977 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
26979         PR target/66048
26980         * function.c (diddle_return_value_1): Process bounds first.
26981         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
26982         register.
26984 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26986         PR rtl-optimization/64616
26987         * loop-invariant.c (can_move_invariant_reg): New.
26988         (move_invariant_reg): Call above new function to decide whether
26989         instruction can just be moved, skipping creation of temporary
26990         register.
26992 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
26994         PR target/pr66047.c
26995         * i386.c (ix86_function_sseregparm): Only return -1 if local function
26996         with implied regparm is called from -mno-sse function.
26997         (init_cumulative_args): Output error if ix86_function_sseregparm
26998         return -1 and SSE register would be needed.
26999         (function_arg_advance_32): Likewise.
27000         (function_arg_32): Likewise.
27001         * i386.h (ix86_args): Add decl field.
27003 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
27005         PR ipa/65873
27006         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
27007         inlines across optimization boundary.
27009 2015-05-12  Jason Merrill  <jason@redhat.com>
27011         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
27012         string literal and macro name.
27014 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
27016         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
27017         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
27018         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
27020 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
27022         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
27023         (-Wmisleading-indentation): New option.
27024         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
27026 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
27028         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
27029         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
27030         (alpha_extract_integer): Ditto.
27031         (alpha_legitimate_constant_p): Ditto.
27032         (alpha_split_tmode_pair): Ditto.
27033         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
27034         (alpha_expand_mov): Ditto.
27035         (print_operand): Remove handling of 'H' modifier.
27036         <case 'm'>: Remove CONST_DOUBLE handling.
27037         (summarize_insn): Handle CONST_WIDE_INT.
27038         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
27039         (anddi3): Ditto.
27040         (movti): Handle CONST_WIDE_INT.
27041         * config/alpha/constraints.md ('H'): Remove constraint definition.
27042         ('G'): Do not match MODE_FLOAT class.
27043         * config/alpha/predicates.md (const0_operand): Also match
27044         const_wide_int.
27045         (non_add_const_operand): Ditto.
27046         (non_zero_const_operand): Ditto.
27047         (some_operand): Ditto.
27048         (input_operand): Ditto.  Handle CONST_WIDE_INT.
27049         (and_operand): Do not match const_double.
27050         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
27052 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
27054         PR target/65697
27055         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
27056         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
27057         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
27058         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
27059         is_mm_seq_cst, is_mm_sync): New accessor functions.
27060         * builtins.c (expand_builtin_sync_operation,
27061         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
27062         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
27063         (get_memmodel,  expand_builtin_atomic_compare_exchange,
27064         expand_builtin_atomic_load, expand_builtin_atomic_store,
27065         expand_builtin_atomic_clear): Use new accessor routines.
27066         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
27067         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
27068         (maybe_emit_sync_lock_test_and_set): Use new accessors and
27069         MEMMODEL_SYNC_ACQUIRE.
27070         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
27071         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
27072         expand_atomic_store): Use new accessors.
27073         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
27074         * tsan.c (instrument_builtin_call): Update check for memory model beyond
27075         final enum to use MEMMODEL_LAST.
27076         * c-family/c-common.c: Use new accessor for memmodel_base.
27077         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
27078         accessors.
27079         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
27080         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
27081         mem_thread_fence, *dmb): Likewise.
27082         * config/alpha/alpha.c (alpha_split_compare_and_swap,
27083         alpha_split_compare_and_swap_12): Likewise.
27084         * config/arm/arm.c (arm_expand_compare_and_swap,
27085         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
27086         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
27087         atomic_loaddi): Likewise.
27088         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
27089         Likewise.
27090         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
27091         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
27092         use new accessors.
27093         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
27094         atomic_store<mode>, atomic_compare_and_swap<mode>,
27095         atomic_exchange<mode>): Use new accessors.
27096         * config/mips/mips.c (mips_process_sync_loop): Likewise.
27097         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
27098         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
27099         rs6000_post_atomic_barrier): Add new cases.
27100         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
27101         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
27102         (atomic_load<mode>): Add new cases and use new accessors.
27103         (store_quadpti): Add new cases.
27104         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
27105         accessors.
27106         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
27107         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
27108         model, not 8.
27110 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
27112         * ipa-devirt.c (type_with_linkage_p): New function.
27113         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
27114         type has linkage.
27115         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
27116         (can_be_name_hashed_p): Simplify.
27117         (hash_odr_name): Check that type has linkage before checking if it is
27118         anonymous.
27119         (types_same_for_odr): Likewise.
27120         (odr_name_hasher::equal): Likewise.
27121         (odr_subtypes_equivalent_p): Likewise.
27122         (warn_types_mismatch): Likewise.
27123         (get_odr_type): Likewise.
27124         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
27125         * ipa-utils.h (odr_type_p): Move offline.
27126         * tree.c (need_assembler_name_p): Fix handling of types
27127         without linkages.
27128         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
27130 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
27132         * timevar.c (timevar_enable): Delete in favor of...
27133         (g_timer): New global.
27134         (struct timevar_def): Move to timevar.h inside class timer.
27135         (struct timevar_stack_def): Likewise.
27136         (timevars): Delete global in favor of field "m_timevars" within
27137         class timer in timevar.h
27138         (stack): Likewise, in favor of field "m_stack".
27139         (unused_stack_instances): Likewise, in favor of field
27140         "m_unused_stack_instances".
27141         (start_time): Likewise, in favor of field "m_start_time".
27142         (get_time): Eliminate check for timevar_enable.
27143         (timer::timer): New function, built from part of timevar_init.
27144         (timevar_init): Rewrite idempotency test from using
27145         "timevar_enable" bool to using dynamic allocation of "g_timer".
27146         Move rest of implementation into timer's constructor.
27147         (timevar_push_1): Rename to...
27148         (timer::push): ...this, adding "m_" prefixes to variables that
27149         are now fields of timer.
27150         (timevar_pop_1): Likewise, rename to...
27151         (timer::pop): ...this, and add "m_" prefixes.
27152         (timevar_start): Replace test for "timevar_enable" with one for
27153         "g_timer", and move bulk of implementation to...
27154         (timer::start): ...here, adding "m_" prefixes.
27155         (timevar_stop): Likewise, from here...
27156         (timer::stop): ...to here.
27157         (timevar_cond_start): Likewise, from here...
27158         (timer::cond_start): ...to here.
27159         (timevar_cond_stop): Likewise, from here...
27160         (timer::cond_stop): ...to here.
27161         (validate_phases): Rename to...
27162         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
27163         locals "total" and "tv" const.
27164         (timevar_print): Rename to...
27165         (timer::print): ...this, and add "m_" prefixes.  Make locals
27166         "total" and "tv" const.  Eliminate test for timevar_enable.
27167         * timevar.h (timevar_enable): Eliminate.
27168         (g_timer): New declaration.
27169         (timevar_push_1): Eliminate.
27170         (timevar_pop_1): Eliminate.
27171         (timevar_print): Eliminate.
27172         (class timer): New class.
27173         (timevar_push): Rewrite to use g_timer.
27174         (timevar_pop): Likewise.
27175         * toplev.c (toplev::~toplev): Likewise.
27177 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
27179         * arm-protos.h (arm_sched_autopref): Delete.
27180         (tune_params): Re-organize, use enums for flag values.
27181         (FUSE_OPS): New macro.
27182         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
27183         (ARM_PREFETCH_BENEFICIAL): Likewise.
27184         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
27185         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
27186         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
27187         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
27188         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
27189         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
27190         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
27191         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
27192         format.
27193         (arm_option_override, thumb2_reorg, arm_print_tune_info)
27194         (aarch_macro_fusion_pair_p): Update uses of current_tune.
27195         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
27197 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
27199         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
27200         "break".
27202 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
27203             Sandra Loosemore <sandra@codesourcery.com>
27205         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
27206         value.
27207         (REG_CLASS_NAMES): Add "IJMP_REGS".
27208         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
27209         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
27210         use new "c" register constraint.
27211         * config/nios2/constraint.md (c): New register constraint
27212         corresponding to IJMP_REGS.
27214 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27216         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
27217         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
27218         define_splits): Delete, revamp, transmogrify into ...
27219         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
27220         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
27221         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
27222         New.
27224 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27226         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
27227         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
27229 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27231         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
27232         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
27233         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
27234         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
27235         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
27236         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
27237         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
27238         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
27239         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
27240         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
27241         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
27242         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
27243         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
27244         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
27245         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
27246         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
27247         and 30 corresponding splitters): Delete.
27249 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27251         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
27252         zero_extract.
27254 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27256         * combine.c (recog_for_combine_1): New function, factored out
27257         from recog_for_combine.
27258         (change_zero_ext): New function.
27259         (recog_for_combine): If recog fails, try again with the pattern
27260         modified by change_zero_ext; if that still fails, restore the
27261         pattern.
27263 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27265         * combine.c (get_undo_marker): New function.
27266         (undo_to_marker): New function, largely factored out from ...
27267         (undo_all): ... this.  Adjust.
27269 2015-05-12  Richard Biener  <rguenther@suse.de>
27271         PR tree-optimization/66101
27272         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
27273         fixup if we turn a loop exit edge to a fallthru edge.
27275 2015-05-12  Richard Biener  <rguenther@suse.de>
27277         PR tree-optimization/37021
27278         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
27279         (SLP_TREE_TWO_OPERATORS): New define.
27280         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
27281         SLP_TREE_TWO_OPERATORS.
27282         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
27283         SLP node.
27284         (vect_build_slp_tree): Adjust.
27285         (vect_analyze_slp_cost_1): Likewise.
27286         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
27287         emitting two vector stmts and mixing the results.
27289 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27291         * call.c (print_z_candidates): Remove dead code.
27293 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27295         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
27296         and zEC12_simple_fp.
27297         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
27298         to 1.
27300 2015-05-12  Tom de Vries  <tom@codesourcery.com>
27302         PR tree-optimization/66010
27303         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
27304         ifn_va_arg.
27305         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
27306         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
27307         va_lists are passed, and remove corresponding handling.
27308         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
27309         do_deref argument to ifn_va_arg.
27310         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
27311         ifn_va_arg.
27313 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27315         PR target/65955
27316         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
27317         REG before taking its REGNO.
27319 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27321         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
27322         rsp->sign_bit_copies and rsp->nonzero_bits into ...
27323         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
27324         present to get more accurate information about the number of sign bit
27325         copies and non zero bits.
27327 2015-05-12  Richard Biener  <rguenther@suse.de>
27329         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
27330         do not allow unrolling.
27332 2015-05-11  Richard Henderson  <rth@redhat.com>
27334         * config/i386/i386-modes.def (CCP): New.
27335         * config/i386/i386.c (put_condition_code): Handle it.
27336         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
27338 2015-05-11  Richard Henderson  <rth@redhat.com>
27340         * target.def (md_asm_clobbers): Replace with...
27341         (md_asm_adjust): this.
27342         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
27343         (TARGET_MD_ASM_ADJUST): New.
27344         * tm.texi: Rebuild.
27345         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
27346         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
27347         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
27349         * cfgexpand.c (check_operand_nalternatives): Accept vector of
27350         constraints instead of lists of outputs and inputs.
27351         (expand_asm_stmt): Save and restore input_location around the
27352         body of the function.  Move asm data into vectors instead of
27353         building tree lists.  Generate cleanup sequences as needed,
27354         rather than waiting til the end.  Use new md_asm_adjust hook.
27356         * config/vxworks.c: Include vec.h before target.h.
27357         * gimple.c: Likewise.
27358         * incpath.c: Likewise.
27359         * mode-switching.c: Likewise.
27361         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
27362         (cris_md_asm_adjust): this.
27363         (TARGET_MD_ASM_CLOBBERS): Remove.
27364         (TARGET_MD_ASM_ADJUST): New.
27365         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
27366         (ix86_md_asm_adjust): this.
27367         (TARGET_MD_ASM_CLOBBERS): Remove.
27368         (TARGET_MD_ASM_ADJUST): New.
27369         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
27370         (mn10300_md_asm_adjust): this.
27371         (TARGET_MD_ASM_CLOBBERS): Remove.
27372         (TARGET_MD_ASM_ADJUST): New.
27373         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
27374         (rs6000_md_asm_adjust): this.
27375         (TARGET_MD_ASM_CLOBBERS): Remove.
27376         (TARGET_MD_ASM_ADJUST): New.
27377         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
27378         (visium_md_asm_adjust): this.
27379         (TARGET_MD_ASM_CLOBBERS): Remove.
27380         (TARGET_MD_ASM_ADJUST): New.
27382 2015-05-11  Richard Henderson  <rth@redhat.com>
27384         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
27385         if noutputs is zero.
27386         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
27388         * cfgexpand.c (expand_asm_operands): Merge into...
27389         (expand_asm_stmt): ... here.
27391         * cfgexpand.c (expand_asm_operands): Don't call
27392         resolve_asm_operand_names.
27393         * stmt.c (resolve_asm_operand_names): Clarify block comment.
27395 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
27397         * dwarf2out.c (gen_member_die): Sanity check that we access
27398         TYPE_MAIN_VARIANT for TYPE_METHODS.
27399         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
27400         checking TYPE_METHODS.
27401         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
27402         if non-null.
27403         (build_distinct_type_copy): Clear TYPE_METHODS.
27404         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
27405         (verify_type): Allow TYPE_METHODS to be error_mark_node.
27406         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
27408 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
27410         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
27411         (emit_pattern_before_setloc): Likewise.
27413 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
27415         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
27416         for define_peephole2s.
27417         (get_peephole2_pattern): New function.
27418         (main): Use it.  Call validate_pattern.
27420 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
27422         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
27423         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
27424         (Last callee saved reg is different for AVR_TINY architecture)
27426 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
27428         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
27429         when looking for memory references.
27431 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
27433         PR target/65753
27434         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
27435         via function pointers.
27437 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
27439         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
27440         indirect call by forcing address into a pseudo with -fno-plt.
27441         * common.opt (flag_plt): New option.
27442         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
27443         ([-fno-plt]): Document.
27445 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
27447         PR bootstrap/66105
27448         * config/rs6000/option-defaults.h: Add space between string literal
27449         and macro name.
27451 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27453         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
27454         accross ARM targets.
27456 2015-05-11  Christian Bruel  <christian.bruel@st.com>
27458         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
27459         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
27461 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
27463         PR rtl-optimization/66076
27464         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
27465         Don't grow the heap array if it is already big enough from a
27466         previous iteration.
27468 2015-05-11  Christian Bruel  <christian.bruel@st.com>
27470         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
27471         (is_called_in_ARM_mode): Remove.
27472         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
27473         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
27474         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
27475          arm_declare_function_name.
27477 2015-05-11  Christian Bruel  <christian.bruel@st.com>
27479         * config/arm/arm.c (arm_option_override): Reoganized and split into :
27480         (arm_option_params_internal); New function.
27481         (arm_option_check_internal): New function.
27482         (arm_option_override_internal): New function.
27483         (thumb_code, thumb1_code): Remove.
27484         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
27485         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
27486         (thumb_code, thumb1_code): Remove.
27487         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
27489 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
27491         * config/alpha/alpha.c (alpha_emit_set_const_1)
27492         (alpha_emit_set_long_const, alpha_extract_integer)
27493         (alpha_legitimate_constant_p, alpha_split_const_mov)
27494         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
27495         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27496         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
27497         HOST_WIDE_INT_1U.
27498         * config/alpha/predicates.md (mode_mask_operand): Do not match
27499         const_double RTX.
27500         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27501         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
27502         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
27503         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27504         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
27506 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
27508         PR target/65780
27509         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
27510         default_binds_local_p_2.
27511         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
27512         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
27514 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27516         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
27518 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27520         Patch by Richard Biener
27521         * coverage.c (coverage_obj_init): Delay building of type variant
27522         until the type is finished.
27524 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27526         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
27527         mismatch between C and C++ type; compoare correctly ARG_TYPES
27528         for non-prototypes and output correctly parameter index for METHOD_TYPE.
27529         (odr_types_equivalent_p): Fix wording of warning about attributes;
27530         it is OK to match prototype and non-prototype.
27532 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27534         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
27535         TYPE_ARG_TYPES list.
27536         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
27537         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
27539 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27541         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
27542         * tree.h (is_lang_specific): Constify.
27544 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
27546         PR tree-optimization/64454
27547         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
27548         Rewrite.
27550 2015-05-08  Jason Merrill  <jason@redhat.com>
27552         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
27553         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
27554         config/darwin.h, config/darwin9.h, config/elfos.h,
27555         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
27556         config/microblaze/microblaze.h, config/mips/mips.h,
27557         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
27558         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
27559         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
27560         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
27561         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
27562         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
27563         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
27564         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
27565         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
27566         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
27567         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
27568         between string literal and macro name.
27570 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27572         * jump.c: Change argument types to rtx_insn *.
27573         * rtl.h: Adjust.
27575 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27577         * lra-constraints.c: Change argument type to rtx_insn *.
27579 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27581         * df-problems.c: Change argument type to rtx_insn *.
27583 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27585         * combine.c: Change argument type to rtx_insn *.
27587 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27589         * rtl.h: Adjust.
27590         * rtlanal.c: Change argument type to rtx_insn *.
27592 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27594         * sched-deps.c: Change argument types to rtx_insn *.
27595         * sched-int.h: Adjust.
27597 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27599         * dwarf2cfi.c: Change argument type to rtx_insn *.
27601 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27603         * ira.c (decrease_live_ranges_number): Changetype of local
27604         variable to rtx_insn *.
27605         * recog.c: Change argument types to rtx_insn *.
27606         * recog.h: Adjust.
27608 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27610         * reorg.c: Change argument types to rtx_insn *.
27612 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27614         * ira-color.c: Change argument types to rtx_insn *.
27615         * lra-eliminations.c: Likewise.
27616         * ira.h: Adjust.
27618 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27620         * gcse.c: Change argument types to rtx_insn *.
27622 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27624         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
27626 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27628         * emit-rtl.c (emit_debug_insn_before): Change argument type to
27629         rtx_insn *.
27630         * rtl.h: Adjust.
27632 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27634         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
27635         * rtl.h: Adjust.
27637 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27639         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
27640         * rtl.h: Adjust.
27642 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27644         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
27645         * rtl.h: Adjust.
27647 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27649         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
27650         * rtl.h: Adjust.
27652 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27654         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
27655         to rtx_insn *.
27656         * rtl.h: Adjust.
27658 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27660         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
27661         to rtx_insn *.
27662         * rtl.h: Likewise.
27664 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27666         * except.c (can_nonlocal_goto): Change type of argument to
27667         rtx_insn *.
27668         * rtl.h: Adjust.
27670 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27672         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
27673         * rtl.h: Adjust.
27675 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27677         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
27678         * cfgrtl.c (can_delete_label_p): Adjust.
27679         * rtl.h: likewise.
27681 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27683         * reorg.c (stop_search_p): Change argument to rtx_insn *.
27685 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27687         * except.c (make_reg_eh_region_note): Change argument to
27688         rtx_insn *.
27689         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
27690         * except.h: Adjust.
27692 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27694         * mode-switching.c (commit_mode_sets): Change type of local
27695         variable from rtx to rtx_insn *.
27697 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
27699         * doc/install.texi (--enable-languages): Add missing jit and lto info.
27700         Add ^ to grep command.
27701         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
27702         arg to last gimple_simplify declaration.  Add missing gimple_build
27703         declaration for built-in function case with four tree args.
27705 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
27706             Szabolcs Nagy  <szabolcs.nagy@arm.com>
27708         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
27709         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
27710         (GNU_USER_DYNAMIC_LINKERN32): Update.
27712 2015-05-08  Richard Biener  <rguenther@suse.de>
27714         PR tree-optimization/66036
27715         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27716         Handle strided group loads.
27717         (vect_verify_datarefs_alignment): Likewise.
27718         (vect_enhance_data_refs_alignment): Likewise.
27719         (vect_analyze_group_access): Likewise.
27720         (vect_analyze_data_ref_access): Likewise.
27721         (vect_analyze_data_ref_accesses): Likewise.
27722         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
27723         (vectorizable_load): Likewise.
27725 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
27727         * config/rs6000/rs6000.md: Require operand inequality in one
27728         of the peepholes.
27730 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
27731             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
27733         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
27734         from (set ...).
27735         * config/rx/rx.md (movdi, movdf): Likewise.
27736         Likewise for define_peephole2s.
27738 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
27740         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
27741         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
27742         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
27743         vtst_u64): Rewrite using gcc vector extensions.
27745 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
27747         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
27748         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
27750 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
27752         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
27754 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27756         * config/glibc-stdint.h (OPTION_MUSL): Define.
27757         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
27758         Change the definition based on OPTION_MUSL for 64 bit targets.
27759         * config/linux.h (OPTION_MUSL): Redefine.
27760         * config/alpha/linux.h (OPTION_MUSL): Redefine.
27761         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
27762         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
27764 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
27765             Szabolcs Nagy  <szabolcs.nagy@arm.com>
27767         * config.gcc (LIBC_MUSL): New tm_defines macro.
27768         * config/linux.h (OPTION_MUSL): Define.
27769         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
27770         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
27771         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27772         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27773         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27774         * config/linux.opt (mmusl): New option.
27775         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
27776         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27777         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27778         * configure: Regenerate.
27780 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
27781             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27783         PR target/48904
27784         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
27785         * config/i386/knetbsd-gnu64.h: New file.
27787 2015-05-08  Marek Polacek  <polacek@redhat.com>
27789         PR c/64918
27790         * doc/invoke.texi: Document -Woverride-init-side-effects.
27792 2015-05-07  Marek Polacek  <polacek@redhat.com>
27794         PR c/65179
27795         * doc/invoke.texi: Document -Wshift-negative-value.
27797 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
27799         * gcov-tool.c (do_merge): Refactore to remove int ret.
27800         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
27801         !type == FUNC to type != FUNC.
27802         * reload.h (struct target_reload): Changee to type of
27803         x_spill_indirect_levels from bool to unsigned char.
27805 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
27807         * rtl.h (always_void_p): New function.
27808         * gengenrtl.c (always_void_p): Likewise.
27809         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
27810         with code foo are always VOIDmode.
27811         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
27812         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
27813         compare-elim.c, config/aarch64/aarch64.c,
27814         config/aarch64/aarch64.md, config/alpha/alpha.c,
27815         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
27816         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
27817         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
27818         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
27819         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
27820         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
27821         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
27822         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
27823         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
27824         config/ia64/vect.md, config/iq2000/iq2000.c,
27825         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
27826         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
27827         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
27828         config/mep/mep.c, config/microblaze/microblaze.c,
27829         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
27830         config/mn10300/mn10300.c, config/msp430/msp430.c,
27831         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
27832         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
27833         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
27834         config/rs6000/altivec.md, config/rs6000/rs6000.c,
27835         config/rs6000/rs6000.md, config/rs6000/vector.md,
27836         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
27837         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
27838         config/sh/sh.md, config/sh/sh_treg_combine.cc,
27839         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
27840         config/spu/spu.md, config/stormy16/stormy16.c,
27841         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
27842         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
27843         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
27844         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
27845         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
27846         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
27847         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
27848         var-tracking.c: Update calls accordingly.
27850 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
27852         PR middle-end/192
27853         PR middle-end/54303
27854         * varasm.c (function_mergeable_rodata_prefix): New function.
27855         (mergeable_string_section): Use it.
27856         (mergeable_constant_section): Use it.
27858 2015-05-07  Jeff Law  <law@redhat.com>
27860         PR target/39726
27861         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27862         simplifier to narrow arithmetic.
27863         * generic-match-head.c: (types_match, single_use): New functions.
27864         * gimple-match-head.c: (types_match, single_use): New functions.
27866 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27868         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
27869         rtx type.
27871 2015-05-07  Richard Biener  <rguenther@suse.de>
27873         PR tree-optimization/66002
27874         * passes.def: Schedule another pass_merge_phi after ifcombine, right
27875         before phiopt.
27877 2015-05-07  Marek Polacek  <polacek@redhat.com>
27878             Martin Uecker  <uecker@eecs.berkeley.edu>
27880         * doc/invoke.texi: Document -fsanitize=bounds-strict.
27881         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
27882         into SANITIZE_NONDEFAULT.
27883         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
27885 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
27887         PR target/66015
27888         * config/alpha/alpha.c (alpha_override_options_after_change): New.
27889         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
27890         (alpha_override_options): Move align_loops, align_jumps and
27891         align_functions handling into alpha_override_options_after_change.
27893 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
27894             Chris Jones  <chrisj@nvidia.com>
27895             Joshua Conner  <jconner@nvidia.com>
27897         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
27898         linking of crtfastmath.o.
27899         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
27901 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
27903         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
27904         (cstore<mode>4_unsigned_imm): New expander.
27905         (cstore<mode>4): Remove empty constraint strings.  Use the new
27906         expanders.
27908 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
27910         PR target/64208
27911         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
27912         alternatives.
27914 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27916         * config/aarch64/geniterators.sh: Use standard BRE in sed.
27918 2015-05-06  Alan Modra  <amodra@gmail.com>
27920         PR target/66033
27921         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
27922         (UNSPEC_NOP): Define.
27923         (reload_vsx_from_gpr<mode>): Add missing DONE.
27924         (reload_gpr_from_vsx<mode>): Likewise.
27925         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
27926         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
27928 2015-05-06  Christian Bruel  <christian.bruel@st.com>
27930         PR target/66015
27931         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
27932         align_jumps, align_functions into aarch64_override_options_after_change.
27934 2015-05-06  Richard Biener  <rguenther@suse.de>
27936         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
27937         vect_transform_slp_perm_load to check if we support a permutation
27938         for basic-block vectorization.
27940 2015-05-06  Nick Clifton  <nickc@redhat.com>
27942         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
27943         used, even if it is not being used as a frame pointer.
27945 2015-05-05  Jason Merrill  <jason@redhat.com>
27947         * dwarf2out.c (gen_member_die): Don't emit anything for an
27948         anonymous class constructor.
27950 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
27952         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
27953         that it reflects the block structure.
27954         (afdo_propagate_edge): Likewise.
27955         (afdo_calculate_branch_prob): Likewise.
27956         (afdo_annotate_cfg): Likewise.
27957         * cfgcleanup.c (equal_different_set_p): Likewise.
27958         (try_crossjump_to_edge): Likewise.
27959         * cgraph.c (cgraph_node::verify_node): Likewise.
27960         * cgraphunit.c (expand_all_functions): Likewise.
27961         * config/i386/i386.c (ix86_expand_copysign): Likewise.
27962         (exact_dependency_1): Likewise.
27963         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
27964         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
27965         * gensupport.c (process_define_subst): Likewise.
27966         * lto-wrapper.c (merge_and_complain): Likewise.
27967         * tree-if-conv.c (if_convertible_bb_p): Likewise.
27968         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
27969         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
27970         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
27971         * tree-vect-loop.c (vectorizable_reduction): Likewise.
27972         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
27973         * tree-vect-stmts.c (vectorizable_shift): Likewise.
27974         * tree-vrp.c (vrp_finalize): Likewise.
27975         * tree.c (variably_modified_type_p): Likewise.
27977 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
27979         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
27980         on darwin12 and later.
27981         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
27982         file to pass -rdynamic on darwin12 and later.
27983         * config/darwin.opt (rdynamic): Add.
27985 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27987         * doc/extend.texi (C Extensions): Update menu for moved Variable
27988         Attributes and Type Attributes sections.
27990 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27992         PR target/65990
27993         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
27994         if rep_8byte stringop strategy was specified for 32-bit target.
27996 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
27998         PR target/65915
27999         * config/i386/i386.md (vector convert to float spltiter): Check for
28000         xmm16+, when splitting scalar float conversion.
28001         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
28003 2015-05-05  Nick Clifton  <nickc@redhat.com>
28005         * config/msp430/msp430-opts.h (enum msp430_regions): New.
28006         * config/msp430/msp430.c (msp430_override_options): Complain if
28007         -mcode-region or -mdata-region is used on a non MSP430X.
28008         (msp430_section_attr): New function.  Checks lower, upper and
28009         either attributes.
28010         (msp430_attribute_table): Add lower, upper and either.
28011         (gen_prefix): New function.  Generates a prefix for a section
28012         name.
28013         (msp430_select_section): New function - handles the choice of
28014         section for an object.  Takes into account memory region
28015         attributes and options.
28016         (msp430_function_section): Use gen_prefix.
28017         (TARGET_SECTION_TYPE_FLAGS): Define.
28018         (msp430_section_type_flags): New function.
28019         (TARGET_ASM_UNIQUE_SECTION): Define.
28020         (msp430_unique_section): New function.
28021         (msp430_output_aligned_decl_common): New function.
28022         (msp430_do_not_relax_short_jumps): New function.
28023         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
28024         Define.
28025         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
28026         * config/msp430/msp430-protos.h
28027         (msp430_do_not_relax_short_jumps): New prototype.
28028         (msp430_output_aligned_decl_common): New prototype.
28029         * config/msp430/msp430.md (length): New attribute.
28030         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
28031         then use a long code sequence for short jumps.
28032         * config/msp430/msp430.opt (mcode-region): New.
28033         (mdata-region): New.
28034         * doc/invoke.texi: Document new options.
28035         * doc/extend.texi: Document new attributes.
28037 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
28039         * config/aarch64-protos.h (struct cpu_branch_cost): New.
28040         (tune_params): Add field branch_costs.
28041         (aarch64_branch_cost): Declare.
28042         * config/aarch64.c (generic_branch_cost): New.
28043         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
28044         (cortexa53_tunings): Likewise.
28045         (cortexa57_tunings): Likewise.
28046         (thunderx_tunings): Likewise.
28047         (xgene1_tunings): Likewise.
28048         (aarch64_branch_cost): Define.
28049         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
28051 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
28053         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
28054         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
28055         * config/i386/i386.md: Ditto.
28056         * config/i386/winnt.c: Ditto.
28058 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
28060         * doc/extend.texi (__atomic Builtins): Move implementation details
28061         to the end of the description, rewrite opening paragraphs, state
28062         difference with __sync builtins, state C11/C++11 assumptions,
28063         weaken itemized descriptions, add explanation of memory model
28064         behaviour, expand description of compare-exchange, simplify text.
28066 2015-05-05  Renlin Li  <renlin.li@arm.com>
28068         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
28070 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
28072         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
28073         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28074         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
28075         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28076         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
28077         * configure: Regenerate.
28078         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
28079         * doc/install.texi (aarch64*-*-*): Document new
28080         --enable-fix-cortex-a53-843419 option.
28081         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
28082         and -mno-fix-cortex-a53-843419 options.
28084 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
28086         PR target/65871
28087         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
28089 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
28091         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
28092         fix overactive TYPE_MIN_VALUE check and add FIXME for type
28093         compatibility problems.
28095 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
28097         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
28098         constraints.
28099         (cbranchsi4_reg): New.
28100         * config/microblaze/microblaze.c
28101         (microblaze_expand_conditional_branch_reg): New.
28102         * config/microblaze/microblaze-protos.h
28103         (microblaze_expand_conditional_branch_reg): New prototype.
28105 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
28107         * config/microblaze/microblaze.md (peephole2): New.
28109 2015-05-04  Jeff Law  <law@redhat.com>
28111         Revert:
28112         2015-05-04  Jeff Law  <law@redhat.com>
28114         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28115         simplifier to narrow arithmetic.
28116         * generic-match-head.c: (types_match, single_use): New functions.
28117         * gimple-match-head.c: (types_match, single_use): New functions.
28119 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
28121         PR target/65987
28122         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
28123         (split_branches): Likewise.
28125 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
28127         * common.opt (fdelete-null-pointer-checks): Init to -1.
28128         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
28129         override flag_delete_null_pointer_checks default.
28130         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
28131         behavior re address zero.  Better document target-specific behavior.
28132         (-fisolate-errneous-paths-dereference): Mention relationship to
28133         -fdelete-null-pointer-checks.
28135 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
28137         PR tree-optimization/65984
28138         * ubsan.c: Include tree-cfg.h.
28139         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
28140         stmt_could_throw_p test, rename can_throw variable to ends_bb.
28142 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
28144         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
28145         to CONST_DOUBLE_P predicate.
28146         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
28147         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
28148         allow only operands that satisfy standard_sse_constant_p predicate.
28149         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
28150         to CONST_DOUBLE_P predicate.
28152 2015-05-04  Jeff Law  <law@redhat.com>
28154         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28155         simplifier to narrow arithmetic.
28156         * generic-match-head.c: (types_match, single_use): New functions.
28157         * gimple-match-head.c: (types_match, single_use): New functions.
28159 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
28161         * config/arm/arm.c: Restore bootstrap.
28163 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
28165         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
28166         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
28167         as CONST_WIDE_INT, not CONST_DOUBLE.
28168         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
28169         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
28170         (ix86_find_base_term): Do not check for CONST_DOUBLE.
28171         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
28172         (ix86_build_signbit_mask): Rewrite using wide ints.
28173         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
28174         (ix86_rtx_costs): Handle CONST_WIDE_INT.
28175         (find_constant): Ditto.
28176         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
28177         using gen_int_mode.
28178         * config/i386/predicates.md (x86_64_immediate_operand)
28179         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
28180         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
28181         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
28182         (const0_operand): Also match const_wide_int.
28183         (constm1_operand): Ditto.
28184         (const1_operand): Ditto.
28186 2015-05-04  Richard Biener  <rguenther@suse.de>
28188         PR tree-optimization/65965
28189         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
28190         store groups at gaps.
28192 2015-05-04  Richard Biener  <rguenther@suse.de>
28194         PR tree-optimization/65935
28195         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
28196         then make sure to apply that swapping to the IL.
28198 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
28200         * Makefile.in (PATCHLEVEL_c): New variable.
28201         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
28202         expand the same way as if DEVPHASE_c was non-empty.
28204 2015-05-04  Kai Tietz  <ktietz@redhat.com>
28206         PR target/65559
28207         * lto-wrapper.c (run_gcc): Open filename
28208         in binary-mode.
28210 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
28212         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
28213         sections up in file, to immediately after the Function Attributes
28214         section.
28216 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
28218         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
28220 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28222         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
28223         (insert_partition_copy_on_edge): Adjust.
28224         (insert_rtx_to_part_on_edge): Likewise.
28225         (insert_part_to_rtx_on_edge): Likewise.
28227 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28229         * function.c (set_return_jump_label): Change type of argument to
28230         rtx_insn *.
28231         * function.h (set_return_jump_label): Adjust.
28233 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28235         * reload.h (struct reg_equivs_t): Change type of init to
28236         rtx_insn *.
28237         * ira.c (fix_reg_equiv_init): Adjust.
28238         * reload1.c (eliminate_regs_1): Likewise.
28239         (init_eliminable_invariants): Likewise.
28241 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28243         * cselib.c (fp_setter_insn): Take a rtx_insn *.
28244         * cselib.h (fp_setter_insn): Adjust.
28246 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28248         * recog.c (struct validate_replace_src_data): Change type of
28249         insn field to rtx_insn *.
28250         (validate_replace_src_group): Change type of argument to rtx_insn *.
28251         * recog.h (validate_replace_src_group): Adjust.
28253 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28255         * haifa-sched.c: Change the type of some variables to rtx_insn *.
28256         * sched-deps.c: Likewise.
28257         * sched-int.h: Likewise.
28258         * sched-rgn.c: Likewise.
28259         * sel-sched.c: Likewise.
28261 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28263         to rtx_insn *.
28264         * config/i386/i386.c: Change the type of some arguments to
28265         rtx_insn *.
28266         * config/arm/arm.c: Likewise.
28268 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28270         * lra-constraints.c: Change type of some arguments to rtx_insn *.
28272 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28274         * regcprop.c (kill_autoinc_value): Change type of argument to
28275         rtx_insn *.
28277 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28279         * genrecog.c (print_subroutine): Adjust.
28280         * recog.c (get_bool_attr_mask_uncached): Likewise.
28281         * recog.h (struct recog_data_d): Change the type of insn to
28282         rtx_insn *.
28284 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28286         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
28288 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28290         * df-problems.c (df_set_note): Change type of argument to
28291         rtx_insn *.
28293 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28295         * builtins.c (expand_builtin_trap): Change type of local
28296         variable to rtx_insn *.
28297         (add_sched_insns_for_speculation): Likewise.
28298         (ix86_emit_save_regs): Likewise.
28299         (get_scratch_register_on_entry): Likewise.
28300         (ix86_emit_restore_reg_using_pop): Likewise.
28301         (ix86_emit_leave): Likewise.
28302         (ix86_emit_restore_regs_using_mov): Likewise.
28303         (ix86_expand_epilogue): Likewise.
28304         Likewise.
28305         (rl78_alloc_physical_registers_umul): Likewise.
28306         * cselib.c (discard_useless_locs): Likewise.
28307         (cselib_invalidate_regno): Likewise.
28308         (cselib_invalidate_mem): Likewise.
28309         * function.c (expand_function_start): Likewise.
28310         (emit_use_return_register_into_block): Likewise.
28311         * gcse.c: Likewise.
28312         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
28313         * ifcvt.c (noce_get_alt_condition): Likewise.
28314         * loop-doloop.c (doloop_condition_get): Likewise.
28315         * lra-constraints.c (inherit_in_ebb): Likewise.
28316         * modulo-sched.c (sms_schedule_by_order): Likewise.
28317         * recog.c (next_insn_tests_no_inequality): Likewise.
28318         * reorg.c (emit_delay_sequence): Likewise.
28319         (update_reg_dead_notes): Likewise.
28320         (fix_reg_dead_note): Likewise.
28321         (fill_slots_from_thread): Likewise.
28322         (delete_computation): Likewise.
28324 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
28326         * doc/extend.texi (Variable Attributes): Add menu and proper
28327         @nodes to subsections.  Move Microsoft Windows attributes to
28328         their own subsection.
28329         (Type Attributes): Reorganize introduction to remove duplicate
28330         list of attributes.  Add menu and proper @nodes to subsections.
28331         Alphabetize the main table of common attributes.
28333 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
28335         * match.pd: New simplification patterns.
28336         (x + (x & 1))  -> ((x + 1) & ~1)
28337         (x & ~(x & y)) -> ((x & ~y))
28338         (x | ~(x | y)) -> ((x | ~y))
28340 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28342         * target.def (attribute_table): Mention that struct attribute_spec
28343         is defined in tree-core.h rather than tree.h
28344         * doc/tm.texi: Regenerate.
28346 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
28348         * genrecog.c (test): Rename to rtx_test.  Update rest of file
28349         accordingly.
28351 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
28353         PR translation/65959
28354         * params.h (DEFPARAM): Rename msgid to nocmsgid.
28356 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
28358         * config/aarch64/aarch64-protos.h (tune_params):
28359         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
28360         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
28361         Return value depending on target.
28362         (generic_tunings): Initialize new target settings.
28363         (cortexa53_tunings): Likewise.
28364         (cortexa57_tunings): Likewise.
28365         (thunderx_tunings): Likewise.
28366         (xgene1_tunings): Likewise.
28368 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
28370         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
28371         Make Cortex-A53 shift costs more accurate.
28373 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28375         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
28376         UNSIGNED_FLOAT.
28378 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
28380         * config/aarch64/aarch64.c (aarch64_rtx_costs):
28381         Calculate cost of op0 and op1 in PLUS and MINUS cases.
28383 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28385         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
28386         Add cost of op0 in the compare-with-fpzero case.
28388 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
28390         * builtins.c (fold_builtin_1): Remove spurious second
28391         semicolon.
28392         * cgraph.h (symtab_node::get_availability): Likewise.
28393         * opts.c (common_handle_option): Remove spurious second semicolon.
28394         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
28395         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
28397 2015-04-30  Caroline Tice  <cmtice@google.com>
28399         PR gcov-profile/65929
28400         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
28401         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
28402         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
28403         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
28404         * doc/tm.texi: Regenerate.
28405         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
28406         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
28407         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
28408         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
28410 2015-04-30  Marek Polacek  <polacek@redhat.com>
28412         * varasm.c (handle_cache_entry): Fix logic.
28414 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28416         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
28417         (*extrsi5_insn_uxtw_alt): Likewise.
28418         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
28419         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
28420         operations.
28422 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28424         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
28425         fabd in ABS case.
28427 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28429         * config/aarch64/aarch64.md
28430         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
28431         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
28432         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
28433         appropriately.  Handle alternative EON form.
28435 2015-04-30  Renlin Li  <renlin.li@arm.com>
28437         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
28438         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
28440 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
28442         PR ipa/65873
28443         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
28444         -fstrict-aliasing boundaries.
28446 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28448         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
28449         and [SU]MNEGL patterns.
28451 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28453         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
28454         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
28455         combined arithmetic-shift ops.  Properly handle all shift and extend
28456         operations that can occur in combination with PLUS/MINUS.
28457         Rename maybe_fma to compound_p.
28458         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
28459         arithmetic and shift operations.
28461 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28463         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
28464         rather than arith_shift cost when costing ADD/MINUS of an
28465         extended value.
28467 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
28469         PR lto/65948
28470         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
28471         to itself.
28473 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
28475         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
28476         are for the same position.
28478 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
28480         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
28481         vectorize_loops.
28482         (vectorize_loops): Use it.
28484 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
28486         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
28487         for aggregate types.
28488         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
28489         type to be non_ODR.
28490         * tree.c (need_assembler_name_p): Compute mangled name for
28491         non-fundamental types and integer types.
28493 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
28495         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
28496         manual swaps.
28497         * expr.c (expand_expr_real_2): Likewise.
28499 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
28501         * tree.c (build_common_builtin_nodes): Do not build
28502         __builtin_alloca_with_align as equivalent of library alloca.
28504 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
28506         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
28507         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
28508         bugus variants.
28509         * tree.c: Include print-tree.h and ipa-utils.h
28510         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
28511         (free_lang_data_in_cgraph): Call verify_type.
28512         (verify_type_variant): New function.
28513         (verify_type): New function.
28514         * tree.h (verify_type): Declare.
28516 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
28518         * config/mips/mips-cpus.def: (mips4): Change default processor
28519         from PROCESSOR_R8000 to PROCESSOR_R10000.
28521 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
28523         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
28524         la/jalr instead of jal.
28526 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
28528         PR target/65871
28529         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
28530         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
28531         (setcc+movzbl peephole2): Check also clobbered reg.
28532         (setcc+andl peephole2): Ditto.
28534 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
28536         PR libgomp/65099
28537         * config/nvptx/mkoffload.c (target_ilp32): New variable.
28538         (main): Set it depending on "-foffload-abi=[...]".
28539         (compile_native, main): Use it to pass "-m32" or "-m64" to the
28540         compiler.
28542 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
28544         PR target/65770
28545         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
28546         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
28547         Flip lane index back at assembly time for bigendian.
28549 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
28551         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
28552         * gimplify.c (gimplify_omp_workshare): Use it.
28554 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28556         * Makefile.in (build/genrecog.o): Depend on inchash.h.
28557         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
28558         build/inchash.o
28559         * genrecog.c: Rewrite most of the code except for the third page.
28561 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28563         * inchash.h, inchash.c: Include bconfig.h for build objects.
28564         * Makefile.in (build/inchash.o): New rule.
28566 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
28568         PR target/65924
28569         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
28570         number in type attribute expression.
28572 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28574         * loop-iv.c (canon_condition): Generalize to all types of integer
28575         constant.
28577 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
28579         * gimple-walk.c: Prune duplicate or unneeded includes.
28580         (walk_gimple_asm): Only call parse_input_constraint or
28581         parse_output_constraint if their findings are used.
28582         Honour parse_input_constraint and parse_output_constraint
28583         result.
28585 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
28587         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
28589 2015-04-29  Tom de Vries  <tom@codesourcery.com>
28591         PR tree-optimization/65893
28592         * passes.def (pass_all_optimizations): Move pass_stdarg to after
28593         pass_dce.
28595 2015-04-29  Richard Biener  <rguenther@suse.de>
28597         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28598         compute GROUP_SIZE for basic-block SLP.
28599         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
28600         take into account gaps.
28601         (vect_get_mask_element): Properly reject references to previous
28602         vectors.
28603         (vect_transform_slp_perm_load): Likewise.
28605 2015-04-29  Christian Bruel  <christian.bruel@st.com>
28607         PR target/64835
28608         * config/i386/i386.c (ix86_default_align): New function.
28609         (ix86_override_options_after_change): Call ix86_default_align.
28610         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
28611         (ix86_override_options_after_change): New function.
28613 2015-04-28  Jeff Law  <law@redhat.com>
28615         * tree-ssa-dom.c (record_equality); Fix comment typos.
28617 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28619         PR tree-optimization/65887
28620         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
28622 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
28624         * doc/extend.texi (Declaring Attributes of Functions): Split into
28625         subsections by target.  Alphabetize the table of common attributes.
28626         Rewrite some of the introductory text to reflect the new structure.
28627         Update some cross-references to point to the new subsections.
28628         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
28629         duplicate copies in the discussion of function, label, and type
28630         attributes.
28632 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
28634         PR bootstrap/65910
28635         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
28637 2015-04-28  Jason Merrill  <jason@redhat.com>
28639         PR c++/65734
28640         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
28641         (finalize_type_size): Respect TYPE_USER_ALIGN.
28642         (layout_type) [ARRAY_TYPE]: Likewise.
28644 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
28646         * config/arm/arm.md (*arm_movt): Fix type attribute.
28647         (*cmpsi_shiftsi): Likewise.
28648         (*cmpsi_shiftsi_swp): Likewise.
28649         (*movsicc_insn): Likewise.
28650         (*cond_move): Likewise.
28651         (*if_plus_move): Likewise.
28652         (*if_move_plus): Likewise.
28653         (*if_arith_move): Likewise.
28654         (*if_move_arith): Likewise.
28655         (*if_shift_move): Likewise.
28656         (*if_move_shift): Likewise.
28657         (*arm_movtas_ze): Likewise.
28658         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28659         redundancy and type attribute.
28660         (*thumb2_movsi_insn): Fix type attribute.
28661         (*thumb2_addsi_short): Likewise.
28662         (thumb2_addsi3_compare0): Likewise.
28663         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
28664         attributes accordingly.
28666 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
28668         PR other/65911
28669         * function.c (pad_to_arg_alignment): Add parentheses.
28671 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
28673         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
28674         libgcc/config/frv/elf-lib.h.
28676 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28678         * tree-call-cdce.c: Fix example in header comment.
28680 2015-04-28  Richard Biener  <rguenther@suse.de>
28682         PR tree-optimization/62283
28683         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
28684         fails fatally and we are vectorizing a basic-block simply
28685         cause the child to be constructed piecewise.
28686         (vect_analyze_slp_cost_1): Adjust.
28687         (vect_detect_hybrid_slp_stmts): Likewise.
28688         (vect_bb_slp_scalar_cost): Likewise.
28689         (vect_get_constant_vectors): For piecewise constructed
28690         constants place them after the last def.
28691         (vect_get_slp_defs): Adjust.
28692         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
28693         externals for basic-block vectorization.
28695 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28697         PR target/63503
28698         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
28699         aarch64-*-*.
28700         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
28701         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
28702         (AARCH64_TUNE_FMA_STEERING): Likewise.
28703         * config/aarch64/aarch64-cores.def: Set
28704         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
28705         FMUL/FMADD instructions.
28706         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
28707         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
28708         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
28709         * config/aarch64/cortex-a57-fma-steering.h: New file.
28710         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28712 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
28714         * gensupport.c (std_preds): Add missing codes to address_operand entry.
28716 2015-04-28  Richard Biener  <rguenther@suse.de>
28718         PR tree-optimization/65851
28719         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
28720         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
28721         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
28722         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
28723         (ccp_visit_phi_node): Adjust.
28724         (evaluate_stmt): For simplifications to SSA names return its
28725         lattice value if that isn't VARYING.  Return immediately when
28726         simplified to a constant.
28727         (visit_assignment): Adjust.
28728         (ccp_visit_stmt): Likewise.
28730 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28732         PR tree-optimization/65818
28733         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
28734         evaluated.
28736 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28738         * calls.c (save_fixed_argument_area): Don't check
28739         ARGS_GROW_DOWNWARD with the preprocessor.
28740         (restore_fixed_argument_area): Likewise.
28741         (mem_overlaps_already_clobbered_arg_p): Likewise.
28742         (check_sibcall_argument_overlap): Likewise.
28743         (expand_call): Likewise.
28744         (emit_library_call_value_1): Likewise.
28745         (store_one_arg): Likewise.
28746         * function.c (assign_parms): Likewise.
28747         (locate_and_pad_parm): Likewise.
28748         (pad_to_arg_alignment): Likewise.
28749         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28751 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28753         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
28754         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
28755         * calls.c (save_fixed_argument_area): Don't chekc if
28756         ARGS_GROW_DOWNWARD is defined.
28757         (restore_fixed_argument_area): Likewise.
28758         (mem_overlaps_already_clobbered_arg_p): Likewise.
28759         (check_sibcall_argument_overlap): Likewise.
28760         (expand_call): Likewise.
28761         (emit_library_call_value_1): Likewise.
28762         (store_one_arg): Likewise.
28763         * function.c (assign_parms): Likewise.
28764         (locate_and_pad_parm): Likewise.
28765         (pad_to_arg_alignment): Likewise.
28766         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28768 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28770         * defaults.h (gen_epilogue): New function.
28771         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
28772         defined.
28773         * cfgrtl.c (cfg_layout_finalize): Likewise.
28774         * df-scan.c: Likewise.
28775         * function.c (thread_prologue_and_epilogue_insns): Likewise.
28776         (reposition_prologue_and_epilogue_notes): Likewise.
28777         * reorg.c (find_end_label): Likewise.
28778         * toplev.c: Likewise.
28780 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28782         * bb-reorder.c (HAVE_return): Don't check if its undefined.
28783         * defaults.h (gen_simple_return): New function.
28784         (gen_simple_return): Likewise.
28785         (HAVE_return): Add default definition to false.
28786         (HAVE_simple_return): Likewise.
28787         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
28788         HAVE_return and HAVE_simple_return are defined.
28789         * function.c (gen_return_pattern): Likewise.
28790         (convert_jumps_to_returns): Likewise.
28791         (thread_prologue_and_epilogue_insns): Likewise.
28792         * reorg.c (find_end_label): Likewise.
28793         (dbr_schedule): Likewise.
28794         * shrink-wrap.c: Likewise.
28795         * shrink-wrap.h: Likewise.
28797 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28799         * defaults.h (EPILOGUE_USES): Add default definition of false.
28800         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
28801         * resource.c (init_resource_info): Likewise.
28803 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28805         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
28806         to false.
28807         * dwarf2out.c (field_byte_offset): REmove check if
28808         PCC_BITFIELD_TYPE_MATTERS is defined.
28809         * stor-layout.c (layout_decl): Likewise.
28810         (update_alignment_for_field): Likewise.
28811         (place_field): Likewise.
28813 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28815         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
28816         true.
28817         * regrename.c (check_new_reg_p): Remove check if
28818         HARD_REGNO_RENAME_OK is defined.
28819         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
28821 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28823         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
28824         * cse.c (fold_rtx): Likewise.
28825         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
28826         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
28827         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
28828         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
28829         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
28830         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
28831         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
28832         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
28833         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
28834         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
28835         * Likewise.
28836         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
28837         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
28838         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
28839         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
28840         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
28841         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
28842         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
28843         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
28844         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
28845         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
28846         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
28847         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
28848         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
28849         * doc/tm.texi: Regenerate.
28850         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
28851         either true or false.
28853 2015-04-27  Jeff Law  <law@redhat.com>
28855         PR tree-optimization/65217
28856         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
28857         of them has a single use, make sure it is the LHS of the implied
28858         copy.
28860 2015-04-28  Alan Modra  <amodra@gmail.com>
28862         PR target/65810
28863         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
28864         (offsettable_ok_by_alignment): Use minimum of decl and toc
28865         pointer alignment.  Replace dead code with assertion.
28866         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
28867         case if size exceeds toc pointer alignment.
28868         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
28869         (rs6000_emit_move): Likewise.
28870         * configure.ac: Add linker toc pointer alignment check.
28871         * configure: Regenerate.
28872         * config.in: Regenerate.
28874 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
28876         * config.gcc: Add h8300-*-linux.
28877         * config/h8300/linux.h: New.
28878         * config/h8300/t-linux: New.
28879         * config/h8300/h8300.c (h8300_option_override): Normal mode
28880         is not supported for h8300-*-linux.
28881         (h8300_file_start): Target priority change.
28882         (get_shift_alg): Likewise.
28883         (h8300_shift_need_scratch_p): Likewise.
28884         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
28885         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
28887 2015-04-27  Caroline Tice  <cmtice@google.com>
28889         * final.c (final_scan_insn):  Output cold_function_name as function
28890         type.
28891         * varasm.c (cold_function_name):  Make global.
28892         (assemble_start_function):  Re-set cold_function_name.
28893         (assemble_end_function): Output cold partition size.
28894         * varasm.h (cold_function_name):  Declare global.
28896 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
28898         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
28899         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
28900         constraint.
28901         (*movxi_internal_avx512f): Ditto.
28902         (define_split): Check for xmm16+, when splitting scalar float_extend.
28903         (*extendsfdf2_mixed): Use "v" constraint.
28904         (define_split): Check for xmm16+, when splitting scalar float_truncate.
28905         (*truncdfsf_fast_sse): Use "v" constraint.
28906         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
28907         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
28908         (define_peephole2): Check for xmm16+, when converting scalar
28909         float_truncate.
28910         (define_peephole2): Check for xmm16+, when converting scalar
28911         float_extend.
28912         (*fop_<mode>_comm_mixed): Use "v" constraint.
28913         (*fop_<mode>_comm_sse): Ditto.
28914         (*fop_<mode>_1_mixed): Ditto.
28915         (*sqrt<mode>2_sse): Ditto.
28916         (*ieee_s<ieee_maxmin><mode>3): Ditto.
28918 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28920         * combine.c (simplify_if_then_else): Use std::swap instead
28921         of manually swapping.
28922         (known_cond): Likewise.
28923         (simplify_comparison): Likewise.
28925 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
28927         PR target/64579
28928         * config/rs6000/htm.md: Remove all define_expands.
28929         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
28930         UNSPECV_HTM_TABORTWCI): Remove.
28931         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
28932         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
28933         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
28934         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
28935         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
28936         tabortwci_internal): Remove define_insns.
28937         (tabort<wd>c, tabort<wd>ci): New define_insns.
28938         (tabort): Use gpc_reg_operand.
28939         (tcheck): Remove operand.
28940         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
28941         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
28942         expected value.
28943         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
28944         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
28945         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
28946         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
28947         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
28948         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
28949         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
28950         (tcheck): Remove builtin argument.
28951         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
28952         not TARGET_64BIT.
28953         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
28954         tabortdc and tabortdci builtins when not in 64-bit mode.
28955         Modify code to handle the loss of the HTM define_expands.
28956         Emit code to copy the CR register to TARGET.
28957         (htm_init_builtins): Modify code to handle the loss of the HTM
28958         define_expands.
28959         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
28960         (RS6000_BTC_64BIT): Likewise.
28961         (RS6000_BTC_CR): New macro.
28962         * doc/extend.texi: Update documentation for htm builtins.
28964 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28966         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
28967         of manually swapping.
28968         (simplify_associative_operation): Likewise.
28969         (simplify_binary_operation): Likewise.
28970         (simplify_plus_minus): Likewise.
28971         (simplify_relational_operation): Likewise.
28972         (simplify_ternary_operation): Likewise.
28974 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
28976         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
28977         (xs_hi_nonmemory_operand): Remove error.
28978         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
28979         general_operand rather than xs_hi_general_operand.
28981 2015-04-27  Richard Biener  <rguenther@suse.de>
28983         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
28984         (record_equivalences_from_stmt): Valueize rhs.
28985         (record_equality): Canonicalize x and y order via
28986         tree_swap_operands_p.  Do not swap operands for same loop depth.
28988 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
28990         PR target/65296
28991         PR target/65895
28992         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
28993         Add hint how to use own spec file.
28995 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
28997         PR tree-optimization/65875
28998         * tree-vrp.c (update_value_range): If in is_new case setting
28999         old_vr to VR_VARYING, also set new_vr to it.  Remove
29000         old_vr->type == VR_VARYING test.
29001         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
29002         SSA_PROP_INTERESTING if update_value_range returned true,
29003         but new range is VR_VARYING.
29005 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29007         * combine.c (sign_extend_short_imm): New.
29008         (set_nonzero_bits_and_sign_copies): Use above new function for sign
29009         extension of src short immediate.
29010         (reg_nonzero_bits_for_combine): Likewise for tem.
29012 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
29014         * stor-layout.c (self_referential_component_ref_p): New predicate.
29015         (copy_self_referential_tree_r): Use it.
29016         (self_referential_size): Punt for simple operations directly involving
29017         self-referential component references.
29018         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
29020 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
29022         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
29024 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
29026         * vec.h (vec): Make splice arguments const.  Update definitions
29027         accordingly.
29029 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
29031         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
29032         alternatives.
29034 2015-04-26  Tom de Vries  <tom@codesourcery.com>
29036         PR tree-optimization/65826
29037         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
29039 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
29041         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
29042         (*madd3<mode>): Ditto.
29043         (*msub4<mode>): Ditto.
29044         (*msub3<mode>): Ditto.
29045         (*nmadd4<mode>): Ditto.
29046         (*nmadd3<mode>): Ditto.
29047         (*nmadd4<mode>_fastmath): Ditto.
29048         (*nmadd3<mode>_fastmath): Ditto.
29049         (*nmsub4<mode>): Ditto.
29050         (*nmsub3<mode>): Ditto.
29051         (*nmsub4<mode>_fastmath): Ditto.
29052         (*nmsub3<mode>_fastmath): Ditto.
29054 2015-04-24  Jason Merrill  <jason@redhat.com>
29056         PR c++/50800
29057         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
29058         down when building TYPE_CANONICAL.
29059         (build_pointer_type_for_mode): Likewise.
29061 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
29063         * genrecog.c (validate_pattern): Check matching constraint refers
29064         to a lower numbered operand.
29066 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
29068         PR target/65849
29069         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
29070         save to independent variables use the Save attribute.  This will
29071         allow these options to be modified with the #pragma/attribute
29072         target support.
29073         (-mallow-movmisalign): Likewise.
29074         (-mallow-df-permute): Likewise.
29075         (-msched-groups): Likewise.
29076         (-malways-hint): Likewise.
29077         (-malign-branch-targets): Likewise.
29078         (-mvectorize-builtins): Likewise.
29079         (-msave-toc-indirect): Likewise.
29081         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
29082         can be set via the #pragma/attribute target support.
29083         (rs6000_opt_vars): Likewise.
29084         (rs6000_inner_target_options): If VSX was set, also set
29085         -mno-avoid-indexed-addresses.
29087 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29089         * config/arm/iterators.md (shiftable_ops): Rename to...
29090         (SHIFTABLE_OPS): ... This.  Update use in comments.
29091         (ior_xor): Rename to...
29092         (IOR_XOR): ... This.
29093         (vqh_ops): Rename to...
29094         (VQH_OPS): ... This.
29095         (vqhs_ops): Rename to...
29096         (VQHS_OPS): ... This.
29097         (rshifts): Rename to...
29098         (RSHIFTS): ... This.
29099         (returns): Rename to...
29100         (RETURNS): ... This.
29101         * config/arm/arm.md: Update uses of the above.
29102         * config/arm/neon.md: Likewise.
29104 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29106         * config.host (case ${host}): Add aarch64*-*-linux case.
29107         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
29108         fields to all the cores.
29109         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
29110         Add MCPU_MTUNE_NATIVE_SPECS.
29111         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
29112         field to all extensions.
29113         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
29114         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
29115         Adjust definition of AARCH64_OPT_EXTENSION.
29116         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
29117         (MCPU_MTUNE_NATIVE_SPECS): Define.
29118         * config/aarch64/driver-aarch64.c: New file.
29119         * config/aarch64/x-arch64: New file.
29120         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
29121         -mtune and -march.
29123 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
29124             Wei Mi  <wmi@google.com>
29126         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
29127         * config/i386/i386.c (extract_base_offset_in_addr): New function.
29128         (ix86_operands_ok_for_move_multiple): Ditto.
29129         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
29130         (movlpd/movhpd to movupd peephole2): Ditto.
29132 2015-04-24  Marek Polacek  <polacek@redhat.com>
29134         PR c/61534
29135         * input.h (from_macro_expansion_at): Define.
29137         PR c/63357
29138         * doc/invoke.texi: Update description of -Wlogical-op.
29140 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29142         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
29143         ternary operator in fprintf and harmonize spacing.
29145 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
29147         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
29148         Mark operand1 commutative.
29150 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
29152         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
29153         input operands in memory.
29154         (*vec_concatv2si_sse4_1): Ditto.
29155         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
29156         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
29157         register_operand.
29158         (vec_extract_hi_v32hi): Ditto.
29159         (vec_extract_hi_v64hi): Ditto.
29160         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
29162 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29163             Steven Bosscher <steven@gcc.gnu.org>
29165         PR rtl-optimization/34503
29166         * cprop.c (cprop_reg_p): New.
29167         (hash_scan_set): Use above function to check if register can be
29168         propagated.
29169         (find_avail_set): Return up to two sets, one whose source is a
29170         register and one whose source is a constant.  Sets are returned in an
29171         array passed as parameter rather than as a return value.
29172         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
29173         sets returned by find_avail_set, starting with the one whose source is
29174         a constant. Use cprop_reg_p to check if register can be propagated.
29175         (do_local_cprop): Use cprop_reg_p to check if register can be
29176         propagated.
29177         (implicit_set_cond_p): Likewise.
29179 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29181         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
29182         (sem_function::equals): IGNORED_NODES parameter is now unused;
29183         update call of equals_private.
29184         (sem_function::equals_private): Do not call equals_wpa; skip
29185         gimple body matching if there is no body.
29186         (sem_function::init): Add logic to hash tthunk info.
29187         (sem_function::parse): Also parse thunks.
29188         * ipa-icf.h (equals_private): Update declaration.
29190 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29192         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
29193         asterisk from name so this can be generated directly.
29194         (*altivec_stvx_<mode>_internal): Likewise.
29195         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
29196         that this is never called during or after reload/lra.
29197         (rs6000_frame_related): Remove split_reg
29198         argument and logic that references it.
29199         (emit_frame_save): Remove last parameter from call to
29200         rs6000_frame_related.
29201         (rs6000_emit_prologue): Remove last parameter from eight calls to
29202         rs6000_frame_related.  Force generation of stvx instruction for
29203         Altivec register saves.  Remove split_reg handling, which is no
29204         longer needed.
29205         (rs6000_emit_epilogue):  Force generation of lvx instruction for
29206         Altivec register restores.
29208 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29210         * config/rs6000/rs6000.opt (mcrypto): Change option description to
29211         match category changes in ISA 2.07B.
29213 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29215         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
29216         iterators.
29217         (cmp_op, cmp_type): New code attributes.
29218         (NEON_VCMP, NEON_VACMP): New int iterators.
29219         (cmp_op_unsp): New int attribute.
29220         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
29221         (neon_vceq<mode>): Delete.
29222         (neon_vc<cmp_op><mode>_insn): New pattern.
29223         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
29224         (neon_vcgeu<mode>): Delete.
29225         (neon_vcle<mode>): Likewise.
29226         (neon_vclt<mode>: Likewise.
29227         (neon_vcage<mode>): Likewise.
29228         (neon_vcagt<mode>): Likewise.
29229         (neon_vca<cmp_op><mode>): New define_expand.
29230         (neon_vca<cmp_op><mode>_insn): New pattern.
29231         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
29233 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29235         * tree.h (attribute_value_equal): Declare.
29236         * tree.c (attribute_value_equal): Export.
29238 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29240         * ipa-icf.c (sem_item::compare_attributes): New function.
29241         (sem_item::compare_referenced_symbol_properties): Compare variable
29242         attributes.
29243         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
29244         (sem_function::param_used_p): New function.
29245         (sem_function::equals_wpa): Fix attribute comparsion; match
29246         parameter type codes; do not compare paremter flags when
29247         they are not used; compare edge flags; compare indirect calls.
29248         (sem_item::update_hash_by_addr_refs): Hash reference type.
29249         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
29250         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
29251         reference use type.
29252         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
29253         * ipa-icf.h (compare_attributes, param_used_p): Declare.
29255 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29257         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
29258         cleanup.
29259         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
29260         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
29261         (sem_item::compare_referenced_symbol_properties): New.
29262         (sem_item::hash_referenced_symbol_properties): New.
29263         (sem_item::compare_cgraph_references): Rename to ...
29264         (sem_item::compare_symbol_references): ... this one; use
29265         compare_referenced_symbol_properties.
29266         (sem_function::equals_wpa): Do not compare
29267         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
29268         DECL_IS_OPERATOR_NEW; compare pointer sizes.
29269         (sem_item::update_hash_by_addr_refs): Call
29270         hash_referenced_symbol_properties.
29271         (sem_item::update_hash_by_local_refs): Cleanup.
29272         (sem_function::merge): Do not mix up symbol properties.
29273         (sem_variable::equals_wpa): Use compare_symbol_references.
29274         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
29275         (sem_item::hash_referenced_symbol_properties): New.
29276         (sem_item::compare_symbol_references): New.
29277         (sem_item::compare_cgraph_references): Remove.
29279 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
29281         PR target/26702
29282         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
29283         Emit size of local.
29285 2015-04-23  Nick Clifton  <nickc@redhat.com>
29287         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
29288         ATTRIBUTE_UNUSED to x parameter.
29289         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
29291 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29293         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
29294         TARGET_CRYPTO to TARGET_P8_VECTOR>
29295         (crypto_vpermxor_<mode>): Likewise.
29296         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
29297         (BU_CRYPTO_3A): Likewise.
29298         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
29299         (BU_CRYPTO_OVERLOAD_3A): New #define.
29300         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
29301         (VPMSUMH): Likewise.
29302         (VPMSUMW): Likewise.
29303         (VPMSUMD): Likewise.
29304         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
29305         (VPERMXOR_V4SI): Likewise.
29306         (VPERMXOR_V8HI): Likewise.
29307         (VPERMXOR_V16QI): Likewise.
29308         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
29309         BU_CRYPTO_OVERLOAD_2A.
29310         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
29311         BU_CRYPTO_OVERLOAD_3A.
29312         * config/rs6000/rs6000.opt (mcrypto): Change description of
29313         option.
29315 2015-04-23  Richard Biener  <rguenther@suse.de>
29317         * passes.def: Remove copy propagation passes run directly after CCP.
29318         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
29319         SSA names.
29320         (ccp_visit_phi_node): Rework to handle first executable edge
29321         specially.
29323 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
29325         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29326         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29327         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29328         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
29329         (thumb_legimitimize_reload_address): Remove.
29330         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
29331         Remove.
29332         (thumb_legimitimize_reload_address): Remove.
29334 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29336         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
29338 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29340         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
29341         MAX_LDM_STM_OPS.
29342         (store_multiple): Likewise.
29344 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29346         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
29347         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
29348         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
29349         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
29350         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
29351         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
29352         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
29353         Specify issue_rate value.
29354         (arm_issue_rate): Look up issue rate from tuning structs. Remove
29355         large switch statement.
29356         (arm_marvell_pj4_tune): New struct.
29357         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
29358         struct.
29360 2015-04-23  Richard Biener  <rguenther@suse.de>
29362         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
29363         (vect_find_last_store_in_slp_instance): Rename to ...
29364         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
29365         (vect_analyze_slp_cost_1): Use vector_load for constant defs
29366         and vec_construct for external defs when estimating prologue cost.
29367         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
29368         Compute costs here only when vectorizing loops.
29369         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
29370         have been determined.
29371         (vect_schedule_slp_instance): Simplify vectorized code placement
29372         and prepare for in-BB external defs.
29373         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
29374         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
29375         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
29376         guard.
29377         (vect_model_load_cost): Likewise.
29378         (vectorizable_store): Instead add it here.
29379         (vectorizable_load): Likewise.
29380         (vect_is_simple_use): Dump def type textually.
29382 2015-04-23  Richard Biener  <rguenther@suse.de>
29384         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
29385         * cfgloop.c (verify_loop_structure): Verify the root loop node.
29386         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
29387         instead of get_eh_region_from_lp_number.
29388         * loop-init.c (fix_loop_structure): If we removed a loop, reset
29389         the SCEV cache.
29391 2015-04-23  Anton Blanchard  <anton@samba.org>
29393         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
29394         need for -mprofile-kernel to save LR to stack.
29396 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29398         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
29399         adjustments.
29400         (insn_is_swappable_p): Return 1 for a convert from double to
29401         single precision when all of its uses are splats of BE element
29402         zero.
29404 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
29406         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
29408 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29410         PR target/65456
29411         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
29412         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
29413         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
29414         option.
29415         (rs6000_builtin_mask_for_load): Return 0 for targets with
29416         efficient unaligned VSX accesses so that the vectorizer will use
29417         direct unaligned loads.
29418         (rs6000_builtin_support_vector_misalignment): Always return true
29419         for targets with efficient unaligned VSX accesses.
29420         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
29421         stores on targets with efficient unaligned VSX accesses is almost
29422         always the same as the cost of an aligned load or store, so model
29423         it that way.
29424         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
29425         unaligned vectors if we have efficient unaligned VSX accesses.
29426         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
29427         undocumented option.
29429 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29431         Revert:
29432         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
29434         * config.gcc (LIBC_MUSL): New tm_defines macro.
29435         * config/linux.h (OPTION_MUSL): Define.
29436         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29437         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29438         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29440         * config/linux.opt (mmusl): New option.
29441         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29442         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29444         * configure: Regenerate.
29446 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
29448         * config.gcc (LIBC_MUSL): New tm_defines macro.
29449         * config/linux.h (OPTION_MUSL): Define.
29450         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29451         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29452         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29454         * config/linux.opt (mmusl): New option.
29455         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29456         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29458         * configure: Regenerate.
29460 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
29462         * doc/invoke.texi (-fsanitize-sections): Update description.
29463         * asan.c (set_sanitized_sections): Parse incoming arg.
29464         (section_sanitized_p): Support wildcards.
29466 2015-04-22  Tom de Vries  <tom@codesourcery.com>
29468         PR tree-optimization/65823
29469         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
29470         equality between ap_copy and ap.
29472 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29474         PR target/47098
29475         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
29477 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29479         PR target/47122
29480         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
29482 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29484         PR target/55144
29485         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
29486         remove already contained t-files.
29488 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29490         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
29491         Remove unneeded forward declarations.
29492         (suitable_for_tail_call_opt_p): Commentary typo fix.
29494 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29496         * varasm.c (emit_bss): Remove redundant guard.
29498 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29500         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
29502 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29504         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
29506 2015-04-22  Hale Wang  <hale.wang@arm.com>
29507             Terry Guo  <terry.guo@arm.com>
29509         PR rtl-optimization/64818
29510         * combine.c (can_combine_p): Don't combine user-specified
29511         register if it is in an asm input.
29513 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
29515         PR ipa/65076
29516         * passes.def (early_optimizations): Add pass_dse.
29518 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29520         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
29521         * reorg.c (redundant_insn): Remove ifdef
29522         INSN_REFERENCES_ARE_DELAYED.
29523         * resource.c (mark_referenced_resources): Likewise.
29525 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29527         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
29528         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
29529         * resource.c (mark_set_resources): Likewise.
29531 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29533         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
29534         * cfgcleanup.c (flow_find_cross_jump): Likewise.
29535         (flow_find_head_matching_sequence): Likewise.
29536         (try_head_merge_bb): Likewise.
29537         * combine.c (can_combine_p): Likewise.
29538         (try_combine): Likewise.
29539         (distribute_notes): Likewise.
29540         * df-problems.c (can_move_insns_across): Likewise.
29541         * final.c (final): Likewise.
29542         * gcse.c (insert_insn_end_basic_block): Likewise.
29543         * ira.c (find_moveable_pseudos): Likewise.
29544         * reorg.c (try_merge_delay_insns): Likewise.
29545         (fill_simple_delay_slots): Likewise.
29546         (fill_slots_from_thread): Likewise.
29547         * sched-deps.c (sched_analyze_2): Likewise.
29549 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29551         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
29552         PIC_OFFSET_TABLE_REGNUM.
29554 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29556         * alias.c (init_alias_target): Remove ifdef
29557         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
29558         * df-scan.c (df_insn_refs_collect): Likewise.
29559         (df_get_regular_block_artificial_uses): Likewise.
29560         (df_get_eh_block_artificial_uses): Likewise.
29561         (df_get_entry_block_def_set): Likewise.
29562         (df_get_exit_block_use_set): Likewise.
29563         * emit-rtl.c (gen_rtx_REG): Likewise.
29564         * ira.c (ira_setup_eliminable_regset): Likewise.
29565         * reginfo.c (init_reg_sets_1): Likewise.
29566         * regrename.c (rename_chains): Likewise.
29567         * reload1.c (reload): Likewise.
29568         (eliminate_regs_in_insn): Likewise.
29569         * resource.c (mark_referenced_resources): Likewise.
29570         (init_resource_info): Likewise.
29572 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29574         * defaults.h (MASK_RETURN_ADDR): New definition.
29575         * except.c (expand_builtin_extract_return_addr): Remove ifdef
29576         MASK_RETURN_ADDR.
29578 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29580         * defaults.h (RETURN_ADDR_OFFSET): New definition.
29581         * except.c (expand_builtin_extract_return_addr): Remove ifdef
29582         RETURN_ADDR_OFFSET.
29583         (expand_builtin_frob_return_addr): Likewise.
29585 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29587         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
29588         (try_redirect_by_replacing_jump): Likewise.
29589         (rtl_tidy_fallthru_edge): Likewise.
29590         * combine.c (insn_a_feeds_b): Likewise.
29591         (find_split_point): Likewise.
29592         (simplify_set): Likewise.
29593         * cprop.c (cprop_jump): Likewise.
29594         * cse.c (cse_extended_basic_block): Likewise.
29595         * df-problems.c (can_move_insns_across): Likewise.
29596         * function.c (emit_use_return_register_into_block): Likewise.
29597         * haifa-sched.c (sched_init): Likewise.
29598         * ira.c (find_moveable_pseudos): Likewise.
29599         * loop-invariant.c (find_invariant_insn): Likewise.
29600         * lra-constraints.c (curr_insn_transform): Likewise.
29601         * postreload.c (reload_combine_recognize_const_pattern):
29602         * Likewise.
29603         * reload.c (find_reloads): Likewise.
29604         * reorg.c (delete_scheduled_jump): Likewise.
29605         (steal_delay_list_from_target): Likewise.
29606         (steal_delay_list_from_fallthrough): Likewise.
29607         (redundant_insn): Likewise.
29608         (fill_simple_delay_slots): Likewise.
29609         (fill_slots_from_thread): Likewise.
29610         (delete_computation): Likewise.
29611         * sched-rgn.c (add_branch_dependences): Likewise.
29613 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29615         * genconfig.c (main): Always define HAVE_cc0.
29616         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
29617         HAVE_cc0.
29618         * cfgcleanup.c (flow_find_cross_jump): Likewise.
29619         (flow_find_head_matching_sequence): Likewise.
29620         (try_head_merge_bb): Likewise.
29621         * cfgrtl.c (rtl_merge_blocks): Likewise.
29622         (try_redirect_by_replacing_jump): Likewise.
29623         (rtl_tidy_fallthru_edge): Likewise.
29624         * combine.c (do_SUBST_MODE): Likewise.
29625         (insn_a_feeds_b): Likewise.
29626         (combine_instructions): Likewise.
29627         (can_combine_p): Likewise.
29628         (try_combine): Likewise.
29629         (find_split_point): Likewise.
29630         (subst): Likewise.
29631         (simplify_set): Likewise.
29632         (distribute_notes): Likewise.
29633         * cprop.c (cprop_jump): Likewise.
29634         * cse.c (cse_extended_basic_block): Likewise.
29635         * df-problems.c (can_move_insns_across): Likewise.
29636         * final.c (final): Likewise.
29637         (final_scan_insn): Likewise.
29638         * function.c (emit_use_return_register_into_block): Likewise.
29639         * gcse.c (insert_insn_end_basic_block): Likewise.
29640         * haifa-sched.c (sched_init): Likewise.
29641         * ira.c (find_moveable_pseudos): Likewise.
29642         * loop-invariant.c (find_invariant_insn): Likewise.
29643         * lra-constraints.c (curr_insn_transform): Likewise.
29644         * optabs.c (prepare_cmp_insn): Likewise.
29645         * postreload.c (reload_combine_recognize_const_pattern):
29646         * Likewise.
29647         * reload.c (find_reloads): Likewise.
29648         (find_reloads_address_1): Likewise.
29649         * reorg.c (delete_scheduled_jump): Likewise.
29650         (steal_delay_list_from_target): Likewise.
29651         (steal_delay_list_from_fallthrough): Likewise.
29652         (try_merge_delay_insns): Likewise.
29653         (redundant_insn): Likewise.
29654         (fill_simple_delay_slots): Likewise.
29655         (fill_slots_from_thread): Likewise.
29656         (delete_computation): Likewise.
29657         (relax_delay_slots): Likewise.
29658         * sched-deps.c (sched_analyze_2): Likewise.
29659         * sched-rgn.c (add_branch_dependences): Likewise.
29661 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29663         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
29664         that is trivially ded on non cc0 targets.
29665         (simplify_set): Likewise.
29666         (mark_used_regs_combine): Likewise.
29667         * cse.c (new_basic_block): Likewise.
29668         (fold_rtx): Likewise.
29669         (cse_insn): Likewise.
29670         (cse_extended_basic_block): Likewise.
29671         (set_live_p): Likewise.
29672         * rtlanal.c (canonicalize_condition): Likewise.
29673         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
29675 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29677         * conditions.h: Define macros even if HAVE_cc0 is undefined.
29678         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
29679         * final.c: Likewise.
29680         * jump.c: Likewise.
29681         * recog.c: Likewise.
29682         * recog.h: Declare functions even when HAVE_cc0 is undefined.
29683         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
29685 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29687         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
29688         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
29689         * builtins.c (expand_builtin): Remove check if
29690         EH_RETURN_DATA_REGNO is defined.
29691         * df-scan.c (df_bb_refs_collect): Likewise.
29692         (df_get_exit_block_use_set): Likewise.
29693         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
29694         * ira-lives.c (process_bb_node_lives): Likewise.
29695         * lra-lives.c (process_bb_lives): Likewise.
29697 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
29699         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
29700         FIRST_PSEUDO_REG): New.
29701         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
29702         (ARG_POINTER_REGNUM): Define to ARGP_REG.
29703         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
29704         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
29705         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
29706         (FIRST_INT_REG): New.
29707         (LAST_INT_REG): New.
29708         (FIRST_*_REG): Define using *_REG.
29709         (LAST_*_REG): Ditto.
29710         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
29711         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
29712         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
29714 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29716         * expmed.c: (synth_mult): Only assume overlapping
29717         shift with previous steps in alg_sub_t_m2 case.
29719 2015-04-21  Richard Biener  <rguenther@suse.de>
29721         PR tree-optimization/65650
29722         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
29723         transitions involving copies.
29724         (set_lattice_value): Adjust for copy lattice state.
29725         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
29726         if that doesn't dominate the merge point.
29727         (bit_value_unop): Adjust what we treat as varying mask.
29728         (bit_value_binop): Likewise.
29729         (bit_value_assume_aligned): Likewise.
29730         (evaluate_stmt): When we simplified to a SSA name record a copy
29731         instead of dropping to varying.
29732         (visit_assignment): Simplify.
29734         * gimple-match.h (gimple_simplify): Add another callback.
29735         * gimple-fold.c (fold_stmt_1): Adjust caller.
29736         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
29737         for the 2nd callback.
29738         * gimple-match-head.c (gimple_simplify): Add a callback that is
29739         used to valueize the stmt operands and use it that way.
29741 2015-04-21  Richard Biener  <rguenther@suse.de>
29743         PR tree-optimization/65788
29744         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
29746 2015-04-21  Richard Biener  <rguenther@suse.de>
29748         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
29749         vec_construct cost by vec_stmt_cost.
29751 2015-04-21  Richard Biener  <rguenther@suse.de>
29753         * cfghooks.h (create_basic_block): Replace with two overloads
29754         for RTL and GIMPLE.
29755         (split_block): Likewise.
29756         * cfghooks.c (split_block): Rename to ...
29757         (split_block_1): ... this.
29758         (split_block): Add two type-safe overloads for RTL and GIMPLE.
29759         (split_block_after_labels): Call split_block_1.
29760         (create_basic_block): Rename to ...
29761         (create_basic_block_1): ... this.
29762         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
29763         (create_empty_bb): Call create_basic_block_1.
29764         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
29765         split_block_after_labels.
29766         * omp-low.c (expand_parallel_call): Likewise.
29767         (expand_omp_target): Likewise.
29768         (simd_clone_adjust): Likewise.
29769         * tree-chkp.c (chkp_get_entry_block): Likewise.
29770         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
29771         create_basic_block overload.
29772         (cgraph_node::expand_thunk): Likewise.
29773         * tree-cfg.c (make_blocks): Likewise.
29774         (handle_abnormal_edges): Likewise.
29775         * tree-inline.c (copy_bb): Likewise.
29777 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29779         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
29780         New pattern.
29781         (*xor_one_cmplsidi3_ze): Likewise.
29783 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29785         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
29786         use df_remove_problem rather than manually removing problems, leaving
29787         holes in df->problems_in_order[].
29789 2015-04-21  Tom de Vries  <tom@codesourcery.com>
29791         PR tree-optimization/65802
29792         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
29794 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29796         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
29797         Increase to 128.
29798         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
29799         at '.'.  Assert that there's enough space for everything.
29801 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
29803         PR tree-optimization/64950
29804         Revert:
29805         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
29807         PR target/41089
29808         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
29809         as volatile.
29811 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
29813         PR rtl-optimization/64916
29814         * cfgcleanup.c (values_equal_p): New function.
29815         (can_replace_by): Use it.
29817 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
29819         PR c++/65801
29820         * doc/invoke.texi ([-Wnarrowing]): Update.
29822 2015-04-20  Jeff Law  <law@redhat.com>
29824         PR tree-optimization/65658
29825         * tree-ssa-threadupdate.c (redirection_block_p): Remove
29826         redundant test for GIMPLE_ASSIGN in last change.
29828 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
29830         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
29831         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
29832         (legitimize_tls_address): Ditto.
29833         (ix86_expand_move): Ditto.
29834         (ix86_expand_binary_operator): Remove reload_in_progress checks.
29835         (ix86_expand_unary_operator): Ditto.
29836         * config/i386/predicates.md (index_register_operand): Ditto.
29838 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
29840         * reorg.c (try_merge_delay_insns): Improve correctness checking
29841         for targets with multiple delay slots.
29843 2015-04-20  Jeff Law  <law@redhat.com>
29845         PR tree-optimization/65658
29846         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
29847         statements too.
29849 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
29851         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
29852         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
29853         Delete.
29855 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
29857         PR debug/65807
29858         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
29860 2015-04-20  Richard Biener  <rguenther@suse.de>
29862         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
29863         * gimple-fold.c (gimple_build_valueize): New function.
29864         (gimple_build): Always use gimple_build_valueize as valueize hook.
29866 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
29868         PR target/64134
29869         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
29870         and overwrite variable parts if <= 1/2 the elements are variable.
29872 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29874         PR rtl-optimization/65805
29875         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
29876         Don't use difference of offset and previous offset if
29877         update_sp_offset is non-zero.
29878         (eliminate_regs_in_insn): Ditto.
29879         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
29880         lra_eliminate_regs_1 call.
29881         * lra-constraints.c (get_equiv_with_elimination): Ditto.
29883 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
29885         * hash-table.h: Remove version of hash_table that stored value_type *.
29886         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
29887         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
29888         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
29889         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
29890         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
29891         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
29892         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
29893         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
29894         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
29895         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
29896         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
29897         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
29898         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
29899         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
29900         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
29901         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
29903 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29904             Jakub Jelinek  <jakub@redhat.com>
29906         PR target/65787
29907         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
29908         subsequent SH_NONE operand does not overwrite an existing *special
29909         value.
29910         (adjust_extract): Handle case where a vec_extract operation is
29911         wrapped in a PARALLEL.
29913 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29915         PR target/65780
29916         * config/i386/i386.c (ix86_binds_local_p): Define only if
29917         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
29919 2015-04-17  Jeff Law  <law@redhat.com>
29921         PR tree-optimization/47679
29922         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
29923         * tree-ssa-scopedtables.c: New file.
29924         * tree-ssa-scopedtables.h: New file.
29925         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
29926         (const_and_copies): Change name/type.
29927         (record_const_or_copy): Move into tree-ssa-scopedtables.c
29928         (record_const_or_copy_1): Similarly.
29929         (restore_vars_to_original_value): Similarly.
29930         (pass_dominator::execute): Create and destroy const_and_copies table.
29931         (thread_across_edge): Update passing of const_and_copies.
29932         (record_temporary_equivalence): Use method calls rather than
29933         manipulating const_and_copies directly.
29934         (record_equality, cprop_into_successor_phis): Similarly.
29935         (dom_opt_dom_walker::before_dom_children): Similarly.
29936         (dom_opt_dom_walker::after_dom_children): Similarly.
29937         (eliminate_redundant_computations): Similarly.
29938         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
29939         (record_temporary_equivalence): Likewise.
29940         (invalidate_equivalences): Likewise.
29941         (record_temporary_equivalences_from_phis): Update due to type
29942         change of const_and_copies.  Use method calls rather than
29943         manipulating the stack directly.
29944         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
29945         (thread_through_normal_block, thread_across_edge): Likewise.
29946         (thread_across_edge): Likewise.
29947         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
29948         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
29949         of equiv_stack.
29950         (identify_jump_threads): Update due to type change of equiv_stack.
29951         (finalize_jump_threads): Delete the equiv_stack when complete.
29953 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
29955         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29956         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
29957         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
29959 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
29961         PR target/65535
29962         * config.gcc: Exit with a comment when we do not have a major version
29963         number for the FreeBSD target.
29965 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
29967         PR target/65689
29968         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
29969         maybe_allows_mem bitfields.
29970         (maybe_allows_none_start, maybe_allows_none_end,
29971         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
29972         maybe_allows_mem_end): New variables.
29973         (compute_maybe_allows): New function.
29974         (add_constraint): Use it to initialize maybe_allows_reg and
29975         maybe_allows_mem fields.
29976         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
29977         is_address constraints such that those that allow neither mem nor
29978         reg come first, then those that only allow reg but not mem, then
29979         those that only allow mem but not reg, then the rest.
29980         (write_allows_reg_mem_function): New function.
29981         (write_tm_preds_h): Call it.
29982         * stmt.c (parse_output_constraint, parse_input_constraint): Use
29983         the generated insn_extra_constraint_allows_reg_mem function
29984         instead of always setting *allows_reg = true; *allows_mem = true;
29985         for unknown extra constraints.
29987 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29989         PR target/65780
29990         * output.h (default_binds_local_p_3): New.
29991         * varasm.c (default_binds_local_p_3): Make it public.  Take an
29992         argument to indicate if common symbol may be local.  If common
29993         symbol may be local, treat non-external variable as defined
29994         locally.
29995         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
29996         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
29997         * config/i386/i386.c (ix86_binds_local_p): New.
29998         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
29999         ix86_binds_local_p.
30001 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
30003         PR debug/65771
30004         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
30005         trying mem_loc_descriptor on XEXP (rtl, 0).
30007 2015-04-17  Martin Liska  <mliska@suse.cz>
30009         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
30010         Release symbol_compare_collection.
30011         * ipa-reference.c: Add TODO that a vector should be released.
30013 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
30015         PR target/65296
30016         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
30017         to new AVR-LibC file layout (bug #44574).
30018         (*avrlibc_devicelib): Same.
30019         * config/avr/avr-mcus.def: Adjust comments.
30020         * config/avr/avr.opt (nodevicelib): Adjust help.
30022 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
30024         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
30026 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
30028         PR c++/64527
30029         * gimplify.c (gimplify_init_constructor): Always emit a
30030         side-effecting constructor.
30032 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30034         PR tree-optimization/64950
30035         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
30036         in cfun->curr_properties.
30037         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
30038         if we generate an IFN_VA_ARG.
30039         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
30040         function if PROP_gimple_lva is not set in src function.
30042 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30043             Michael Matz  <matz@suse.de>
30045         PR tree-optimization/64950
30046         * gimple-iterator.c (update_modified_stmts): Remove static.
30047         * gimple-iterator.h (update_modified_stmts): Declare.
30048         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
30049         (gimplify_va_arg_internal): New function.
30050         (gimplify_va_arg_expr): Use IFN_VA_ARG.
30051         * gimplify.h (gimplify_va_arg_internal): Declare.
30052         * internal-fn.c (expand_VA_ARG): New unreachable function.
30053         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
30054         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
30055         (expand_ifn_va_arg): New function.
30056         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
30057         (pass_stdarg::execute): Call expand_ifn_va_arg.
30058         (pass_data_lower_vaarg): New pass_data.
30059         (pass_lower_vaarg): New gimple_opt_pass.
30060         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
30061         (make_pass_lower_vaarg): New function.
30062         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
30063         properties_required field.
30064         * passes.def (all_passes): Add pass_lower_vaarg.
30065         * tree-pass.h (PROP_gimple_lva): Add define.
30066         (make_pass_lower_vaarg): Declare.
30068 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30070         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
30071         * calls.c (call_expr_flags): Same.
30073 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30075         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
30076         (pass_stdarg::execute): ... here.
30078 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30079             Michael Matz  <matz@suse.de>
30081         * tree-cfg.c (make_blocks_1): Factor out of ...
30082         (make_blocks): ... here.
30083         (make_edges_bb): Factor out of ...
30084         (make_edges): ... here.
30085         (gimple_find_sub_bbs): New function.
30086         * tree-cfg.h (gimple_find_sub_bbs): Declare.
30088 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30090         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
30092 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
30094         * asan.c (set_sanitized_sections): New function.
30095         (section_sanitized_p): Ditto.
30096         (asan_protect_global): Optionally sanitize user-defined
30097         sections.
30098         * asan.h (set_sanitized_sections): Declare new function.
30099         * common.opt (fsanitize-sections): New option.
30100         * doc/invoke.texi (-fsanitize-sections): Document new option.
30101         * opts-global.c (handle_common_deferred_options): Handle new
30102         option.
30104 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
30106         PR debug/65771
30107         * dwarf2out.c (loc_list_from_tree): Return NULL
30108         for DEBUG_EXPR_DECL.
30110 2015-04-17  Christian Bruel  <christian.bruel@st.com>
30112         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
30113         same attributes.
30115 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
30117         * ira-color.c (setup_left_conflict_sizes_p): Do not process
30118         node itself when computing left conflict subnode size.
30120 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
30122         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
30123         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
30124         *fop_<mode>_1_sse using enabled attribute.  Use
30125         register_mixssei387nonimm_operand operand 1 predicate. Change
30126         alternative 3 constraints from "x" to "v".
30128 2015-04-16  Richard Biener  <rguenther@suse.de>
30130         PR tree-optimization/65774
30131         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
30132         bit-value tracking on.
30134 2015-04-16  Richard Biener  <rguenther@suse.de>
30136         PR tree-optimization/64277
30137         * tree-vrp.c (check_array_ref): Fix anti-range handling,
30138         simplify upper bound handling.
30139         (search_for_addr_array): Simplify.
30140         (check_array_bounds): Handle ADDR_EXPRs here.
30141         (check_all_array_refs): Simplify.
30143 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
30145         * config/i386/i386.c (print_reg): Rewrite function.
30147 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30149         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
30150         Invert the condition.
30152 2015-04-16  Renlin Li  <renlin.li@arm.com>
30154         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
30155         simplifications for UNSIGNED_FLOAT.
30157 2015-04-16  Nick Clifton  <nickc@redhat.com>
30159         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
30160         MUL_UNINIT.
30161         (enum rl78_cpu_type): New.
30162         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
30163         (umulhi3_shift_virt): Remove m constraint from operand 1.
30164         (umulqihi3_virt): Likewise.
30165         * config/rl78/rl78.c (rl78_option_override): Add code to process
30166         -mcpu and -mmul options.
30167         (rl78_alloc_physical_registers): Add code to handle divhi and
30168         divsi valloc attributes.
30169         (set_origin): Likewise.
30170         * config/rl78/rl78.h (RL78_MUL_G14): Define.
30171         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
30172         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
30173         __RL78_Gxx__.
30174         (ASM_SPEC): Pass -mcpu on to assembler.
30175         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
30176         (mulqi3_rl78): Likewise.
30177         (mulhi3_g13): Likewise.
30178         (mulhi3): Generate the G13 or G14 versions of the insn directly.
30179         (mulsi3): Likewise.
30180         (mulhi3_g14): Add clobbers of AX and BC.
30181         (mulsi3_g14): Likewise.
30182         (mulsi3_g13): Likewise.
30183         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
30184         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
30185         * config/rl78/rl78.opt (mmul): Initialise value to
30186         RL78_MUL_UNINIT.
30187         (mcpu): New option.
30188         (m13, m14, mrl78): New option aliases.
30189         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
30190         (MULTILIB_DIRNAMES): Add g13 and g14.
30191         * doc/invoke.texi: Document -mcpu and -mmul options.
30193 2015-04-16  Richard Biener  <rguenther@suse.de>
30195         * tree-ssa-ccp.c (likely_value): See if we have operands that
30196         are marked as never simulate again and return CONSTANT in this
30197         case.
30198         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
30199         not have any operands that will be simulated again as
30200         not being simulated again.
30202 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
30204         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
30205         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
30206         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
30207         attribute.
30208         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
30209         enabled attribute.
30210         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
30211         *float<SWI48:mode><MODEF:mode>2_sse.
30212         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
30213         enabled attribute.
30214         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
30215         enabled attribute.
30217 2015-04-15  Tom de Vries  <tom@codesourcery.com>
30219         PR other/65487
30220         * function.c (push_dummy_function): New function.
30221         (init_dummy_function_start): Use push_dummy_function.
30222         (pop_dummy_function): New function.  Factored out of ...
30223         (expand_dummy_function_end): ... here.
30224         * function.h (push_dummy_function, pop_dummy_function): Declare.
30225         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
30226         pop_dummy_function.
30227         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
30229 2015-04-15  Jeff Law  <law@redhat.com>
30231         PR tree-optimization/47679
30232         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
30233         need for forward declaration in upcoming changes.
30234         (record_conditions, record_edge_info): Likewise.
30236         PR rtl-optimization/42522
30237         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
30238         SIGN_EXTRACT as a whole object rather than simplifying
30239         its operand.
30241 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
30243         PR ipa/65765
30244         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
30245         and GIMPLE_PREDICT use break instead of return true. For
30246         GIMPLE_EH_DISPATCH, compare dispatch region.
30248 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
30250         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
30251         details about the implementation.  Make clear preference for
30252         __atomic builtins.  Reduce possibility of future change.
30254 2015-04-15  Nick Clifton  <nickc@redhat.com>
30256         * config/rx/rx.opt (mallow-string-insns): New option.
30257         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
30258         builtin if string instructions are denied.
30259         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
30260         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
30261         appropriate.
30262         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
30263         * config/rx/rx.md (movstr): Enable pattern only if string
30264         instructions are allowed.
30265         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
30266         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
30267         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
30268         (MULTILIB_DIRNAMES): Add no-strings.
30269         * doc/invoke.texi: Document -mno-allow-string-insns.
30271 2015-04-15  Alan Modra  <amodra@gmail.com>
30273         PR target/65408
30274         PR target/58744
30275         PR middle-end/36043
30276         * calls.c (load_register_parameters): Don't load past end of
30277         mem unless suitably aligned.
30279 2015-04-15  Nick Clifton  <nickc@redhat.com>
30281         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
30282         decrement instruction as being frame related.
30283         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
30284         based addresses.
30285         If zero extending a function address enclose the operation in
30286         %code(...).
30287         (rl78_preferred_reload_class): New function.
30288         (TARGET_PREFERRED_RELOAD_CLASS): Define.
30289         * config/rl78/rl78.md: Remove useless constraints in expanders.
30290         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
30291         (mulhi3_rl78): Likewise.
30292         (mulhi3_g13): Likewise.
30293         (mulsi3_rl78): Likewise.
30294         (es_addr): Move to before the multiply patterns.
30296 2015-04-15  Alan Modra  <amodra@gmail.com>
30298         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
30299         and sequence_stack.  Add seq.
30300         (seq_stack): Delete.
30301         * function.c (prepare_function_start): Don't access x_last_insn.
30302         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
30303         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
30304         * emit_rtl.c (start_sequence, push_topmost_sequence,
30305         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
30306         sequence accessors.
30307         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
30308         remove_insn): Likewise.  Simplify.
30309         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
30310         and pop_topmost_sequence.
30311         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
30312         debug insns.
30313         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
30315 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
30317         PR target/65729
30318         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
30319         the assertiion.
30321 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
30323         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
30324         (LEGACY_INT_REGNO_P): Ditto.
30325         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
30326         (ANY_MASK_REG_P): Remove.
30327         (BND_REG_P): Rename from ANY_BND_REG_P.
30328         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
30329         legacy integer registers.  Do not handle MMX_REG_P in a special way.
30330         Merge 64byte and 32byte SSE handling.
30332 2015-04-14  Nick Clifton  <nickc@redhat.com>
30334         * expr.c (expand_assignment): Force an address offset computation
30335         into a register before changing its mode.
30336         (expand_expr_real_1): Likewise.
30338 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
30340         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
30341         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
30342         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
30343         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
30344         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
30345         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
30346         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
30347         and __aarch64_vget_lane_any.
30349 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
30351         PR rtl-optimization/65761
30352         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
30353         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
30355 2015-04-14  Richard Biener  <rguenther@suse.de>
30357         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
30358         (graphite_can_represent_scev): Use POINTER_TYPE_P.
30360 2015-04-14  Richard Biener  <rguenther@suse.de>
30362         PR tree-optimization/65758
30363         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
30364         against -1.
30365         (ccp_lattice_meet): Likewise.
30366         (bit_value_unop): Likewise.
30367         (bit_value_binop): Likewise.
30368         (bit_value_assume_aligned): Likewise.
30370 2015-04-14  Christian Bruel  <christian.bruel@st.com>
30372         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
30373         function.
30375 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
30377         PR tree-optimization/63387
30378         * match.pd ((x unord x) | (y unord y) -> (x unord y),
30379         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
30381 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
30383         * config/i386/predicates.md (any_QIreg_operand): Rename from
30384         q_regs_operand.  Do not process subregs.
30385         (QIreg_operand): Use QI_REGNO_P predicate.
30386         (ext_QIreg_operand): Ditto.
30387         (ext_register_operand): Ditto.
30388         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
30389         (AND splitters): Ditto.
30390         (AND with -65536 splitter): Add SWI48 mode for operand 0.
30391         (AND with -256 splitter): Use any_QIreg_operand predicate and
30392         SWI248 mode for operand 0.
30393         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
30394         mode for operand 0.
30395         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
30397 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
30399         * doc/plugins.texi: Rewrite first introductory paragraph.
30401 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30403         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
30404         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
30406 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30408         * ipa-profie.c (ipa_profile): Check number of parameters
30409         and possible polymorphic call targets before
30410         devirtualizing.
30412 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
30414         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
30415         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
30417 2015-04-13  Richard Biener  <rguenther@suse.de>
30419         PR tree-optimization/65204
30420         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
30421         takens for bit-CCP.
30423 2015-04-13  Richard Biener  <rguenther@suse.de>
30425         PR target/65660
30426         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
30427         and cond_not_taken_branch_cost to 4 and 2.
30428         (bdver2_cost): Likewise.
30429         (bdver3_cost): Likewise.
30430         (bdver4_cost): Likewise.
30432 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30434         * hash-table.h (hash_table constructor): Add mem stats.
30435         (alloc_entries): Likewise.
30437 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30439         * ipa-cp.c (ipcp_driver): Relase prev_edge.
30440         * passes.c (execute_one_pass): Only add transform if pass has one.
30442 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
30444         * config/i386/i386.c (ix86_option_override_internal): Don't set
30445         -fprefetch-loop-arrays if optimizing for size.
30447 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30448             Gerald Pfeifer  <gerald@pfeifer.com>
30450         * doc/contrib.texi (Contributors): Add Martin Jambor and
30451         Michael Matz.
30453 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
30455         * BASE-VER: Set to 6.0.0.
30457         PR tree-optimization/65747
30458         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
30459         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
30461 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
30463         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
30464         sentence.  Improve grammar.
30466 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
30468         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
30470 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
30472         PR ipa/65743
30473         * ipa-inline-transform.c (speculation_removed): Remove static var.
30474         (check_speculations): New function.
30475         (clone_inlined_nodes): Do not check spculations.
30476         (inline_call): Call check_speculations.
30477         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
30478         consider non-invariants.
30480 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
30481             Martin Liska  <mliska@suse.cz>
30483         PR ipa/65722
30484         * ipa-icf.c (sem_item::compare_cgraph_references): function and
30485         variable can not match.
30486         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
30487         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
30489 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
30491         PR tree-optimization/65735
30492         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
30493         Remove visited_phis argument, add visited_bbs, avoid recursing into the
30494         same bb rather than just into the same phi node.
30495         (thread_through_normal_block): Adjust caller.
30497 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
30499         * doc/contrib.texi (Contributors): Add Ira Rosen.
30501 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
30503         * gcov.c (find_source): Fix miswording in error message.
30504         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
30505         (ix86_expand_sse_comi_round): Fix typo in error message.
30507 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
30509         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
30511 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
30513         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
30515 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
30517         PR target/65710
30518         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
30519         Print bad_spills_num and insn_pseudos_num.
30521 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30523         PR target/65694
30524         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
30525         when creating +1 values for SImode.
30527 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
30529         PR target/65729
30530         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
30531         assert.
30533 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
30534             Iain Sandoe  <iain@codesourcery.com>
30536         PR target/65351
30537         * configure: Regenerate.
30539 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
30541         PR target/65671
30542         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
30544 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
30546         * doc/contrib.texi (Contributors): Add John Marino.
30548 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
30550         PR tree-optimization/65709
30551         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
30552         TREE_TYPE (TREE_TYPE (t)).
30554 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
30556         PR target/65710
30557         * lra-int.h (lra_bad_spill_regno_start): New.
30558         * lra.c (lra_bad_spill_regno_start): New.
30559         (lra): Set up lra_bad_spill_regno_start.  Set up
30560         lra_constraint_new_regno_start unconditionally.
30561         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
30562         spill preferences.
30564 2015-04-09  Marek Polacek  <polacek@redhat.com>
30565             Jakub Jelinek  <jakub@redhat.com>
30567         PR middle-end/65554
30568         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
30569         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
30570         of STRIP_NOPS.
30572 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
30574         PR rtl-optimization/65693
30575         * combine.c (is_parallel_of_n_reg_sets): Move outside of
30576         #ifndef HAVE_cc0.
30578 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
30580         PR target/65296
30581         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
30582         device specs file if "device-specs%s" didn't resolve to a path.
30584 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
30586         PR target/65676
30587         * config/i386/i386.c (fixup_modeless_constant): New.
30588         (ix86_expand_args_builtin): Fixup modeless constant operand.
30589         (ix86_expand_round_builtin): Ditto.
30590         (ix86_expand_special_args_builtin): Ditto.
30591         (ix86_expand_builtin): Ditto.
30593 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
30595         PR target/65693
30596         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
30597         any pow2 integer in between 2 and 0x80000000U inclusive.
30599 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
30601         PR rtl-optimization/65693
30602         * combine.c (is_parallel_of_n_reg_sets): Change first argument
30603         from an rtx_insn * to an rtx.
30604         (try_combine): Adjust both callers.  Use it once more.
30606 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30608         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
30609         (chkp_make_static_const_bounds): Search existing
30610         symbol by assembler name.  Use make_decl_one_only.
30611         (chkp_get_zero_bounds_var): Remove node search which
30612         is now performed in chkp_make_static_const_bounds.
30613         (chkp_get_none_bounds_var): Likewise.
30615 2015-04-08  Michael Witten  <mfwitten@gmail.com>
30617         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
30618         to an example.
30620 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30622         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
30624 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
30626         * doc/extend.texi (__sync Builtins): Fix grammar.
30628 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30630         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
30632 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30634         * varasm.c (emit_local): Move definition of align.
30636 2015-04-08  Julian Brown  <julian@codesourcery.com>
30638         * config/nvptx/mkoffload.c (process): Support variable mapping.
30640 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
30642         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
30643         alpha_links **.
30644         (alpha_write_one_linkage): Correct typo.
30646 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30648         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
30650 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
30652         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
30654 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30656         * tree-chkp.h (chkp_insert_retbnd_call): New.
30657         * tree-chkp.c (chkp_insert_retbnd_call): New.
30658         * ipa-split.c (insert_bndret_call_after): Remove.
30659         (split_function): Use chkp_insert_retbnd_call.
30660         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
30661         bounds for instrumented functions.
30663 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
30665         PR ipa/65540
30666         * calls.c (initialize_argument_information): When producing tail
30667         call also turn SSA_NAMES passed by references to original PARM_DECLs
30669 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
30671         PR target/65648
30672         * lra-remat.c (do_remat): Process input and non-input insn
30673         registers separately.
30675 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
30677         PR debug/65678
30678         * valtrack.c (debug_lowpart_subreg): New function.
30679         (dead_debug_insert_temp): Use it.
30681         PR middle-end/65680
30682         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
30683         into signed HOST_WIDE_INT the same as negative bit_offset.
30685 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
30687         * ipa-comdats.c (ipa_comdats): Visit all thunks
30688         to set proper comdat group.
30690 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30692         PR target/65489
30693         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
30694         on constants for NEON VSTRUCT modes.
30696 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
30697             Iain Sandoe  <iain@codesourcery.com>
30699         PR target/65351
30700         * configure: Regenerate.
30702 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
30704         PR target/65614
30705         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
30706         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
30707         that LFD is used to load double constants instead of LFS.  Add
30708         defaults for all costs structures.  Add comments for missing
30709         initialization fields.
30710         (size32_cost): Likewise.
30711         (size64_cost): Likewise.
30712         (rs64a_cost): Likewise.
30713         (mpccore_cost): Likewise.
30714         (ppc403_cost): Likewise.
30715         (ppc405_cost): Likewise.
30716         (ppc440_cost): Likewise.
30717         (ppc476_cost): Likewise.
30718         (ppc601_cost): Likewise.
30719         (ppc603_cost): Likewise.
30720         (ppc604_cost): Likewise.
30721         (ppc604e_cost): Likewise.
30722         (ppc620_cost): Likewise.
30723         (ppc630_cost): Likewise.
30724         (ppccell_cost): Likewise.
30725         (ppc750_cost): Likewise.
30726         (ppc7450_cost): Likewise.
30727         (ppc8540_cost): Likewise.
30728         (ppce300c2c3_cost): Likewise.
30729         (ppce500mc_cost): Likewise.
30730         (ppce500mc64_cost): Likewise.
30731         (ppce5500_cost): Likewise.
30732         (ppce6500_cost): Likewise.
30733         (titan_cost): Likewise.
30734         (power4_cost): Likewise.
30735         (power6_cost): Likewise.
30736         (power7_cost): Likewise.
30737         (power8_cost): Likewise.
30738         (ppca2_cost): Likewise.
30739         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
30741         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
30742         instead of XXLOR to copy SFmode to clear out dirty bits created
30743         when SFmode denormals are generated.
30744         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
30745         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
30747 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
30749         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
30750         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
30751         * config/aarch64/aarch64-tune.md: Regenerate.
30753 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
30755         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
30756         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
30757         * config/arm/arm-cores.def (exynos-m1): New core.
30758         * config/arm/arm-tune.md: Regenerate.
30759         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
30760         * config/arm/bpabi.h: Likewise.
30762 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
30764         * ipa-cp (set_single_call_flag): Remove too
30765         restrictive assert.
30767 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
30769         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
30770         GOMP_offload_unregister from the destructor.
30772 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
30774         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
30775         flags for instrumentation thunk.
30776         (chkp_produce_thunks): Likewise.
30778 2015-04-05  Martin Liska  <mliska@suse.cz>
30780         PR ipa/65665
30781         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
30782         has computed data structure.
30783         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30785 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
30787         * invoke.texi (inline-unit-growth): Increase growth to 20%
30788         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
30790 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
30792         PR target/65647
30793         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
30794         value checking.
30795         (lra_rematerialization_iter): New.
30796         * lra.c (lra): Initialize lra_rematerialization_iter.
30797         Stop updating lra_constraint_new_regno_start after switching of
30798         inheritance and rematerialization.
30799         * lra-remat.c (lra_rematerialization_iter): New.
30800         (lra_remat): Add printing pass iteration.  Do rematerialization
30801         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
30803 2015-04-04  Richard Biener  <rguenther@suse.de>
30805         PR tree-optimization/64909
30806         PR tree-optimization/65660
30807         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
30808         to take a cost vector for scalar iteration cost.
30809         (vect_get_single_scalar_iteration_cost): Likewise.
30810         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
30811         Compute the scalar iteration cost into a cost vector.
30812         (vect_get_known_peeling_cost): Use the scalar cost vector to
30813         account for the cost of the peeled iterations.
30814         (vect_estimate_min_profitable_iters): Likewise.
30815         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
30816         Likewise.
30818 2015-04-04  Alan Modra  <amodra@gmail.com>
30820         PR target/65576
30821         PR target/65240
30822         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
30823         0.0 constant unless TARGET_VSX.
30824         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
30825         alternative.
30827 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
30829         PR ipa/65654
30830         * ipa-inline-transform.c (inline_call): Skip sanity check to work
30831         around the ICE
30833 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
30835         PR ipa/65655
30836         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
30837         speculative indirect edges to avoid ordering issue.
30839 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
30841         PR ipa/65076
30842         * ipa-inline.c (edge_badness): Add combined size to the denominator.
30844 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
30846         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
30847         TYPE_ARTIFICIAL on the .omp_data* types.
30849 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30851         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
30852         instrumentation thunks.
30854 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30856         * config/i386/i386.c (ix86_expand_call): Avoid nested
30857         PARALLEL in returned call value.
30859 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30861         * lto-cgraph.c (input_cgraph_1): Always link instrumented
30862         assembler name with original one.
30864 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30866         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
30868 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30870         Revert parts of r216820.
30871         * config/i386/i386.md (movqi_internal): Correct type calculation
30872         for alternatives 3 and 5.
30874 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
30876         PR preprocessor/61977
30877         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
30878         predefine __vector/__bool/__pixel macros nor context sensitive
30879         macros for CLK_ASM.
30880         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
30882 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
30884         * config/pa/pa.c (pa_output_move_double): Directly handle register
30885         indexed memory operand.  Simplify handling of scaled register indexed
30886         memory operands.
30888 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30890         PR driver/65444
30891         * config/i386/linux-common.h (MPX_SPEC): New.
30892         (CHKP_SPEC): Add MPX_SPEC.
30893         * doc/invoke.texi (-fcheck-pointer-boudns): Document
30894         possible issues with '-z bndplt' support in linker.
30896 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30898         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
30899         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
30900         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
30901         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
30902         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
30904 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
30906         * config/i386/sync.md (UNSPEC_MOVA): Remove.
30907         (atomic_load<mode>): Change operand 0 predicate to
30908         nonimmediate_operand and fix up the destination when needed.
30909         Use UNSPEC_LDA.
30910         (atomic_loaddi_fpu): Use UNSPEC_LDA.
30911         (atomic_store<mode>): Change operand 1 predicate to
30912         nonimmendate_operand and move the source to register when needed.
30913         Use UNSPEC_STA.
30914         (atomic_store<mode>_1): Use UNSPEC_STA.
30915         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
30916         Fix moves from memory operand.  Use UNSPEC_STA.
30918 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30920         * expmed.c (strict_volatile_bitfield_p): Check that the access will
30921         not cross a MODESIZE boundary.
30922         (store_bit_field, extract_bit_field): Added assertions in the
30923         strict volatile bitfields code path.
30925 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30927         PR target/65624
30928         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
30929         Increase args array size by one to avoid buffer overflow.
30931 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
30933         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30934         split_part.
30935         * ipa-inline.c (edge_badness): Add wrapper penalty.
30936         (sum_callers): Move up.
30937         (inline_small_functions): Set single_caller.
30938         * ipa-inline.h (inline_summary): Add single_caller.
30939         * ipa-split.c (split_function): Set split_part.
30940         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
30941         * cgraph.h (cgraph_node): Add split_part.
30943 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
30945         PR target/58945
30946         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
30947         Do not split operands 0 and operands 2 to halfmode.
30948         (atomic_compare_and_swap<mode>): Update for
30949         atomic_compare_and_swap<dwi>_doubleword changes.
30951 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
30953         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
30954         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
30955         no caching is done.
30957 2015-03-31  Martin Liska  <mliska@suse.cz>
30959         PR ipa/65557
30960         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
30961         has already filled up function summary.
30962         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30964 2015-03-31  Richard Biener  <rguenther@suse.de>
30966         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
30967         of types.
30969 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30971         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
30972         nested functions.
30973         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
30974         (s390_asm_output_function_label): Adapt to new signature of
30975         s390_function_num_hotpatch_hw
30976         Optimise the code generating assembler output.
30977         Add comments to assembler file.
30979 2015-03-31  Richard Biener  <rguenther@suse.de>
30981         PR middle-end/65626
30982         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
30983         of the noreturn call so it is last and cleanup_control_flow_bb
30984         can do the CFG part.
30986 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
30988         PR target/65531
30989         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
30990         same_comdat_group for external symbols.
30991         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
30992         infinite same_comdat_group traversal loop.
30994 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
30996         PR plugins/61176
30997         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
30998         automatically to $headers.
31000 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
31002         PR ipa/65610
31003         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
31004         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
31005         function.
31006         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
31007         Use it.
31008         * ipa-prop.c (param_type_may_change_p): Likewise.
31009         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
31010         (remove_unused_scope_block_p): Add in_ctor_dtor_block
31011         argument.  Before inlining, preserve
31012         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
31013         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
31014         recursive calls.
31015         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
31017 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31019         PR ipa/65076
31020         * ipa-inline.c (edge_badness): Base denominator on callee's
31021         grwoth squared.
31023 2015-03-27  Martin Jambor  <mjambor@suse.cz>
31025         PR ipa/65478
31026         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
31027         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
31028         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
31029         node_calling_single_call.
31030         * ipa-cp.c (count_callers): New function.
31031         (set_single_call_flag): Likewise.
31032         (initialize_node_lattices): Count callers and set single_flag_call if
31033         necessary.
31034         (incorporate_penalties): New function.
31035         (good_cloning_opportunity_p): Use it, dump new flags.
31036         (propagate_constants_topo): Set node_within_scc flag if appropriate.
31037         * doc/invoke.texi (ipa-cp-recursion-penalty,
31038         ipa-cp-single-call-pentalty): Document.
31040 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31042         PR ipa/65588
31043         * symtab.c (symtab_node::get_partitioning_class): Register vars
31044         are duplicated.
31045         * varpool.c (symbol_table::output_variables) Do not assemble unefined
31046         decls for non-symbols.
31048 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
31050         PR target/65248
31051         * output.h (default_binds_local_p_2): New.
31052         * varasm.c (default_binds_local_p_2): Renamed to ...
31053         (default_binds_local_p_3): This.  Don't return true on protected
31054         data symbol if protected data may be external.
31055         (default_binds_local_p): Use default_binds_local_p_3.
31056         (default_binds_local_p_1): Likewise.
31057         (default_binds_local_p_2): New.
31058         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
31059         default_binds_local_p_2 if TARGET_MACHO is undefined.
31061 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
31063         PR target/65593
31064         * config/i386/i386.c (legitimize_pic_address): If base
31065         is SYMBOL_REF or LABEL_REF using %rip addressing, force
31066         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
31068 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31070         PR target/65531
31071         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
31072         comdat groups.
31074 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31076         PR ipa/65600
31077         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
31078         of optimized out indirect call.
31079         (redirect_to_unreachable): Always build symbol table node for
31080         BUILT_IN_UNREACHABLE
31082 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
31084         PR target/65407
31085         * ira-costs.c (record_reg_classes): Process all constraint string
31086         containing 0-9.
31088 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
31090         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
31091         memory_operand.
31093         PR target/65052
31094         * config/c6x/constraints.md (S3): New constraint.
31095         * config/c6x/c6x.md (real_jump): Use it.
31097 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31099         PR middle-end/65595
31100         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
31101         do redirection if the call is not optimized out.
31103 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
31105         PR target/65495
31106         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
31107         (fchkp-check-incomplete-type): Add LTO.
31108         (fchkp-zero-input-bounds-for-main): Likewise.
31109         (fchkp-first-field-has-own-bounds): Likewise.
31110         (fchkp-narrow-bounds): Likewise.
31111         (fchkp-narrow-to-innermost-array): Likewise.
31112         (fchkp-use-static-bounds): Likewise.
31113         (fchkp-use-static-const-bounds): Likewise.
31114         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31116 2015-03-27  Marek Polacek  <polacek@redhat.com>
31118         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
31120 2015-03-27  Marek Polacek  <polacek@redhat.com>
31122         PR sanitizer/65583
31123         * ubsan.c (ubsan_create_edge): New function.
31124         (instrument_bool_enum_load): Call it.
31125         (instrument_nonnull_arg): Likewise.
31126         (instrument_nonnull_return): Likewise.
31127         (instrument_object_size): Likewise.
31129 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31131         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
31132         auto_vec.
31134 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31136         PR lto/65536
31137         * lto-streamer.h (class lto_location_cache): New.
31138         (struct data_in): Add location_cache.
31139         (lto_input_location): Update prototype.
31140         (stream_input_location_now): New.
31141         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
31142         pointer to location.
31143         (stream_input_location): Update.
31144         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
31145         (warn_odr): Apply location cache before warning.
31146         (lto_input_location): Update prototype.
31147         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
31148         Use stream_input_location_now.
31149         * lto-streamer-in.c (lto_location_cache::current_cache): New static
31150         variable.
31151         (lto_location_cache::cmp_loc): New function.
31152         (lto_location_cache::apply_location_cache): New function.
31153         (lto_location_cache::accept_location_cache): New function.
31154         (lto_location_cache::revert_location_cache): New function.
31155         (lto_location_cache::input_location): New function.
31156         (lto_input_location): Do location caching.
31157         (stream_input_location_now): New function.
31158         (input_eh_region, input_struct_function_base): Use
31159         stream_input_location_now.
31160         (lto_data_in_create): use new.
31161         (lto_data_in_delete): Use delete.
31162         * tree-streamer-in.c (unpack_ts_block_value_fields,
31163         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
31164         lto_input_ts_exp_tree_pointers): Update for cached location api.
31166 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31168         PR ipa/65076
31169         * passes.def: Add pass_nothrow.
31170         * ipa-pure-const.c: (pass_data_nothrow): New.
31171         (pass_nothrow): New.
31172         (pass_nothrow::execute): New.
31173         (make_pass_nothrow): New.
31174         * tree-pass.h (make_pass_nothrow): Declare.
31176 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31178         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
31179         edge to change by speculation resolution or redirection.
31180         (edge_set_predicate): Likewise.
31181         (inline_summary_t::duplicate): Likewise.
31182         (remap_edge_summaries): Likewise.
31184 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31186         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
31187         New macros.
31188         (can_inline_edge_p): Relax option matching for always inline functions.
31190 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
31192         PR target/65561
31193         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
31194         Check operand 4 and operand 0 for equality.
31195         (avx512f_vextract<shuffletype>32x4_1_maskm):
31196         Check operand 6 and operand 0 for equality.
31197         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
31198         for equality.
31199         (vec_extract_hi_<mode>_maskm): Ditto.
31201 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31203         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
31204         dead calls back to live.
31205         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
31206         cross check to ...
31207         (cgraph_node::verify_node): ... here; verify only callee edges,
31208         not caller.
31209         * cif-code.def (CILK_SPAWN): New code.
31211 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31213         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
31214         (edge_set_predicate): Use it to mark unreachable edges.
31215         (inline_summary_t::duplicate): Remove unnecesary code.
31216         (remap_edge_summaries): Likewise.
31217         (dump_inline_summary): Report contains_cilk_spawn.
31218         (compute_inline_parameters): Compute contains_cilk_spawn.
31219         (inline_read_section, inline_write_summary): Stream
31220         contains_cilk_spawn.
31221         * ipa-inline.c (can_inline_edge_p): Do not touch
31222         DECL_STRUCT_FUNCTION that may not be available;
31223         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
31224         remove check for callee_fun->can_throw_non_call_exceptions and
31225         replace it by optimization attribute check; check for flag_exceptions.
31226         * ipa-inline-transform.c (inline_call): Maintain
31227         DECL_FUNCTION_PERSONALITY
31228         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
31230 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
31232         PR tree-optimization/65551
31233         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
31234         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
31236 2015-03-26  Richard Biener  <rguenther@suse.de>
31238         PR middle-end/65555
31239         * tree-cfg.c (verify_gimple_call): Do not require a call to
31240         have no LHS if it wasn't recognized as control altering yet.
31242 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
31244         PR tree-optimization/64715
31245         * passes.def: Add another instance of pass_object_sizes before ccp1.
31246         * tree-object-size.c (pass_object_sizes::execute): In
31247         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
31248         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
31249         __bos result and the computed constant.  Remove redundant
31250         checks, obsoleted by gimple_call_builtin_p test.
31252         * var-tracking.c (variable_tracking_main_1): Don't track
31253         variables for targetm.no_register_allocation targets.
31255 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
31257         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
31258         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
31260 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
31262         PR target/65569
31263         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
31264         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
31265         0.0 is correctly setup.
31266         (extenddftf2_internal): Likewise.
31268 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
31270         PR tree-optimization/65177
31271         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
31272         (bb_in_bbs): New.
31273         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
31274         edges not adjacent on the path to the original code.
31276 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
31278         PR bootstrap/65537
31279         * doc/install.texi (Building a native compiler): Document new
31280         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
31281         configuration assumes that the host supports the linker plugin.
31283 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
31285         PR target/65508
31286         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
31287         chain for generated call.
31289 2015-03-25  Richard Biener  <rguenther@suse.de>
31291         * passes.c (pass_manager::execute_early_local_passes): Guard
31292         execution of pass_chkp_instrumentation_passes with
31293         flag_check_pointer_bounds.
31294         (pass_chkp_instrumentation_passes::gate): Likewise.
31296 2015-03-25  Martin Liska  <mliska@suse.cz>
31298         PR tree-optimization/65538
31299         * symbol-summary.h (function_summary::~function_summary):
31300         Relese memory for allocated summaries.
31301         (function_summary::release): New function.
31303 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
31305         PR lto/65515
31306         * lto-streamer-out.c (DFS::worklist): New struct.
31307         (DFS::worklist_vec): New data member.
31308         (DFS::next_dfs_num): Remove.
31309         (DFS::DFS): Rewritten using worklist instead of recursion,
31310         using most of code from DFS::DFS_write_tree.
31311         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
31312         pass it to DFS_write_tree calls.
31313         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
31314         quick initial checks push it into worklist_vec and return.
31316 2015-03-25  Richard Biener  <rguenther@suse.de>
31318         PR middle-end/65519
31319         * genmatch.c (expr::gen_transform): Re-write to avoid
31320         using gimple_build.
31322 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
31324         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
31326 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
31328         * config/arm/arm.opt (print_tune_info): New option.
31329         * config/arm/arm.c (arm_print_tune_info): New function.
31330         (arm_file_start): Call arm_print_tune_info.
31331         * config/arm/arm-protos.h (struct tune_params): Add comment.
31332         * doc/invoke.texi (@item -mprint-tune-info): New item.
31333         (-mtune): mention it in ARM Option Summary.
31335 2015-03-25  DJ Delorie  <dj@redhat.com>
31337         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
31338         correct clause.
31340 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
31341             Martin Liska  <mliska@suse.cz>
31343         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
31344         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
31345         (sem_item::add_type): New function.
31346         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
31347         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
31348         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
31349         (sem_function::equals_wpa): Fix typo.
31350         * ipa-icf.h (sem_item::add_type): New function.
31351         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
31352         order.
31354 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
31356         PR tree-optimization/65533
31357         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
31358         with swapped operands, call vect_free_slp_tree on
31359         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
31360         vector.
31362 2015-03-24  Richard Biener  <rguenther@suse.de>
31364         PR middle-end/65517
31365         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
31366         for fixup if necessary.
31368 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
31370         * doc/extend.texi (Function Attributes): Add @cindex entries
31371         for all attributes and regularize their format.  Delete text
31372         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
31373         information about "eightbit_data", "tiny_data", and "model"
31374         variable attributes to the Variable Attributes section.  Fix
31375         some obvious typos and copy-editing issues.
31376         (Variable Attributes, Type Attributes): Likewise add/fix
31377         @cindex entries for all attributes.
31379 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
31381         PR target/65523
31382         * tree-chkp.c (chkp_build_returned_bound): Ignore
31383         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
31385 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
31387         PR target/65505
31388         * config/sh/predicates.md (simple_mem_operand,
31389         displacement_mem_operand): Add test for reg.
31390         (short_displacement_mem_operand): Test for displacement_mem_operand
31391         before invoking sh_disp_addr_displacement.
31392         * config/sh/constraints.md (Sdd, Sra): Simplify.
31393         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
31394         Remove redundant displacement_mem_operand tests.
31396 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
31398         PR target/65296
31399         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
31400         the same -mmcu=MCU more than once.
31402 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
31404         PR bootstrap/65522
31405         * ipa-devirt.c: Remove duplicate demangle.h include.
31407         PR target/65504
31408         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
31409         on the pseudo.
31410         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
31411         REG_POINTER on *destptr after adjusting it for prologue size.
31413         PR ipa/65521
31414         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
31415         ultimate_alias_target ()->order ints instead of
31416         ultimate_alias_target () pointers.
31418 2015-03-23  Richard Biener  <rguenther@suse.de>
31420         PR tree-optimization/65518
31421         * tree-vect-stmts.c (vectorizable_load): Reject single-element
31422         interleaving cases we generate absymal code for.
31424 2015-03-23  Richard Biener  <rguenther@suse.de>
31426         PR tree-optimization/65494
31427         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
31428         matches here.
31429         (vect_analyze_slp_instance): But do that here, always and once.
31431 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31433         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
31434         adding T or multiplying by T+1 and subracting T.
31436 2015-03-22  Jeff Law  <law@redhat.com>
31438         PR rtl-optimization/64317
31439         * Makefile.in (OBJS): Add gcse-common.c
31440         * gcse.c: Include gcse-common.h
31441         (struct modify_pair_s): Move structure definition to gcse-common.h
31442         (compute_transp): Move function to gcse-common.c.
31443         (canon_list_insert): Similarly.
31444         (record_last_mem_set_info): Break out some code and put it into
31445         gcse-common.c.  Call into the new common code.
31446         (compute_local_properties): Pass additional arguments to compute_transp.
31447         * postreload-gcse.c: Include gcse-common.h and df.h
31448         (modify_mem_list_set, blocks_with_calls): New variables.
31449         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
31450         (get_bb_avail_insn): Pass in the expression index too.
31451         (alloc_mem): Allocate memory for the new bitmaps and lists.
31452         (free_mem): Free memory for the new bitmaps and lists.
31453         (insert_expr_in_table): Record a bitmap index for each entry we
31454         add to the table.
31455         (record_last_mem_set_info): Call into common code in gcse-common.c.
31456         (get_bb_avail_insn): If no available insn was found in the requested
31457         BB.  If BB has a single predecessor, see if the expression is
31458         transparent in BB and available in that single predecessor.
31459         (compute_expr_transp): New wrapper for compute_transp.
31460         (eliminate_partially_redundant_load): Pass expression's bitmap_index
31461         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
31462         (gcse_after_reload_main): If there are elements in the hash table,
31463         then compute transparency for all the elements in the hash table.
31464         * gcse-common.h: New file.
31465         * gcse-common.c: New file.
31467 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
31469         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
31470         as an adjective.
31471         (System Headers): Likewise.
31472         (Ifdef): Likewise.
31473         (Traditional macros): Likewise.
31474         (Invocation): Likewise.
31475         (Option Index): Likewise.
31476         * doc/cppopts.texi (-M): Likewise.
31477         (-finput-charset): Likewise.
31478         (--help): Likewise.
31479         * doc.invoke.texi (AVR Options): Likewise.
31480         (V850 Options): Likewise.
31482 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
31484         PR ipa/65475
31485         * ipa-devirt.c: Include demangle.h
31486         (odr_type_d): Add field rtti_broken.
31487         (odr_subtypes_equivalent_p): Do not require name to match.
31488         (compare_virtual_tables): Fix typo; if type already has ODR violation,
31489         bypass the tests; be ready for function referneces in vtables that are
31490         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
31491         (warn_odr): Give up for nameless types.
31492         (warn_types_mismatch): Report mismatch in mangled names;
31493         report mismatch in anonymous namespaces; look into component types to
31494         give useful error; report when mismatch is dragged in from other ODR
31495         type.
31496         (odr_types_equivalent_p): Match types for being polymorphic; avoid
31497         duplicated diagnostics.
31498         (add_type_duplicate): Reorder checks so more informative ones come
31499         first; fix typo; do not output "the extra base is defined here" when
31500         we did not warn.
31501         (BINFO_N_BASE_BINFOS): Relax sanity check.
31503 2015-03-22  Martin Liska  <mliska@suse.cz>
31504             Jakub Jelinek  <jakub@redhat.com>
31506         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
31507         masks that can potentially include a builtin.
31508         (ix86_add_new_builtins): Introduce fast filter for isa values
31509         that cannot trigger builtin inclusion.
31511 2015-03-22  Martin Liska  <mliska@suse.cz>
31513         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
31514         (sem_item::update_hash_by_local_refs): Likewise.
31515         (sem_variable::get_hash): Empty line is fixed.
31516         (sem_item_optimizer::execute): Include adding of hash references.
31517         (sem_item_optimizer::update_hash_by_addr_refs): New function.
31518         (sem_item_optimizer::build_hash_based_classes): Use local hash.
31519         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
31520         (sem_item::update_hash_by_local_refs): Likewise.
31522 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
31524         PR ipa/65502
31525         * ipa-comdats.c (enqueue_references): Walk through thunks.
31526         (ipa_comdats): Likewise.
31527         (set_comdat_group_1): New function.
31529 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
31531         PR ipa/65475
31532         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
31533         non-polymorphic
31535 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
31536             Gerald Pfeifer  <gerald@pfeifer.com>
31538         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
31540 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
31541             Sandra Loosemore  <sandra@codesourcery.com>
31543         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
31544         function parameter declaration.
31545         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
31546         Update arguments to nios2_adjust_call_address().
31547         (sibcall_internal): Rename from *sibcall.
31548         (sibcall_value_internal): Rename from *sibcall_value.
31549         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
31550         (nios2_large_got_address): Add target temp reg parameter.
31551         (nios2_got_address): Adjust call to nios2_large_got_address, add
31552         force_reg around it.
31553         (nios2_load_pic_address): Add target temp reg parameter, replace call
31554         to nios2_got_address with corresponding code.
31555         (nios2_legitimize_constant_address): Update call to
31556         nios2_load_pic_address.
31557         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
31558         to use temp reg for PIC loading purposes.
31559         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
31560         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31561         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
31563 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31565         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
31566         usage of "the @option{...}".
31567         (-Wopenmp-simd): Likewise.
31568         (-fsanitize-recover): Likewise.
31569         (-fsanitize-undefined-trap-on-error): Likewise.
31570         (-flto): Likewise.
31571         (tracer-dynamic-coverage-feedback): Likewise.
31572         (reorder-block-duplicate-feedback): Likewise.
31573         (loop-unroll-jam-size): Likewise.
31574         (-B): Likewise.
31575         (-I-): Likewise.
31576         (-mabs=legacy): Likewise.
31577         (-mupper-regs-df): Likewise.
31578         (-mupper-regs-sf): Likewise.
31579         (-mpointers-to-nested-functions): Likewise.
31581 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31583         * doc/extend.texi (Cilk Plus Builtins): Add markup.
31585 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31587         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
31588         additional index entries and cross-references.
31589         (-fchkp-check-incomplete-type): Likewise.
31590         (-fchkp-first-field-has-own-bounds): Likewise.
31591         (-fchkp-narrow-to-innermost-array): Likewise.
31592         (-fchkp-use-fast-string-functions): Likewise.
31593         (-fchkp-use-nochk-string-functions): Likewise.
31594         (-fchkp-use-static-const-bounds): Likewise.
31595         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31596         (-fchkp-instrument-marked-only): Likewise.
31597         (-fchkp-use-wrappers): Likewise.
31598         (-static-libmpx): Likewise.
31599         (-static-libmpxwrappers): Likewise.
31600         * doc/extend.texi (bnd_legacy): Likewise.
31601         (bnd_instrument): Likewise.
31602         (bnd_variable_size): Likewise.
31603         (Pointer Bounds Checker builtins): Likewise.
31605 2015-03-21  Tom de Vries  <tom@codesourcery.com>
31607         PR tree-optimization/65458
31608         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
31609         * cgraph.h (cgraph_node): Add parallelized_function field.
31610         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
31611         (input_overwrite_node): Read parallelized_function field.
31612         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
31613         parallelized_function on cgraph_node for child_fn.
31614         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
31615         Remove include of gt-tree-parloops.h.
31616         (parallelized_functions): Remove static variable.
31617         (parallelized_function_p): Rewrite using parallelized_function field of
31618         cgraph_node.
31619         (create_loop_fn): Remove adding to parallelized_functions.
31620         * Makefile.in (GTFILES): Remove tree-parloops.c
31622 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
31624         PR rtl-optimization/64366
31625         * lra.c (lra_update_insn_regno_info): Consider regs in
31626         CALL_INSN_FUNCTION_USAGE memory.
31628 2015-03-20  Richard Biener  <rguenther@suse.de>
31630         PR middle-end/64715
31631         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
31632         for type comparison and gcc_checking_assert.
31633         (chrec_fold_plus_poly_poly): Likewise.
31634         (chrec_fold_multiply_poly_poly): Likewise.
31635         (chrec_convert_1): Likewise.
31636         * gimplify.c (gimplify_expr): Remove premature folding of
31637         &X + CST to &MEM[&X, CST].
31639 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
31641         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
31642         already is final.
31643         (ipa_inline): Recompute inline_failed codes.
31644         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31645         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
31646         CIF_FINAL_ERROR.
31648 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
31650         PR rtl-optimization/60851
31651         * recog.c (constrain_operands): Accept a pseudo register before reload
31652         for LRA enabled targets.
31654 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
31656         PR target/65240
31657         * config/rs6000/predicates.md (easy_fp_constant): Remove special
31658         -ffast-math handling that kept non-0 constants live in the RTL
31659         until reload.  Remove logic testing the number of instructions it
31660         took to create a constant in a GPR that was never used, due to a
31661         test for soft-float earlier.
31662         (memory_fp_constant): Delete, no longer used.
31664         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
31665         alternatives for loading non-0 constants into GPRs for hard
31666         floating point that is no longer needed due to changes in
31667         easy_fp_constant.  Add support for loading 0.0 into GPRs.
31668         (mov<mode>_hardfloat32): Likewise.
31669         (mov<mode>_hardfloat64): Likewise.
31670         (mov<mode>_64bit_dm): Likewise.
31671         (movtd_64bit_nodm): Likewise.
31672         (pre-reload move FP constant define_split): Delete define_split,
31673         since it is no longer used.
31674         (extenddftf2_internal): Remove GHF constraints that are not valid
31675         for extenddftf2.
31677 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
31679         PR rtl-optimization/63491
31680         * lra-constraints.c (check_and_process_move): Use src instead of
31681         sreg.  Remove some dead code.
31683 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
31685         PR ipa/65380
31686         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
31687         (sem_variable::merge): Likewise.
31689 2015-03-19  Martin Liska  <mliska@suse.cz>
31691         PR ipa/65465
31692         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
31693         all fields of cgraph_thunk_info.
31695 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31697         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
31698         clone instrumented thunks.
31700 2015-03-19  Richard Biener  <rguenther@suse.de>
31702         Revert
31703         2015-03-10  Richard Biener  <rguenther@suse.de>
31705         PR middle-end/63155
31706         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31707         * tree-ssa-coalesce.c: Include timevar.h.
31708         (attempt_coalesce): Handle graph being NULL.
31709         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31710         Split out abnormal coalescing to ...
31711         (perform_abnormal_coalescing): ... this function.
31712         (coalesce_ssa_name): Perform abnormal coalescing without computing
31713         live/conflict.
31714         (verify_ssa_coalescing_worker): New function.
31715         (verify_ssa_coalescing): Likewise.
31717 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31718             Jakub Jelinek  <jakub@redhat.com>
31720         PR sanitizer/65400
31721         * tsan.c (instrument_gimple): Clear tail call flag on
31722         calls.
31724 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
31726         PR sanitizer/65400
31727         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
31728         call in the return bb.
31729         (find_split_points): Add RETURN_BB argument, don't call
31730         find_return_bb.
31731         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
31732         if true append TSAN_FUNC_EXIT internal call after the call to
31733         the split off function.
31734         (execute_split_functions): Call find_return_bb here.
31735         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
31736         Adjust find_split_points and split_function calls.
31738 2015-03-18  DJ Delorie  <dj@redhat.com>
31740         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
31741         (iorqi3_virt): Likewise.
31743 2015-03-18  Tom de Vries  <tom@codesourcery.com>
31745         * tree-parloops.c (parallelize_loops): Make static.
31746         * tree-parloops.h (parallelize_loops): Remove extern declaration.
31748 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
31750         PR middle-end/64491
31751         Revert:
31752         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
31754         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
31755         condition would be removed due to undefined behaviour.
31757 2015-03-18  Martin Liska  <mliska@suse.cz>
31759         PR ipa/65432
31760         * cgraph.c (cgraph_node::get_create): Remove unnecessary
31761         xstrdup_for_dump wrapper.
31762         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
31763         sem_item::name.
31764         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
31765         with xstrdup_for_dump.
31766         (sem_variable::equals): Likewise.
31767         (sem_item_optimizer::read_section): Use symtab_node::name instead of
31768         sem_item::name.
31769         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
31770         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
31771         symtab_node::asm_name with xstrdup_for_dump.
31772         (congruence_class::dump): Use symtab_node::name instead of
31773         sem_item::name.
31774         * ipa-icf.h (symtab_node::name): Remove.
31775         (symtab_node::asm_name): Likewise.
31777 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
31779         PR tree-optimization/65450
31780         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
31781         function.
31782         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
31783         it instead of duplicate_ssa_name_ptr_info.
31785         PR target/65222
31786         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
31788 2015-03-18  Richard Biener  <rguenther@suse.de>
31790         * tree-data-ref.h (struct access_matrix): Remove.
31791         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
31792         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
31793         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
31794         (am_vector_index_for_loop): Likewise.
31795         (struct data_reference): Remove access_matrix member.
31796         (DR_ACCESS_MATRIX): Remove.
31797         (lambda_vector_new): Add comment.
31798         (lambda_matrix_new): Use XOBNEWVEC.
31800 2015-03-18  Richard Biener  <rguenther@suse.de>
31802         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
31803         (pass_ch::execute): Cleanup the CFG only if we did sth.
31804         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
31806 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31808         * expmed.c (synth_mult): Use std::swap instead of manually
31809         swapping algorithms.
31811 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
31813         PR target/65078
31814         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
31816 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
31818         PR target/65296
31819         * config/avr/avr.opt (-nodevicelib): New option.
31820         * doc/invoke.texi (AVR Options): Document it.
31821         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
31822         libgcc.a, libc.a, libm.a.
31823         * config/avr/specs.h: Same.
31824         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
31825         which don't (directly) depend on the device.  Print more help.
31826         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
31827         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
31828         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
31829         case of an error.
31830         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
31831         for specs file name.
31832         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
31833         * config/avr/avr-mcus.def: Adjust initializers and comments.
31835 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
31837         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
31838         DECL_ONE_ONLY to check if decl is one only.
31839         * ipa-split.c (consider_split): Limit splitt of one only functions.
31841 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
31843         PR tree-optimization/65427
31844         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
31845         functions.
31846         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
31848 2015-03-16  Marek Polacek  <polacek@redhat.com>
31850         * cgraph.h (add_new_static_var): Remove declaration.
31851         * varpool.c (add_new_static_var): Remove function.
31853 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
31855         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
31856         instead of vec<tree> * with vec_alloc and release for args.
31857         Adjust all users.
31859         PR middle-end/65431
31860         * omp-low.c (delete_omp_context): Only splay_tree_delete
31861         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
31862         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
31864 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31866         PR sanitizer/64820
31867         * cfgexpand.c (align_base): New function.
31868         (alloc_stack_frame_space): Call it.
31869         (expand_stack_vars): Align prev_frame to be sure
31870         data->asan_vec elements aligned properly.
31872 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
31874         PR middle-end/65409
31875         * expr.c (store_field): Do not do a direct block copy if the source is
31876         a PARALLEL with BLKmode.
31878 2015-03-16  Tom de Vries  <tom@codesourcery.com>
31880         PR middle-end/65414
31881         Revert:
31882         2015-03-12  Tom de Vries  <tom@codesourcery.com>
31884         PR rtl-optimization/64895
31885         * lra-lives.c (check_pseudos_live_through_calls): Use
31886         actual_call_used_reg_set instead of call_used_reg_set, if available.
31888 2015-03-16  Alan Modra  <amodra@gmail.com>
31890         PR target/63150
31891         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
31892         Modify Z->r bswapdi splitter to use dest in place of scratch.
31893         In r->Z and Z->r bswapdi splitter rename word_high, word_low
31894         to word1, word2 and rearrange logic to suit.
31895         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
31896         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
31897         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
31898         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
31899         early clobber.
31901 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
31903         PR tree-optimization/65369
31904         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
31905         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
31906         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
31908         PR tree-optimization/65418
31909         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
31910         are casts in the first PLUS_EXPR operand, ensure tbias and
31911         *totallowp are in the inner type.
31913         PR rtl-optimization/65401
31914         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
31915         argument.  If true, adjust_address_nv of x with big-endian
31916         correction for the mode widening to GET_MODE (y).
31917         (make_field_assignment): Don't do MEM mode widening here.
31918         Use MEM_P instead of GET_CODE == MEM.
31920 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
31922         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
31923         the external decls.
31925 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31927         PR target/64600
31928         * config/arm/arm.c (arm_gen_constant, AND case): Use
31929         ARM_SIGN_EXTEND when constructing AND mask.
31931 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31933         * graph.c (print_graph_cfg): Make function names visible and append
31934         parenthesis to it.  Also make groups of basic blocks belonging to the
31935         same function visible.
31937 2015-03-12  Richard Biener  <rguenther@suse.de>
31939         PR middle-end/44563
31940         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
31941         to avoid quadratic behavior with inline expansion splitting blocks.
31942         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
31943         with the successor if the predecessor will be merged with it.
31944         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
31945         entry block with its successor.
31947 2015-03-13  Richard Biener  <rguenther@suse.de>
31949         PR middle-end/44563
31950         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
31951         (cleanup_tree_cfg_1): Do not call it.
31952         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
31953         (fixup_noreturn_call): Mark the stmt as control altering.
31954         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
31955         here.
31956         (pass_data_fixup_cfg): Produce a dump file.
31957         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
31958         (need_noreturn_fixup): New global.
31959         (pass_dominator::execute): Fixup queued noreturn calls.
31960         (optimize_stmt): Queue calls that became noreturn for fixup.
31961         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
31962         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
31963         (el_to_fixup): New global.
31964         (eliminate_dom_walker::before_dom_childre): Queue calls that
31965         became noreturn for fixup.
31966         (eliminate): Fixup queued noreturn calls.
31967         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
31968         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
31969         (substitute_and_fold_dom_walker::before_dom_children): Queue
31970         alls that became noreturn for fixup.
31971         (substitute_and_fold): Fixup queued noreturn calls.
31973 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
31975         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
31976         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
31977         are building; for methods check ODR type of class they belong to if
31978         they may lead to a polymorphic call.
31979         (sem_function::compare_polymorphic_p): Be bit smarter about testing
31980         when function may lead to a polymorphic call.
31981         (sem_function::compare_type_list): Remove.
31982         (sem_variable::equals): Update use of compatible_types_p.
31983         (sem_variable::parse_tree_refs): Remove.
31984         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
31985         cdtor.
31986         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
31987         matching here.
31988         (func_checker::compatible_polymorphic_types_p): Break out from ...
31989         (unc_checker::compatible_types_p): ... here.
31990         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
31991         Declare.
31992         (unc_checker::compatible_types_p): Update.
31993         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
31994         Remove.
31996 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31998         PR rtl-optimization/65235
31999         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
32000         When first element of vec_concat is const_int, calculate its size
32001         using second element.
32003 2015-03-12  Richard Biener  <rguenther@suse.de>
32005         PR middle-end/65270
32006         * fold-const.c (operand_equal_p): Fix ordering of resetting
32007         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
32009 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32011         * config/s390/s390.c (s390_reorg): Move code to output nops after label
32012         to s390_reorg ().
32013         (s390_asm_output_function_label): Likewise.
32014         * config/s390/s390.c (s390_asm_output_function_label):
32015         Fix function label alignment with -mhtopatch.
32016         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
32017         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
32018         ("nop_2_byte"): New define_insn.
32019         ("nop_4_byte"): Likewise.
32020         ("nop_6_byte"): Likewise.
32021         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
32022         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
32024 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
32026         PR target/65103
32027         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
32028         register.
32030 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
32032         PR target/65044
32033         * toplev.c (process_options): Restrict Pointer Bounds Checker
32034         usage with Address Sanitizer.
32036 2015-03-12  Richard Biener  <rguenther@suse.de>
32038         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
32039         to split on.
32040         * omp-low.c (expand_omp_taskreg): Split block before removing
32041         the stmt.
32042         (expand_omp_target): Likewise.
32043         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
32044         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
32045         stmt to split_block.
32047 2015-03-12  Tom de Vries  <tom@codesourcery.com>
32049         PR rtl-optimization/64895
32050         * lra-lives.c (check_pseudos_live_through_calls): Use
32051         actual_call_used_reg_set instead of call_used_reg_set, if available.
32053 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
32055         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
32056         (cgraph_node::remove): Likewise.
32057         (cgraph_node::get_untransformed_body): Likewise.
32058         * varpool.c (varpool_node::remove): Likewise.
32059         (varpool_node::get_constructor): Add sanity check.
32061 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
32063         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
32064         old GCC versions.
32065         (-fabi-compat-version): Likewise.
32066         (-ffriend-injection): Likewise.
32067         (-Wdeclaration-after-statement): Likewise.
32068         (-fomit-frame-pointer): Likewise.
32069         (-ftree-coalesce-inlined-vars): Likewise.
32070         (-fvisibility=): Likewise.
32071         * doc/extend.texi (Typeof): Likewise.
32072         (Zero Length): Likewise.
32073         (Escaped Newlines): Likewise.
32074         (Compound Literals): Likewise.
32075         (Function Attributes): Likewise.
32076         (Label Attributes): Likewise.
32077         (Type Attributes): Likewise.
32078         (Function Names): Likewise.
32079         (Other Builtins): Likewise.
32080         (Function Specific Option Pragmas): Likewise.
32081         (C++ Interface): Likewise.
32083 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
32085         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
32087 2015-03-11  Marek Polacek  <polacek@redhat.com>
32089         PR tree-optimization/65388
32090         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
32092 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
32094         PR target/65296
32095         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
32096         * configure: Regenerate.
32097         * config.in: Regenerate.
32098         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
32099         [-mn-flash]: Document it.
32100         [__AVR_ARCH__]: Document avrtiny.
32102         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
32103         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
32104         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
32106 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32108         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
32110 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
32112         PR target/65242
32113         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
32114         allow reloads of PLUS in floating point/VSX registers.
32116 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
32118         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
32119         crypto_sha256_fast.
32120         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
32122 2015-03-11  Richard Biener  <rguenther@suse.de>
32124         PR tree-optimization/65310
32125         * tree-sra.c (build_ref_for_offset): Also preserve larger
32126         alignment.
32128 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
32130         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
32132 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
32134         PR target/65368
32135         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
32136         new define_expand.
32137         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
32139 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
32141         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
32142         (sem_function::equals_wpa): ... here.
32144 2015-03-10  Marek Polacek  <polacek@redhat.com>
32145             Jakub Jelinek  <jakub@redhat.com>
32147         PR sanitizer/65367
32148         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
32149         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
32150         separately.
32152 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
32154         PR target/65286
32155         * config/rs6000/t-linux: For powerpc64* target set
32156         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
32158 2015-03-10  Richard Biener  <rguenther@suse.de>
32160         PR middle-end/44563
32161         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
32162         for redirect_all_calls.
32164 2015-03-10  Marek Polacek  <polacek@redhat.com>
32166         * gdbinit.in (pcfun): Define and document.
32168 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
32170         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
32171         of libgomp-plugin.h.
32172         (find_target_compiler): Support a case when the path to gcc is
32173         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
32174         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
32175         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
32176         libgomp-plugin.h.
32177         (main): Use GCC_INSTALL_NAME as target_driver_name.
32178         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
32179         define.
32180         (mkoffload.o): Remove obsolete include path and defines.
32181         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
32183 2015-03-10  Richard Biener  <rguenther@suse.de>
32185         PR middle-end/63155
32186         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
32187         * tree-ssa-coalesce.c: Include timevar.h.
32188         (attempt_coalesce): Handle graph being NULL.
32189         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
32190         Split out abnormal coalescing to ...
32191         (perform_abnormal_coalescing): ... this function.
32192         (coalesce_ssa_name): Perform abnormal coalescing without computing
32193         live/conflict.
32194         (verify_ssa_coalescing_worker): New function.
32195         (verify_ssa_coalescing): Likewise.
32197 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
32199         PR target/65296
32200         * config.gcc (extra_options) [avr]: Remove.
32201         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
32202         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
32203         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
32205         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
32206         (-mmcu=): Add Var and MissingArgError properties.
32207         (-march=): Remove.
32208         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
32209         * config/avr/t-multilib: Regenerate.
32210         * config/avr/specs.h: New file.
32211         * config/avr/driver-avr.c: New file.
32212         * config/avr/genopt.sh: Remove file.
32213         * config/avr/avr-tables.opt: Remove file.
32214         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
32215         * config/avr/avr-c.c: Same.
32216         * avr-arch.h: Same.
32217         (avr_current_device): Remove proto.
32218         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
32219         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
32220         (EXTRA_SPEC_FUNCTIONS): Define.
32221         (avr_devicespecs_file): New specs function proto.
32222         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
32223         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
32224         (avr_current_device): Remove definition and usage.
32225         (avr_set_core_architecture): New static function.
32226         (avr_option_override): Use it.
32227         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
32228         (mcu_name): New static array.
32229         (comparator, avr_archs_str, avr_mcus_str): New static functions.
32230         (avr_inform_devices, avr_inform_core_architectures): New functions.
32231         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
32232         (avrlibc.h) [WITH_AVRLIBC]: Include.
32233         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
32234         (print_mcu): Rewrite from scratch.
32235         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
32236         Forward to avr-specific specs defined in device-specs file.
32237         * config/avr/t-avr (driver-avr.o): New rule.
32238         (avr-devices.o): Depend on avr-arch.h.
32239         (avr-mcus): No more depend on avr-tables.opt.
32240         (avr-tables.opt): Remove rule.
32241         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
32243 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
32245         * c-family/c.opt (fchkp-use-wrappers): New.
32246         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
32247         (chkp_wrap_function): New.
32248         (chkp_build_instrumented_fndecl): Support wrapped
32249         functions.
32250         * doc/invoke.texi (-fcheck-pointer-bounds): New.
32251         (-fchkp-check-incomplete-type): New.
32252         (-fchkp-first-field-has-own-bounds): New.
32253         (-fchkp-narrow-bounds): New.
32254         (-fchkp-narrow-to-innermost-array): New.
32255         (-fchkp-optimize): New.
32256         (-fchkp-use-fast-string-functions): New.
32257         (-fchkp-use-nochk-string-functions): New.
32258         (-fchkp-use-static-bounds): New.
32259         (-fchkp-use-static-const-bounds): New.
32260         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
32261         (-fchkp-check-read): New.
32262         (-fchkp-check-write): New.
32263         (-fchkp-store-bounds): New.
32264         (-fchkp-instrument-calls): New.
32265         (-fchkp-instrument-marked-only): New.
32266         (-fchkp-use-wrappers): New.
32267         (-static-libmpx): New.
32268         (-static-libmpxwrappers): New.
32270 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
32272         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
32273         (CHKP_SPEC): Add wrappers library.
32274         * c-family/c.opt (static-libmpxwrappers): New.
32276 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
32278         * config/i386/linux-common.h (LIBMPX_LIBS): New.
32279         (LIBMPX_SPEC): New.
32280         (CHKP_SPEC): New.
32281         * gcc.c (CHKP_SPEC): New.
32282         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
32283         * c-family/c.opt (static-libmpx): New.
32285 2015-03-10  Richard Biener  <rguenther@suse.de>
32287         PR middle-end/44563
32288         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
32289         for compare_type.
32290         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
32291         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
32292         (cgraph_add_edge_to_call_site_hash): Likewise.
32293         (cgraph_node::get_edge): Likewise.
32294         (cgraph_edge::set_call_stmt): Likewise.
32295         (cgraph_edge::remove_caller): Likewise.
32297 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
32299         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
32300         (callee_saved_gpr_regs_size): ... this.
32301         (callee_saved_regs_first_regno): Rename to ...
32302         (callee_saved_first_gpr_regno): ... this.
32303         (callee_saved_regs_last_regno) Rename to ...
32304         (callee_saved_last_gpr_regno): ... this.
32305         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
32306         variables.
32307         (nds32_initial_elimination_offset): Likewise.
32308         (nds32_expand_prologue): Likewise.
32309         (nds32_expand_epilogue): Likewise.
32310         (nds32_expand_prologue_v3push): Likewise.
32311         (nds32_expand_epilogue_v3pop): Likewise.
32312         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
32313         Adjust renamed variables.
32314         (nds32_output_stack_pop): Likewise.
32316 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32318         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
32319         code in comment.
32321 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
32323         PR rtl-optimization/65321
32324         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
32325         than shift mode.
32326         * var-tracking.c (use_narrower_mode): Likewise.
32328 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
32330         PR tree-optimization/65355
32331         * varasm.c (notice_global_symbol): Do not produce RTL.
32332         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
32333         anchor.
32334         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
32335         check for section anchors.
32337 2015-03-10  Alan Modra  <amodra@gmail.com>
32339         PR target/65286
32340         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
32341         to be single-arch by default.  Set cpu_is_64bit for powerpc64
32342         given --with-cpu=native.
32343         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
32344         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
32345         and powerpc64le.
32346         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
32347         rs6000_isa_flags rather than TARGET_64BIT.
32349 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
32350             Kaz Kojima  <kkojima@gcc.gnu.org>
32352         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
32354 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
32356         PR lto/65361
32357         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
32358         on a TREE_BINFO, instead use BINFO_TYPE.
32360 2015-03-09  Richard Biener  <rguenther@suse.de>
32362         PR middle-end/65270
32363         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
32364         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
32365         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
32366         of that.  When comparing dereferences compare alignment.
32367         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
32369 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
32371         * ipa-inline-analysis.c (check_callers): Check
32372         node->can_remove_if_no_direct_calls_and_refs_p.
32373         (growth_likely_positive): Reorganize to call
32374         can_remove_if_no_direct_calls_p later.
32375         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
32376         will_be_removed_from_program_if_no_direct_calls_p): Add
32377         will_inline parameter.
32378         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
32379         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32380         Handle inliner case correctly.
32382 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32384         PR tree-optimization/63743
32385         * cfgexpand.c (reorder_operands): Also reorder if only second operand
32386         had its definition forwarded by TER.
32388 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
32390         PR lto/65316
32391         * ipa-utils.h (types_odr_comparable): Add strict argument.
32392         * ipa-devirt.c: Fix whitespace;
32393         (odr_hasher): Remove.
32394         (odr_name_hasher, odr_vtable_hasher): New hashers.
32395         (can_be_name_hashed_p): New predicate.
32396         (hash_type_name): remove.
32397         (hash_odr_name): New.
32398         (odr_name_hasher::hash): new.
32399         (can_be_vtable_hashed_p): New.
32400         (hash_odr_vtable): New.
32401         (odr_vtable_hasher::hash): New.
32402         (types_same_for_odr): Add strict parameter.
32403         (types_odr_comparable): Likewise.
32404         (odr_name_hasher::equal): New.
32405         (odr_vtable_hasher::equal): New.
32406         (odr_name_hasher::remove): New.
32407         (odr_hash_type): Change to hash_table<odr_name_hasher>.
32408         (odr_vtable_hash_type): New.
32409         (odr_vtable_hash): New.
32410         (odr_subtypes_equivalent_p): Do strict comparsion.
32411         (add_type_duplicate): Merge type names; cleanup; avoid type
32412         duplicates.
32413         (register_odr_type): Initialize vtable hash.
32414         (build_type_inheritance_graph): Likewise
32415         (get_odr_type): Reorg to use two hashes.
32416         (dump_possible_polymorphic_call_targets): Move sanity check after debug
32417         output.
32418         (ipa_devirt): Dump type_inheritance_graph.
32419         (types_same_for_odr): Add strict mode.
32421 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32423         PR ipa/65334
32424         * cgraph.h (symtab_node): Add definition_alignment,
32425         can_increase_alignment_p and increase_alignment.
32426         * symtab.c (symtab_node::can_increase_alignment_p,
32427         increase_alignment_1, symtab_node::increase_alignment,
32428         symtab_node::definition_alignment): New.
32429         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
32430         can_increase_alignment_p.
32431         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
32432         * tree-vect-stmts.c (ensure_base_align): Likewise.
32433         * varasm.c (function_section_1): Use definition_alignment.
32434         (assemble_start_function): Likewise.
32435         (emit_local): likewise.
32436         (build_constant_desc): Likewsie.
32437         (output_constant_def_contents): Likewise.
32438         (place_block_symbol): Likewise.
32439         (output_object_block): Likewise.
32441 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32443         PR ipa/65316
32444         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
32445         when outputting debug.
32447 2015-03-07  Marek Polacek  <polacek@redhat.com>
32448             Martin Uecker  <uecker@eecs.berkeley.edu>
32450         PR sanitizer/65280
32451         * doc/invoke.texi: Update description of -fsanitize=bounds.
32453 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
32455         * tree-ssa-phiopt.c (neg_replacement): Remove.
32456         (tree_ssa_phiopt_worker): Remove negate optimization.
32458 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32460         PR ipa/65302
32461         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
32463 2015-03-06  Richard Biener  <rguenther@suse.de>
32465         PR middle-end/64928
32466         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
32467         and liveout_obstack members.
32468         (calculate_live_on_exit): Remove.
32469         (calculate_live_ranges): Change declaration.
32470         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
32471         (new_tree_live_info): Adjust.
32472         (calculate_live_ranges): Delete livein when not wanted.
32473         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
32474         Deal with partly deleted live info.
32475         (loe_visit_block): Remove temporary bitmap by using
32476         bitmap_ior_and_compl_into.
32477         (live_worklist): Adjust accordingly.
32478         (calculate_live_on_exit): Make static.
32479         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
32480         we do not need livein.
32482 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
32484         * real.c (real_from_string): Fix typo in assertion.
32486 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
32488         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
32489         the patch.
32491 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32493         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
32495 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
32497         PR target/64342
32498         * lra-assigns.c (find_hard_regno_for): Rename to
32499         find_hard_regno_for_1.  Add a new parameter.
32500         (find_hard_regno_for): New function using find_hard_regno_for_1.
32502 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32504         PR rtl-optimization/65067
32505         * expmed.c (store_bit_field, extract_bit_field): Reworked the
32506         strict volatile bitfield handling.
32508 2015-03-05  Martin Liska  <mliska@suse.cz>
32510         PR ipa/65318
32511         * ipa-icf.c (sem_variable::equals): Compare variables types.
32513 2015-03-05  Richard Henderson  <rth@redhat.com>
32515         PR target/65121
32516         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
32517         correctly check weak symbol binding.
32519 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
32521         PR middle-end/65315
32522         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
32523         needed alignment.
32525 2015-03-05  Martin Liska  <mliska@suse.cz>
32527         * ipa-inline.c (inline_small_functions): Set default value to
32528         prevent warning during bootstrap.
32529         * tree.h: Add pragma guard that ignores false positives during
32530         bootstrap.
32532 2015-03-05  Richard Biener  <rguenther@suse.de>
32534         PR tree-optimization/65310
32535         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32536         Properly preserve alignment of the base of the access.
32538 2015-03-05  Richard Biener  <rguenther@suse.de>
32540         PR ipa/65270
32541         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
32542         Compare dependence info.
32544 2015-03-05  Richard Biener  <rguenther@suse.de>
32546         PR middle-end/65233
32547         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
32548         tree-into-ssa.h.
32549         (walk_ssa_copies): Revert last chage.  Instead do not walk
32550         SSA names registered for SSA update.
32552 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32554         PR ipa/65270
32555         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
32556         vtable references for their containing type.
32557         (sem_function::equals_wpa): Compare TYPE_RESTRICT
32558         and type attributes.
32560 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
32562         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
32563         before negating it.
32564         * stor-layout.c (finalize_record_size): Revert latest change.
32566 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
32568         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
32570 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32572         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
32573         for correct comdat handling.
32574         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32575         Likewise.
32576         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
32577         (used_from_object_file_p_worker): Remove.
32578         (cgraph_node::only_called_directly_or_alised): Add
32579         used_from_object_file_p.
32580         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
32581         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
32582         can_remove_if_no_direct_calls_and_refs_p.
32584 2015-03-04  Nick Clifton  <nickc@redhat.com>
32586         * config/rl78/rl78.h (enum reg_class): Remove real registers from
32587         General register class.
32588         * config/rl78/rl78-real.md: Replace general register constraints
32589         with real+virtual register constraints.
32591 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32593         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
32594         from checking for -mhtm option.
32596 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32598         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
32599         (struct ipa_sra_check_caller_data): Add has_thunk field.
32600         (ipa_sra_check_caller): Check for thunk.
32601         (ipa_sra_preliminary_function_checks): Give up on function with
32602         thunks.
32603         (ipa_early_sra): Use call_for_symbol_and_aliases.
32605 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
32607         PR target/65249
32608         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
32609         called for __stack_chk_guard symbol.
32611 2015-03-03  DJ Delorie  <dj@redhat.com>
32613         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
32614         inc/dec.
32615         (*addhi3_real): Likewise.
32616         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
32617         pattern to match incrementing memory.
32618         * config/rl78/predicates.md (rl78_1_2_operand): New.
32619         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
32620         it's the same and only mem.
32621         (rl78_alloc_physical_registers_op2): If there's effectively only
32622         one MEM, transcode it into HL.
32623         (rl78_far_p): Reject addresses that aren't legitimate.
32625 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
32627         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
32628         negating it.
32630         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
32632 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
32634         Implement call0 ABI for xtensa
32635         * config/xtensa/constraints.md ("a" constraint): Include stack
32636         pointer in case of call0 ABI.
32637         ("q" constraint): Make empty in case of call0 ABI.
32638         ("D" constraint): Include stack pointer in case of call0 ABI.
32639         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
32640         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
32641         prototypes.
32642         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
32643         variable.
32644         (xtensa_regno_to_class): Make it a local variable in the
32645         function xtensa_regno_to_class.
32646         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
32647         macro, function prototype and implementation.
32648         (reg_nonleaf_alloc_order): Make it a local variable in the
32649         function order_regs_for_local_alloc.
32650         (xtensa_conditional_register_usage): New function.
32651         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
32652         (xtensa_valid_move): Allow direct moves to stack pointer
32653         register in call0 ABI.
32654         (xtensa_setup_frame_addresses): Only spill register windows in
32655         windowed ABI.
32656         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
32657         call0 ABI respectively.
32658         (xtensa_function_arg_1): Only mark a7 register for copying in
32659         windowed ABI.
32660         (xtensa_call_save_reg): New function.
32661         (compute_frame_size): Add space for callee saved register
32662         storage to the frame size in call0 ABI.
32663         (xtensa_expand_prologue): Generate code to set up stack frame
32664         and save callee-saved registers in call0 ABI.
32665         (xtensa_expand_epilogue): New function.
32666         (xtensa_set_return_address): New function.
32667         (xtensa_return_addr): Calculate return address in call0 ABI.
32668         (xtensa_builtin_saveregs): Only mark a7 register for copying and
32669         emit copying code in windowed ABI.
32670         (order_regs_for_local_alloc): Add preferred register allocation
32671         order for non-leaf function in call0 ABI.
32672         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
32673         (xtensa_asm_trampoline_template): Add trampoline generation for
32674         call0 ABI.
32675         (xtensa_trampoline_init): Add trampoline initialization for
32676         call0 ABI.
32677         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
32678         functions.
32679         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
32680         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
32681         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
32682         ABI call-used registers.
32683         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
32684         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
32685         call0 ABI.
32686         (REG_CLASS_CONTENTS): Include all registers into the preferred
32687         reload registers set, adjust the set in the
32688         xtensa_conditional_register_usage.
32689         (xtensa_regno_to_class): Drop variable declaration.
32690         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
32691         function.
32692         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
32693         respectively.
32694         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
32695         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
32696         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
32697         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
32698         location in call0 ABI.
32699         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
32700         stack adjustment size when handling exception.
32701         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
32702         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
32703         definitions.
32704         ("return" pattern): Generate ret.n/ret in call0 ABI.
32705         ("epilogue" pattern): Expand epilogue.
32706         ("nonlocal_goto" pattern): Use default in call0 ABI.
32707         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
32708         emit eh_set_a0_* depending on ABI.
32709         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
32710         ("eh_set_a0_call0", "blockage"): New patterns.
32712 2015-03-03  Martin Liska  <mliska@suse.cz>
32714         PR ipa/65287
32715         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
32717 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
32719         PR 65138/target
32720         * config/rs6000/rs6000-tables.opt: Regenerate table.
32722 2015-03-03  Renlin Li  <renlin.li@arm.com>
32724         * doc/md.texi (@item ^): Change ? into ^.
32726 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
32728         * doc/tm.texi: Regenerated.
32730 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
32732         * builtins.c (expand_builtin_return_addr): Add
32733         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
32734         surrounding #ifdef.
32735         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
32736         definition to 1.
32737         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
32738         Likewise.
32739         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
32740         undefined.
32741         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
32742         paragraph.
32744 2015-03-03  Martin Jambor  <mjambor@suse.cz>
32745             Eric Botcazou  <ebotcazou@adacore.com>
32747         * tree-sra.c (ipa_sra_check_caller_data): New type.
32748         (has_caller_p): Removed.
32749         (ipa_sra_check_caller): New function.
32750         (ipa_sra_preliminary_function_checks): Use it.
32752 2015-03-03  Martin Liska  <mliska@suse.cz>
32754         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
32755         instead of if branch.
32757 2015-03-03  Martin Liska  <mliska@suse.cz>
32759         PR ipa/65282
32760         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
32762 2015-03-23  Jeff Law  <law@redhat.com>
32764         PR tree-optimization/65241
32765         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
32766         hash table if INSERT is true.
32768 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
32770         PR target/65296
32771         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
32773 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
32775         PR target/64331
32776         * config/avr/avr.c (context.h, tree-pass.h): Include them.
32777         (avr_pass_data_recompute_notes): New static variable.
32778         (avr_pass_recompute_notes): New class.
32779         (avr_register_passes): New static function.
32780         (avr_option_override): Call it.
32782 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
32784         Fix various problems with specs file generation.
32786         PR target/65296
32787         * config.gcc (extra_gcc_objs) [avr]: Remove.
32788         * config/avr/driver-avr.c: Remove file.
32789         * config/avr/t-avr (driver-avr.o): Remove rule.
32790         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
32791         INCLUDES to build.  Depend on TM_H.
32792         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
32793         build warnings.  Fix non-matching types and non-existing %-codes.
32794         (tm.h): Include.
32795         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
32796         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
32797         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
32798         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
32799         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
32800         (LIBGCC_SPEC): Remove definitions.
32802 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
32804         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
32805         to create a register in testing mode.
32807 2015-03-03  Martin Liska  <mliska@suse.cz>
32808             Jan Hubicka  <hubicka@ucw.cz>
32810         PR ipa/65263
32811         * cgraph.c (cgraph_node::has_thunk_p): New function.
32812         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
32813         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
32814         (sem_function::merge): Assert is changed.
32816 2015-03-03  Martin Liska  <mliska@suse.cz>
32817             Martin Jambor  <mjambor@suse.cz>
32819         PR ipa/65087
32820         * ipa-icf.c (sem_item_optimizer::execute): Change function
32821         return value to boolean.
32822         (sem_item_optimizer::merge_classes): Likewise.
32823         (ipa_icf_driver): Return TODO_remove_functions in case there's
32824         a merge operation processed.
32825         * ipa-icf.h: Change function return value to boolean.
32827 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
32829         PR 65138/target
32830         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
32831         processor type for 64-bit little endian PowerPC.
32833         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32834         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
32835         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
32836         printing built-in mask so it does not pass NULL pointers.
32838         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
32839         -mcpu=powerpc64le.
32841 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
32843         PR target/58158
32844         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
32845         !ISA_HAS_FP_CONDMOVE.
32847 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
32849         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
32850         reload_completed.
32852 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
32854         * doc/invoke.texi (Options for Code Generation Conventions):
32855         Fix URL of DSO paper.
32857 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32859         PR ipa/65130
32860         * ipa-inline.c (check_callers): Looks for recursion.
32861         (inline_to_all_callers): Give up on uninlinable or recursive edges.
32862         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
32863         summary of inline clones.
32864         (do_estimate_growth_1): Fix recursion check.
32866 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32868         PR ipa/64988
32869         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
32870         comdat groups.
32872 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32873             Aldy Hernandez  <aldyh@redhat.com>
32875         PR lto/65276
32876         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
32877         when checking TYPE_BINFO.
32879 2015-03-02  Richard Biener  <rguenther@suse.de>
32881         PR ipa/65270
32882         * ipa-icf-gimple.c: Include builtins.h.
32883         (func_checker::compare_memory_operand): Compare base alignment.
32885 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32887         PR target/65184
32888         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
32889         passed by reference.
32891 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32893         PR target/65183
32894         * tree-chkp.c (chkp_check_lower): Don't check against
32895         zero bounds for already instrumented functions.
32896         (chkp_check_upper): Likewise.
32897         (chkp_fini): Clean pass local data to avoid wrong reusage.
32899 2015-02-28  Martin Liska  <mliska@suse.cz>
32900             Jan Hubicka  <hubicka@ucw.cz>
32902         * ipa-icf.c (sem_variable::equals): Improve debug output;
32903         get variable constructor.
32904         (sem_variable::parse): Do not filter out too early; give up on
32905         volatile and register vars.
32906         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
32907         variables.
32908         * ipa-icf.h (sem_variable::init): Do not set ctor.
32909         (sem_variable::ctor): Remove.
32911 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
32913         PR middle-end/65233
32914         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
32916 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32918         * ipa-icf.c: Include stor-layout.h
32919         (sem_function::compare_cgraph_references): Rename to ...
32920         (sem_item::compare_cgraph_references): ... this one.
32921         (sem_variable::equals_wpa): New function
32922         (sem_variable::equals): Do not check stuff already verified by
32923         equals_wpa.
32924         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
32925         * ipa-icf.h (sem_item): Add compare_cgraph_references.
32926         (sem_function): Remove compare_cgraph_references.
32927         (sem_variable): Turns equals_wpa into non-inline.
32929 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32931         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
32932         (sem_item::add_expr): New function.
32933         (sem_function::hash_stmt): Handle operands of most statements.
32934         (sem_variable::get_hash): Hash the actual constructor.
32935         * ipa-icf.h (sem_item): Add add_expr.
32936         (sem_function): Update prototype of hash_stmt
32938 2015-02-28  Martin Liska  <mliska@suse.cz>
32939             Jan Hubicka  <hubicka@ucw.cz>
32941         PR ipa/65245
32942         * ipa-icf-gimple.c (func_checker::compare_function_decl):
32943         Remove.
32944         (func_checker::compare_variable_decl): Skip symtab vars.
32945         (func_checker::compare_cst_or_decl): Update.
32946         * ipa-icf.c (sem_function::parse): Do not consider aliases.
32947         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
32948         use correct symtab predicates.
32949         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
32950         (sem_variable::parse):  Update comment.
32951         (sem_item_optimizer::build_graph): Consider ultimate aliases
32952         for references.
32954 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32956         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
32957         of OBJ_TYPE_REF.
32959 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32961         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
32962         (sem_variable::merge) Likewise.
32964 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32966         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
32967         target; also match flag_ipa_devirt.
32969 2015-03-01  Martin Liska  <mliska@suse.cz>
32970             Jan Hubicka  <hubicka@ucw.cz>
32972         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
32973         Validate variable alignment.
32974         * ipa-icf.c (sem_function::equals_private): Be more precise
32975         about non-common function attributes.
32976         (sem_variable::equals): Likewise.
32978 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32980         PR ipa/65237
32981         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
32982         across COMDAT group boundary.
32984 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32986         PR ipa/65232
32987         * ipa-icf.c (clear_decl_rtl): New function.
32988         (sem_function::merge): Clear RTL before forming alias.
32989         (sem_variable::merge): Clear RTL before forming alias.
32991 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32993         PR ipa/65236
32994         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
32996 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
32998         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
32999         to neon_to_gp<q>.
33001 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
33003         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
33004         a typo in the description.
33006 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
33008         PR target/64317
33009         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
33010         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
33011         * lra-constraints.c: Include "params.h".
33012         (EBB_PROBABILITY_CUTOFF): Use
33013         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
33014         (lra_inheritance): Use '<' instead of '<=' for
33015         EBB_PROBABILITY_CUTOFF.
33016         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
33017         Document change.
33019 2015-02-27  Martin Liska  <mliska@suse.cz>
33021         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
33022         vector length condition.
33024 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
33026         * doc/extend.texi (x86 transactional memory intrinsics):
33027         Reorganize discussion of _xbegin.  Clarify that the return
33028         value is a bit mask.  Expand example and move to end of section.
33030 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
33031             Aldy Hernandez  <aldyh@redhat.com>
33033         PR rtl-optimization/65220
33034         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
33036 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
33038         PR target/65032
33039         * lra-remat.c (update_scratch_ops): New.
33040         (do_remat): Call it.
33041         * lra.c (lra_register_new_scratch_op): New. Take code from ...
33042         (remove_scratches): ... here.
33043         * lra-int.h (lra_register_new_scratch_op): New prototype.
33045 2015-02-27  Marek Polacek  <polacek@redhat.com>
33047         PR c/65040
33048         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
33049         -Wformat-signedness anymore.
33051 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33053         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
33054         function.
33055         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
33057 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33059         * config/s390/s390.c (enum s390_builtin):
33060         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
33061         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
33062         (s390_init_builtins): Generate new builtin functions.
33063         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
33064         (s390_sfpc, s390_efpc): New pattern definitions.
33066 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33068         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
33069         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
33070         (s390_builtin_decls): New array.
33071         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
33072         (s390_builtin_decl): New function.
33073         (TARGET_BUILTIN_DECL): Define macro.
33075 2015-02-27  Richard Biener  <rguenther@suse.de>
33077         PR middle-end/63175
33078         * builtins.c (get_object_alignment_2): Make sure to re-apply
33079         the ANDed mask after recursing to its operand gets us a new
33080         misalignment bit position.
33082 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
33083             Martin Liska  <mliska@suse.cz>
33085         PR bootstrap/65150
33086         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
33087         Use address_matters_p.
33088         (redirect_all_callers, set_addressable): New functions.
33089         (sem_function::merge): Reorganize and fix merging issues.
33090         (sem_variable::merge): Likewise.
33091         (sem_variable::compare_sections): Remove.
33092         * common.opt (fmerge-all-constants, fmerge-constants): Remove
33093         Optimization flag.
33094         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
33095         redirect them.
33096         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
33097         decl is used.
33098         (address_matters_1): New function.
33099         (symtab_node::address_matters_p): New function.
33100         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
33101         check for merged flag.
33102         * cgraph.h (address_matters_p): Declare.
33103         (symtab_node::address_taken_from_non_vtable_p): Remove.
33104         (symtab_node::address_can_be_compared_p): New method.
33105         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
33106         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
33107         Remove.
33108         (comdat_can_be_unshared_p_1) Use address_matters_p.
33109         (update_vtable_references): Fix formating.
33110         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
33111         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
33112         * cgraphclones.c: Preserve merged and icf_merged flags.
33114 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
33116         * doc/extend.texi (Function Attributes): Fix spelling and typos.
33117         (Label Attributes): Likewise.
33118         (Cilk Plus Builtins): Likewise.
33119         (ARC SIMD Built-in Functions): Likewise.
33120         (ARM C Language Extensions (ACLE)): Likewise.
33121         (PowerPC Built-in Functions): Likewise.
33122         (PowerPC Hardware Transactional Memory Built-in Functions):
33123         Likewise.
33125 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
33127         PR tree-optimization/65216
33128         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
33129         new stmt and new SSA_NAME for lhs whenever the arguments have
33130         changed and weren't just swapped.  Fix comment typo.
33132         PR tree-optimization/65215
33133         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
33134         for PDP endian targets.
33135         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
33136         Fix up formatting issues.
33137         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
33138         size is smaller than the original, adjust MEM_REF offset by the
33139         difference of sizes.  Use is_gimple_mem_ref_addr instead of
33140         is_gimple_min_invariant test to avoid adding address temporaries.
33142 2015-02-26  Martin Liska  <mliska@suse.cz>
33143             Jan Hubicka  <hubicka@ucw.cz>
33145         PR ipa/64693
33146         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
33147         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
33148         (sem_item_optimizer::process_cong_reduction): Include division by
33149         sensitive references.
33150         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
33151         * ipa-ref.c (ipa_ref::address_matters_p): New function.
33152         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
33154 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
33156         PR target/65192
33157         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
33158         Remove.
33159         * config/avr/avr.c: Same.
33160         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
33161         Refuse any constant address not in 0..0xbf.
33162         * config/avr/avr.md (*mov<mode>, *movsf): Remove
33163         tiny_valid_direct_memory_access_range from insn conditions.
33164         (mov<mode>): Don't special-case expansion of avrtiny addresses.
33166 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
33168         PR target/61142
33169         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
33170         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
33171         * config/sh/predicates.md (const_logical_operand): New predicate.
33172         * config/sh/sh.md: Add new peephole2 patterns.
33174 2015-02-26  Marek Polacek  <polacek@redhat.com>
33176         PR ipa/65008
33177         * ipa-inline.c (early_inliner): Recompute inline parameters.
33179 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33181         PR target/65171
33182         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
33183         instructions with TImode operands are included in the analysis.
33185 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
33187         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
33188         of an EDGE_FSM_THREAD.
33190 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33192         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
33194 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
33196         PR debug/46102
33197         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
33199 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
33201         PR tree-optimization/65048
33202         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
33203         (thread_through_all_blocks): Call valid_jump_thread_path.
33204         Remove invalid FSM jump-thread paths.
33206 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
33208         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
33209         (ipa_write_optimization_summaries): Likewise.
33210         * tree-streamer.h: Include data-streamer.h.
33211         (streamer_mode_table): Declare extern variable.
33212         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
33213         * lto-streamer-out.c (lto_output_init_mode_table,
33214         lto_write_mode_table): New functions.
33215         (produce_asm_for_decls): Call lto_write_mode_table when streaming
33216         offloading LTO.
33217         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
33218         (lto_create_simple_input_block): Add mode_table argument to the
33219         lto_input_block constructors.
33220         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
33221         Likewise.
33222         * data-streamer-in.c (string_for_index): Likewise.
33223         * ipa-inline-analysis.c (inline_read_section): Likewise.
33224         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
33225         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
33226         * lto-streamer-in.c (lto_read_body_or_constructor,
33227         lto_input_toplevel_asms): Likewise.
33228         (lto_input_mode_table): New function.
33229         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
33230         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
33231         Use bp_pack_machine_mode.
33232         * real.h (struct real_format): Add name field.
33233         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
33234         (class lto_input_block): Add mode_table member.
33235         (lto_input_block::lto_input_block): Add mode_table_ argument,
33236         initialize mode_table.
33237         (struct lto_file_decl_data): Add mode_table field.
33238         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
33239         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
33240         unpack_ts_decl_common_value_fields,
33241         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
33242         * tree-streamer.c (streamer_mode_table): New variable.
33243         * real.c (ieee_single_format, mips_single_format,
33244         motorola_single_format, spu_single_format, ieee_double_format,
33245         mips_double_format, motorola_double_format,
33246         ieee_extended_motorola_format, ieee_extended_intel_96_format,
33247         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
33248         ibm_extended_format, mips_extended_format, ieee_quad_format,
33249         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
33250         decimal_single_format, decimal_double_format, decimal_quad_format,
33251         ieee_half_format, arm_half_format, real_internal_format): Add name
33252         field.
33253         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
33255 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
33257         PR target/65161
33258         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
33259         reordering for selective scheduling.
33261 2015-02-26  Terry Guo  <terry.guo@arm.com>
33263         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
33264         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
33265         (arm_arch_no_volatile_ce): Declare new global variable.
33266         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
33267         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
33268         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
33269         (TARGET_NO_VOLATILE_CE): New macro.
33270         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
33271         volatile memory access in IT block
33273 2015-02-25  Kai Tietz  <ktietz@redhat.com>
33275         PR tree-optimization/61917
33276         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
33277         that reduc_def_stmt is null.
33279 2015-02-25  Martin Liska  <mliska@suse.cz>
33281         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
33282         hard register variables.
33284 2015-02-25  Kai Tietz  <ktietz@redhat.com>
33286         PR target/64212
33287         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
33288         (symtab::noninterposable_alias): Likewise.
33290 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
33292         PR target/65167
33293         * config/i386/i386.c (ix86_function_arg_regno_p): Support
33294         bounds registers.
33295         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
33297 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
33299         PR target/64997
33300         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
33301         as split condition; force split via '#' in output pattern.
33303 2015-02-25  Richard Biener  <rguenther@suse.de>
33304             Kai Tietz  <ktietz@redhat.com>
33306         PR tree-optimization/61917
33307         * tree-vect-loop.c (vectorizable_reduction): Allow
33308         vect_internal_def without reduction to exit graceful.
33310 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
33312         PR target/65196
33313         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
33314         only with NONDEBUG_INSN_P.
33316 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
33318         Use variadic macros with avr-log.c.
33320         * config/avr/avr-protos.h (avr_vdump): New prototype.
33321         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
33322         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
33323         * config/avr/avr-log.c: Adjust comments.
33324         (avr_vdump): New function.
33325         (avr_vadump): Pass caller as 2nd argument instead of format string.
33326         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
33327         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
33329 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
33331         PR lto/64374
33332         * target.def (target_option_stream_in): New target hook.
33333         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
33334         targetm.target_option.post_stream_in if non-NULL.
33335         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
33336         * doc/tm.texi: Updated.
33337         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
33338         function.
33339         (TARGET_OPTION_POST_STREAM_IN): Redefine.
33341 2015-02-24  Jeff Law  <law@redhat.com>
33343         PR target/65117
33344         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
33345         of operand 0 and operand 2.
33346         (zero_cost_loop_end, loop_end): Similarly.
33348 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
33350         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
33351         CXX_MEM_STAT_INFO.
33353 2015-02-24  DJ Delorie  <dj@redhat.com>
33355         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
33356         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
33357         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
33358         instead of hardcoding SImode.
33360 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
33362         * omp-low.c (create_omp_child_function): Tag entrypoint
33363         functions with a special attribute.
33365 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33367         PR target/65058
33368         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
33370 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
33372         PR rtl-optimization/65123
33373         * lra-remat.c (operand_to_remat): Check hard regs in insn
33374         definition too.
33376 2015-02-24  Nick Clifton  <nickc@redhat.com>
33378         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
33379         to the assembler.
33381 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
33383         PR libgomp/64625
33384         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
33385         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
33386         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
33387         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
33388         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
33389         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
33390         (BUILT_IN_GOACC_PARALLEL): Specify as
33391         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
33392         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
33393         * builtin-types.def
33394         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33395         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33396         Remove function types.
33397         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
33398         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33399         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33400         New function types.
33402 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
33404         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
33406 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
33408         PR tree-optimization/65170
33409         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
33410         if val[1] < 0, clear also val[2] and return 3.
33412 2015-02-24  Alan Modra  <amodra@gmail.com>
33414         PR target/65172
33415         * config/rs6000/rs6000.c (get_memref_parts): Only return true
33416         when *base is a reg.  Handle nested plus addresses.  Simplify
33417         pre_modify test.
33419 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
33421         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
33422         use natural alignment when optimizing for size.
33424 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
33426         PR target/65153
33427         * config/sh/sh.md (movsicc_true+3): Remove peephole.
33428         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
33429         * config/sh/sh.c (replace_n_hard_rtx): Remove.
33431 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
33433         PR fortran/63427
33434         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
33435         too big for a wide_int.  Implement missing wrapping operation.
33437 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
33439         PR target/65163
33440         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
33441         instead of const_int 4294901760.
33443 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
33445         * config/avr/t-avr: Fix typo in comment.
33447 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
33449         * doc/rtl.texi (fma): Clarify documentation.
33451 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
33453         PR debug/58123
33454         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
33455         over input_location.
33457 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
33459         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
33460         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
33461         restrict alignments to absolute_biggest_alignment.
33462         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
33463         Define.
33464         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
33465         * doc/tm.texi: Regenerate.
33466         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
33468 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
33470         PR target/64172
33471         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
33473 2015-02-20  Richard Biener  <rguenther@suse.de>
33475         PR tree-optimization/65136
33476         * tree-ssa-propagate.c: Include cfgloop.h.
33477         (replace_phi_args_in): Avoid replacing loop latch edge PHI
33478         arguments with constants.
33480 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
33481             Martin Liska  <mliska@suse.cz>
33483         PR target/63892
33484         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
33485         don't try to create_thunk if stdarg_p.  If
33486         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
33487         redirect_callers if possible.
33488         (sem_item_optimizer::execute): Call unregister_hooks here...
33489         (ipa_icf_driver): ... instead of here.
33491 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33493         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
33494         Mark operand 0 as earlyclobber in 2nd alternative.
33495         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
33496         Write negated shift amount into QI lowpart operand 0 and use it
33497         in the shift step.
33498         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
33500 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
33502         * cgraph.h (clone_function_name_1): Declare.
33503         * cgraphclones.c (clone_function_name_1): New function.
33504         (clone_function_name): Use it.
33505         * lto-partition.c: Include "stringpool.h".
33506         (must_not_rename, maybe_rewrite_identifier)
33507         (validize_symbol_for_target): New static functions.
33508         (privatize_symbol_name): Use must_not_rename.
33509         (promote_symbol): Call validize_symbol_for_target.
33510         (lto_promote_cross_file_statics): Likewise.
33511         (lto_promote_statics_nonwpa): Likewise.
33513 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
33515         PR target/64452
33516         * config/avr/avr.md (pushhi_insn): New insn.
33517         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
33519 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
33520             Jakub Jelinek  <jakub@redhat.com>
33522         * tree-streamer.c (preload_common_nodes): Don't preload
33523         TI_VA_LIST* for offloading.
33524         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
33525         in_lto_p.
33527 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
33529         * config/pa/pa.c (pa_emit_move_sequence): Always force
33530         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
33531         note on insn.
33533         * config/pa/pa.c (pa_reloc_rw_mask): New function.
33534         (TARGET_ASM_RELOC_RW_MASK): Define.
33535         (pa_cannot_force_const_mem): Revert previous change.
33537 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
33538             Jan Hubicka  <hubicka@ucw.cz>
33540         PR ipa/65028
33541         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
33542         across jump functions.
33544 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
33546         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
33548 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
33550         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
33552 2015-02-19  Richard Henderson  <rth@redhat.com>
33554         PR middle-end/65074
33555         * varasm.c (default_binds_local_p_2): Don't test node->definition;
33556         test DECL_EXTERNAL independent of symtab_node.
33558 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
33560         PR lto/65012
33561         * varpool.c (varpool_node::get_constructor): Return early
33562         if this->lto_file_data is NULL.
33564 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33566         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
33567         (rank_for_schedule_debug): Update.
33568         (ready_sort): Make static.  Move sorting logic to ...
33569         (ready_sort_debug, ready_sort_real): New static functions.
33570         (schedule_block): Sort both debug insns and real insns in preparation
33571         for ready list trimming.  Improve debug output.
33572         * sched-int.h (ready_sort): Remove global declaration.
33574 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
33576         * ipa-icf.c (sem_function::equals_private): Adjust.
33577         (sem_function::bb_dict_test): Take a vec<int> * instead of
33578         auto_vec<int>.
33579         * ipa-icf.h (bb_dict_test): Likewise.
33581 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33583         PR gcov-profile/64634
33584         * tree-eh.c (frob_into_branch_around): Fix up typos
33585         in function comment.
33586         (lower_catch): Put eh_seq resulting from EH lowering of
33587         the cleanup sequence after the cleanup rather than before it.
33589 2015-02-18  Tom de Vries  <tom@codesourcery.com>
33591         * common.opt (fstdarg-opt): New option.
33592         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
33593         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
33594         (@item -fstdarg-opt): New item.
33596 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
33598         PR target/65064
33599         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
33600         for common symbols.
33602 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33604         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
33605         insn-modes.h.
33606         (ALL_HOST_OBJS): Add mkoffload.o.
33607         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
33609 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
33611         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
33612         (compare_virtual_tables): Be smarter about skipping typeinfos;
33613         do sane output on virtual table table mismatch.
33614         (warn_odr): Be ready for forward declarations of enums;
33615         output sane info on base mismatch and virtual table mismatch.
33616         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
33617         when only one type is polymorphic.
33618         (get_odr_type): Fix hashtable corruption.
33619         (dump_odr_type): Dump mangled names.
33621 2015-02-18  Richard Biener  <rguenther@suse.de>
33623         PR tree-optimization/65063
33624         * tree-predcom.c (determine_unroll_factor): Return 1 if we
33625         have replaced looparound PHIs.
33627 2015-02-18  Martin Liska  <mliska@suse.cz>
33629         * lto-streamer.c (lto_streamer_init): Encapsulate
33630         streamer_check_handled_ts_structures with checking macro.
33632 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33634         PR ipa/65087
33635         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
33636         section if !implicit_section.
33637         (cgraph_node::create_version_clone_with_body): Likewise.
33638         * trans-mem.c (ipa_tm_create_version): Likewise.
33640 2015-02-18  Richard Biener  <rguenther@suse.de>
33642         PR tree-optimization/62217
33643         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
33644         into BIVs.
33646 2015-02-18  Marek Polacek  <polacek@redhat.com>
33648         PR sanitizer/65081
33649         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
33650         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
33651         is in range [-16K, -1].  Don't issue run-time error if
33652         (ptr > ptr + offset).
33654 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
33656         * doc/install.texi (nvptx-*-none): New section.
33657         * doc/invoke.texi (Nvidia PTX Options): Likewise.
33658         * config/nvptx/nvptx.opt: Update.
33660         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
33661         (access_check): New functions, copied from
33662         config/i386/intelmic-mkoffload.c.
33663         (main): For non-installed testing, look in all COMPILER_PATHs for
33664         GCC_INSTALL_NAME.
33666         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
33668 2015-02-18  Andrew Pinski  <apinski@cavium.com>
33669             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
33671         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
33672         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
33674 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
33676         * ipa-visibility.c (function_and_variable_visibility): Only
33677         check locality if node is not already local.
33678         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33679         call_for_symbol_and_aliases instead of
33680         call_for_symbol_thunks_and_aliases.
33681         (ipa_inline): Likewise.
33682         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33683         first walk aliases.
33684         * ipa.c (symbol_table::remove_unreachable_nodes): Use
33685         call_for_symbol_and_aliases.
33686         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33687         (ipa_propagate_frequency_1): Use it; use opt_for_fn
33688         (ipa_propagate_frequency): Update.
33689         (ipa_profile): Add opt_for_fn gueards.
33691 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
33693         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
33694         * doc/invoke.texi (SH options): Document it.
33695         * config/sh/sh.c (sh_insn_length_adjustment): Check
33696         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
33698 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
33700         * common.opt (fipa-cp-alignment): New.
33701         * ipa-cp.c (ipcp_store_alignment_results): Check
33702         flag_ipa_cp_alignment.
33703         * opts.c (default_options_table): Enable -fipa-cp-alignment for
33704         -O2.
33705         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
33706         * doc/invoke.texi: Document -fipa-cp-alignment.
33708 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
33710         PR target/64793
33711         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
33712         to nil.  Adjust comments.
33714 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
33716         * ipa-visibility.c (function_and_variable_visibility): Only
33717         check locality if node is not already local.
33718         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33719         call_for_symbol_and_aliases instead of
33720         call_for_symbol_thunks_and_aliases.
33721         (ipa_inline): Likewise.
33722         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33723         first walk aliases.
33724         * ipa.c (symbol_table::remove_unreachable_nodes): Use
33725         call_for_symbol_and_aliases.
33726         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33727         (ipa_propagate_frequency_1): Use it; use opt_for_fn
33728         (ipa_propagate_frequency): Update.
33729         (ipa_profile): Add opt_for_fn guards.
33731 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
33733         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
33734         skipping of "strange" tokens.
33736 2015-02-17  Jeff Law  <law@redhat.com>
33738         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
33739         obsolete comment.
33741 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
33743         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
33744         as forcing a HARD_DEP between instructions, thereby
33745         disallowing rewriting to break dependencies.
33747 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
33749         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
33750         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
33751         variables in boundary that have no inlitalizer encoded and are
33752         not aliases.
33753         * varasm.c (default_binds_local_p_2): External definitions do not
33754         count as definitions here.
33756 2015-02-16  Jeff Law  <law@redhat.com>
33758         PR tree-optimization/64823
33759         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
33760         statements.
33761         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33762         threading through blocks with PHIs, but no statements.
33763         (thread_through_normal_block): Distinguish between blocks where
33764         we did not process all the statements and blocks with no statements.
33766 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
33767             James Greenhalgh  <james.greenhalgh@arm.com>
33769         PR ipa/64963
33770         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
33771         section if not linkonce.  Fix up formatting.
33772         (cgraph_node::create_version_clone_with_body): Copy section.
33773         * trans-mem.c (ipa_tm_create_version): Likewise.
33775 2015-02-16  Richard Biener  <rguenther@suse.de>
33777         PR tree-optimization/65077
33778         * tree-ssa-structalias.c (get_constraint_for_1): Handle
33779         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
33780         (find_func_aliases): Allow float values to carry pointers again.
33782 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
33784         * doc/install.texi (Specific): Reorder targets list to put
33785         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
33786         from the top menu.
33788 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
33789             David Edelsohn  <dje.gcc@gmail.com>
33791         PR target/65058
33792         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
33793         mapping class to external variable or function reference.
33794         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
33795         mapping class.
33797 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
33799         PR target/53348
33800         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
33801         ASM_WEAKEN_DECL if defined.
33803 2015-02-16  Richard Biener  <rguenther@suse.de>
33805         PR lto/65015
33806         * varasm.c (default_file_start): For LTO produced units
33807         emit <artificial> as file directive.
33809 2015-02-16  Richard Biener  <rguenther@suse.de>
33811         PR tree-optimization/63593
33812         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
33813         stmts and releasing SSA names until...
33814         (execute_pred_commoning): ... after processing all chains.
33816 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
33818         PR ipa/65059
33819         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
33820         external functions.
33822 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
33824         * doc/bugreport.texi: Adjust section titles throughout the file
33825         to use "Title Case".
33826         * doc/extend.texi: Likewise.
33827         * doc/gcov.texi: Likewise.
33828         * doc/implement-c.texi: Likewise.
33829         * doc/implement-cxx.texi: Likewise.
33830         * doc/invoke.texi: Likewise.
33831         * doc/objc.texi: Likewise.
33832         * doc/standards.texi: Likewise.
33833         * doc/trouble.texi: Likewise.
33835 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
33837         * cgraph.h (symtab_node::has_aliases_p): Simplify.
33838         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
33839         * tree.c (lookup_binfo_at_offset): Make static.
33840         (get_binfo_at_offset): Do not shadow offset; add explanatory
33841         comment.
33843 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
33845         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
33846         for all floading point loads and stores except those using a register
33847         index address.
33848         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
33849         to a register.
33851 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
33853         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
33854         (do_estimate_growth_1): Record if any uninlinable edge was seen.
33855         (estimate_growth): Handle uninlinable edges correctly.
33856         (check_callers): New.
33857         (growth_likely_positive): Handle aliases correctly.
33859 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
33861         * ipa-chkp.c: Use iterate_direct_aliases.
33862         * symtab.c (resolution_used_from_other_file_p): Move inline.
33863         (symtab_node::create_reference): Fix formating.
33864         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33865         (symtab_node::iterate_reference): Move inline.
33866         (symtab_node::iterate_referring): Move inline.
33867         (symtab_node::iterate_direct_aliases): Move inline.
33868         (symtab_node::used_from_object_file_p_worker): Inline into ...
33869         (symtab_node::used_from_object_file_p): ... this one; move inline.
33870         (symtab_node::call_for_symbol_and_aliases): Move inline;
33871         use iterate_direct_aliases.
33872         (symtab_node::call_for_symbol_and_aliases_1): New method.
33873         (cgraph_node::call_for_symbol_and_aliases): Move inline;
33874         use iterate_direct_aliases.
33875         (cgraph_node::call_for_symbol_and_aliases_1): New method.
33876         (varpool_node::call_for_node_and_aliases): Rename to ...
33877         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
33878         use iterate_direct_aliases.
33879         (varpool_node::call_for_symbol_and_aliases_1): New method.
33880         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
33881         (ipa_discover_readonly_nonaddressable_var): Update.
33882         * ipa-devirt.c: Fix formating.
33883         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
33884         Move inline.
33885         (cgraph_node::call_for_symbol_and_aliases): Move inline.
33886         (cgraph_node::call_for_symbol_and_aliases_1): New function..
33887         * cgraph.h (used_from_object_file_p_worker): Remove.
33888         (resolution_used_from_other_file_p): Move inline.
33889         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33890         (symtab_node::iterate_reference): Move inline.
33891         (symtab_node::iterate_referring): Move inline.
33892         (symtab_node::iterate_direct_aliases): Move inline.
33893         (symtab_node::used_from_object_file_p_worker): Inline into ...
33894         (symtab_node::used_from_object_file_p): Move inline.
33895         * tree-emutls.c (ipa_lower_emutls): Update.
33896         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
33897         (varpool_node::call_for_node_and_aliases): Remove.
33899 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
33901         PR tree-optimization/62209
33902         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
33903         op == range->exp, insert seq and gimplified code after labels
33904         instead of after the phi.
33906 2015-02-13  Jeff Law  <law@redhat.com>
33908         PR bootstrap/65060
33909         Revert my change for tree-optimization/64823.
33911 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
33913         PR tree-optimization/65053
33914         * tree-ssa-phiopt.c (value_replacement): When moving assign before
33915         cond, either reset VR on lhs or set it to phi result VR.
33917 2015-02-13  Jeff Law  <law@redhat.com>
33919         PR tree-optimization/64823
33920         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
33921         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33922         threading through blocks with PHIs, but no statements.
33923         (thread_through_normal_block): Distinguish between blocks where
33924         we did not process all the statements and blocks with no statements.
33926         PR rtl-optimization/47477
33927         * match.pd (convert (plus/minus (convert @0) (convert @1): New
33928         simplifier to narrow arithmetic.
33930 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
33932         PR ipa/65028
33933         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
33934         polymorphic call info when type is not known to be preserved.
33936 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
33938         PR ipa/65028
33939         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
33940         (inline_call): Use it.
33942 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
33944         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
33945         GOMP_DEVICE_NVIDIA_PTX.
33947 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
33949         PR ipa/65034
33950         * stmt.c (emit_case_nodes): Use void_type_node instead of
33951         NULL_TREE as LABEL_DECL type.
33953 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
33955         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
33956         constraints.
33957         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
33958         symbolic references to data to be forced to constant memory on the
33959         SOM target.
33961 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
33963         PR tree-optimization/65002
33964         * tree-cfg.c (pass_data_fixup_cfg): Don't update
33965         SSA on start.
33966         * tree-sra.c (some_callers_have_no_vuse_p): New.
33967         (ipa_early_sra): Reject functions whose callers
33968         assume function is read only.
33970 2015-02-13  Richard Biener  <rguenther@suse.de>
33972         PR lto/65015
33973         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
33974         for LTO produced CUs.
33976 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
33978         PR tree-optimization/64705
33979         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
33980         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
33981         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
33982         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
33983         expand_simple_operations.
33985 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
33986             Richard Henderson  <rth@redhat.com>
33988         PR rtl/32219
33989         * cgraphunit.c (cgraph_node::finalize_function): Set definition
33990         before notice_global_symbol.
33991         (varpool_node::finalize_decl): Likewise.
33992         * varasm.c (default_binds_local_p_2): Rename from
33993         default_binds_local_p_1, add weak_dominate argument.  Use direct
33994         returns instead of assigning to local variable.  Unify varpool and
33995         cgraph paths via symtab_node.  Reject undef weak variables before
33996         testing visibility.  Reorder tests for simplicity.
33997         (default_binds_local_p): Use default_binds_local_p_2.
33998         (default_binds_local_p_1): Likewise.
33999         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
34000         via symtab_node.
34001         (default_elf_asm_output_external): Emit visibility when specified.
34003 2015-02-13  Alan Modra  <amodra@gmail.com>
34005         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
34006         code setting up r11 for out-of-line fp restore.
34008 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
34010         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
34011         (muser-mode): Likewise.
34013 2015-02-13  Alan Modra  <amodra@gmail.com>
34015         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
34016         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
34018 2015-02-12  David Howells  <dhowells@redhat.com>
34020         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
34021         warning.
34022         * tree-ssa-uninit.c (dump_predicates): Likewise.
34023         * opts.c (print_filtered_help): Likewise.
34025 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
34027         * dwarf2out.c (output_die): Use "%s", name instead of name to
34028         avoid -Wformat-security warning.
34030         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
34031         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
34032         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
34033         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
34035 2015-02-12  Jason Merrill  <jason@redhat.com>
34037         * common.opt (-flifetime-dse): New.
34039 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
34041         PR sanitizer/65019
34042         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
34044         PR tree-optimization/65014
34045         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
34046         use original second operand of arg0 or arg1 instead of
34047         that adjusted by STRIP_NOPS.
34049 2015-02-11  Jeff Law  <law@redhat.com>
34051         PR target/63347
34052         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
34053         that needs to be queued, just queue it for a single cycle.
34055 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
34057         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
34058         bodies of thunks; comment on why.
34059         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
34060         symbols are extern.
34062 2015-02-11  Richard Henderson  <rth@redhat.com>
34064         PR sanitize/65000
34065         * tree-eh.c (mark_reachable_handlers): Mark source and destination
34066         regions of __builtin_eh_copy_values.
34068 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
34070         PR middle-end/65003
34071         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
34072         ultimate alias is MEM with SYMBOL_REF satisfying
34073         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
34074         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
34076 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
34078         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
34079         "diagnostic-core.h".
34080         (main): Initialize progname, and call diagnostic_initialize.
34082         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
34083         instead of __OPENMP_TARGET__.
34085         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
34086         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
34087         hard-coding PTX_ID.
34089 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
34091         * doc/sourcebuild.texi (pie_enabled): Document.
34093 2015-02-11  Martin Liska  <mliska@suse.cz>
34095         PR ipa/64813
34096         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
34097         a return value for call to a function that is noreturn.
34099 2015-02-11  Richard Biener  <rguenther@suse.de>
34101         PR lto/65015
34102         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
34103         and -fresolution.
34105 2015-02-11  Andrew Pinski  <apinski@cavium.com>
34107         PR target/64893
34108         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
34109         Change the first argument type to size_type_node and add another
34110         size_type_node.
34111         (aarch64_simd_expand_builtin): Handle the new argument to
34112         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
34113         print an out when the first two arguments are not
34114         nonzero integer constants.
34115         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
34116         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
34118 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
34120         PR target/61925
34121         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
34122         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
34123         (ix86_set_current_function): Rewritten.
34124         (ix86_add_new_builtins): Temporarily clear current_target_pragma
34125         when creating builtin fndecls.
34127 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
34129         PR ipa/65005
34130         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
34131         function.
34132         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
34133         have no comdat group.
34134         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
34135         (lto_output_varpool_node): Always output alias info.
34136         (output_refs): Output refs of boundary aliases, too.
34137         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
34138         (output_symtab): Output call eges in thunks in boundary.
34139         (get_alias_symbol): Remove.
34140         (input_node, input_varpool_node): Do not special case weakrefs.
34141         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
34142         alias and thunks targets in the boundary; do not take removed symbols
34143         from their comdat groups.
34144         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
34145         (cgraph_node::global_info): Remove.
34146         (cgraph_node::rtl_info): Look through aliases and thunks.
34147         * cgrpah.h (global_info): Remove.
34148         (non_local_p): Remove.
34150 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
34151             Sandra Loosemore  <sandra@codesourcery.com>
34153         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
34154         to inline asm.  List dialects in proper order.
34156 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
34157             Sandra Loosemore  <sandra@codesourcery.com>
34159         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
34161 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
34163         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
34164         modified) reference to Solaris.
34166 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
34168         * doc/extend.texi (Extended Asm): Fix typos.
34170 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
34172         PR sanitizer/65004
34173         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
34175 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
34177         PR target/64661
34178         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
34179         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
34180         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
34181         * config/sh/constraints.md (Ara, Add): New constraints.
34182         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
34183         predicates.
34184         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
34185         atomic_mem_operand_0.  Don't use force_reg on the memory address.
34186         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
34187         Sra constraint.  Convert to insn_and_split.  Add workaround for
34188         PR 64974.
34189         (atomic_compare_and_swap<mode>_hard): Copy to
34190         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
34191         Use atomic_mem_operand_0 predicate.
34192         (atomic_compare_and_swap<mode>_soft_gusa,
34193         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
34194         AraAdd constraints.
34195         (atomic_compare_and_swap<mode>_soft_tcb,
34196         atomic_compare_and_swap<mode>_soft_imask,
34197         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
34198         atomic_mem_operand_0 predicate and SraSdd constraints.
34199         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
34200         constraint.
34201         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
34202         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
34203         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
34204         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
34205         force_reg on the memory address.
34206         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
34207         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
34208         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
34209         atomic_mem_operand_1 predicate and Sra constraint.
34210         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
34211         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
34212         Use atomic_mem_operand_1 predicate.
34213         (atomic_<fetchop_name><mode>_hard): Copy to
34214         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
34215         Use atomic_mem_operand_1 predicate.
34216         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
34217         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
34218         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
34219         insn_and_split.  Use atomic_mem_operand_1 predicate.
34220         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
34221         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
34222         Use atomic_mem_operand_1 predicate.
34223         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
34224         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
34225         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
34226         in generated insn with original mem operand before emitting the insn.
34227         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
34228         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
34229         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
34230         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
34231         Use atomic_mem_operand_1 predicate and AraAdd constraints.
34232         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
34233         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
34234         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
34235         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
34236         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
34237         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
34238         atomic_not_fetch<mode>_soft_tcb,
34239         atomic_<fetchop_name>_fetch<mode>_soft_imask,
34240         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
34241         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
34242         Use atomic_mem_operand_1 predicate and SraSdd constraints.
34244 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
34246         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
34247         and 3 earlyclobber operands.
34249 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
34251         * common.opt (fstack-reuse): Mark as optimization.
34253 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
34255         PR ipa/64982
34256         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
34258 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
34260         PR tree-optimization/64326
34261         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
34263 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
34265         PR gcov-profile/61889
34266         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
34268 2015-02-10  Richard Biener  <rguenther@suse.de>
34270         PR tree-optimization/64995
34271         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
34272         value we use is final.
34273         (visit_reference_op_store): Always valueize op.
34274         (visit_use): Properly valueize vuses.
34276 2015-02-10  Richard Biener  <rguenther@suse.de>
34278         PR tree-optimization/64909
34279         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
34280         pass a scalar-stmt count estimate to the cost model.
34281         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
34283 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
34285         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
34286         enabled by default together with var-tracking.
34288 2015-02-10  Nick Clifton  <nickc@redhat.com>
34290         * config/rl78/rl78.c: Remove DIV attribute code accidentally
34291         included in previous rl78 commit.
34293 2015-02-10  Richard Biener  <rguenther@suse.de>
34295         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
34296         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
34297         return the bitpack.
34299 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
34301         PR gcov-profile/61889
34302         * config.in: regenerate.
34303         * configure.in: Likewise.
34304         * configure.ac: Check for ftw.h.
34305         * gcov-tool.c: Check for ftw.h before using nftw.
34307 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
34309         PR lto/64076
34310         * ipa-visibility.c (update_visibility_by_resolution_info): Only
34311         assert when not in lto mode.
34313 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
34315         * ira-color.c (setup_left_conflict_sizes_p): Simplify
34316         initialization/assignment of conflict_size.
34318 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
34320         PR ipa/64978
34321         * ipa-cp.c (gather_caller_stats): Skip thunks.
34322         (propagate_constants_topo): Skip aliases.
34324 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
34326         PR target/64761
34327         * config/sh/sh.c (sh_option_override): Don't change
34328         -freorder-blocks-and-partition to -freorder-blocks even when
34329         unwinding is enabled.
34330         (sh_can_follow_jump): Return false if the followee jump is
34331         a crossing jump when -freorder-blocks-and-partition is specified.
34332         * config/sh/sh.md (*jump_compact_crossing): New insn.
34334 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
34335             Kaz Kojima  <kkojima@gcc.gnu.org>
34337         PR target/64761
34338         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
34339         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
34340         (sh_can_redirect_branch): Rename to ...
34341         (sh_can_follow_jump): ... this.  Constify argument types.
34342         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
34343         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
34344         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
34345         * doc/tm.texi: Regenerate.
34347 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
34349         PR sanitizer/64981
34350         * builtins.c (expand_builtin): Call targetm.expand_builtin
34351         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
34353 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34355         PR ipa/61548
34356         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
34358 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34360         PR ipa/63566
34361         * ipa-icf.c (set_local): New function.
34362         (sem_function::merge): Use it.
34364 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34366         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
34367         (add_type_duplicate): Fix comparison of BINFOs.
34369 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34371         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
34372         on getting VOID pointer.
34374 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
34376         PR target/64979
34377         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
34378         va_list escapes.
34380 2015-02-09  Richard Biener  <rguenther@suse.de>
34382         * genmatch.c (replace_id): Copy expr_type.
34384 2015-02-09  Richard Biener  <rguenther@suse.de>
34386         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
34387         (streamer_write_tree_bitfields): Declare.
34388         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
34389         properly unpack padding.
34390         (unpack_value_fields): Inline ...
34391         (streamer_read_tree_bitfields): ... here.
34392         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
34393         and properly add padding bits.
34394         (streamer_pack_tree_bitfields): Fold into ...
34395         (streamer_write_tree_bitfields): ... this new function,
34396         exposing the bitpack object.
34397         * lto-streamer-out.c (lto_write_tree_1): Call
34398         streamer_write_tree_bitfields.
34400 2015-02-09  Richard Biener  <rguenther@suse.de>
34402         PR tree-optimization/54000
34403         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
34404         (struct ivopts_data): Add loop_loc member.
34405         (tree_ssa_iv_optimize_loop): Dump loop location.
34406         (create_new_ivs): Likewise, also dump number of IVs generated.
34408 2015-02-09  Martin Liska  <mliska@suse.cz>
34410         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
34411         just if not yet registered.
34412         (ipa_icf_generate_summary): Register callgraph hooks.
34414 2015-02-08  Andrew Pinski  <apinski@cavium.com>
34416         * config/aarch64/aarch64.c (gty_dummy): Delete.
34418 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34420         PR ipa/63566
34421         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
34422         (cgraph_node::local_p): Remove thunk related FIXME.
34424 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34426         PR ipa/63566
34427         * i386.c (ix86_function_regparm): Look through aliases to see if callee
34428         is local and optimized.
34429         (ix86_function_sseregparm): Likewise; also use target's SSE math
34430         settings; error out instead of silently generating wrong code
34431         on mismatches.
34432         (init_cumulative_args): Look through aliases.
34434 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34436         PR ipa/63566
34437         * ipa-split.c (execute_split_functions): Split if function has aliases.
34439 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34441         PR ipa/63566
34442         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
34443         aliases before trying to expand it.
34444         (cgraph_node::expand_thunk): Fix formating.
34446 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
34448         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
34449         (Using Assembly Language with C): Expand introduction.
34450         (Basic Asm): Copy-edit.  Add more information about uses of
34451         basic asm.
34452         (Extended Asm): Copy-edit.  Document new escape syntax and
34453         %l[label] syntax.
34454         (Global Reg Vars): Copy-edit.
34455         (Local Reg Vars): Likewise.
34457 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
34459         PR debug/2714
34460         PR bootstrap/64256
34461         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
34462         (DBX_CONTIN_CHAR): Define.
34464 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
34465             Brian Rzycki  <b.rzycki@samsung.com>
34467         PR tree-optimization/64878
34468         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
34469         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
34470         Stop recursion at loop phi nodes after having visited a loop phi node.
34472 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
34474         * toplev.c (process_options): Change flag_ipa_ra before creating
34475         optimization_{default,current}_node.
34477         PR ipa/64896
34478         * cgraphunit.c (cgraph_node::expand_thunk): If
34479         restype is not is_gimple_reg_type nor the thunk_fndecl
34480         returns aggregate_value_p, set restmp to a temporary variable
34481         instead of resdecl.
34483 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
34485         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
34487 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
34489         PR target/64205
34490         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
34491         add a general secondary reload handler for SDmode, unless we have
34492         both read/write support for SDmode.
34494 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
34496         PR middle-end/64937
34497         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
34498         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
34499         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
34500         1 before, push it to abstract_vec.
34501         (dwarf2out_abstract_function): Adjust caller.  Don't call
34502         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
34503         DECL_ABSTRACT_P flags for all abstract_vec elts.
34505 2015-02-06  Renlin Li  <renlin.li@arm.com>
34507         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
34508         complex gimple.
34509         * tree-ssa.c (execute_update_addresses_taken): Likewise.
34511 2015-02-06  Jeff Law  <law@redhat.com>
34513         PR target/64889
34514         * config/h8300/h8300.c (push): New argument "in_prologue".
34515         Pass "in_prologue" along to "F".
34516         (h8300_push_pop): Corresponding changes.
34517         (h8300_expand_prologue): Likewise.
34518         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
34520 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
34522         PR rtl-optimization/64957
34523         PR debug/64817
34524         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
34525         IOR rather than for AND.
34527 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
34529         PR target/62631
34530         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
34531         of shift-add and (add + shift) operations.  Rename local variable.
34533 2015-02-05  Jeff Law  <law@redhat.com>
34535         PR target/17306
34536         * config/h8300/constraints.md (U): Correctly dectect
34537         "eightbit_data" memory addresses.
34538         * config/h8300/h8300.c (eightbit_constant_address_p): Also
34539         handle (const (plus (symbol_ref (x)))) where x is declared
34540         as an 8-bit data memory address.
34541         * config/h8300/h8300.md (call, call_value): Correctly detect
34542         "funcvec" functions.
34544         PR target/43264
34545         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
34546         24 to 28 bits for the H8/300.
34548 2015-02-06  Alan Modra  <amodra@gmail.com>
34550         PR target/64876
34551         * config/rs6000/rs6000.c (chain_already_loaded): New function.
34552         (rs6000_call_aix): Use it.
34554 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
34556         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
34557         check.
34559 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
34561         * config/h8300/constraints.md ("U" constraint): Use strict
34562         variant of REG_OK_FOR_BASE_P after reload has started.
34564 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
34566         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
34567         define to zero if !TARGET_NEON.
34568         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
34570 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34571             Trevor Saunders  <tsaunders@mozilla.com>
34573         PR ipa/61548
34574         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
34576 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34578         PR ipa/61548
34579         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
34580         when removing varpool nodes.
34582 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34584         PR ipa/61548
34585         * varpool.c (varpool_node::remove): Fix order of variables.
34587 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34589         PR ipa/64686
34590         * ipa-inline.c (inline_small_functions): Fix ordering issue between
34591         speculation resolution and key updates.
34593 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34595         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
34596         about not letting any speculative edges unupdated.
34598 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34600         PR gcov/64123
34601         * gcov-io.c (gcov_var): Export.
34603 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34605         PR middle-end/64922
34606         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
34607         edges that become speculative.
34609 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
34611         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
34612         or DW_LANG_Fortran08.
34613         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
34614         DW_LANG_Fortran08.
34615         (gen_compile_unit_die): Handle "GNU Fortran2003" and
34616         "GNU Fortran2008" language strings.
34617         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
34618         * langhooks.h (lang_GNU_Fortran): New prototype.
34619         * langhooks.c (lang_GNU_Fortran): New function.
34620         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
34621         lang_GNU_Fortran.
34623 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
34625         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
34626         (RTX_OK_FOR_OLO10_P): Likewise.
34628 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
34630         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
34632 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34634         PR middle-end/64922
34635         * gimple.c: Include gimple-ssa.h.
34636         (maybe_remove_unused_call_args): New function.
34637         * gimple.h (maybe_remove_unused_call_args): Declare.
34638         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
34639         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
34640         * gimple-fold.c (gimple_fold_call): Likewise.
34642 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
34644         PR rtl-optimization/64905
34645         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
34646         pointer alignment if it isn't needed.
34648 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
34650         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
34651         cortex-a72.cortex-a53.
34652         * config/aarch64/aarch64-tune.md: Regenerate.
34653         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
34655 2015-02-04  Nick Clifton  <nickc@redhat.com>
34657         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
34658         inside a MEM.
34660 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
34662         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
34663         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
34664         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
34665         of DEF_BUILTIN.
34666         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
34667         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
34668         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
34669         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
34670         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
34671         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
34672         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
34673         * tree-core.h (enum built_in_function): In between
34674         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
34675         for builtins that use DEF_BUILTIN_CHKP macro.
34677 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
34679         PR debug/64817
34680         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
34681         operands for tcc_comparison exprs.  Fix typos.
34683         PR debug/64817
34684         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
34685         of two XORs that have an intervening AND or IOR.
34687         PR debug/64817
34688         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
34689         simplification of XOR of AND to not allocate new rtx before
34690         committing to a simplification.
34692 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34694         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
34695         manual swaps in all peepholes.
34697 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34699         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
34700         of manual swapping implementation.
34701         (aarch64_expand_vec_perm_const_1): Likewise.
34703 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
34705         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
34706         (generic_addrcost_table): Remove NAMED_PARAM.
34707         (cortexa57_addrcost_table): Likewise.
34708         (xgene1_addrcost_table): Likewise.
34709         (generic_regmove_table): Likewise.
34710         (cortexa53_regmove_table): Likewise.
34711         (xgene1_regmove_table): Likewise.
34712         (generic_vector_table): Likewise.
34713         (cortexa57_vector_table): Likewise.
34714         (xgene1_vector_table): Likewise.
34715         (generic_tunings): Likewise.
34716         (cortexa53_tunings): Likewise.
34717         (cortexa57_tunings): Likewise.
34718         (xgene1_tunings): Likewise.
34720 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
34722         * config/arm/arm-cores.def: Add cortex-a72 and
34723         cortex-a72.cortex-a53.
34724         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
34725         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
34726         * config/arm/arm-tune.md: Regenerate.
34727         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
34728         "cortex-a72.cortex-a53".
34729         * doc/invoke.texi (ARM Options/-mtune): Likewise.
34731 2015-02-04  Nick Clifton  <nickc@redhat.com>
34733         PR target/64408
34734         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
34735         of accepted codes.
34736         (nonimmediate_di_operand): Likewise.
34738         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
34739         prefixes of known F5 using MSP430 MCUs.
34741 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34743         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
34744         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
34745         instead of __builtin_sqrt.
34747 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
34749         * varasm.c (do_assemble_alias): Follow transparent alias
34750         chain for target.
34751         (default_assemble_visibility): Follow transparent alias
34752         chain for decl name.
34754 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34756         PR middle-end/62103
34757         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
34758         to compute size of referenced value in the constant case.
34760 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
34762         PR rtl-optimization/64756
34763         * cse.c (invalidate_dest): New function.
34764         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
34765         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
34766         invalidate and do not record it.
34768 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34770         PR target/64660
34771         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
34772         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
34773         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
34774         atomic_nand<mode>_soft_tcb): New insns.
34775         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
34776         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
34777         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
34778         Split into atomic_not_fetchsi_hard if operands[0] is unused.
34779         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
34780         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34781         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
34782         atomic_not<mode>_hard if operands[0] is unused.
34783         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
34784         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
34785         if operands[0] is unused.
34786         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
34787         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
34788         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
34789         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34790         unused.
34791         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
34792         into atomic_not<mode>_soft_tcb if operands[0] is unused.
34793         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
34794         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
34795         if operands[0] is unused.
34796         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
34797         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
34798         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
34799         atomic_nand_fetchsi_hard if operands[0] is unused.
34800         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
34801         atomic_nand<mode>_hard if operands[0] is unused.
34802         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
34803         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
34804         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
34805         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34806         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
34807         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
34808         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
34809         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34810         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
34811         atomic_not<mode>_hard if operands[0] is unused.
34812         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
34813         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34814         unused.
34815         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
34816         into atomic_not<mode>_soft_tcb if operands[0] is unused.
34817         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
34818         atomic_nand<mode>_hard if operands[0] is unused.
34819         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
34820         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34822 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
34824         PR jit/64810
34825         * Makefile.in (GCC_OBJS): Add gcc-main.o.
34826         * gcc-main.c: New file, containing "main" taken from gcc.c.
34827         * gcc.c (do_self_spec): Free decoded_options.
34828         (class driver): Move declaration to gcc.h.
34829         (main): Move declaration and implementation to new file
34830         gcc-main.c.
34831         (driver_get_configure_time_options): New function.
34832         * gcc.h (class driver): Move this declaration here, from
34833         gcc.c.
34834         (driver_get_configure_time_options): New declaration.
34836 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
34838         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
34839         cross-module inlining.
34840         * cgraph.h (cgraph_node): Add flag merged.
34841         * ipa-icf.c (sem_function::merge): Maintain it.
34843 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
34845         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
34846         instead of OBJECT_P.
34848 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
34850         PR target/62631
34851         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
34852         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
34853         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
34854         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
34856 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
34858         PR other/63504
34859         * combine.c (reg_n_sets_max): New variable.
34860         (can_change_dest_mode, reg_nonzero_bits_for_combine,
34861         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
34862         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
34863         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
34864         (rest_of_handle_combine): Initialize reg_n_sets_max.
34866 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
34868         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
34869         if some always_inline was inlined, apply changes before inlining
34870         heuristically.
34872 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
34874         PR jit/64810
34875         * config/arm/arm.c (arm_option_override): Set
34876         arm_selected_arch/cpu/tune to NULL on entry.
34878 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
34879             Andrew Pinski  <pinskia@gcc.gnu.org>
34880             Jakub Jelinek  <jakub@gcc.gnu.org>
34882         PR target/64231
34883         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
34884         integer typing for small model. Use IN_RANGE.
34886 2015-02-02  Richard Biener  <rguenther@suse.de>
34888         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
34889         * tree-vrp.c (vrp_valueize_1): Likewise.
34891 2015-02-02  Alan Modra  <amodra@gmail.com>
34893         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
34894         than mem for toc_restore.
34895         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
34896         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
34897         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
34899 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
34901         PR target/64047
34902         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
34903         explicit default options.
34905 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
34907         PR ipa/64872
34908         * ipa-utils.c (ipa_merge_profiles): Add release argument.
34909         * ipa-icf.c (sem_function::merge): Do not release body when merging.
34910         * ipa-utils.h (ipa_merge_profiles): Update prototype.
34912 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
34914         PR debug/64817
34915         * cfgexpand.c (deep_ter_debug_map): New variable.
34916         (avoid_deep_ter_for_debug): New function.
34917         (expand_debug_expr): If TERed SSA_NAME is in
34918         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
34919         instead of trying to expand SSA_NAME's def stmt.
34920         (expand_debug_locations): When expanding debug bind
34921         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
34922         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
34923         value.
34924         (pass_expand::execute): Call avoid_deep_ter_for_debug on
34925         all debug bind stmts.  Delete deep_ter_debug_map after
34926         expand_debug_location if non-NULL and clear it.
34928 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
34930         PR target/64851
34931         * config/sh/sync.md (atomic_fetch_notsi_hard,
34932         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
34933         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
34934         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
34935         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
34936         atomic_not_fetch<mode>_soft_imask): New insns.
34938 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34940         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
34941         (rank_for_schedule_debug): Split from ...
34942         (rank_for_schedule): ... this.
34943         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
34944         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
34946 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
34948         * doc/md.texi (Machine Constraints): Alphabetize table by target.
34949         * doc/extend.texi (x86 Variable Attributes): Move section to
34950         correct alphabetization after renaming.
34951         (x86 Type Attributes): Likewise.
34952         (Target Builtins): Re-alphabetize menu.
34953         (x86 Built-in Functions): Move section to correct alphabetization
34954         after renaming.
34955         (x86 transactional memory intrinsics): Likewise.
34956         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
34957         and x86 Windows Options in table and menu.
34958         (x86 Options): Move section to correct alphabetization after
34959         renaming.
34960         (x86 Windows Options): Likewise.
34962 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
34964         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
34965         preferred names of the architecture and its 32- and 64-bit
34966         variants.
34967         * doc/invoke.texi: Likewise.
34968         * doc/md.texi: Likewise.
34970 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
34972         PR target/64882
34973         * config/i386/predicates.md (address_no_seg_operand): Reject
34974         non-CONST_INT_P operands in invalid mode.
34976 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
34978         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
34979         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
34980         * config/i386/predicates.md (address_no_seg_operand): Call
34981         address_operand with VOIDmode.
34982         (vsib_address_operand): Ditto.
34983         (address_mpx_no_base_operand): Ditto.
34984         (address_mpx_no_index_operand): Ditto.
34986 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34988         PR target/64688
34989         * lra-constraints.c (original_subreg_reg_mode): New.
34990         (simplify_operand_subreg): Try to simplify subreg of const.  Use
34991         original_subreg_reg_mode for it.
34992         (swap_operands): Update original_subreg_reg_mode.
34993         (curr_insn_transform): Set up original_subreg_reg_mode.
34995 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34997         PR target/64617
34998         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
34999         function.
35000         (process_alt_operands): Use it.
35001         (curr_insn_transform): Check the optional reload pseudo class is
35002         ok for the mode.
35004 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
35006         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
35007         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
35008         prototype.
35009         * toplev.h (init_asm_output): Update comment on use of
35010         UNKNOWN_LOCATION with fatal_error.
35011         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
35012         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
35013         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
35014         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
35015         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
35016         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
35017         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
35018         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
35019         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
35020         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
35021         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
35022         fatal_error changed to pass input_location as first argument.
35024 2015-01-30  Martin Liska  <mliska@suse.cz>
35026         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
35027         in #pragma GCC diagnostic guards.
35029 2015-01-30  Richard Biener  <rguenther@suse.de>
35031         PR tree-optimization/64829
35032         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
35033         not add a widening conversion pattern but hand off extra
35034         widenings to callers.
35035         (vect_recog_widen_mult_pattern): Handle extra widening produced
35036         by vect_handle_widen_op_by_const.
35037         (vect_recog_widen_shift_pattern): Likewise.
35038         (vect_pattern_recog_1): Remove excess vertical space in dumping.
35039         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
35040         (vect_init_vector_1): Likewise.
35041         (vect_get_vec_def_for_operand): Likewise.
35042         (vect_finish_stmt_generation): Likewise.
35043         (vectorizable_load): Likewise.
35044         (vect_analyze_stmt): Likewise.
35045         (vect_is_simple_use): Likewise.
35047 2015-01-29  Jeff Law  <law@redhat.com>
35049         * combine.c (try_combine): Fix typo in comment.
35051 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
35053         PR target/64580
35054         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
35055         (rs6000_stack_info): Add assert.
35056         (rs6000_output_savres_externs): New function, split off from...
35057         (rs6000_output_function_prologue): ... here.  Do not call it for
35058         thunks.
35060 2015-01-29  Jeff Law  <law@redhat.com>
35062         PR target/15184
35063         * combine.c (try_combine): If I0 is a memory load and I3 a store
35064         to a related address, increase the "goodness" of doing a 4-insn
35065         combination with I0-I3.
35066         (make_field_assignment): Handle SUBREGs in the ior+and case.
35068 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
35070         PR tree-optimization/64746
35071         * tree-if-conv.c (mask_exists): New function.
35072         (predicate_mem_writes): Save created mask with given size for further
35073         use.
35074         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
35075         (ifcvt_repair_bool_pattern): Collect all statements that are root
35076         of bool pattern and use iterative algorithm to remove multiple uses
35077         of predicates, display number of required iterations.
35079 2015-01-29  Richard Biener  <rguenther@suse.de>
35081         PR tree-optimization/64853
35082         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
35083         stmt will get simulated again.
35084         * tree-ssa-ccp.c (valueize_op_1): Likewise.
35086 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35088         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
35089         return_in_pc.  Remove redundant assignments.
35090         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
35091         (arm_expand_epilogue): Don't compare boolean with true in if condition.
35093 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
35095         * config/i386/i386.c (ix86_mode_after): Make static.
35097 2015-01-29  Richard Biener  <rguenther@suse.de>
35099         PR tree-optimization/64844
35100         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
35101         dump cost model analysis.
35102         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35103         Do not register adjusted load/store costs here.
35105 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
35106             Uros Bizjak  <ubizjak@gmail.com>
35108         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
35109         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
35110         using x86_use_pseudo_pic_reg.
35111         * config/i386/i386.c (ix86_conditional_register_usage): Remove
35112         support for fixed PIC register.
35113         (ix86_use_pseudo_pic_reg): Not static any more.
35115 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
35117         PR middle-end/64805
35118         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
35119         to avoid error in cgraph node verification.
35121 2015-01-29  Marek Polacek  <polacek@redhat.com>
35123         * doc/standards.texi: Reflect that the default for C is gnu11.
35125 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
35127         PR target/64761
35128         * reorg.c (switch_text_sections_between_p): New function.
35129         (relax_delay_slots): Call it when testing if the jump insn
35130         is removable.  Use targetm.can_follow_jump when testing if
35131         the conditional branch can follow an unconditional jump.
35133 2015-01-27  Caroline Tice  <cmtice@google.com>
35135         Committing VTV Cywin/Ming patch for Patrick Wollgast
35136         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
35137         if -fvtable-verify=preinit/std is used.
35138         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
35139         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
35140         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
35141         if -fvtable-verify=preinit/std is used.
35142         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
35143         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
35144         if -fvtable-verify=preinit/std is used.
35145         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
35146         * config/i386/mingw32.h (LIB_SPEC): Likewise.
35147         * varasm.c (assemble_variable): Add code to properly set the comdat
35148         section and name for the .vtable_map_vars section in case the
35149         target is PE or COFF.
35151 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
35153         PR ipa/64801
35154         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
35155         make sane BB profile.
35156         (cgraph_node::expand_thunk): Make sane BB profile.
35157         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
35158         * cgraph.h (init_lowered_empty_function): Update prototype.
35159         * config/i386/i386.c (make_resolver_func): Update call.
35160         * predict.c (gate): Disable branch prediction pass if
35161         profile is already there.
35163 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
35165         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
35166         * opth-gen.awk: Likewise.
35167         * common.opt: Mark flag_fp_contract_mode as Optimization.
35169 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35171         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
35172         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
35174 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
35176         PR target/64659
35177         * config/sh/predicates.md (atomic_arith_operand,
35178         atomic_logical_operand): Remove.
35179         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
35180         (atomic_arith_operand_0): New predicate.
35181         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
35182         Use atomic_arith_operand_0 for input values.
35183         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
35184         atomic_compare_and_swap<mode>_soft_gusa,
35185         atomic_compare_and_swap<mode>_soft_tcb,
35186         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
35187         arith_reg_operand instead of register_operand.
35188         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
35189         atomic_arith_operand_0 for newval input.
35190         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
35191         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
35192         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
35193         arith_reg_operand instead of register_operand.
35194         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
35195         fetchop_predicate_1, fetchop_constraint_1_llcs,
35196         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
35197         fetchop_constraint_1_imask): New code iterator attributes.
35198         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
35199         register_operand.  Use fetchop_predicate_1.
35200         (atomic_fetch_<fetchop_name>si_hard,
35201         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
35202         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
35203         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
35204         and arith_reg_operand instead of register_operand.  Use
35205         fetchop_predicate_1, fetchop_constraint_1_gusa.
35206         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
35207         and arith_reg_operand instead of register_operand.  Use
35208         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
35209         to allow R0 usage.
35210         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
35211         and arith_reg_operand instead of register_operand.  Use
35212         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
35213         to allow R0 usage.
35214         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
35215         register_operand.  Use atomic_logical_operand_1.
35216         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
35217         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
35218         arith_reg_operand instead of register_operand.
35219         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
35220         Use arith_reg_dest and arith_reg_operand instead of register_operand.
35221         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
35222         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
35223         register_operand.  Use fetchop_predicate_1.
35224         (atomic_<fetchop_name>_fetchsi_hard,
35225         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
35226         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35227         fetchop_constraint_1_llcs.
35228         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
35229         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35230         fetchop_constraint_1_gusa.
35231         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
35232         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35233         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
35234         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
35235         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35236         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
35237         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
35238         register_operand.  Use atomic_logical_operand_1.
35239         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
35240         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
35241         arith_reg_operand instead of register_operand.
35242         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
35243         arith_reg_operand instead of register_operand.  Use logical_operand
35244         and K08.  Adjust asm sequence to allow R0 usage.
35245         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
35246         arith_reg_operand instead of register_operand.  Use logical_operand
35247         and K08.
35249 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
35251         PR other/63504
35252         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
35253         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
35254         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
35255         only get_full_len HOST_WIDE_INTs from get_val () array rather than
35256         all bits in *val_wide.
35258 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
35260         * varpool.c (tls_model_names): Fix names.
35261         (varpool_node::dump): Dump tls- prefix for tls models.
35263 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
35264             Bernd Schmidt  <bernds@codesourcery.com>
35265             Nathan Sidwell  <nathan@codesourcery.com>
35267         * config/nvptx/mkoffload.c: New file.
35268         * config/nvptx/t-nvptx: Add build rules for it.
35269         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
35270         (extra_programs): Add mkoffload.
35271         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
35272         function.
35273         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
35275 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
35277         PR middle-end/64809
35278         * cfgexpand.c (reorder_operands): Skip debug gimples.
35280 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
35282         PR tree-optimization/64277
35283         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
35284         range info when possible to refine estimation.
35286 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35288         PR tree-optimization/64718
35289         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
35290         be a 16bit unsigned integer when n->range is 16.
35291         (bswap_replace): Convert src to that type if necessary for all bswap
35292         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
35293         set in pass_optimize_bswap::execute ().
35295 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
35297         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
35298         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
35299         integer and floating point variants.
35300         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
35302 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
35304         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
35305         for all vector modes.
35307 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
35309         PR bootstrap/64612
35310         * doc/sourcebuild.texi (comdat_group): Document.
35312 2015-01-28  Terry Guo  <terry.guo@arm.com>
35314         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
35316 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
35318         * toplev.c (print_version): Add param "show_global_state", and
35319         only print GGC and plugin information if it is true.
35320         (init_asm_output): Pass in "true" for the new param when calling
35321         print_version.
35322         (process_options): Likewise.
35323         (toplev::main): Likewise.
35324         * toplev.h (print_version): Add new param to decl.
35326 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
35328         PR ipa/60871
35329         PR ipa/64139
35330         * tree.c (lookup_binfo_at_offset): New function.
35331         (get_binfo_at_offset): Use it.
35333 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
35335         PR ipa/64282
35336         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
35337         on vtable being vtable.
35339 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35341         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
35342         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
35343         -mhotpatch= option.
35344         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
35345         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
35346         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
35347         Renamed.
35348         (s390_hotpatch_trampoline_halfwords_max): Renamed.
35349         (s390_hotpatch_hw_max): New name.
35350         (s390_hotpatch_trampoline_halfwords): Renamed.
35351         (s390_hotpatch_hw_before_label): New name.
35352         (get_hotpatch_attribute): Removed.
35353         (s390_hotpatch_hw_after_label): New name.
35354         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
35355         attribute.
35356         (s390_attribute_table): Ditto.
35357         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
35358         (s390_function_num_hotpatch_hw): New name.
35359         Remove special handling of inline functions and hotpatching.
35360         Return number of nops before and after the function label.
35361         (s390_can_inline_p): Removed.
35362         (s390_asm_output_function_label): Emit a configurable number of nops
35363         after the function label.
35364         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
35365         (TARGET_CAN_INLINE_P) Removed.
35366         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
35368 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35369             Jiong Wang  <jiong.wang@arm.com>
35371         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
35372         of scratch reg.
35373         (cb<optab><mode>1): Likewise.
35374         * config/aarch64/iterators.md (bcond): New define_code_attr.
35376 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35378         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
35379         memory accesses.
35381 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35383         * config/s390/s390.c (s390_register_move_cost): Increase costs for
35384         FPR->GPR moves.
35386 2015-01-27  Richard Biener  <rguenther@suse.de>
35388         * tree-vrp.c (update_value_range): Intersect the range with
35389         old recorded SSA name range information.
35391 2015-01-27  Nick Clifton  <nickc@redhat.com>
35393         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
35394         BC, DE and HL registers directly, not via AX.
35395         When decrementing the stack pointer by a large amount, transfer SP
35396         into AX and perform the subtraction there.
35397         (rl78_expand_epilogue): Perform the inverse of the above
35398         enhancements.
35400 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35402         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
35404 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
35405             Yury Gribov  <y.gribov@samsung.com>
35407         PR ubsan/64741
35408         * ubsan.c (ubsan_source_location): Refactor code.
35409         (ubsan_type_descriptor): Update type size. Refactor code.
35411 2015-01-27  Richard Biener  <rguenther@suse.de>
35413         PR tree-optimization/56273
35414         PR tree-optimization/59124
35415         PR tree-optimization/64277
35416         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
35417         from the first VRP pass.
35419 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
35421         PR ipa/64776
35422         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
35423         handle the first argument in the same loop as all the other arguments.
35425         PR rtl-optimization/61058
35426         * jump.c (cleanup_barriers): Update basic block boundaries
35427         if BLOCK_FOR_INSN is non-NULL on PREV.
35429 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
35431         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
35432         bounds narrowing, already instrumented calls and calls to
35433         not instrumentable functions.
35435 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
35437         PR tree-optimization/64807
35438         * wide-int.cc (wi::divmod_internal): Clear
35439         b_dividend[dividend_blocks_needed].
35441 2015-01-26  DJ Delorie  <dj@redhat.com>
35443         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
35444         volatile memory references.
35446 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
35448         PR target/49263
35449         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
35450         remove_insn.
35451         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
35452         shifts if it already fits into K08.
35454 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
35456         PR ipa/64730
35457         * ipa-inline.c (inline_small_functions): Print "unknown" even
35458         if edge->call_stmt is non-NULL, but has builtins or unknown
35459         location.
35461         PR middle-end/64421
35462         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
35463         with asterisk, skip the first character.
35465 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
35467         PR target/64806
35468         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
35469         order change.
35471 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
35473         PR target/64795
35474         * config/i386/i386.md (*movdi_internal): Also check operand 0
35475         to determine TYPE_LEA operand.
35476         (*movsi_internal): Ditto.
35478 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
35480         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
35481         OPTION_MASK_QUAD_MEMORY_ATOMIC.
35483 2015-01-26  Renlin Li  <renlin.li@arm.com>
35485         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
35486         the comment.
35487         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
35488         for higher part.
35490 2015-01-26  Richard Biener  <rguenther@suse.de>
35492         PR middle-end/64764
35493         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
35494         combining two BIT_AND_EXPR predicates.
35496 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
35498         PR bootstrap/64754
35499         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
35501 2015-01-26  Terry Guo  <terry.guo@arm.com>
35503         * config/arm/arm.c (arm_file_start): Update the assignment of
35504         Tag_ABI_HardFP_use.
35506 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
35508         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
35509         pipeline model.
35510         config/arm/arm.md: Include the new Cortex-A57 model.
35511         (generic_sched): Don't use generic_sched when tuning for
35512         Cortex-A57.
35514 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
35515             Uros Bizjak  <ubizjak@gmail.com>
35517         * config/i386/i386.c (get_builtin_code_for_version): Add
35518         support for BMI and BMI2 multiversion functions.
35520 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35522         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
35523         (extract_bit_field): Likewise.
35524         (extract_low_bits): Likewise.
35525         (expand_mult): Likewise.
35526         (expand_mult_highpart_adjust): Likewise.
35528 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
35530         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
35531         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
35532         * config/i386/i386.c (processor_model): Add
35533         M_INTEL_COREI7_BROADWELL.
35534         (arch_names_table): Add "broadwell".
35536 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
35538         PR target/49263
35539         PR target/53987
35540         PR target/64345
35541         PR target/59533
35542         PR target/52933
35543         PR target/54236
35544         PR target/51244
35545         * config/sh/sh-protos.h
35546         (sh_extending_set_of_reg::can_use_as_unextended_reg,
35547         sh_extending_set_of_reg::use_as_unextended_reg,
35548         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
35549         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
35550         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
35551         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
35552         (sh_treg_insns): New class.
35553         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
35554         (scope_counter): New class.
35555         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
35556         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
35557         sh_extending_set_of_reg::can_use_as_unextended_reg,
35558         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
35559         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
35560         sh_split_treg_set_expr): New functions.
35561         (addsubcosts): Handle treg_set_expr.
35562         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
35563         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
35564         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
35565         (sh_insn_operands_modified_between_p): Make non-static.
35566         * config/sh/predicates.md (zero_extend_movu_operand): Allow
35567         simple_mem_operand in addition to displacement_mem_operand.
35568         (zero_extend_operand): Don't allow zero_extend_movu_operand.
35569         (treg_set_expr, treg_set_expr_not_const01,
35570         arith_reg_or_treg_set_expr): New predicates.
35571         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
35572         arith_or_int_operand instead of logical_operand.  Convert to
35573         insn_and_split.  Try to optimize constant operand in splitter.
35574         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
35575         (*tstqi_t_zero): Delete.
35576         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
35577         (tstsi_t_and_not): Delete.
35578         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
35579         Convert to insn_and_split.
35580         (unnamed split, tstsi_t_zero_extract_xor,
35581         tstsi_t_zero_extract_subreg_xor_little,
35582         tstsi_t_zero_extract_subreg_xor_big): Delete.
35583         (*tstsi_t_shift_mask): New insn_and_split.
35584         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
35585         to recombine with surrounding insns when splitting.
35586         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
35587         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
35588         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
35589         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
35590         (*cbranch_div0s: Delete.
35591         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
35592         Try to recombine with surrounding insns when splitting.  Add operand
35593         order variants.
35594         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
35595         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
35596         *addc_r_r_msb, *addc_2r_msb): Delete.
35597         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
35598         order variant.
35599         (*addc_negreg_t): New insn_and_split.
35600         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
35601         Try to recombine with surrounding insns when splitting.
35602         Add operand order variants.
35603         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
35604         insn_and_split patterns.
35605         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
35606         surrounding insns when splitting.
35607         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
35608         (*rotcl): Likewise.  Add zero_extract variant.
35609         (*ashrsi2_31): New insn_and_split.
35610         (*negc): Convert to insn_and_split.  Use treg_set_expr.
35611         (*zero_extend<mode>si2_disp_mem): Update comment.
35612         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
35613         condition.
35614         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
35615         with surrounding insns when splitting.
35616         (any_treg_expr_to_reg): New insn_and_split.
35617         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
35618         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
35619         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
35620         *zero_extract_2): New single bit zero extract patterns.
35621         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
35622         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
35623         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
35624         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
35625         set destination.
35626         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
35627         register_operand for set source.
35629 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
35631         * i386.opt (prefetch_sse): New targetsave.
35632         * i386.c (ix86_function_specific_save): Save prefetch_sse.
35633         (ix86_function_specific_restore): Restore prefetch_sse and initialize
35634         ix86_cost/ix86_tune_cost.
35636 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
35638         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
35639         Support the JIT by using 0 as the language type.
35641 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
35643         PR target/64317
35644         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
35645         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
35646         (mark_regno_live, process_bb_lives): Pass new parameter value to
35647         make_hard_regno_born.
35649 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35651         PR rtl-optimization/63637
35652         PR rtl-optimization/60663
35653         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
35654         if elt->cost is MAX_COST for ASM_OPERANDS.
35655         (find_sets_in_insn): Fix up comment typo.
35656         (cse_insn): Don't set src_volatile for all non-volatile
35657         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
35658         or with "memory" clobber.  Set elt->cost to MAX_COST
35659         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
35660         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
35662 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
35664         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
35665         alternative 1.
35667 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
35669         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
35670         libgcc/config/i386/elf-lib.h.
35672 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35674         PR driver/64737
35675         * gcc.c (print_configuration): Don't print a blank line at the end
35676         here...
35677         (run_attempt): ... but here unstead.
35679         PR middle-end/64734
35680         * omp-low.c (scan_sharing_clauses): Don't ignore
35681         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
35682         on target data/update constructs.
35684 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35686         PR target/50928
35687         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
35688         (DEBUG_RELOAD): Removed define.
35689         (m32c_limit_reload_class): Enable traces with if DEBUG0.
35690         (m32c_function_arg): Added a type cast.
35691         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
35692         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
35693         * config/m32c/bitops.md (andqi3_16): Likewise.
35694         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
35695         (push_a01_l): Likewise.
35697 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
35699         PR jit/64721
35700         * main.c (main): Construct toplev instances with init_signals=true.
35701         * toplev.c (general_init): Add param "init_signals", and use it to
35702         conditionalize the calls to signal and host_hooks.extra_signals.
35703         (toplev::toplev): Add param "init_signals".
35704         (toplev::main): When invoking general_init, pass m_init_signals
35705         to control whether signal-handlers are installed.
35706         * toplev.h (toplev::toplev): Add param "init_signals".
35707         (toplev::m_init_signals): New field.
35709 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
35711         PR jit/64722
35712         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
35713         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
35714         latter may be affected by the former (e.g. on i686).
35716 2015-01-23  Martin Liska  <mliska@suse.cz>
35718         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
35719         false positive during profiledbootstrap.
35721 2015-01-23  Tom de Vries  <tom@codesourcery.com>
35723         PR libgomp/64672
35724         * lto-opts.c (lto_write_options): Output non-explicit conservative
35725         -fno-openacc.
35726         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
35727         (append_compiler_options): Pass -fopenacc through.
35729 2015-01-23  Tom de Vries  <tom@codesourcery.com>
35731         PR libgomp/64707
35732         * lto-opts.c (lto_write_options): Output non-explicit conservative
35733         -fno-openmp.
35734         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
35735         (append_compiler_options): Pass -fopenmp through.
35737 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35739         PR debug/64511
35740         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
35741         GTY markup.
35743         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
35744         * diagnostic.def (DK_ICE_NOBT): New kind.
35745         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
35746         like DK_ICE, but never print backtrace.
35747         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
35748         (internal_error_no_backtrace): New function.
35749         * gcc.c (execute): Use internal_error_no_backtrace instead of
35750         internal_error.
35752 2015-01-22  Jeff Law  <law@redhat.com>
35754         PR target/52076
35755         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
35756         improve code density for small immediate to memory case.
35757         (insv): Better handle bitfield assignments when the field is
35758         being set to all ones.
35759         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
35760         operand predicate.
35762 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35763             Jakub Jelinek  <jakub@redhat.com>
35765         PR middle-end/64729
35766         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
35767         for !TARGET_LIBC_PROVIDES_SSP version and
35768         -fstack-protector-{all,strong,explicit} otherwise.
35769         * config/freebsd.h (LINK_SSP_SPEC): Handle
35770         -fstack-protector-{strong,explicit}.
35772 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
35773             H.J. Lu  <hongjiu.lu@intel.com>
35775         PR ipa/64694
35776         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
35777         heap.
35779 2015-01-22  Wei Mi  <wmi@google.com>
35781         PR rtl-optimization/64557
35782         * dse.c (record_store): Call get_addr for mem_addr.
35783         (check_mem_read_rtx): Likewise.
35785 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
35787         * fold-const.c (const_binop): Add early return for non-tcc_binary.
35789 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
35791         * toplev.c (init_local_tick): Process the failure when read
35792         fails for random_seed.
35794         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
35795         'pretty_name' to avoid memory overflow.
35797 2015-01-22  Richard Biener  <rguenther@suse.de>
35799         PR middle-end/64728
35800         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
35801         abnormal coalescing on undefined SSA names.
35803 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
35805         PR target/64688
35806         PR target/64477
35807         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
35808         for alternative 3.
35809         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
35811 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
35813         PR middle-end/63325
35814         * fold-const.c (fold_checksum_tree): Don't include value of
35815         expr->decl_with_vis.symtab_node in the checksum.
35817 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35819         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
35821 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35823         PR driver/64690
35824         * gcc.c (insert_comments): New function.
35825         (try_generate_repro): Call it.
35826         (append_text): Removed.
35828 2015-01-22  Richard Biener  <rguenther@suse.de>
35830         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
35831         with IL incompatible options.  Properly honor user optimize
35832         attributes.
35834 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
35836         PR rtl-optimization/64682
35837         * combine.c (distribute_notes): When moving a death note for
35838         a register that is set in the new I2, make sure to put it
35839         before that new I2.
35841 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
35843         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
35844         not TARGET_DEFAULT.
35846 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
35848         PR debug/64511
35849         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
35850         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
35851         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
35853         PR sanitizer/64706
35854         * doc/invoke.texi (-fsanitize=vptr): Document.
35856         PR rtl-optimization/62078
35857         * dse.c: Include cfgcleanup.h.
35858         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
35859         anything call purge_all_dead_edges and cleanup_cfg at the end
35860         of the pass.
35862 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
35864         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
35865         edges.
35867 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35869         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
35870         decl attribute.
35872 2015-01-21  David Sherwood  <david.sherwood@arm.com>
35873             Tejas Belagod <Tejas.Belagod@arm.com>
35875         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
35876         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
35877         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
35878         Removed.
35880 2015-01-21  David Sherwood  <david.sherwood@arm.com>
35881             Tejas Belagod <Tejas.Belagod@arm.com>
35883         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
35884         (aarch64_reverse_mask): New decls.
35885         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
35886         (insn_count): New mode_attr.
35887         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
35888         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
35889         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
35890         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
35891         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
35892         (aarch64_simd_st4): New patterns.
35893         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
35894         (aarch64_reverse_mask): New functions.
35896 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
35898         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
35899         Declare.
35900         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
35901         addressing modes for BE.
35902         (aarch64_print_operand): Add 'R' specifier.
35903         (aarch64_simd_disambiguate_copy): Delete.
35904         (aarch64_simd_emit_reg_reg_move): New function.
35905         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
35906         in define_splits for structural moves.
35907         (mov<mode>): Use less restrictive predicates.
35908         (*aarch64_mov<mode>): Simplify and only allow for LE.
35909         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
35911 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
35913         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
35915 2015-01-21  Richard Henderson  <rth@redhat.com>
35917         PR target/64669
35918         * ccmp.c (used_in_cond_stmt_p): Remove.
35919         (expand_ccmp_expr): Don't use it.
35921 2015-01-21  Nick Clifton  <nickc@redhat.com>
35923         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
35924         PARALLELs.
35926 2015-01-21  Richard Biener  <rguenther@suse.de>
35928         PR middle-end/64313
35929         * tree-core.h (builtin_info, builtin_info_type): Turn from
35930         an object with two arrays into an array of an object with
35931         decl and two flags, implicit_p and declared_p.
35932         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
35933         set_builtin_decl, set_builtin_decl_implicit_p,
35934         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
35935         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
35936         * builtins.c (builtin_info): Adjust.
35937         * gimplify.c (gimplify_addr_expr): References to builtins
35938         that have been declared by the user makes them eligible for
35939         use by the compiler.  Call set_builtin_decl_implicit_p on them.
35941 2015-01-20  Jeff Law  <law@redhat.com>
35943         PR target/59946
35944         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
35945         allow pc-relative addresses in operand predicates or constraints.
35947 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
35949         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
35950         neon on aarch32 processors for stringops.
35952 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35954         PR ipa/63576
35955         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
35957 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35959         PR lto/45375
35960         * ipa-inline.c: Include lto-streamer.h
35961         (report_inline_failed_reason): Output source file differences and
35962         flags on optimization/target node mismatch.
35963         (can_inline_edge_p): Consider caller to be the outer inline function;
35964         be less restrictive about matching opimize and optimize_size attributes.
35965         (inline_account_function_p): Break out from ...
35966         (inline_small_functions): ... here.
35967         * ipa-inline-transform.c (clone_inlined_nodes): Use
35968         inline_account_function_p.
35969         (inline_call): Use optimize attribution; use inline_account_function_p.
35970         (inline_transform): Use opt_for_fn.
35971         * ipa-inline.h (inline_account_function_p): Declare.
35973 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
35975         PR debug/64663
35976         * dwarf2out.c (decl_piece_node): Don't put bitsize into
35977         mode if bitsize <= 0.
35978         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
35979         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
35980         sizes and positions.
35982 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
35984         * config/nios2/nios2.c (nios2_asm_file_end): Implement
35985         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
35986         needed.
35987         (TARGET_ASM_FILE_END): Define.
35989 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35991         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
35992         (struct tune_params): Use the enum.
35993         * arm.c (arm_*_tune): Update.
35994         (arm_option_override): Update.
35996 2015-01-20  Richard Biener  <rguenther@suse.de>
35998         PR ipa/64684
35999         * ipa-reference.c (add_static_var): Inline ...
36000         (analyze_function): ... here after splitting out from ...
36001         (is_proper_for_analysis): ... this.
36003 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
36005         PR target/64149
36006         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
36007         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
36008         replace the conditional with it's true branch.
36009         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
36010         (arm_lra_p): Remove.
36012 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
36014         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
36016 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36018         * config/tilegx/mul-tables.c: Move symtab.h include after
36019         coretypes.h include.
36020         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
36021         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
36022         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
36023         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
36024         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36026 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
36028         PR bootstrap/64676
36029         Revert:
36030         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
36032         PR rtl-optimization/64081
36033         * loop-iv.c (def_pred_latch_p): New function.
36034         (latch_dominating_def): Allow specific cases with non-single
36035         definitions.
36036         (iv_get_reaching_def): Likewise.
36037         (check_complex_exit_p): New function.
36038         (check_simple_exit): Use check_complex_exit_p to allow certain cases
36039         with exits not executing on any iteration.
36041 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36043         PR lto/45375
36044         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
36045         to set branch cost.
36047 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36049         PR lto/45375
36050         * i386.c (gate): Check flag_expensive_optimizations and
36051         optimize_size.
36052         (ix86_option_override_internal): Drop optimize_size condition
36053         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
36054         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
36055         MASK_PREFER_AVX128.
36056         (ix86_avx256_split_vector_move_misalign,
36057         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
36058         * sse.md (all uses of TARGET_PREFER_AVX128): Add
36059         optimize_insn_for_speed_p check.
36061 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
36063         * config/mips/mips.h (FP_ASM_SPEC): New define.
36064         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
36065         instead.
36067 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
36069         PR target/53988
36070         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
36071         nullptr for insn when reaching the first insn.
36072         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
36073         (sh_insn_operands_modified_between_p): Add nullptr check.
36074         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
36075         sign extending mem load if the insn contains any UNSPEC or
36076         UNSPEC_VOLATILE.
36078 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36080         * params.def (inline-unit-growth): Drop to 15%.
36081         * invoke.texi (inline-unit-growth): Document change.
36083 2015-01-19  Martin Liska  <mliska@suse.cz>
36085         PR ipa/64668
36086         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
36087         function for second argument of OBJ_TYPE_REF.
36089 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36091         PR ipa/64218
36092         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
36093         whether function is an alias.
36095 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36097         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
36098         cases.
36100 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
36102         PR rtl-optimization/64671
36103         * lra-remat.c (operand_to_remat): Don't consider jump and call
36104         insns.
36106 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
36108         PR target/59828
36109         * config/rs6000/default64.h: Include rs6000-cpus.def.
36110         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
36111         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
36112         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
36113         and POWER8.
36114         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
36115         POWER8.
36116         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
36117         pseudo-op to specify assembler dialect.
36119 2015-01-19  Martin Liska  <mliska@suse.cz>
36121         PR ipa/64664
36122         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
36123         Handle safe potentially removed nodes during filtering.
36125 2015-01-19  Martin Liska  <mliska@suse.cz>
36127         * doc/extend.texi (no_icf): Add new attribute description.
36128         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
36129         where the pass attempts to merge a function with no_icf attribute.
36131 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36133         PR target/64532
36134         * doc/md.texi (ARM Options): Document register constraints.
36136 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
36137             Andrew Pinski  <apinski@cavium.com>
36139         PR target/64304
36140         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
36141         (ashl<mode>3): Don't expand if operands[2] is not constant.
36143 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36145         PR target/64448
36146         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
36147         Match xor-and-xor RTL pattern.
36149 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
36151         PR rtl-optimization/64081
36152         * loop-iv.c (def_pred_latch_p): New function.
36153         (latch_dominating_def): Allow specific cases with non-single
36154         definitions.
36155         (iv_get_reaching_def): Likewise.
36156         (check_complex_exit_p): New function.
36157         (check_simple_exit): Use check_complex_exit_p to allow certain cases
36158         with exits not executing on any iteration.
36160 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
36162         * common.opt (fgraphite): Fix a typo.
36164 2015-01-19  Felix Yang  <felix.yang@huawei.com>
36166         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
36167         pattern.
36168         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
36169         uminp, smax_nanp, smin_nanp): New builtins.
36170         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
36171         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
36172         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
36173         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
36174         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
36175         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
36176         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
36177         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
36178         vpminnms_f32): Rewrite using builtin functions.
36180 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
36182         PR libgomp/64625
36183         * omp-low.c (offload_symbol_decl): Remove variable.
36184         (get_offload_symbol_decl): Remove function.
36185         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
36186         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
36187         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
36188         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
36189         BUILT_IN_GOACC_UPDATE don't pass it at all.
36191 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
36193         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
36194         callers.
36196 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
36198         * ipa-chkp.c (chkp_produce_thunks): Add early param
36199         to split thunks production into two passes.  Keep
36200         'always_inline' function bodies after the first pass.
36201         (pass_data_ipa_chkp_early_produce_thunks): New.
36202         (pass_ipa_chkp_early_produce_thunks): New.
36203         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
36204         chkp_produce_thunks signature.
36205         (make_pass_ipa_chkp_early_produce_thunks): New.
36206         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
36207         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
36208         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
36210 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
36212         * cgraph.c (cgraph_node::dump): Dump profile flags.
36214 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
36216         PR target/64652
36217         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
36218         reg appear first in the parallel.
36220 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
36222         * ipa-reference.c (set_reference_optimization_summary,
36223         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
36224         disabled.
36225         (ignore_module_statics): New static var.
36226         (propagate_bits): If ipa-reference is disabled, do not look into local
36227         properties.
36228         (analyze_function): Disable analysis when ipa_reference is disabled.
36229         (generate_summary): Do not dump when reference is disabled;
36230         collect vars accessed from functions with ipa-reference disabled.
36231         (get_read_write_all_from_node): When ipa-reference is disabled, use the
36232         node flags.
36233         (gate): Enable for LTO.
36234         (ignore_edge_p): New function.
36235         (propagate): Skip functions w/o ipa-reference analysis.
36236         * optc-save-gen.awk: Handle optimize_debug correctly.
36237         * opth-gen.awk: Likewise.
36238         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
36239         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
36240         fira-share-save-slots, fira-share-spill-slots,
36241         fmodulo-sched-allow-regmoves, fpartial-inlining,
36242         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
36243         ftracer, ftree-parallelize-loops, fassociative-math,
36244         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
36245         Optimization
36246         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
36247         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
36248         Optimization.
36249         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
36250         Fix for IPA.
36252 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
36254         PR ipa/64378
36255         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
36256         flag correctly.
36257         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
36259 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
36261         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
36262         Remove duplicate option listings.
36264 2015-01-18  Felix Yang  <felix.yang@huawei.com>
36266         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
36267         (autofdo_source_profile::get_callsite_total_count,
36268         function_instance::get_function_instance_by_decl,
36269         string_table::get_index, string_table::get_index_by_decl,
36270         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
36271         Fix comment typos. Reformatting and minor code rearrangement.
36273 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
36275         * config/rs6000/rs6000.md (probe_stack): Delete.
36276         (probe_stack_address): New.
36278 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
36280         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
36281         to test for 32-bit ABIs, not !TARGET_POWERPC64.
36283 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
36285         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
36286         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
36287         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
36288         snafu.
36289         (rs6000_libcall_value): Use the new function.
36291 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
36293         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
36295 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
36297         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
36298         implement a more precise life analysis for it during backward scan.
36300 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
36302         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
36304 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
36306         PR rtl-optimization/52773
36307         * calls.c (emit_library_call_value): When pushing arguments use
36308         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
36309         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
36310         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
36312 2015-01-17  Jeff Law  <law@redhat.com>
36314         PR rtl-optimization/32790
36315         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
36316         not ZERO_EXTEND in SET_DESTs.
36318 2015-01-17  Alan Modra  <amodra@gmail.com>
36320         * cprop.c (do_local_cprop): Revert last change.
36322 2015-01-16  DJ Delorie  <dj@redhat.com>
36323             Nick Clifton  <nickc@redhat.com>
36325         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
36326         (addhi3_real): Likewise.  Fix [HL+0] syntax.
36327         (subqi3_real): Likewise.
36328         (subhi3_real): Likewise.
36329         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
36330         (cbranchhi4_real): Likewise.
36331         (cbranchhi4_real_inverted): Likewise.
36332         (cbranchsi4_real_lt): Likewise.
36333         (cbranchsi4_real_ge): Likewise.
36334         (cbranchsi4_real_ge): Likewise.
36335         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
36336         (sub<mode>3_virt): Likewise.
36337         (cbranchqi4_virt): Likewise.
36338         (cbranchhi4_virt): Likewise.
36339         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
36340         always use '[reg+imm]' even when imm is zero.
36341         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
36342         (rl78_general_operand): New.
36343         (rl78_nonimmediate_operand): New.
36344         (rl78_nonfar_operand): Use them.
36345         (rl78_nonfar_nonimm_operand): Likewise.
36346         (rl78_stack_based_mem): Fix.
36347         * config/rl78/constraints.md (Ibqi): New.
36348         (IBqi): New.
36349         (Wsa): New.
36350         (Wsf): New.
36351         (Cs1): Fix.
36352         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
36353         (iorqi3): Likewise.
36354         (xorqi3): Likewise.
36355         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
36357         * config/rl78/constrains (Qs8): New constraint.
36358         * config/rl78/rl78.c (rl78_flags_already_set): New function.
36359         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
36360         * config/rl78/rl78-real.md (update_Z): New attribute.
36361         Update patterns to set it.
36362         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
36363         shorter compare and branch sequence can be used.
36364         (cbranchhi4_real): Likewise.
36365         (cbranchhi4_real_inverted): Likewise.
36367         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
36368         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
36369         address space.
36370         * config/rl78/rl78.c (rl78_get_name_encoding): New.
36371         (rl78_option_override): Allow -mes0 only if C.
36372         (characterize_address): Support subregs of symbol_refs.
36373         (rl78_addr_space_address_mode): Move.  Add __near.
36374         (rl78_far_p): Likewise.
36375         (rl78_addr_space_pointer_mode): Likewise.
36376         (rl78_as_legitimate_address): Likewise.
36377         (rl78_addr_space_subset_p): Likewise.
36378         (rl78_addr_space_convert): Likewise.
36379         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
36380         symbols with -mes0.
36381         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
36382         addressing.
36383         (rl78_alloc_physical_registers_op1): Change logic to prefer
36384         symbol[BC] addressing.
36385         (frodata_section): New.
36386         (rl78_asm_init_sections): Initialize it.
36387         (rl78_select_section): Put __far readonly symbols in .frodata.
36388         (rl78_make_type_far): New.
36389         (rl78_insert_attributes): Force all readonly symbols to be
36390         __far when -mes0.
36391         (rl78_asm_out_integer): New.
36392         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
36393         * config/rl78/rl78.opt (-mes0): New.
36395         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
36396         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
36397         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
36398         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
36399         (rl78_saddr_p): New.
36400         (rl78_output_aligned_common): New.
36401         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
36402         (rl78_handle_saddr_attribute): New.
36403         (rl78_handle_naked_attribute): New.
36404         (rl78_attribute_table): Add saddr.
36405         (rl78_print_operand_1): Don't print '!' on saddr operands.
36406         (rl78_print_operand_1): Strip encodings.
36407         (rl78_sfr_p): New.
36408         (rl78_strip_name_encoding): New.
36409         (rl78_attrlist_to_encoding): New.
36410         (rl78_encode_section_info): New.
36411         (rl78_asm_init_sections): New.
36412         (rl78_select_section): New.
36413         (rl78_output_labelref): New.
36414         (rl78_output_aligned_common): New.
36415         (rl78_asm_out_integer): New.
36416         (rl78_asm_ctor_dtor): New.
36417         (rl78_asm_constructor): New.
36418         (rl78_asm_destructor): New.
36420         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
36421         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
36422         (transcode_memory_rtx): Update.
36423         (rl78_expand_epilogue): Use A_REG instead of 0.
36425 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36427         * config/arm/arm-protos.h (struct tune_params): New field
36428         sched_autopref_queue_depth.
36429         * config/arm/arm.c (sched-int.h): Include header.
36430         (arm_first_cycle_multipass_dfa_lookahead_guard,)
36431         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
36432         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
36433         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
36434         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
36435         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
36436         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
36437         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
36438         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
36439         * config/arm/t-arm (arm.o): Update.
36440         * haifa-sched.c (update_insn_after_change): Update.
36441         (rank_for_schedule): Use auto-prefetcher model, if requested.
36442         (autopref_multipass_init): New static function.
36443         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
36444         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
36445         variable for debug dumps.
36446         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
36447         (autopref_multipass_dfa_lookahead_guard): New global function that
36448         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
36449         (init_h_i_d): Update.
36450         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
36451         * sched-int.h (enum autopref_multipass_data_status): New const enum.
36452         (autopref_multipass_data_): Structure for auto-prefetcher data.
36453         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
36454         (struct _haifa_insn_data:autopref_multipass_data): New field.
36455         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
36456         (autopref_multipass_dfa_lookahead_guard): Declare.
36458 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36460         * rtlanal.c (get_base_term): Handle SCRATCH.
36462 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36464         * config/aarch64/aarch64.c
36465         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
36466         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36467         * config/arm/arm.c
36468         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
36469         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36471 2015-01-17  Alan Modra  <amodra@gmail.com>
36473         * cprop.c (do_local_cprop): Disallow replacement of fixed
36474         hard registers.
36476 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36478         PR target/62066
36479         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
36480         early return 0.
36482 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36484         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
36485         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
36487 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36489         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
36490         * config/arm/thumb1.md: ... Here.
36492 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36494         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
36495         TImode for TARGET_32BIT.
36497 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36499         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
36500         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
36501         as ...
36502         (rs6000_abi_word_mode): New function.
36504 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36506         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
36507         instead of UNITS_PER_WORD to describe the size of stack slots.
36509 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36511         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
36512         as rs6000_promote_function_mode.  Move comment to there.
36513         (rs6000_promote_function_mode): New function.
36515 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36517         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
36518         -mpowerpc64 is active.
36520 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
36522         PR middle-end/64353
36523         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
36524         virtuals on start.
36526 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
36528         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
36529         introduced in revision 219724.
36531 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36532             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36534         PR target/64263
36535         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
36536         destination is not a GP reg.
36537         (*movdi_aarch64): Likewise.
36539 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
36541         PR target/64623
36542         * config/rs6000/default64.h: Revert ISA change.
36544 2015-01-16  Richard Biener  <rguenther@suse.de>
36546         PR middle-end/64614
36547         * tree-ssa-uninit.c: Include tree-cfg.h.
36548         (MAX_SWITCH_CASES): New define.
36549         (convert_control_dep_chain_into_preds): Handle switch statements.
36550         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
36551         (normalize_one_pred_1): Do not split bit-manipulations.
36552         Record (x & CST).
36554 2015-01-16  Richard Biener  <rguenther@suse.de>
36556         PR tree-optimization/64568
36557         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
36558         complex load rewriting for TARGET_MEM_REFs.
36560 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
36562         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
36564 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
36566         PR target/64149
36567         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
36568         variable.
36569         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
36570         (aarch64_lra_p): Remove.
36572 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
36574         PR target/64363
36575         * ipa-chkp.h (chkp_instrumentable_p): New.
36576         * ipa-chkp.c: Include tree-inline.h.
36577         (chkp_instrumentable_p): New.
36578         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
36579         Fix processing of not instrumentable functions.
36580         (chkp_versioning): Use chkp_instrumentable_p. Warn about
36581         not instrumentable functions.
36582         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
36583         chkp_instrumentable_p.
36584         * tree-inline.h (copy_forbidden): New.
36585         * tree-inline.c (copy_forbidden): Not static anymore.
36587 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36589         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
36590         ptr1, ptr2 unused.
36592 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
36594         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
36595         type OP_OUT to OP_INOUT.
36597 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
36599         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
36600         (high x) y) to y if x and y have the same base.
36602 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
36604         * config/arm/cortex-a57.md: New.
36605         * config/aarch64/aarch64.md: Include it.
36606         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
36607         * config/aarch64/aarch64-tune.md: Regenerate.
36609 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
36611         PR target/64015
36612         * ccmp.c (expand_ccmp_next): New function.
36613         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
36614         and compare insn sequence.
36615         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
36616         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
36617         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
36618         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
36619         (*ccmp_ior): Changed to ccmp_ior<mode>.
36620         (cmp<mode>): New pattern.
36621         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
36622         parameters.
36623         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
36625 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
36627         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
36628         _mm256_bsrli_epi128): New.
36629         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
36631 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
36633         * expmed.c (store_bit_field_using_insv): Improve warning message.
36634         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
36636 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
36638         PR rtl-optimization/64011
36639         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
36640         there is partial overflow.
36642 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36644         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
36645         prototype.
36646         (nds32_expand_epilogue_v3pop): Likewise.
36647         * config/nds32/nds32.md (sibcall): Define this for sibling call
36648         optimization.
36649         (sibcall_register): Likewise.
36650         (sibcall_immediate): Likewise.
36651         (sibcall_value): Likewise.
36652         (sibcall_value_register): Likewise.
36653         (sibcall_value_immediate): Likewise.
36654         (sibcall_epilogue): Likewise.
36655         (epilogue): Pass false to indicate this is not a sibcall epilogue.
36656         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
36657         (nds32_expand_epilogue_v3pop): Likewise.
36659 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36661         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
36662         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
36663         (return_internal): New.
36664         (return): Define this named pattern.
36665         (simple_return): Define this named pattern.
36666         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
36667         pattern instead of unspec_volatile_func_return.
36668         (nds32_expand_epilogue_v3pop): Likewise.
36669         (nds32_can_use_return_insn): New function.
36671 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36673         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
36674         * config/nds32/nds32.md (pop25return): New.
36675         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
36676         pop25return pattern.
36678 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36680         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
36681         -mforbid-fp-as-gp, and -mex9 options.
36683 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36685         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
36686         remove -mgp-direct option.
36688 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36690         * doc/invoke.texi (--param early-inlining-insns): Update default value.
36691         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
36693 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36695         * ipa-inline.c (inline_small_functions): Work around hints
36696         cache issue.
36698 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
36700         PR target/59710
36701         * doc/invoke.texi (Option Summary): Document new Nios II
36702         -mgpopt= syntax.
36703         (Nios II Options): Likewise.
36704         * config/nios2/nios2.opt: Add -mgpopt= option support.
36705         Modify existing -mgpopt and -mno-gpopt options to be aliases.
36706         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
36707         * config/nios2/nios2.c (nios2_option_override): Adjust
36708         -mgpopt defaulting.
36709         (nios2_in_small_data_p): Return true for explicit small data
36710         sections even with -G0.
36711         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
36712         option choices.
36714 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36716         PR ipa/64612
36717         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
36718         of comdat locals.
36719         (inline_call): Fix removal of aliases.
36721 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
36723         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
36724         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
36725         * opts.c (common_handle_option): Add -fsanitize=vptr.
36726         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
36727         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
36728         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
36729         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
36730         (ubsan_expand_vptr_ifn): New prototype.
36731         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
36732         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
36733         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
36734         expand_LOOP_VECTORIZED): Make argument nameless, remove
36735         ATTRIBUTE_UNUSED.
36736         (expand_UBSAN_VPTR): New function.
36737         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
36738         in fn spec.
36739         (UBSAN_VPTR): New internal function.
36740         * sanopt.c (tree_map_traits): Renamed to ...
36741         (sanopt_tree_map_traits): ... this.
36742         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
36743         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
36744         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
36745         (maybe_optimize_ubsan_vptr_ifn): New function.
36746         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
36747         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
36748         -fsanitize=vptr.
36749         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
36750         internal calls like pure functions for aliasing, even when they
36751         have other side-effects that prevent making them ECF_PURE.
36752         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
36753         (ubsan_expand_vptr_ifn): New function.
36755 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
36757         PR rtl-optimization/64110
36758         * stmt.c (parse_output_constraint): Process '^' and '$'.
36759         (parse_input_constraint): Ditto.
36760         * lra-constraints.c (process_alt_operands): Process the new
36761         constraints.
36762         * ira-costs.c (record_reg_classes): Process the new constraint
36763         '^'.
36764         * genoutput.c (indep_constraints): Add '^' and '$'.
36765         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
36766         * doc/md.texi: Add description of the new constraints.
36768 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
36769             Bernd Schmidt  <bernds@codesourcery.com>
36770             Cesar Philippidis  <cesar@codesourcery.com>
36771             James Norris  <jnorris@codesourcery.com>
36772             Tom de Vries  <tom@codesourcery.com>
36773             Ilmir Usmanov  <i.usmanov@samsung.com>
36774             Dmitry Bocharnikov  <dmitry.b@samsung.com>
36775             Evgeny Gavrin  <e.gavrin@samsung.com>
36776             Jakub Jelinek  <jakub@redhat.com>
36778         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
36779         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36780         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36781         New function types.
36782         * builtins.c: Include "gomp-constants.h".
36783         (expand_builtin_acc_on_device): New function.
36784         (expand_builtin, is_inexpensive_builtin): Handle
36785         BUILT_IN_ACC_ON_DEVICE.
36786         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
36787         New macros.
36788         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
36789         flag_openmp.
36790         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
36791         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
36792         i386/intelmic-offload.h.
36793         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
36794         to libgomp and its dependencies.
36795         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
36796         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
36797         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
36798         * config/ia64/hpux.h (LIB_SPEC): Likewise.
36799         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36800         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
36801         * doc/generic.texi: Update for OpenACC changes.
36802         * doc/gimple.texi: Likewise.
36803         * doc/invoke.texi: Likewise.
36804         * doc/sourcebuild.texi: Likewise.
36805         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
36806         GF_OMP_FOR_KIND_OACC_LOOP.
36807         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
36808         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
36809         GF_OMP_TARGET_KIND_OACC_UPDATE,
36810         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36811         Dump more data.
36812         * gimple.c: Update comments for OpenACC changes.
36813         * gimple.def: Likewise.
36814         * gimple.h: Likewise.
36815         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
36816         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36817         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
36818         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36819         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
36820         appropriate place.
36821         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
36822         * gimplify.c: Include "gomp-constants.h".
36823         Update comments for OpenACC changes.
36824         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
36825         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
36826         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36827         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
36828         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36829         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36830         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
36831         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36832         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
36833         OMP_CLAUSE_SEQ.
36834         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
36835         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
36836         OMP_CLAUSE_SET_MAP_KIND.
36837         (gimplify_oacc_cache): New function.
36838         (gimplify_omp_for): Handle OACC_LOOP.
36839         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
36840         OACC_DATA.
36841         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
36842         OACC_EXIT_DATA, OACC_UPDATE.
36843         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
36844         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
36845         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
36846         (gimplify_body): Consider flag_openacc next to flag_openmp.
36847         * lto-streamer-out.c: Include "gomp-constants.h".
36848         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
36849         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
36850         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
36851         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
36852         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
36853         (BUILT_IN_ACC_ON_DEVICE): New builtins.
36854         * omp-low.c: Include "gomp-constants.h".
36855         Update comments for OpenACC changes.
36856         (struct omp_context): Add reduction_map, gwv_below, gwv_this
36857         members.
36858         (extract_omp_for_data, use_pointer_for_field, install_var_field)
36859         (new_omp_context, delete_omp_context, scan_sharing_clauses)
36860         (create_omp_child_function, scan_omp_for, scan_omp_target)
36861         (check_omp_nesting_restrictions, lower_reduction_clauses)
36862         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
36863         Update for OpenACC changes.
36864         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
36865         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
36866         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
36867         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36868         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
36869         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
36870         OMP_CLAUSE_MAP_*.
36871         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
36872         Handle GF_OMP_FOR_KIND_OACC_LOOP.
36873         (expand_omp_target, lower_omp_target): Handle
36874         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36875         GF_OMP_TARGET_KIND_OACC_UPDATE,
36876         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
36877         GF_OMP_TARGET_KIND_OACC_DATA.
36878         (pass_expand_omp::execute, execute_lower_omp)
36879         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
36880         flag_openmp.
36881         (offload_symbol_decl): New variable.
36882         (oacc_get_reduction_array_id, oacc_max_threads)
36883         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
36884         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
36885         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
36886         (oacc_gimple_assign, oacc_initialize_reduction_data)
36887         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
36888         functions.
36889         (is_targetreg_ctx): Remove function.
36890         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
36891         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
36892         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36893         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
36894         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
36895         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
36896         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
36897         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
36898         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
36899         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
36900         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
36901         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
36902         * tree-core.h: Update comments for OpenACC changes.
36903         (enum omp_clause_map_kind): Remove.
36904         (struct tree_omp_clause): Change type of map_kind member from enum
36905         omp_clause_map_kind to unsigned char.
36906         * tree-inline.c: Update comments for OpenACC changes.
36907         * tree-nested.c: Likewise.  Include "gomp-constants.h".
36908         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
36909         (convert_tramp_reference_stmt, convert_gimple_call): Update for
36910         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
36911         OMP_CLAUSE_SET_MAP_KIND.
36912         * tree-pretty-print.c: Include "gomp-constants.h".
36913         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
36914         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
36915         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
36916         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
36917         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36918         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
36919         instead of OMP_CLAUSE_MAP_*.
36920         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
36921         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
36922         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36923         * tree-streamer-in.c: Include "gomp-constants.h".
36924         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
36925         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
36926         * tree-streamer-out.c: Include "gomp-constants.h".
36927         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
36928         OMP_CLAUSE_MAP_*.
36929         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
36930         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
36931         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
36932         * tree.c (omp_clause_num_ops): Update accordingly.
36933         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
36934         Likewise.
36935         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
36936         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
36937         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
36938         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
36939         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
36940         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
36941         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
36942         (OMP_CLAUSE_SET_MAP_KIND): New macro.
36943         * varpool.c (varpool_node::get_create): Consider flag_openacc next
36944         to flag_openmp.
36945         * config/i386/intelmic-offload.h: New file.
36946         * config/nvptx/offload.h: Likewise.
36948 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36950         * explow.h: Remove duplicate contents.
36951         * dojump.h: Likewise.
36953 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
36955         * arm.c (arm_xgene_tune): Add default initializer for instruction
36956         fusion.
36958 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36960         PR ipa/64068
36961         PR ipa/64559
36962         * ipa.c (symbol_table::remove_unreachable_nodes):
36963         Do not put abstract origins into boundary.
36965 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
36967         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
36968         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
36970 2015-01-15  Steve Ellcey  <sellcey@mips.com>
36972         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
36973         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
36974         builtins.def, and chkp-builtins.def.
36976 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
36978         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
36979         ISA 2.7 (POWER8).
36981 2015-01-15  Richard Biener  <rguenther@suse.de>
36983         PR tree-optimization/61743
36984         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
36985         information on PHIs for some simple cases.
36987 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36989         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
36990         Include xgene1.md.
36991         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
36992         * config/arm/arm-cores.def (xgene1): New entry.
36993         * config/arm/arm-tables.opt: Regenerate.
36994         * config/arm/arm-tune.md: Regenerate.
36995         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
36997 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
36999         * tree-if-conv.c: Include hash-map.h.
37000         (aggressive_if_conv): New variable.
37001         (fold_build_cond_expr): Add simplification of non-zero condition.
37002         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
37003         destination block is not always executed.
37004         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
37005         than two predecessors if AGGRESSIVE_IF_CONV is true.
37006         (if_convertible_stmt_p): Fix commentary.
37007         (all_preds_critical_p): New function.
37008         (has_pred_critical_p): New function.
37009         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
37010         BB can have more than two predecessors and all incoming edges can be
37011         critical.
37012         (predicate_bbs): Skip predication for loop exit block, use build2_loc
37013         to compute predicate for true edge.
37014         (find_phi_replacement_condition): Delete this function.
37015         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
37016         Allow interchange PHI arguments if EXTENDED is false.
37017         Change check that block containing reduction statement candidate
37018         is predecessor of phi-block since phi may have more than two arguments.
37019         (phi_args_hash_traits): New helper structure.
37020         (struct phi_args_hash_traits): New type.
37021         (phi_args_hash_traits::hash): New function.
37022         (phi_args_hash_traits::equal_keys): New function.
37023         (gen_phi_arg_condition): New function.
37024         (predicate_scalar_phi): Add handling of phi nodes with more than two
37025         arguments, delete COND and TRUE_BB arguments, insert body of
37026         find_phi_replacement_condition to predicate ordinary phi nodes.
37027         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
37028         delete call of find_phi_replacement_condition and invoke
37029         predicate_scalar_phi with two arguments.
37030         (insert_gimplified_predicates): Add assert that non-predicated block
37031         don't have statements to insert.
37032         (ifcvt_split_critical_edges): New function.
37033         (ifcvt_split_def_stmt): Likewise.
37034         (ifcvt_walk_pattern_tree): Likewise.
37035         (stmt_is_root_of_bool_pattern): Likewise.
37036         (ifcvt_repair_bool_pattern): Likewise.
37037         (ifcvt_local_dce): Likewise.
37038         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
37039         is copy of inner or outer loop force_vectorize field, invoke
37040         ifcvt_split_critical_edges, ifcvt_local_dce and
37041         ifcvt_repair_bool_pattern for aggressive if-conversion.
37043 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
37045         * config/aarch64/aarch64.md: Include xgene1.md.
37046         * config/aarch64/xgene1.md: New file.
37048 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
37050         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
37051         xgene1 (APM XGene-1) core definition.
37052         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
37053         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
37054         * doc/invoke.texi: Document -mcpu=xgene1.
37056 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37058         * dojump.h: New header file.
37059         * explow.h: Likewise.
37060         * expr.h: Remove includes.
37061         Move expmed.c prototypes to expmed.h.
37062         Move dojump.c prototypes to dojump.h.
37063         Move alias.c prototypes to alias.h.
37064         Move explow.c prototypes to explow.h.
37065         Move calls.c prototypes to calls.h.
37066         Move emit-rtl.c prototypes to emit-rtl.h.
37067         Move varasm.c prototypes to varasm.h.
37068         Move stmt.c prototypes to stmt.h.
37069         (saved_pending_stack_adjust): Move to dojump.h.
37070         (adjust_address): Move to explow.h.
37071         (adjust_address_nv): Move to emit-rtl.h.
37072         (adjust_bitfield_address): Likewise.
37073         (adjust_bitfield_address_size): Likewise.
37074         (adjust_bitfield_address_nv): Likewise.
37075         (adjust_automodify_address_nv): Likewise.
37076         * explow.c (expr_size): Move to expr.c.
37077         (int_expr_size): Likewise.
37078         (tree_expr_size): Likewise.
37079         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37080         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37081         * genemit.c (main): Generate includes statistics.h, real.h,
37082         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
37083         stmt.h.
37084         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
37085         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
37086         explow.h, emit-rtl.h, stmt.h.
37087         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
37088         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
37089         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
37090         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
37091         emit-rtl.h, varasm.h, stmt.h.
37092         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
37093         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
37094         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
37095         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
37096         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37097         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
37098         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
37099         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
37100         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
37101         tm.h tree.h varasm.h vec.h wide-int.h.
37102         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37103         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37104         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
37105         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
37106         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
37107         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
37108         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
37109         * loop-iv.c: Likewise.
37110         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
37111         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
37112         statistics.h stmt.h tree.h varasm.h wide-int.h.
37113         * lra-constraints.c: Likewise.
37114         * lra-eliminations.c: Likewise.
37115         * lra-lives.c: Likewise.
37116         * lra-remat.c: Likewise.
37117         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37118         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
37119         statistics.h stmt.h tree.h varasm.h wide-int.h.
37120         * hw-doloop.c: Likewise.
37121         * ira-color.c: Likewise.
37122         * ira-emit.c: Likewise.
37123         * loop-doloop.c: Likewise.
37124         * loop-invariant.c: Likewise.
37125         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37126         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
37127         statistics.h stmt.h tree.h varasm.h wide-int.h.
37128         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
37129         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
37130         statistics.h stmt.h tree.h varasm.h wide-int.h.
37131         * combine-stack-adj.c: Likewise.
37132         * cse.c: Likewise.
37133         * ddg.c: Likewise.
37134         * ifcvt.c: Likewise.
37135         * ira-costs.c: Likewise.
37136         * jump.c: Likewise.
37137         * lra-coalesce.c: Likewise.
37138         * lra-spills.c: Likewise.
37139         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37140         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
37141         stmt.h varasm.h wide-int.h.
37142         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37143         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37144         varasm.h.
37145         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
37146         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
37147         statistics.h stmt.h varasm.h wide-int.h.
37148         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
37149         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
37150         varasm.h wide-int.h.
37151         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
37152         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37153         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
37154         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
37155         statistics.h stmt.h.
37156         * config/tilepro/tilepro.c: Likewise.
37157         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
37158         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
37159         * config/pdp11/pdp11.c: Likewise.
37160         * config/xtensa/xtensa.c: Likewise.
37161         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
37162         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37163         varasm.h.
37164         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37165         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
37166         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
37167         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37168         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
37169         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
37170         * rtl-chkp.c: Likewise.
37171         * tree-chkp-opt.c: Likewise.
37172         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
37173         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37174         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
37175         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37176         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37177         statistics.h stmt.h.
37178         * tree-vect-data-refs.c: Likewise.
37179         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
37180         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37181         rtl.h statistics.h stmt.h varasm.h.
37182         * internal-fn.c: Likewise.
37183         * ipa-icf-gimple.c: Likewise.
37184         * lto-section-out.c: Likewise.
37185         * tree-data-ref.c: Likewise.
37186         * tree-nested.c: Likewise.
37187         * tree-outof-ssa.c: Likewise.
37188         * tree-predcom.c: Likewise.
37189         * tree-pretty-print.c: Likewise.
37190         * tree-scalar-evolution.c: Likewise.
37191         * tree-ssa-strlen.c: Likewise.
37192         * tree-vect-loop.c: Likewise.
37193         * tree-vect-patterns.c: Likewise.
37194         * tree-vect-slp.c: Likewise.
37195         * tree-vect-stmts.c: Likewise.
37196         * tsan.c: Likewise.
37197         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37198         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
37199         stmt.h.
37200         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
37201         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37202         statistics.h stmt.h varasm.h.
37203         * loop-unroll.c: Likewise.
37204         * ubsan.c: Likewise.
37205         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
37206         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
37207         stmt.h varasm.h.
37208         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37209         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
37210         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
37211         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37212         statistics.h stmt.h.
37213         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
37214         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37215         statistics.h stmt.h varasm.h.
37216         * gimple-match-head.c: Likewise.
37217         * lto-cgraph.c: Likewise.
37218         * lto-section-in.c: Likewise.
37219         * lto-streamer-in.c: Likewise.
37220         * lto-streamer-out.c: Likewise.
37221         * tree-affine.c: Likewise.
37222         * tree-cfg.c: Likewise.
37223         * tree-cfgcleanup.c: Likewise.
37224         * tree-if-conv.c: Likewise.
37225         * tree-into-ssa.c: Likewise.
37226         * tree-ssa-alias.c: Likewise.
37227         * tree-ssa-copyrename.c: Likewise.
37228         * tree-ssa-dse.c: Likewise.
37229         * tree-ssa-forwprop.c: Likewise.
37230         * tree-ssa-live.c: Likewise.
37231         * tree-ssa-math-opts.c: Likewise.
37232         * tree-ssa-pre.c: Likewise.
37233         * tree-ssa-sccvn.c: Likewise.
37234         * tree-tailcall.c: Likewise.
37235         * tree-vect-generic.c: Likewise.
37236         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37237         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
37238         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37239         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
37240         * varasm.c: Likewise.
37241         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37242         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
37243         varasm.h.
37244         * init-regs.c: Likewise.
37245         * ira.c: Likewise.
37246         * omp-low.c: Likewise.
37247         * stack-ptr-mod.c: Likewise.
37248         * tree-ssa-reassoc.c: Likewise.
37249         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37250         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
37251         varasm.h.
37252         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37253         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
37254         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37255         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
37256         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37257         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
37258         * tree-ssa-phiopt.c: Likewise.
37259         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37260         fixed-value.h hashtab.h real.h statistics.h stmt.h.
37261         * config/fr30/fr30.c: Likewise.
37262         * config/frv/frv.c: Likewise.
37263         * expr.c: Likewise.
37264         * final.c: Likewise.
37265         * optabs.c: Likewise.
37266         * passes.c: Likewise.
37267         * simplify-rtx.c: Likewise.
37268         * stmt.c: Likewise.
37269         * toplev.c: Likewise.
37270         * var-tracking.c: Likewise.
37271         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37272         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37273         * lower-subreg.c: Likewise.
37274         * postreload-gcse.c: Likewise.
37275         * ree.c: Likewise.
37276         * reginfo.c: Likewise.
37277         * store-motion.c: Likewise.
37278         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37279         fixed-value.h hashtab.h real.h stmt.h varasm.h.
37280         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37281         fixed-value.h hashtab.h statistics.h stmt.h.
37282         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37283         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37284         * except.c: Likewise.
37285         * explow.c: Likewise.
37286         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37287         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
37288         varasm.h.
37289         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37290         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
37291         * tree-ssa-structalias.c: Likewise.
37292         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37293         fixed-value.h insn-config.h real.h statistics.h.
37294         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37295         fixed-value.h insn-config.h real.h statistics.h stmt.h.
37296         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37297         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37298         * cfgbuild.c: Likewise.
37299         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37300         fixed-value.h real.h rtl.h statistics.h stmt.h.
37301         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37302         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37303         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37304         fixed-value.h real.h statistics.h stmt.h.
37305         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37306         fixed-value.h real.h statistics.h stmt.h varasm.h.
37307         * cprop.c: Likewise.
37308         * modulo-sched.c: Likewise.
37309         * postreload.c: Likewise.
37310         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37311         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
37312         statistics.h stmt.h varasm.h.
37313         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
37314         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37315         rtl.h statistics.h stmt.h varasm.h.
37316         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
37317         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
37318         varasm.h.
37319         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37320         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
37321         varasm.h.
37322         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
37323         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
37324         varasm.h.
37325         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
37326         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37327         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37328         function.h real.h statistics.h stmt.h varasm.h.
37329         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37330         insn-config.h real.h statistics.h stmt.h.
37331         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37332         statistics.h stmt.h.
37333         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
37334         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
37335         statistics.h stmt.h varasm.h.
37336         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
37337         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
37338         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37339         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
37340         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
37341         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37342         statistics.h stmt.h varasm.h.
37343         * ipa-polymorphic-call.c: Likewise.
37344         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
37345         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37346         statistics.h stmt.h.
37347         * config/c6x/c6x.c: Likewise.
37348         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
37349         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37350         statistics.h stmt.h varasm.h.
37351         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
37352         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
37353         stmt.h varasm.h.
37354         * ipa-split.c: Likewise.
37355         * tree-eh.c: Likewise.
37356         * tree-ssa-dce.c: Likewise.
37357         * tree-ssa-loop-niter.c: Likewise.
37358         * tree-vrp.c: Likewise.
37359         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
37360         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
37361         stmt.h.
37362         * config/nds32/nds32-fp-as-gp.c: Likewise.
37363         * config/nds32/nds32-intrinsic.c: Likewise.
37364         * config/nds32/nds32-isr.c: Likewise.
37365         * config/nds32/nds32-md-auxiliary.c: Likewise.
37366         * config/nds32/nds32-memory-manipulation.c: Likewise.
37367         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
37368         * config/nds32/nds32-predicates.c: Likewise.
37369         * config/nds32/nds32.c: Likewise.
37370         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
37371         fixed-value.h hashtab.h real.h statistics.h.
37372         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
37373         fixed-value.h hashtab.h real.h statistics.h stmt.h.
37374         * config/arm/arm.c: Likewise.
37375         * config/avr/avr.c: Likewise.
37376         * config/bfin/bfin.c: Likewise.
37377         * config/h8300/h8300.c: Likewise.
37378         * config/i386/i386.c: Likewise.
37379         * config/ia64/ia64.c: Likewise.
37380         * config/iq2000/iq2000.c: Likewise.
37381         * config/m32c/m32c.c: Likewise.
37382         * config/m32r/m32r.c: Likewise.
37383         * config/m68k/m68k.c: Likewise.
37384         * config/mcore/mcore.c: Likewise.
37385         * config/mep/mep.c: Likewise.
37386         * config/mips/mips.c: Likewise.
37387         * config/mn10300/mn10300.c: Likewise.
37388         * config/moxie/moxie.c: Likewise.
37389         * config/pa/pa.c: Likewise.
37390         * config/rl78/rl78.c: Likewise.
37391         * config/rx/rx.c: Likewise.
37392         * config/s390/s390.c: Likewise.
37393         * config/sh/sh.c: Likewise.
37394         * config/sparc/sparc.c: Likewise.
37395         * config/spu/spu.c: Likewise.
37396         * config/stormy16/stormy16.c: Likewise.
37397         * config/v850/v850.c: Likewise.
37398         * config/vax/vax.c: Likewise.
37399         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
37400         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37401         * config/msp430/msp430.c: Likewise.
37402         * predict.c: Likewise.
37403         * value-prof.c: Likewise.
37404         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
37405         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
37406         * config/microblaze/microblaze.c: Likewise.
37407         * config/nios2/nios2.c: Likewise.
37408         * config/rs6000/rs6000.c: Likewise.
37409         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37410         insn-config.h real.h rtl.h statistics.h stmt.h.
37411         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37412         insn-config.h real.h statistics.h stmt.h.
37413         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
37414         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37415         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
37416         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37417         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
37418         fixed-value.h real.h statistics.h stmt.h.
37419         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
37420         fixed-value.h statistics.h stmt.h.
37421         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
37422         stmt.h.
37424 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
37426         * gengtype.c (create_user_defined_type): Workaround
37427         -Wmaybe-uninitialized false positives.
37428         * cse.c (fold_rtx): Likewise.
37429         * loop-invariant.c (gain_for_invariant): Likewise.
37431 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
37433         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
37434         set the memory attributes in all cases but clear MEM_EXPR if need be.
37436 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
37438         PR tree-optimization/64434
37439         * cfgexpand.c (reorder_operands): New function.
37440         (expand_gimple_basic_block): Insert call of reorder_operands if
37441         optimized is true.
37443 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
37445         * config/mips/micromips.md (*swp): Remove explicit parallel.
37446         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
37447         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
37448         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
37449         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
37450         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
37451         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
37452         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
37453         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
37454         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
37455         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
37456         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
37457         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
37458         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
37459         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
37460         (mips_wrdsp): Likewise.
37461         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
37462         parallel.
37463         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
37464         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
37465         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
37466         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
37467         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
37468         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
37469         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
37470         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
37471         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
37473 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
37475         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
37476         (mips_print_operand): Support 'y' to print exact log2 in decimal
37477         of a const_int.
37478         * config/mips/mips.h (ISA_HAS_LSA): New define.
37479         (ISA_HAS_DLSA): Likewise.
37480         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
37481         * config/mips/predicates.md (const_immlsa_operand): New predicate.
37483 2015-01-15  Martin Liska  <mliska@suse.cz>
37485         PR target/64377
37486         * optc-save-gen.awk: Add support for array types.
37488 2015-01-15  Richard Biener  <rguenther@suse.de>
37490         PR middle-end/64365
37491         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
37492         for MEM_REF access functions with the same base can never partially
37493         overlap.
37495 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
37497         * common.opt: New option -fstack-protector-explicit.
37498         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
37499         (stack_protect_decl_phase): Handle stack_protect attribute for
37500         explicit stack protection requests.
37501         (expand_used_vars): Similarly.
37502         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
37503         * doc/extend.texi: Add documentation for "stack_protect" attribute.
37504         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
37506 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
37508         PR target/53988
37509         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
37510         reg-reg copies.
37511         (sh_extending_set_of_reg): New struct.
37512         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
37513         sh_remove_reg_dead_or_unused_notes): New Declarations.
37514         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
37515         sh_find_extending_set_of_reg, sh_split_tst_subregs,
37516         sh_extending_set_of_reg::use_as_extended_reg): New functions.
37517         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
37518         convert to insn_and_split and use new function sh_split_tst_subregs.
37520 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
37522         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
37523         option.
37524         (Optimization Options): Move -fuse-ld documentation to...
37525         (Link Options): ...here.
37527 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
37529         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
37530         offsets.
37531         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
37532         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
37533         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
37534         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
37535         instead of ZR for the memory operand of LL/SC.
37536         (compare_and_swap_12, sync_add<mode>): Likewise.
37537         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
37538         (sync_new_<optab>_12, sync_nand_12): Likewise.
37539         (sync_old_nand_12, sync_new_nand_12): Likewise.
37540         (sync_sub<mode>, sync_old_add<mode>): Likewise.
37541         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
37542         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
37543         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
37544         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
37545         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
37546         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
37547         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
37548         * doc/md.texi (ZC): Update description.
37550 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
37552         * builtins.c (expand_builtin_atomic_exchange): Remove error when
37553         memory model is CONSUME.
37554         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
37555         expand_builtin_atomic_store): Change invalid memory model errors to
37556         warnings.
37557         (expand_builtin_atomic_clear): Change invalid model errors to warnings
37558         and issue warning for CONSUME.
37560 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
37562         * lto-cgraph: Update function comments for
37563         lto_symtab_encoder_encode_*.
37565 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
37567         * Makefile.in (site.exp): Do not set ENABLE_LTO.
37569 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
37571         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
37572         * lto-cgraph.c (select_what_to_stream): Remove argument, use
37573         lto_stream_offload_p instead.
37574         * lto-streamer.h (select_what_to_stream): Remove argument.
37575         * passes.c (ipa_write_summaries): Likewise.
37576         * tree-pass.h (ipa_write_summaries): Likewise.
37578 2015-01-14  Richard Biener  <rguenther@suse.de>
37580         PR tree-optimization/59354
37581         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
37582         groups larger than the slp group size as having gaps.
37584 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
37586         PR middle-end/59448
37587         * builtins.c (get_memmodel): Promote consume to acquire always.
37589 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37591         PR target/64386
37592         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
37593         V32HImode.
37595 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37597         PR target/64393
37598         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
37599         Enable AVX512BW.
37600         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
37601         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
37602         AVX512VBMI, as it implies AVX512BW.
37604 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37606         PR target/64387
37607         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
37608         (vec_unpacks_hi_v16sf): Ditto.
37610 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37612         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
37613         is not available.
37615 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37617         * doc/invoke.texi (mapcs): Mention deprecation.
37618         (mapcs-frame): Likewise.
37620 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37622         PR target/64453
37623         * config/arm/arm.c (callee_saved_reg_p): Define.
37624         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
37625         register is callee saved instead of !call_used_regs[reg].
37626         (thumb1_compute_save_reg_mask): Likewise.
37628 2015-01-14  Hale Wang  <hale.wang@arm.com>
37630         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
37631         Cortex-M7.
37633 2015-01-14  Richard Biener  <rguenther@suse.de>
37635         PR lto/64415
37636         * tree-inline.c (insert_debug_decl_map): Check destination
37637         function MAY_HAVE_DEBUG_STMTS.
37638         (insert_init_debug_bind): Likewise.
37639         (insert_init_stmt): Remove redundant check.
37640         (remap_gimple_stmt): Drop debug stmts if the destination
37641         function has var-tracking assignments disabled.
37643 2015-01-14  Martin Liska  <mliska@suse.cz>
37645         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
37646         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
37648 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37650         PR target/64460
37651         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
37652         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
37654 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
37656         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
37657         level from an ARCH; do not inject the default.
37658         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
37659         MIPS_ISA_LEVEL_SPEC.
37660         (MIPS_ISA_NAN2008_SPEC): Update comment.
37661         (BASE_DRIVER_SELF_SPECS): Likewise.
37662         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
37663         MIPS_DEFAULT_ISA_LEVEL_SPEC.
37664         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
37665         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
37666         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
37668 2015-01-14  Richard Biener  <rguenther@suse.de>
37670         PR tree-optimization/64493
37671         PR tree-optimization/64495
37672         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
37673         assign the proper vectorized PHI to the inner loop exit PHIs.
37675 2015-01-14  Joey Ye  <joey.ye@arm.com>
37677         * config/arm/arm.c (arm_compute_save_reg_mask):
37678         Do not save lr in case of tail call.
37679         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
37681 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
37683         * tree-vrp.c (check_array_ref): Emit more warnings
37684         for warn_array_bounds >= 2.
37685         * common.opt: New option -Warray-bounds=.
37686         * doc/invoke.texi: Document -Warray-bounds=.
37688 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
37690         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
37691         (mforbid-fp-as-gp): Remove.
37692         (mex9): Remove.
37693         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
37694         (nds32_symbol_load_store_p): Remove.
37695         (nds32_fp_as_gp_check_available): Clean up implementation.
37696         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
37697         cases.
37698         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
37699         fp-as-gp and ex9 cases.
37701 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
37703         * tree-profile.c (init_ic_make_global_vars): Drop workaround
37704         for bintuils bug 14342.
37705         (init_ic_make_global_vars): Likewise.
37706         (gimple_init_edge_profiler): Likewise.
37707         (gimple_gen_ic_func_profiler): Likewise.
37709 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
37711         * ipa-inline.c (inline_small_functions): Swap the operands in
37712         enum.
37714 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
37716         PR ipa/64481
37717         * ipa-inline-analysis.c (node_growth_cache): Remove.
37718         (initialize_growth_caches): Do not initialize it.
37719         (free_growth_caches): Do not free it.
37720         (do_estimate_growth): Rename to ...
37721         (estimate_growth): ... this one; drop growth cache code.
37722         (growth_likely_positive): Always go the heuristics way.
37723         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
37724         (reset_edge_caches): Do not reset node growth.
37725         (heap_edge_removal_hook): Do not maintain cache.
37726         (inline_small_functions): Likewise; strenghten sanity check.
37727         (ipa_inline): Do not maintain caches.
37728         * ipa-inline.h (node_growth_cache): Remove.
37729         (do_estimate_growth): Remove to ...
37730         (estimate_growth): this one; remove inline version.
37731         (reset_node_growth_cache): Remove.
37733 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
37735         PR ipa/64565
37736         * ipa-inline.c (inline_small_functions): Update callee keys after
37737         resolving speculation
37738         (inline_small_functions): Always check monotonicity of the queue.
37740 2015-01-13  Marek Polacek  <polacek@redhat.com>
37742         PR middle-end/64391
37743         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
37745 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
37747         PR rtl-optimization/64286
37748         * ree.c (combine_reaching_defs): Move part of comment earlier,
37749         remove !SCALAR_INT_MODE_P check.
37750         (add_removable_extension): Don't add vector mode
37751         extensions if all uses of the source register aren't the same
37752         vector extensions.
37754 2015-01-13  Renlin Li  <renlin.li@arm.com>
37756         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
37757         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
37759 2015-01-13  Martin Liska  <mliska@suse.cz>
37761         * ipa-icf.c (sem_function::equals_private): Call new functions
37762         cl_target_option_print_diff and cl_optimization_print_diff.
37763         * optc-save-gen.awk (cl_target_option_print_diff): New function.
37764         (cl_optimization_print_diff): Likewise.
37765         * opth-gen.awk: Likewise.
37767 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
37769         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
37770         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
37771         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
37772         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
37773         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
37774         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
37776 2015-01-13  Andrew Pinski  <apinski@cavium.com>
37778         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
37779         instead of src mode.
37781 2015-01-13  Richard Biener  <rguenther@suse.de>
37783         PR lto/64373
37784         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
37785         DECL_CONTEXT.
37787 2015-01-13  Andrew Pinski  <apinski@cavium.com>
37789         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
37790         volatile mems.
37791         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
37793 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
37795         PR middle-end/63974
37796         * cfgexpand.c (expand_computed_goto): Don't call
37797         convert_memory_address here.
37799 2015-01-13  Richard Biener  <rguenther@suse.de>
37801         PR tree-optimization/64406
37802         * tree-loop-distibution.c (pass_loop_distribution::execute):
37803         Reset the SCEV hashtable if we distributed anything.
37805 2015-01-13  Richard Biener  <rguenther@suse.de>
37807         PR tree-optimization/64404
37808         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
37809         SLP types for CSEd loads.
37811 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37813         PR tree-optimization/64436
37814         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
37815         merge of two symbolic numbers for a bitwise OR to ...
37816         (perform_symbolic_merge): This. Also fix computation of the range and
37817         end of the symbolic number corresponding to the result of a bitwise OR.
37819 2015-01-13  Richard Biener  <rguenther@suse.de>
37821         PR tree-optimization/64568
37822         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
37823         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
37825 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37827         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
37828         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
37830 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37832         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
37833         target-specific symbol_ref flag.
37834         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
37835         resides in rodata section.
37836         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
37837         (nds32_encode_section_info): New function.
37839 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37841         * config/nds32/nds32.md (call): Use pseudo instruction bal which
37842         clobbers TA_REGNUM if large code model is specified.
37843         (call_register): Likewise.
37844         (call_immediate): Likewise.
37845         (call_value): Likewise.
37846         (call_value_register): Likewise.
37847         (call_value_immediate): Likewise.
37849 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37851         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
37852         (TARGET_CMODEL_MEDIUM): New macro.
37853         (TARGET_CMODEL_LARGE): New macro.
37854         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
37855         code model setting in assembly code.
37857 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37859         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
37860         Remove MASK_GP_DIRECT flag.
37861         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
37862         one of the multilib default options.
37863         * config/nds32/nds32.opt (mgp-direct): Remove.
37864         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
37865         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
37867 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37869         * config/nds32/nds32.opt (mcmodel): Add new option.
37870         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
37871         to describe code model.
37873 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
37875         PR target/64479
37876         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
37878 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
37880         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
37881         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
37882         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
37883         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
37884         __builtin_sh_set_fpscr.
37886 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
37888         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
37889         after a funtion name just to indicate it is a function.
37890         ([-fsanitize-undefined-trap-on-error]): Likewise.
37891         ([-fdbg-cnt=]): Likewise.
37892         ([-mmemcpy]): Likewise.
37893         ([-mflush-func]): Likewise.
37894         ([-msynci]): Likewise.
37896 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
37898         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
37899         example.
37901 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
37903         PR tree-optimization/64563
37904         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
37905         instead of != VR_VARYING.
37907         PR target/64513
37908         * config/i386/i386.c (ix86_expand_prologue): Add
37909         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
37911         PR tree-optimization/64454
37912         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
37913         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
37914         for signed or [0, op1 - 1] for unsigned modulo.
37915         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
37916         even if op1 does not satisfy integer_pow2p.
37918         PR other/64370
37919         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
37921 2015-01-12  Jeff Law  <law@redhat.com>
37923         PR target/64461
37924         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
37925         (trunchiqi2, truncsihi2): Similarly.
37927         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
37928         rather than calling F.
37930 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37932         * tsan.c (instrument_expr): Use force_gimple_operand.
37933         Use may_be_nonaddressable_p instead of is_gimple_addressable.
37935 2015-01-12  Richard Biener  <rguenther@suse.de>
37937         PR tree-optimization/64530
37938         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
37939         back dr1.
37941 2015-01-12  Richard Biener  <rguenther@suse.de>
37943         PR middle-end/64357
37944         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
37945         latches properly.
37947 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37949         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
37950         Cortex-A17 tuning parameters.
37951         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
37953 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37955         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
37956         * config/arm/arm.c (arm_macro_fusion_p): New function.
37957         (arm_macro_fusion_pair_p): Likewise.
37958         (TARGET_SCHED_MACRO_FUSION_P): Define.
37959         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
37960         (ARM_FUSE_NOTHING): Likewise.
37961         (ARM_FUSE_MOVW_MOVT): Likewise.
37962         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
37963         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
37964         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
37965         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
37966         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
37967         arm_cortex_a5_tune): Specify fuseable_ops value.
37969 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
37971         PR bootstrap/64561
37972         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
37973         test for PIE with copy reloc.
37974         * configure: Regenerated.
37976 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37978         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
37979         in gen_rtx_REG.
37980         (arm_tls_descseq_addr): Likewise.
37981         (arm_gen_movmemqi): Likewise.
37982         (arm_expand_epilogue_apcs_frame): Likewise.
37983         (arm_expand_epilogue): Likewise.
37984         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
37985         in gen_rtx_REG.
37987 2015-01-12  Martin Liska  <mliska@suse.cz>
37989         PR ipa/64550
37990         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
37991         volatility for correct operands.
37993 2015-01-12  Martin Liska  <mliska@suse.cz>
37995         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
37996         indication that a function is not leaf.
37997         (sem_function::compare_polymorphic_p): Likewise.
37999 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38001         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
38002         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
38003         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
38004         fold-const.h, tree-check.h.
38006 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
38008         PR ipa/63967
38009         PR ipa/64425
38010         * ipa-inline.c (compute_uninlined_call_time,
38011         compute_inlined_call_time): Use counts for extra precision when
38012         needed possible.
38013         (big_speedup_p): Fix formating.
38014         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
38015         (relative_time_benefit): Remove.
38016         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
38017         merge guessed and read profile paths.
38018         (inline_small_functions): Count only !optimize_size functions into
38019         initial size; be more lax about sanity check when profile is used;
38020         be sure to update inlined function profile when profile is read.
38022 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
38024         PR ipa/63470
38025         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
38026         cost when edge becomes direct.
38027         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
38028         is resolved or when introducing new speculation.
38030 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
38032         PR ipa/64551
38033         PR ipa/64552
38034         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
38035         '||' to fix typo issue.
38037         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
38038         accept and return NULL.
38040 2015-01-12  Martin Liska  <mliska@suse.cz>
38042         * cgraph.c (cgraph_edge::remove_callee): Move function to header
38043         file for being inlined.
38044         (cgraph_set_edge_callee): Delete.
38045         (cgraph_edge::redirect_callee): Move function to header file
38046         for being inlined.
38047         (cgraph_edge::make_direct): Use new function.
38048         (cgraph_edge::dump_edge_flags): New function created from
38049         static dump_edge_flags function.
38050         (cgraph_node::dump): Use new function.
38051         (cgraph_edge::verify_count_and_frequency): New function created
38052         from verify_edge_count_and_frequency.
38053         (cgraph_edge::verify_corresponds_to_fndecl): New function created
38054         from verify_edge_corresponds_to_fndecl.
38055         (verify_edge_corresponds_to_fndecl): Delete.
38056         (cgraph_node::verify_node): Use new function.
38057         * cgraph.h (cgraph_edge::set_callee): New function.
38058         (cgraph_edge::dump_edge_flags): Likewise.
38059         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
38061 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
38063         * ipa-utils.c (estimate_function_body_sizes): Do not
38064         free node params when called late with early=true.
38066 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
38068         * doc/md.texi (Instruction Patterns): Rewrite text for
38069         clarity.
38070         (Example): Likewise.
38072 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
38074         * doc/invoke.texi (Option Summary): Break long lines.
38075         [(-fdiagnostics-color)]: Put long literal in @smallexample
38076         instead of inline.
38077         [(-fsanitize-recover)]: Likewise.
38078         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
38079         [(-ffast-math)]: Likewise.
38080         [(--param max-inline-insns-recursive)]: Likewise.
38081         [(--param max-inline-recursive-depth)]: Likewise.
38082         [(-mno-text-section-literals)]: Likewise.
38084 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
38086         * doc/install.texi: Update for libgomp being renamed from "GNU
38087         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
38088         Runtime Library".
38089         * doc/sourcebuild.texi: Likewise.
38091 2015-01-10  Anthony Green  <green@moxielogic.com>
38093         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
38094         mul.x availability for moxiebox configuration.
38096 2015-01-09  Anthony Green  <green@moxielogic.com>
38098         * config/moxie/moxie.md: Tabify assembly output.
38100 2015-01-09  Anthony Green  <green@moxielogic.com>
38102         * config/moxie/moxie.md (CC_REG): Correct register definition.
38104 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
38106         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
38107         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
38108         of log files.
38110 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
38112         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
38114 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
38115             Jakub Jelinek  <jakub@redhat.com>
38117         PR middle-end/64412
38118         * lto-streamer.h (lto_stream_offload_p): New declaration.
38119         * lto-streamer.c (lto_stream_offload_p): New variable.
38120         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
38121         at the same time as section_name_prefix.
38122         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
38123         if lto_stream_offload_p.
38124         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
38125         stream TREE_TARGET_OPTION if lto_stream_offload_p.
38126         (write_ts_function_decl_tree_pointers): Don't
38127         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
38128         * tree-streamer-in.c (unpack_value_fields): Don't stream
38129         TREE_TARGET_OPTION in if ACCEL_COMPILER.
38130         (lto_input_ts_function_decl_tree_pointers): Don't stream
38131         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
38132         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
38133         instead of section_name_prefix string comparisons.
38135 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
38137         PR rtl-optimization/64536
38138         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
38139         tablejumps.
38141 2015-01-09  Michael Collison  <michael.collison@linaro.org>
38143         PR tree-optimization/64322
38144         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
38145         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
38147 2015-01-09  Tom de Vries  <tom@codesourcery.com>
38149         PR rtl-optimization/64539
38150         * regcprop.c (kill_clobbered_values): Factor out of ...
38151         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
38152         instead of note_stores with kill_clobbered_value.
38154 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
38156          * ginclude/unwind-arm-common.h: Revert previous commit.
38158 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
38160         * config.gcc (arm*-*-freebsd*): New configuration.
38161         * config/arm/freebsd.h: New file.
38162         * config.host: Add extra components for arm*-*-freebsd*.
38163         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
38164         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
38166 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38168         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
38169         for -mcpu=e6500.
38170         * config/rs6000/t-rtems: Add e6500 multilibs.
38172 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38174         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
38175         MPC8540.
38177 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38179         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
38180         MULTILIB_EXCEPTIONS.
38182 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38184         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
38185         MULTILIB_EXCEPTIONS.
38187 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38189         * config/arm/t-rtems-eabi: Rename to...
38190         * config/arm/t-rtems: ...this.
38191         * config/arm/rtems-eabi.h: Rename to...
38192         * config/arm/rtems.h: ...this.
38193         * config.gcc (arm*-*-rtems*): Reflect changes above.
38195 2015-01-09  Richard Biener  <rguenther@suse.de>
38197         PR tree-optimization/64410
38198         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
38199         on the LHS.
38200         (execute_update_addresses_taken): Deal with that.
38201         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
38202         loads/stores for complex variables.
38204 2015-01-09  Martin Liska  <mliska@suse.cz>
38206         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
38207         name comparison.
38208         (func_checker::compare_memory_operand): New function.
38209         (func_checker::compare_operand): Split case to newly
38210         added functions.
38211         (func_checker::compare_cst_or_decl): New function.
38212         (func_checker::compare_gimple_call): Identify
38213         memory operands.
38214         (func_checker::compare_gimple_assign): Likewise.
38215         * ipa-icf-gimple.h: New function.
38217 2015-01-09  Martin Liska  <mliska@suse.cz>
38219         PR ipa/64503
38220         * sreal.c (sreal::dump): Change unsigned format to signed for
38221         m_exp value.
38222         (sreal::to_double): Replace exp2 with scalbln.
38224 2015-01-09  Martin Liska  <mliska@suse.cz>
38226         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
38227         * ipa-icf.c (sem_function::equals_private): Add support for target and
38228         (sem_item_optimizer::merge_classes): Remove redundant function
38229         optimization flags comparison.
38230         * tree.h (target_opts_for_fn): New function.
38232 2015-01-09  Tom de Vries  <tom@codesourcery.com>
38234         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
38236 2015-01-09  Kito Cheng  <kito@0xlab.org>
38238         PR rtl-optimization/64348
38239         * lra-constraints.c (split_reg): Fix caller-save store/restore
38240         instruction generation.
38242 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
38244         PR gcov-profile/61790
38245         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
38246         long long.  Fallback to int64_t if host doesn't have long long and
38247         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
38249 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
38251         PR tree-optimization/63989
38252         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
38253         from 1000 to 10000.
38254         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
38255         (get_stridx): If we don't have a record for certain SSA_NAME,
38256         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
38257         constant offset, call get_stridx_plus_constant.
38258         (get_stridx_plus_constant): New function.
38259         (zero_length_string): Don't use get_stridx here.
38261         PR target/55023
38262         PR middle-end/64388
38263         * dse.c (struct insn_info): Mention frame_read set also
38264         before reload for tail calls on some targets.
38265         (scan_insn): Revert 2014-12-22 change.  Set frame_read
38266         also before reload for tail calls if
38267         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
38268         instead of add_non_frame_wild_read for non-const/memset
38269         tail calls after reload.
38271 2015-01-08  Jason Merrill  <jason@redhat.com>
38273         * ubsan.c (do_ubsan_in_current_function): New.
38274         (pass_ubsan::gate): Use it.
38275         * ubsan.h: Declare it.
38276         * convert.c (convert_to_integer): Use it.
38278 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
38280         PR target/64338
38281         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
38282         compare_code when it is unconditionally overwritten afterwards.
38283         Use ix86_reverse_condition instead of reverse_condition.  Don't
38284         change code if *reverse_condition* returned UNKNOWN and don't
38285         swap ct/cf and negate diff in that case.
38287 2015-01-08  Mike Stump  <mikestump@comcast.net>
38289         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
38290         (pass_tsan_O0::gate): Likewise.
38291         * extend.texi (Function Attributes): Add no_sanitize_thread
38292         documentation.
38294 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
38296         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
38297         for registering builtins.
38298         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
38299         add -fopenmp to the argv_obstack used when invoking
38300         compile_for_target.
38302         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
38303         add "-m32" or "-m64" to argv_obstack.
38304         (generate_host_descr_file): Likewise, when invoking host_compiler.
38305         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
38306         ld.
38308 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
38310         * config/sh/sh-mem.cc: Use constant as second operand when emitting
38311         tstsi_t insns.
38313 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
38315         PR target/55212
38316         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
38317         constant load if constant operand fits into I08.
38319 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
38321         PR sanitizer/64336
38322         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
38323         and TREE_THIS_VOLATILE for MEM_REFs.
38324         (build5_stat): Fix up initialization of TREE_READONLY and
38325         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
38327 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
38329         PR target/64533
38330         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
38331         of r for the second alternative of the destination operand.
38333 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
38335         PR target/36557
38336         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
38338 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
38340         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
38341         keywords.
38342         ([-fivar-visibility], [-fvisibility]): Likewise.
38344 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
38346         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
38347         the file where @code, @command, etc is more appropriate.
38349 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
38351         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
38352         of -mrecip= documentation.
38354 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
38356         PR target/64505
38357         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
38358         correct reload handler if -m32 -mpowerpc64 is used.
38360 2015-01-06  Tom de Vries  <tom@codesourcery.com>
38362         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
38364 2015-01-08  Christian Bruel  <christian.bruel@st.com>
38366         PR target/64507
38367         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
38369 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38371         PR tree-optimization/63259
38372         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
38373         if optab exists for 16bit byteswap.
38375 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
38377         * opts.c (common_handle_option): Add support for
38378         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
38379         * doc/invoke.texi: Document -fno-sanitize=all,
38380         -f{,no-}sanitize-recover=all.  Document that
38381         -fsanitize=float-cast-overflow is not enabled
38382         by -fsanitize=undefined.  Fix up documentation
38383         of -f{,no-}sanitize-recover.
38385 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
38387         * config.gcc: Add Visium support.
38388         * configure.ac: Likewise.
38389         * configure: Regenerate.
38390         * doc/extend.texi (interrupt attribute): Add Visium.
38391         * doc/invoke.texi: Document Visium options.
38392         * doc/install.texi: Document Visium target.
38393         * doc/md.texi: Document Visium constraints.
38394         * common/config/visium: New directory.
38395         * config/visium: Likewise.
38397 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
38399         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
38400         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
38402 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
38404         * combine.c (combine_validate_cost): Do not count the cost of a
38405         split I2 twice.  Do not display it twice in the dump, either.
38407 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
38409         Revert parts of r219199.
38410         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
38411         <inttypes.h>.
38412         ([-Wtraditional]): Restore markup on <limits.h>.
38414 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
38416         PR c++/31397
38417         * doc/invoke.texi: Document -Wsuggest-override.
38419 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
38421         PR rtl-optimization/64287
38422         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
38423         (process_options): Disable flag_ipa_ra if profiling.
38425 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
38427         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
38429 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
38431         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
38432         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
38433         put under #if TARGET_LOOPS guard.
38435 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
38437         * config/i386/i386.c (output_387_binary_op): Use std::swap.
38439 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
38441         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
38442         * rtl.h (refers_to_regno_p): Add overload.
38443         * cse.c: Use it.
38444         * bt-load.c: Likewise.
38445         * combine.c: Likewise.
38446         * df-scan.c: Likewise.
38447         * sched-deps.c: Likewise.
38448         * config/s390/s390.c: Likewise.
38449         * config/m32r/m32r.c: Likewise.
38450         * config/rs6000/spe.md: Likewise.
38451         * config/rs6000/rs6000.c: Likewise.
38452         * config/pa/pa.c: Likewise.
38453         * config/stormy16/stormy16.c: Likewise.
38454         * config/cris/cris.c: Likewise.
38455         * config/arc/arc.md: Likewise.
38456         * config/arc/arc.c: Likewise.
38457         * config/sh/sh.md: Likewise.
38458         * config/sh/sh.c: Likewise.
38459         * config/frv/frv.c: Likewise.
38461 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
38463         PR sanitizer/64265
38464         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
38465         call as cleanup of the whole body.
38466         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
38467         * tsan.c (replace_func_exit): New function.
38468         (instrument_func_exit): Moved earlier.
38469         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
38470         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
38471         been found.
38472         (tsan_pass): Don't call instrument_func_exit.
38473         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
38474         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
38475         inlining.
38477         PR sanitizer/64344
38478         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
38479         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
38480         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
38481         if the result is integer_zerop, return NULL_TREE.
38482         * convert.c (convert_to_integer): Pass expr as ARG.
38484         PR tree-optimization/64465
38485         * tree-inline.c (redirect_all_calls): During inlining
38486         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
38487         changed the stmt to a non-throwing call.
38489 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
38491         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
38492         etc markup throughout the file.
38494 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38496         Enable experimental TSAN support for Ada.
38497         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
38499 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
38501         PR tree-optimization/64494
38502         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
38503         clear SSA_NAME_ANTI_RANGE_P flag.
38505 2015-01-05  Marek Polacek  <polacek@redhat.com>
38507         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
38509 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
38511         Update copyright years.
38513         * gcc.c (process_command): Update copyright notice dates.
38514         * gcov-dump.c: Ditto.
38515         * gcov.c: Ditto.
38516         * doc/cpp.texi: Bump @copying's copyright year.
38517         * doc/cppinternals.texi: Ditto.
38518         * doc/gcc.texi: Ditto.
38519         * doc/gccint.texi: Ditto.
38520         * doc/gcov.texi: Ditto.
38521         * doc/install.texi: Ditto.
38522         * doc/invoke.texi: Ditto.
38524         * auto-profile.c, auto-profile.h: Fix up Copyright line.
38526 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
38528         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
38529         verb tense, etc.
38530         ([-fvtable-verify], [-fvtv-debug]): Likewise.
38531         ([-Wabi]): Likewise.
38532         ([-fmessage-length]): Likewise.
38533         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
38534         ([-Wno-discarded-qualifiers]): Likewise.
38535         ([-Wnodiscarded-array-qualifiers]): Likewise.
38536         ([-Wno-virtual-move-assign]): Likewise.
38537         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
38538         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
38539         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
38540         ([-fsanitize-undefined-trap-on-error]): Likewise.
38541         ([-floop-interchange]): Likewise.
38542         ([-ftree-coalesce-inlined-vars]): Likewise.
38543         ([-fvect-cost-model]): Likewise.
38544         ([-flto]): Likewise.
38545         ([--param]): Likewise.
38546         (Spec Files): Likewise.
38547         ([-mstrict-align]): Likewise.
38548         ([-mfix-cortex-a53-835769]): Likewise.
38549         ([-march], [-mtune]): Likewise.
38550         ([-mpic-register]): Likewise.
38551         ([-munaligned-access]): Likewise.
38552         ([-msp8]): Likewise.
38553         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
38554         (AVR Built-in Macros): Likewise.
38555         ([-mpreferred-stack-boundary]): Likewise.
38556         ([-mtune-crtl]): Likewise.
38557         ([-mashf]): Likewise.
38558         ([-mmcu=]): Likewise.
38559         ([-minrt]): Likewise.
38560         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
38561         ([-mupper-regs]): Likewise.
38562         ([-matomic-model]): Likewise.
38563         ([-mdiv]): Likewise.
38564         ([-mzdcbranch]): Likewise.
38565         ([-mdisable-callt]): Likewise.
38566         ([-msoft-float]): Likewise.
38567         ([-m8byte-align]): Likewise.
38568         ([-fstack-reuse]): Likewise.
38570 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38572         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
38573         Fix markup, light copy-editing.
38574         ([-fauto-profile]): Rewrite to fix formatting and content
38575         problems.
38577 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38579         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
38580         Copy-edit description.
38581         ([-fisolate-erroneous-paths-attribute]): Likewise.
38582         * common.opt (fisolate-erroneous-paths-dereference):
38583         Copy-edit description.
38584         (fisolate-erroneous-paths-attribute): Likewise.
38586 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38588         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
38589         tidy grammar.
38591 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38593         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
38594         ([-fvtv-debug]): Likewise.
38595         ([-Wc++-compat]): Likewise.
38596         ([-Wc++11-compat]): Likewise.
38597         ([-Wc++14-compat]): Likewise.
38598         ([-Wno-sized-deallocation]): Likewise.
38599         ([-femit-class-debug-always]): Likewise.
38600         ([-femit-struct-debug-detailed]): Likewise.
38601         ([-fno-keep-inline-dllexport]): Likewise.
38602         ([-fira-algorithm]): Likewise.
38603         ([-fira-region]): Likewise.
38604         ([-flra-remat]): Likewise.
38605         ([-fipa-ra]): Likewise.
38606         ([-fhoist-adjacent-loads]): Likewise.
38607         ([-fisolate-erroneous-paths-dereference]): Likewise.
38608         ([-fisolate-erroneous-paths-attribute]): Likewise.
38609         ([-ftree-switch-conversion]): Likewise.
38610         ([-ftree-tail-merge]): Likewise.
38611         ([-ftree-loop-if-convert]): Likewise.
38612         ([-ftree-loop-if-convert-stores]): Likewise.
38613         ([-ftree-loop-distribution]): Likewise.
38614         ([-ftree-loop-distribute-patterns]): Likewise.
38615         ([-flto-compression-level]): Likewise.
38616         ([-flto-report]): Likewise.
38617         ([-flto-report-wpa]): Likewise.
38618         ([-fuse-linker-plugin]): Likewise.
38619         ([-mfix-cortex-a53-835769]): Likewise.
38620         ([-mno-fix-cortex-a53-835769]): Likewise.
38621         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
38622         explicit listing; add a note to the discussion indicating they
38623         exist.  Reorder table to group similar options.  Add missing
38624         @opindex entries.  Add @need commands throughout the table to
38625         allow it to be split across multiple pages.
38626         ([-m8bit-idiv]): Fix @opindex.
38627         ([-mavx256-split-unaligned-load]): Likewise.
38628         ([-mavx256-split-unaligned-store]): Likewise.
38629         ([-mstack-protector-guard]): Likewise.
38630         ([-mcpu=]): Likewise.
38631         ([-mcpu]): Likewise.
38632         ([-mpointer-size=]): Likewise.
38634 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
38636         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
38637         instead of `m' constraint.  Likewise for unnamed movb comparison
38638         patterns using reg_before_reload_operand predicate.
38639         * config/pa/predicates.md (reg_before_reload_operand): Tighten
38640         predicate to reject register index and LO_SUM DLT memory forms
38641         after reload.
38643 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
38645         * doc/invoke.texi (Option Summary): Fix spelling of
38646         -fdevirtualize-at-ltrans.
38647         ([-fdevirtualize]): Fix markup.
38648         ([-fdevirtualize-speculatively]): Fix typo.
38649         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
38650         implementor-speaky.
38651         * common.opt (fdevirtualize-at-ltrans): Likewise.
38652         * ipa-devirt.c: Fix typos in comments throughout the file.
38653         (ipa_devirt): Fix typos in format strings for dump output.
38655 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
38657         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
38658         discussion of defaults, light copy-editing.
38660 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38662         * tsan.c (instrument_expr): corrected previous checkin.
38664 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38666         Instrument bit field and unaligned accesses for TSAN.
38667         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
38668         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
38669         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
38670         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
38671         unaligned memory regions.
38673 2015-01-01  Anthony Green  <green@moxielogic.com>
38675         * config/moxie/predicates.md (moxie_general_movsrc_operand):
38676         Restrict move source register offsets to 16 bits.
38678 Copyright (C) 2015 Free Software Foundation, Inc.
38680 Copying and distribution of this file, with or without modification,
38681 are permitted in any medium without royalty provided the copyright
38682 notice and this notice are preserved.